[lammps-users] Multiple read_data commands in lammps


Do you know if it is possible to use multiple read_data commands in lammps?

For example, I am creating a multilayer-structure composed of metal, a layer of water, and another layer of metal. The program I use to create each layer in a text file is an external program. Can I use lammps to read_data for the 1st layer, use read_data in the next line to create the 2nd layer, etc?


Hi Bryan,

No, you cannot use multiple read_data commands in LAMMPS. At
most you get one. You will have to write a wrapper code to
take the outputs from your other program and make them into a
single LAMMPS data file.


Joanne Budzien