File: in.spin.setforce

package info (click to toggle)
lammps 20220106.git7586adbb6a%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 348,064 kB
  • sloc: cpp: 831,421; python: 24,896; xml: 14,949; f90: 10,845; ansic: 7,967; sh: 4,226; perl: 4,064; fortran: 2,424; makefile: 1,501; objc: 238; lisp: 163; csh: 16; awk: 14; tcl: 6
file content (59 lines) | stat: -rw-r--r-- 1,734 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

units 		metal
dimension 	3
boundary 	f f f
atom_style 	spin

# necessary for the serial algorithm (sametag)
atom_modify 	map array 

lattice 	sc 3.0
region 		box block 0.0 10.0 0.0 10.0 0.0 4.0
create_box 	2 box
region		reg1 block 0.0 10.0 	0.0 5.0 	0.0 1.0
region		reg2 block 0.0 10.0 	6.0 10.0 	0.0 1.0
create_atoms 	1 region reg1 
create_atoms 	2 region reg2

# setting mass, mag. moments, and interactions for bcc iron

mass		1 55.845
mass		2 55.845
set 		region reg1 spin 2.2 0.0 0.0 1.0
set 		region reg2 spin/random 31 2.2

group 		fixed_spin region reg1

pair_style 	hybrid/overlay spin/exchange 3.1 spin/dmi 3.1
pair_coeff 	* * spin/exchange exchange 3.1 -0.01593 0.06626915552 1.211
pair_coeff	* * spin/dmi dmi 3.1 0.12e-03 0.0 0.0 1.0

neighbor 	0.1 bin
neigh_modify 	every 10 check yes delay 20

fix 		1 all precession/spin zeeman 0.0 0.0 0.0 1.0 anisotropy 5e-05 0.0 0.0 1.0 
fix_modify	1 energy yes
fix 		2 fixed_spin setforce/spin 0.0 0.0 0.0
fix 		3 all langevin/spin 0.0 0.1 21
fix		4 all nve/spin lattice frozen 

timestep	0.0001

compute 	out_mag    all spin
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]
variable 	tmag      equal c_out_mag[6]

thermo          100
thermo_style    custom step time v_magx v_magz v_magnorm v_tmag pe v_emag etotal
thermo_modify   format float %20.15g

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[5] c_outsp[6] c_outsp[7]

min_style	spin
min_modify 	alpha_damp 1.0 discrete_factor 20.0
minimize        1.0e-16 1.0e-16 1000 100