Dear Dr. Steve Plimpton and LAMMPS Users,
Hello Dr. Plimpton, and, once again, I would like to deeply thank you for your continuous advice. I apologize for being unclear on my explanation.
I am trying to simulate an inflating simulation box that contains polymer chains. The dilation of the simulation domain is triggered by dimers continuously being inserted into the simulation box much like air is entering the balloon and the volume of the balloon inflates.
To simulate this inflation due to dimers entering the domain, I adhered to your advice by using the create_atoms and the run every command which will instantaneously fill the inflating box with dimers.
However, the I received an error that states “Cannot create atoms with undefined lattice.” I understand that I need to use the lattice command prior to using the create_atoms command but since the create_atoms command is specified in the run every command loop, I was curious if there is a way to solve this error by also defining lattice command in the run every command. I am trying to equate the simulation box defined by read_data command to the lattice command, but I was curious if there is a way to connect these two.
Also, I have named the inserted dimers as “addatoms” since I would like to have these inserted dimers be subjected to nve ensemble and langevin thermostat. However, since the create_atoms command does not provide the argument for specifying the names of atoms that will be created, how will the created molecules be identified as addatoms?
Thank you so much for your time and help.
Sincerely,
Masato Koizumi
P.S. I have displayed a portion of my input script:
pair_style lj/cut 2.5
bond_style fene
special_bonds lj 0.0 1.0 1.0
read_data polymer_file.data extra/atom/types 1000 extra/bond/types 1000
mass * 1.0
pair_coeff * * 1.0 1.0 2.5
bond_coeff * 30.0 1.5 1.0 1.0
pair_modify shift yes
timestep 0.0010
reset_timestep 0
fix 1 all langevin 1.0 1.0 2.0 542305
fix 3 all nve
fix 4 all deform 1 x erate 0.001 y erate 0.001 z erate 0.001 remap v
group addatoms type 2
region mobile block EDGE EDGE EDGE EDGE EDGE EDGE side in
group mobile region mobile
molecule dimer molecule.dimer
fix 8 addatoms nve
fix 9 addatoms langevin 1.0 1.0 2.0 587283
run 100000 every 1 “create_atoms 0 region mobile mol dimer 12345” “delete_atoms overlap 2.0 addatoms all”