89 lines
2.2 KiB
Plaintext
89 lines
2.2 KiB
Plaintext
###################
|
|
#######Init########
|
|
###################
|
|
|
|
clear
|
|
units metal
|
|
dimension 3
|
|
boundary p p p
|
|
#boundary f f f
|
|
|
|
#setting atom_style to spin:
|
|
atom_style spin
|
|
|
|
atom_modify map array
|
|
|
|
###########################
|
|
#######Create atoms########
|
|
###########################
|
|
|
|
read_data ../examples/SPIN/Norm_randXY_8x8x32_test.data
|
|
|
|
#######################
|
|
#######Settings########
|
|
#######################
|
|
|
|
#Setting one or more properties of one or more atoms.
|
|
mass 1 58.93
|
|
|
|
#velocity all create 200 4928459 rot yes dist gaussian
|
|
|
|
#Magneto-mechanic interactions for bulk fcc Cobalt
|
|
pair_style hybrid/overlay eam/alloy pair/spin/exchange 4.0 pair/spin/soc/neel 4.0
|
|
|
|
# cobalt eam potential
|
|
pair_coeff * * eam/alloy ../examples/SPIN/Co_PurjaPun_2012.eam.alloy Co
|
|
|
|
#type i and j | interaction type | cutoff | J1 (eV) | J2 (adim) | J3 (Ang) (for Exchange)
|
|
pair_coeff * * pair/spin/exchange exchange 4.0 0.0446928 0.003496 1.4885
|
|
|
|
#type i and j | interaction type | cutoff | K1 (eV) | K2 (adim) | K3 (Ang) (for SOC)
|
|
pair_coeff * * pair/spin/soc/neel neel 4.0 0.003330282 0.864159 2.13731
|
|
|
|
#Define a skin distance, update neigh list every
|
|
#neighbor 1.0 bin
|
|
#neigh_modify every 10 check yes delay 20
|
|
neighbor 1.0 bin
|
|
neigh_modify every 1 check no delay 0
|
|
|
|
#Magnetic field fix
|
|
#Type | Intensity (T or eV) | Direction
|
|
fix 1 all force/spin zeeman 0.0 0.0 0.0 1.0
|
|
|
|
#Fix Langevin spins (merging damping and temperature)
|
|
#Temp | Alpha_trans | Alpha_long | Seed
|
|
fix 2 all langevin/spin 0.0 0.0 0.0 21
|
|
|
|
#Magnetic integration fix
|
|
fix 3 all integration/spin serial
|
|
|
|
#Setting the timestep for the simulation (in ps)
|
|
timestep 0.0001
|
|
|
|
##################
|
|
#######run########
|
|
##################
|
|
|
|
compute out_mag all compute/spin
|
|
compute out_pe all pe
|
|
compute out_ke all ke
|
|
compute out_temp all temp
|
|
|
|
variable magz equal c_out_mag[4]
|
|
variable magnorm equal c_out_mag[5]
|
|
variable emag equal c_out_mag[6]
|
|
variable tmag equal c_out_mag[7]
|
|
variable mag_force equal f_1
|
|
|
|
thermo 10
|
|
thermo_style custom step time v_magnorm v_emag v_tmag temp etotal
|
|
thermo_modify format float %20.15g
|
|
|
|
#Dump the positions and spin directions of magnetic particles (vmd format)
|
|
dump 1 all custom 1 dump.lammpstrj type x y z spx spy spz
|
|
|
|
#Running the simulations for N timesteps
|
|
run 10
|
|
#run 10000
|
|
|