Dear all,
I’m using lammps-22Aug18 to perform an MD simulation of interacting octagones each one composed by nine particles (a central particles of type 1 and eight corners of type 2); to do so I’m using the atom_style hybrid molecular sphere.
Since I wanted to calculate the hexatic order parameter for the ocatgones, I created a group that include all the octagone centers and then calculate the hexatic order with the lammps command compute hexorder/atom only for this group.
The strange thing I noticed is that if at the beginning of the simulation when I dump the values c_hexatic[1] and c_hexatic[2] I have a value for type 1 particles and zero for type 2 particles as I expected, going on with subsequent timesteps I noticed that also particles of type 2 at some point start to have non zero values of the hexatic order parameter. I cannot explain this behavior, since I asked lammps to calculate those values only for type 1 particles and at the beginning (meaning non only timestep 0, but also later) everything worked as I expected. In the following I add the code I used:
clear
units micro
dimension 3
newton on
boundary p p f #
atom_style hybrid molecular sphere
atom_modify sort 100000 2
comm_modify mode single cutoff 0.1 vel yes
bond_style harmonic
angle_style harmonic
improper_style harmonic
pair_style lj/cut 0.05
read_data ${inputFile}
print “read input”
#bond_style harmonic
bond_coeff 1 1.0 0.0675
bond_coeff 2 1.0 0.0517
#angle_style harmonic
angle_coeff 1 1.0 45.0
#improper_style harmonic
improper_coeff 1 1.0 180.0
#pair_style lj/cut 0.05
pair_coeff 1 1 {centreLJ} 0.120 0.135*
*pair_coeff 1 2 {centreLJ} 0.07 0.0785
pair_coeff 2 2 ${cornerLJ} 0.0172 0.043
print “pairs set”
group octagones_center type 1
# — set thermo output —
thermo 10000
thermo_style custom step temp fmax ke etotal
compute cbond1 all property/local batom1 batom2 btype
compute hexatic octagones_center hexorder/atom nnn NULL cutoff 0.135
# — dump rules —
dump particle_dump all custom 100000 {dumpDir}/particles*.dat id mol type mass x y z vx vy vz fx fy fz c_hexatic[1] c_hexatic[2]</i> *dump_modify particle_dump sort id* <i>dump bond_dump all local 100000 {dumpDir}/bonds*.dat index c_cbond1[1] c_cbond1[2] c_cbond1[3]
timestep 1e-5
variable zspring atom -0.1*z
fix tether2d all addforce 0.0 0.0 v_zspring
fix thermostatting all nve
fix finiteT all langevin 300.0 300.0 0.001 1234
run 2000000
unfix finiteT
unfix thermostatting
unfix tether2d
I have to say that I’ve also tried to chose the options nnn=NULL and cutoff=0.135 but I noticed the same problem, except from the fact that instead of numerical values I got inf values. I will appreciate any help in understanding why this is happening. Thanks in advance.
Best,
Linda Ravazzano