Dear LAMMPS Community,
I am a new user and an Energy Master’s student, currently working on a project involving LAMMPS simulations. I am trying to model a box of water molecules using the SPC/E model but have encountered a coordination issue while defining the water molecule in my input file. Specifically, I am facing an error related to the Coords section of my h2o.dat file.
ERROR: Invalid line in Coords section of molecule file (src/molecule.cpp:733)
Here’s the content of my h2o.dat file:
SPC/E water molecule for LAMMPS - Single H2O molecule
3 atoms
2 bonds
1 angles
Coords section
Coords
1 0.000000 0.000000 0.000000 # Oxygen at the origin
2 0.957200 0.000000 0.000000 # Hydrogen 1 along the x-axis (bond length 0.9572 Å)
3 -0.239000 0.927300 0.000000 # Hydrogen 2 at an angle from Oxygen, 104.52° between H1-O-H2
Types section
Types
1 2
2 3
3 3
Charges section
Charges
1 -0.8476 # Oxygen charge
2 0.4238 # Hydrogen 1 charge
3 0.4238 # Hydrogen 2 charge
Bonds section
Bonds
1 1 1 2 # Bond 1 between Oxygen and Hydrogen 1
2 1 1 3 # Bond 2 between Oxygen and Hydrogen 2
Angles section
Angles
1 1 2 1 3 # H-O-H bond angle
I would greatly appreciate any guidance or advice on resolving this issue.
Thank you in advance for your help!