Closed feifzhou closed 2 years ago
P.S. I had a problem using moltemplate/moltemplate/force_fields/spc_oplsaa.lt
$ cat system.lt
import "spc_oplsaa.lt" # <- defines the "SPC" (water) molecule type (uses OPLSAA)
write_once("Data Boundary") {
0.0 41.40 xlo xhi
0.0 41.40 ylo yhi
0.0 41.40 zlo zhi
}
waters = new SPC_oplsaa [12].move(0.00, 0.00, 3.45)
[12].move(0.00, 3.45, 0.00)
[12].move(3.45, 0.00, 0.00)
Now there is an error
$ moltemplate.sh system.lt
moltemplate.sh v2.20.14 2022-9-09
lttree_check.py v0.81.2 2021-5-24
########################################################
## WARNING: atom_style unspecified ##
## --> "Data Atoms" column data has an unknown format ##
## Assuming atom_style = "full" ##
########################################################
lttree_check.py: parsing the class definitions... done
lttree_check.py: looking up classes... done
lttree_check.py: looking up @variables... done
---------------------------------------------------------------------
Syntax error: Missing bond coeff.
No coeffs for the "@/bond:SPC_oplsaa/OH" bond type have been
defined, but a reference to that bond type was discovered
near "spc_oplsaa.lt", line 34. Check this file and also check
your "bond_coeff" commands or your "Data Bond Coeffs" section.
---------------------------------------------------------------------
(To continue anyway, run moltemplate using the "-nocheck" argument.)
Thank you Fei Zhou for catching this mistake. I have updated the "spc_oplsaa.lt" and "tip3p_oplsaa.lt" files. I posted the commit today. It's embarrassing. I never tested either of these files and they both had bugs. Hopefully they work better now. I also added some comments to both files to better explain how they should be used.
Also: The SPC and SPC/E (also known as "SPCE") water models are not the same. They have different parameters. If you are curious, I think both water models are explained in this paper: Berendsen, Grigera, Straatsma, J Phys Chem, 91, 6269-6271 (1987)
I will close this issue now. Feel free to reopen it.