question about adding read__data

Dear users,

I am trying to read multiple data files in a simulation, but it shows an error: Illegal read_data command (…/read_data.cpp:164)
I check my command several times but cannot find what is wrong in it, can anyone help me?

read_data water_box.data
read_data plate.data add append offset 2 0 0 0 0

Thank you.

Miao-Chun Wang

Dear users,

I am trying to read multiple data files in a simulation, but it shows an
error: Illegal read_data command (../read_data.cpp:164)
I check my command several times but cannot find what is wrong in it, can
anyone help me?

​not without you telling us which version of LAMMPS you are using.

axel.​

I am using 15May15 version, is this too old?

Thank you.
Miao-Chun Wang

I am using 15May15 version, is this too old?

​yes.​

Dear users,

I still have problem using this command. My water_box data has 2 atom types, 1 bond types and 1 angle types; and in plate data has 5 atoms type. But I reach an error that said “Invalid type for mass set”, but I cannot figure out what I have done wrong, can anyone please help me?

read_data water_box.data
read_data plate.data add append offset 2 0 0 0 0

Thank you.

Miao-Chun Wang

Dear users,

I still have problem using this command. My water_box data has 2 atom
types, 1 bond types and 1 angle types; and in plate data has 5 atoms
type. But I reach an error that said "Invalid type for mass set", but I
cannot figure out what I have done wrong, can anyone please help me?

​please carefully read the documentation about reading multiple data files
in the read_data manual entry. in LAMMPS the total system environment will
be locked in when the box is created and cannot be expanded with the second
read_data command. you probably need to merge the force coefficients and/or
add some "extra" flags into the first data file header.

due to some very low level design choices, merging data files in LAMMPS is
not as simple as just reading two files that work on their own.

axel.​