lammps/examples/SPIN/nickel/in.spin.nickel

59 lines
1.4 KiB
Plaintext
Raw Normal View History

# fcc nickel in a 3d periodic box
2018-02-13 22:23:48 +08:00
clear
units metal
atom_style spin
2018-02-13 22:23:48 +08:00
dimension 3
boundary p p p
2018-02-13 22:23:48 +08:00
2018-03-23 01:41:04 +08:00
# necessary for the serial algorithm (sametag)
atom_modify map array
2018-02-13 22:23:48 +08:00
lattice fcc 3.524
region box block 0.0 5.0 0.0 5.0 0.0 5.0
create_box 1 box
create_atoms 1 box
2018-02-13 22:23:48 +08:00
# setting mass, mag. moments, and interactions for cobalt
2018-03-21 21:55:41 +08:00
mass 1 58.69
2018-02-13 22:23:48 +08:00
set group all spin/random 31 0.63
#set group all spin 0.63 0.0 0.0 1.0
velocity all create 100 4928459 rot yes dist gaussian
2018-02-13 22:23:48 +08:00
pair_style hybrid/overlay eam/alloy spin/exchange 4.0
pair_coeff * * eam/alloy Ni99.eam.alloy Ni
pair_coeff * * spin/exchange exchange 4.0 0.50 0.2280246862 1.229983475
2018-02-13 22:23:48 +08:00
neighbor 0.1 bin
neigh_modify every 10 check yes delay 20
2018-02-13 22:23:48 +08:00
fix 1 all precession/spin zeeman 0.0 0.0 0.0 1.0
fix 2 all langevin/spin 0.0 0.0 21
2018-02-13 22:23:48 +08:00
fix 3 all nve/spin lattice moving
2018-02-13 22:23:48 +08:00
timestep 0.0001
# compute and output options
2018-02-13 22:23:48 +08:00
compute out_mag all spin
compute out_pe all pe
compute out_ke all ke
compute out_temp all temp
2018-02-13 22:23:48 +08:00
variable magz equal c_out_mag[3]
variable magnorm equal c_out_mag[4]
variable emag equal c_out_mag[5]
variable tmag equal c_out_mag[6]
2018-02-13 22:23:48 +08:00
thermo_style custom step time v_magnorm v_emag temp v_tmag etotal
thermo 50
2018-02-13 22:23:48 +08:00
compute outsp all property/atom spx spy spz sp fmx fmy fmz
dump 1 all custom 100 dump.lammpstrj type x y z c_outsp[1] c_outsp[2] c_outsp[3] c_outsp[4] c_outsp[5] c_outsp[6] c_outsp[7]
2018-02-13 22:23:48 +08:00
run 2000
2018-02-13 22:23:48 +08:00