forked from lijiext/lammps
40 lines
977 B
Plaintext
40 lines
977 B
Plaintext
#LAMMPS in.run
|
|
|
|
units metal
|
|
atom_style spin
|
|
atom_modify map array
|
|
boundary f f f
|
|
|
|
read_data two_spins.data
|
|
|
|
pair_style spin/exchange 3.1
|
|
pair_coeff * * exchange 3.1 11.254 0.0 1.0
|
|
|
|
group bead type 1
|
|
|
|
variable H equal 0.0
|
|
variable Kan equal 0.0
|
|
variable Temperature equal 0.0
|
|
variable RUN equal 30000
|
|
|
|
fix 1 all nve/spin lattice no
|
|
fix 2 all precession/spin zeeman ${H} 0.0 0.0 1.0 anisotropy ${Kan} 0.0 0.0 1.0
|
|
fix_modify 2 energy yes
|
|
fix 3 all langevin/spin ${Temperature} 0.01 12345
|
|
|
|
compute out_mag all spin
|
|
compute out_pe all pe
|
|
|
|
variable magx equal c_out_mag[1]
|
|
variable magy equal c_out_mag[2]
|
|
variable magz equal c_out_mag[3]
|
|
variable magnorm equal c_out_mag[4]
|
|
variable emag equal c_out_mag[5]
|
|
|
|
thermo_style custom step time v_magx v_magy v_magz v_emag pe etotal
|
|
thermo 10
|
|
|
|
timestep 0.0001
|
|
|
|
run ${RUN}
|