Dear Lammps users.
I have a equilibrated cubic system and I want to build a new system with twice of its size (volume) and cubic. So I thought of replicated the original system in one of the dimension and then using fix_deform/displace_box command to make it cubic (almost).
While I tried to use both fix_deform and displace_box command, it doesn’t seem to work out.
With displace_box
I used
…
fix 1 all npt 300 300 100 aniso 1 1 1 1 1 1 100 drag 0.5
displace_box all z scale 0.63 x volume y volume units box
…
Here, it seems that in the first step only, it reduces the box to final dimensions and then bring them back to original (initial) one in the later steps.
Should I use displace_box with another fix? I did not find any information (for what fix I can use) in the manual.
With fix deform
With fix_deform, I tried using all fixes (nve, npt, nvt) but the simulation is crashing everytime with following error messages
npt
…
fix 1 all npt 300 300 100 aniso 1 1 1 1 1 1 100 drag 0.5
fix 2 all deform 10 z scale 0.63 x volume y volume units box
…
Here, I get after 10 steps, volume = 0.0 and compute of out of range error : PPPM
nvt/nve
…
fix 1 all (nve/nvt fix)
fix 2 all deform 10 z scale 0.63 x volume y volume units box
…
Here, I get after 10 steps, volume = 0.0 and Error: Cannot use neighbor bins - box size << cutoff.
I am not sure where I am doing things wrong.
In this case also, what fix should I use to calculate forces/positions/velocities of the atoms.
Any help would be highly appreciated.