How to add atoms in a region during simulation

Hi all,

I want to add atoms to keep constant density in a region defined in my box. During simulation, atoms in this region is reducing, I want to keep constant density by adding atoms to this region. Or in other words, how to achieve adding atoms by the USHER algorithm in Lammps? I know that there is ‘fix deposit’ and ‘fix pour’ in Lammps to add atoms, but in those command, you must know the specified atom number added, but in my simulation, the atoms is reducing, I need to add atoms during the whole simulation process. Thank you very much. I hope someone could help me solve it. Thank you again.

Jinhuan

Hi all,

I want to add atoms to keep constant density in a region defined in my
box. During simulation, atoms in this region is reducing, I want to keep
constant density by adding atoms to this region. Or in other words, how to
achieve adding atoms by the USHER algorithm in Lammps? I know that there is
‘fix deposit’ and ‘fix pour’ in Lammps to add atoms, but in those command,
you must know the specified atom number added, but in my simulation, the
atoms is reducing, I need to add atoms during the whole simulation process.
Thank you very much. I hope someone could help me solve it. Thank you again.

​you will likely have to implement your own custom fix style (in C++) to
​make this USHER algorithm available.

axel.

Hi,

Thank you for you replying. It’s difficult for me to implement my own custom at present. I want to know if I can use present command in Lammps to achieve adding atoms to satisfy my requirement. Thank you very much.

Jinhuan

Hi,

Thank you for you replying. It’s difficult for me to implement my own
custom at present. I want to know if I can use present command in Lammps to
achieve adding atoms to satisfy my requirement. Thank you very much.

​if i would know such a way, i would have told already you, don't you
think?​

​axel​