Skip to content

Commit

Permalink
Updated notebooks with new alpha from driver class
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcortesortuno committed Nov 13, 2016
1 parent cd946f5 commit 3be7608
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doc/ipynb/1d_domain_wall.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"\n",
"# Set simulation parameters.\n",
"sim.Ms = Ms\n",
"sim.alpha = alpha\n",
"sim.driver.alpha = alpha\n",
"sim.driver.gamma = gamma\n",
"\n",
"# Add energies.\n",
Expand Down
4 changes: 2 additions & 2 deletions doc/ipynb/current-driven-domain-wall.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"\n",
" # Set simulation parameters.\n",
" sim.driver.set_tols(rtol=1e-8, atol=1e-8)\n",
" sim.alpha = alpha\n",
" sim.driver.alpha = alpha\n",
" sim.driver.gamma = gamma\n",
" sim.Ms = Ms\n",
"\n",
Expand Down Expand Up @@ -191,7 +191,7 @@
" \n",
" # Set the simulation parameters\n",
" sim.driver.set_tols(rtol=1e-12, atol=1e-14)\n",
" sim.alpha = alpha\n",
" sim.driver.alpha = alpha\n",
" sim.driver.gamma = gamma\n",
" sim.Ms = Ms\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion doc/ipynb/isolated_skyrmion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"# Create simulation object.\n",
"sim = Sim(mesh)\n",
"sim.Ms = Ms_function(Ms)\n",
"sim.alpha = alpha\n",
"sim.driver.alpha = alpha\n",
"sim.driver.gamma = gamma\n",
"\n",
"# Add energies.\n",
Expand Down
2 changes: 1 addition & 1 deletion doc/ipynb/spin-polarised-current-driven-skyrmion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"\n",
"# Set parameters.\n",
"sim.Ms = Ms\n",
"sim.alpha = alpha\n",
"sim.driver.alpha = alpha\n",
"sim.driver.gamma = gamma\n",
"sim.driver.do_precession = False\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion doc/ipynb/spin-waves-in-periodic-system.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"\n",
"# Set parameters.\n",
"sim.Ms = Ms\n",
"sim.alpha = alpha\n",
"sim.driver.alpha = alpha\n",
"sim.driver.gamma = gamma\n",
"\n",
"# Add energies.\n",
Expand Down
4 changes: 2 additions & 2 deletions doc/ipynb/standard_problem_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"\n",
"sim.driver.set_tols(rtol=1e-10, atol=1e-10)\n",
"sim.Ms = Ms\n",
"sim.alpha = 0.5 # large value since the magnetisation dynamics is not important in the relexation stage\n",
"sim.driver.alpha = 0.5 # large value since the magnetisation dynamics is not important in the relexation stage\n",
"sim.driver.gamma = gamma\n",
"sim.driver.do_precession = False # speeds up the simulation\n",
"\n",
Expand Down Expand Up @@ -674,7 +674,7 @@
"def field_simulation(H, name):\n",
" print(name)\n",
" sim = Sim(mesh, name)\n",
" sim.alpha = alpha\n",
" sim.driver.alpha = alpha\n",
" sim.driver.gamma = gamma\n",
" sim.Ms = Ms\n",
" sim.add(UniformExchange(A=A))\n",
Expand Down
2 changes: 1 addition & 1 deletion doc/ipynb/tutorial-basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
},
"outputs": [],
"source": [
"sim.alpha = 0.5\n",
"sim.driver.alpha = 0.5\n",
"sim.driver.gamma = 2.211e5\n",
"# sim.do_precession = True"
]
Expand Down

0 comments on commit 3be7608

Please sign in to comment.