Dear LAMMPS users,
I try to study the spins dynamics of alpha-Fe2O3.
The lattice potential term is Buckingham potential. Since the spin atom style does not support “pair_style buck/coul/long”, the atom style is set as “atom_style hybrid charge spin” .
But the total energy is about -2.155138e+11 eV, and lammps always reports “Out of range atoms - cannot compute PPPM”.
However, if I only consider the lattice dynamics without any spins, the program runs smoothly without errors, the crystal also maintains a stable structure。 The total energy is about -16146.742 eV.
On the one hand, if I only consider the spins dynamics and shield the movement of lattice, it still works. The total energy is about 83 eV.
Only when I put them together will things go wrong.
# Fe2O3 crystal in a 3d periodic box
**clear **
variable T equal 300
units metal
atom_style hybrid charge spindimension 3
boundary p p p**atom_modify map array **
box tilt large
read_data “system.data”
#Fe
set type 1 spin/random 100 5.0set type 1 charge 1.418
#O
set type 2 spin/random 100 0.0000001set type 2 charge -0.945333333
velocity all create ${T} 4928459 rot yes dist gaussian
pair_style hybrid/overlay buck/coul/long 10.0 spin/exchange 4.0
pair_coeff 1 1 spin/exchange exchange 4.0 0.19014831 0.2881564913 0.317272971 offset yes
pair_coeff 1 2 spin/exchange exchange 4.0 0.0 0.2171 1.841 offset yes
pair_coeff 2 2 spin/exchange exchange 4.0 0.0 0.2171 1.841 offset yes
pair_coeff 1 1 buck/coul/long 8020.28853 0.228 42.546225
pair_coeff 1 2 buck/coul/long 8521.55602 0.190 0.0
pair_coeff 2 2 buck/coul/long 9022.82351 0.265 85.0924495
kspace_style pppm 1.0e-4
neighbor 0.1 bin
neigh_modify every 10 check yes delay 20
fix 1 all nve/spin lattice moving
fix 2 all langevin/spin ${T} 0.01 21
timestep 0.0001
# compute and output options
#thermo 10000
compute outsp all property/atom spx spy spz sp fmx fmy fmz
dump 1 all custom 10000 dump_iron.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3]run 1000000
clear
I am looking forward to your reply,
Best wishes,
Wei