Hello LAMMPS community,
I’ve got a situation I could use your help with. My system involves organic-inorganic materials that have been equilibrated for 100 ns at 125 K, using ‘fix npt’ to control all pressure components in a triclinic simulation cell.
Now, I’m trying to tackle a specific issue: preventing the rotation of a group of methylammonium molecules (MA). To do this, I’ve been experimenting with the ‘fix rigid’ command to turn off torques. Here’s a snippet of the script I’ve been working on:
LAMMPS (28 Mar 2023 - Development)
read_restart 125.restart
special_bonds amber
pair_style hybrid buck/coul/long 17.0 17.0 lj/cut/coul/long 17.0 17.0
pair_modify shift yes
bond_style harmonic
angle_style harmonic
dihedral_style fourier
kspace_style pppm 1.0e-7
group MA type 3:10
group Thermalized subtract all MA
compute TempCOM Thermalized temp/com
compute Press all pressure TempCOM
compute Rotation MA temp/rotate
include force_field.data
timestep 0.1
run_style verlet
neigh_modify every 1 delay 0 check yes cluster yes one 10000 exclude molecule/intra MA
delete_bonds MA multi any
reset_timestep 0 time 0
velocity MA set 0 0 0 units box
balance 1.0 shift xyz 10 1.0 weight time 0.8 weight neigh 0.8
run 0 post no
fix Frozen MA rigid/nvt molecule temp 125 150 $(100.0*dt) torque * off off off tparam 10 100 5
fix_modify Frozen temp Rotation
velocity MA zero angular rigid Frozen
fix Mom Thermalized momentum 1000 linear 1 1 1
fix Equil Thermalized npt temp 125 150 (100.0*dt) x 0 0 (1000.0dt) y 0 0 (1000.0*dt) z 0 0 (1000.0dt) xy 0 0 (1000.0*dt) xz 0 0 (1000.0dt) yz 0 0 $(1000.0dt) nreset 1000 couple none tchain 5 tloop 100 pchain 5 ploop 100 nreset 1000
fix_modify Equil temp TempCOM press Press
run 5000000
However, I’ve encountered a couple of issues:
-
When I use ‘exclude molecule/intra MA’ and ‘delete_bonds MA multi any,’ I run into a problem with non-numeric pressure values.
-
Even when I don’t use the options mentioned above, I’m noticing that the molecules start rotating after 60000 timesteps. To give you a better idea, I’ve attached two snapshots illustrating the rotation.
I’d really appreciate any advice or suggestions you might have on these issues.
Thanks,
Reza.