Skip to content

Commit c6adb44

Browse files
Updated gamma and alpha from the examples
1 parent 3be7608 commit c6adb44

File tree

44 files changed

+99
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+99
-99
lines changed

examples/atomic/PRL_108_017601/figure1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ def relax_system(mesh):
2929

3030
sim = Sim(mesh, name='relax')
3131
# sim.set_options(rtol=1e-10,atol=1e-14)
32-
sim.alpha = 1.0
33-
sim.gamma = 1.0
32+
sim.driver.alpha = 1.0
33+
sim.driver.gamma = 1.0
3434
sim.mu_s = 1.0
3535

3636
sim.set_m(init_m)

examples/atomic/PRL_108_017601/figure2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def excite_system(mesh):
1818
sim = Sim(mesh, name='dyn')
1919

2020
# sim.set_options(rtol=1e-10,atol=1e-14)
21-
sim.alpha = 0.04
22-
sim.gamma = 1.0
21+
sim.driver.alpha = 0.04
22+
sim.driver.gamma = 1.0
2323
sim.mu_s = 1.0
2424

2525
sim.set_m(np.load('m0.npy'))

examples/atomic/PRL_111_067203/phase_script/phase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def excite_system(T=0.1, H=0.15):
3939

4040
sim = Sim(mesh, name='dyn', driver='sllg')
4141
sim.set_options(dt=1e-14, gamma=const.gamma, k_B=const.k_B)
42-
sim.alpha = 0.1
42+
sim.driver.alpha = 0.1
4343
sim.mu_s = const.mu_s_1
4444

4545
sim.set_m(random_m)

examples/atomic/PRL_111_067203/single.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def relax_system(mesh):
3939

4040
sim = Sim(mesh, name='relax')
4141
sim.set_default_options(gamma=const.gamma)
42-
sim.alpha = 0.5
42+
sim.driver.alpha = 0.5
4343
sim.mu_s = const.mu_s_1
4444

4545
sim.set_m(init_m)
@@ -75,7 +75,7 @@ def excite_system(mesh):
7575

7676
sim = Sim(mesh, name='dyn', driver='sllg')
7777
sim.set_options(dt=1e-14, gamma=const.gamma, k_B=const.k_B)
78-
sim.alpha = 0.1
78+
sim.driver.alpha = 0.1
7979
sim.mu_s = const.mu_s_1
8080
sim.T = temperature_gradient
8181

examples/atomic/demag_field/demag_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def relax_system():
5454
sim = Sim(mesh, name='relax_skx')
5555
sim.set_default_options(gamma=const.gamma)
5656

57-
sim.alpha = 1.0
57+
sim.driver.alpha = 1.0
5858

5959
sim.mu_s = mu_s
6060

examples/atomic/dmi/dmi_1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def init_m(pos):
1515
def relax_system(mesh):
1616

1717
sim = Sim(mesh, name='relax')
18-
sim.alpha = 0.1
18+
sim.driver.alpha = 0.1
1919

2020
sim.set_m(init_m)
2121

examples/atomic/dmi/dmi_2d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def init_m(pos):
1919
def relax_system(mesh):
2020

2121
sim = Sim(mesh, name='dmi_2d')
22-
sim.alpha = 0.1
23-
sim.gamma=1.76e11
22+
sim.driver.alpha = 0.1
23+
sim.driver.gamma=1.76e11
2424
sim.mu_s = 1e-22
2525

2626
J = 1e-20

examples/atomic/dmi/interfacial_dmi_dw/dw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def relax_system(mesh):
3333

3434
sim = Sim(mesh, name='relax')
3535
sim.set_default_options(gamma=constant.gamma)
36-
sim.alpha = 0.5
36+
sim.driver.alpha = 0.5
3737
sim.mu_s = constant.mu_s_1
3838
sim.do_precession = False
3939

examples/atomic/dw_demag/dw_demag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def relax_system(mesh):
2222

2323
sim = Sim(mesh, name='relax')
2424
sim.set_default_options(mu_s=1e-23, gamma=1.76e11)
25-
sim.alpha = 1.0
25+
sim.driver.alpha = 1.0
2626

2727
J = 1e-22
2828
exch = UniformExchange(J)

examples/atomic/dynamic_spectrum/dyn.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def relax_system(mesh, Hy=0):
4545

4646
sim=Sim(mesh,name='relax')
4747
sim.set_options(rtol=1e-10,atol=1e-12)
48-
sim.alpha = 0.5
49-
sim.gamma = 1.0
48+
sim.driver.alpha = 0.5
49+
sim.driver.gamma = 1.0
5050
sim.mu_s = 1.0
5151

5252
sim.do_precession = False
@@ -75,8 +75,8 @@ def excite_system(mesh, Hy=0):
7575
sim=Sim(mesh,name='dyn')
7676

7777
sim.set_options(rtol=1e-10,atol=1e-12)
78-
sim.alpha = 0.04
79-
sim.gamma = 1.0
78+
sim.driver.alpha = 0.04
79+
sim.driver.gamma = 1.0
8080
sim.mu_s = 1.0
8181

8282
sim.set_m(np.load('m0.npy'))

0 commit comments

Comments
 (0)