2023-04-05 10:57:56 +02:00
|
|
|
import particle
|
|
|
|
import parsexyz
|
|
|
|
import forces
|
2022-12-07 18:51:22 +01:00
|
|
|
|
|
|
|
import strformat
|
2023-04-05 10:57:56 +02:00
|
|
|
import os
|
2022-12-07 18:51:22 +01:00
|
|
|
|
2023-04-05 10:57:56 +02:00
|
|
|
# what's the input file name?
|
|
|
|
if paramCount() != 2:
|
|
|
|
echo "Usage: ./main inputfile.xyz settingName"
|
|
|
|
quit 1
|
|
|
|
if not fileExists("ffs.toml"):
|
|
|
|
echo "Error: input.toml doesn't exist"
|
|
|
|
quit 2
|
|
|
|
let xyzPath = paramStr(1)
|
|
|
|
let ffName = paramStr(2)
|
|
|
|
echo &"Using {xyzPath} as input, {ffName} as calculation settings"
|
2022-12-07 18:51:22 +01:00
|
|
|
|
2023-04-15 15:59:24 +02:00
|
|
|
simulate(ffName, xyzPath)
|