read_data after creating lattice

Dear LAMMPS developers and users,

Greetings. I am putting bulk water system into graphene bilayer. I have the bulk water in read_data file, and the graphene layer will be prepared within LAMMPS input file (by creating lattice). I wonder if I can do this within the input file, otherwise I need to output the graphene topology->manually merge these two->save as a ascii file.

It would be good if I can do that once. Thanks in advance!

LC Liu

You can do

read_data file

lattice …
create_atoms …

Steve

You can do

read_data file
lattice ...
create_atoms ...

... but make sure, that the space for atom types you need for create
atoms is already reserved in the data file.

axel.