Is it possible to include magnetic dipol- dipol interaction and interactions with an external magnetic field to micogel/polymer simulations in LAMMPS?
I tried some simple script with spin/dipole/cut for dipol- dipol interactions and fix precession/spin for the Zeemann interaction. The equations in the LAMMPS documentation seemd to fit my expectations but spin/dipole/cut relies on metal units and now I’m not sure about the compatibility.
Input- script:
units lj
atom_style hybrid angle spin
boundary p p p
read_data spintest.dat
dump dum1 all custom 10 spintest3.lammpstrj id type xs ys zs ix iy iz
#relies on metal units?
#pair_style hybrid lj/cut 2.5 spin/dipole/cut 10.0
#pair_coeff * * lj/cut 1 1
#pair_coeff 1 1 lj/cut 1 1.1 2.8
#pair_coeff 2 2 lj/cut 1 1.1 2.8
#pair_coeff 1 2 lj/cut 1 1.1 2.8
#pair_coeff * * spin/dipole/cut 10.0
#pair_coeff 1 2 spin/dipole/cut 8.0
pair_style lj/cut 2.5
pair_modify shift yes
pair_coeff * * 1 1
pair_coeff 1 1 1 1.1 2.8
pair_coeff 2 2 1 1.1 2.8
pair_coeff 1 2 1 1.1 2.8
bond_style fene
special_bonds fene
bond_coeff 1 10.0 3.6 0.6 4.0
angle_style cosine
angle_coeff * 3.0
comm_modify cutoff 8
fix 1 all precession/spin zeeman 10000.1 0.0 0.0 1.0
fix 2 all nvt temp 1.0 1.0 0.3
thermo 100
thermo_style custom step temp epair emol press vol density
variable t equal step
timestep 0.01
run 10000
write_data spintest.final.data
Test- data:
3 atoms
2 bonds
1 angles
2 atom types
1 bond types
1 angle types
0.0000000000000000e+00 1e+01 xlo xhi
0.0000000000000000e+00 1e+01 ylo yhi
0.0000000000000000e+00 1e+01 zlo zhi
Masses
1 1
2 1
Atoms # hybrid: (ID,type,x,y,z) + molecule id + spx spy spz sp from angle:(atom-ID molecule-ID atom-type x y z) & spin:(atom-ID atom-type x y z spx spy spz sp)
1 1 3.89611 3.30174 3.68336 1 0.2 0.1 0.1 100.1
2 1 7.53428 6.75647 2.67756 1 0.2 0.1 0.1 100.1
3 2 5.7152 5.02911 3.18046 1 0.2 0.1 0.1 100.1
Velocities
1 1.0 0.0 0.0
2 0.0 1.0 0.0
3 0.0 0.0 1.0
Bonds
1 1 1 2
2 1 2 3
Angles
1 1 1 2 3