Closed matk86 closed 6 years ago
Sorry it was removed in the recent PR because
To work with pmg objects like structure or molecule, use the new Topology
and ForceField
objects.
I agree with @matk86 that it is probably useful to have a convenience method to construct Lammpsdata from a structure/molecule. But I also agree with @adengz that the LAMMPS data file require more information. I suggest you just include a from_structure method, which will simply construct a topology from the sites and set up the cell with additional parameters.
I would suggest we do not allow construct from molecule. Instead, someone will have to go through get_boxed_structure to construct the simulation cell before passing it into Lammpsdata.
I will bring back a standalone method building LammpsData
from structure soon, instead of a classmethod associated with LammpsData
since this will ignore topologies and their force field parameters.
Thanks. The use case I had in mind was not just simple boxed molecule but actual periodic structures with tilt etc computed from the given structures lattice and simple 'atomic' or molecule style (no need for topologies and forcefields, the reason why I had a separate lammpsforcefield class that inherited from lammpsdata)
it used to be there until the recent PR. @adengz why did you remove it? it is very useful to have it in there for generating data files for general structure objects.