Skip to content

Commit 6a56ac2

Browse files
authored
Merge pull request #67 from ubermag/minor_corrections
minor corrections and two changes in the examples
2 parents 0ec1698 + bb04253 commit 6a56ac2

9 files changed

Lines changed: 26 additions & 60 deletions

examples/10-tutorial-standard-problem-fmr.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"\n",
1515
"## Problem specification\n",
1616
"\n",
17-
"We choose a cuboidal thin film permalloy sample measuring $120 \\times 120 \\times 10 \\,\\text{nm}^{3}$. The choice of a cuboid is important as it ensures that the finite difference method employed by OOMMF does not introduce errors due to irregular boundaries that cannot be discretized well. We choose the thin film geometry to be thin enough so that the variation of magnetization dynamics along the out-of-film direction can be neglected. Material parameters based on permalloy are:\n",
17+
"We choose a cuboidal thin film permalloy sample measuring $120 \\times 120 \\times 10 \\,\\text{nm}^{3}$. The choice of a cuboid is important as it ensures that the finite difference method employed by OOMMF does not introduce errors due to irregular boundaries that cannot be discretised well. We choose the thin film geometry to be thin enough so that the variation of magnetisation dynamics along the out-of-film direction can be neglected. Material parameters based on permalloy are:\n",
1818
"\n",
1919
"- exchange energy constant $A = 1.3 \\times 10^{-11} \\,\\text{J/m}$,\n",
2020
"- magnetisation saturation $M_\\text{s} = 8 \\times 10^{5} \\,\\text{A/m}$,\n",
2121
"- Gilbert damping $\\alpha = 0.008$.\n",
2222
"\n",
23-
"An external magnetic bias field with magnitude $80 \\,\\text{kA/m}$ is applied along the direction $e = (1, 0.715, 0)$. We choose the external magnetic field direction slightly off the sample diagonal in order to break the system’s symmetry and thus avoid degenerate eigenmodes. First, we initialize the system with a uniform out-of-plane magnetization $m_{0} = (0, 0, 1)$. The system is allowed to relax for $5 \\,\\text{ns}$, which was found to be sufficient time to obtain a well-converged equilibrium magnetization configuration. We refer to this stage of simulation as the relaxation stage, and its final relaxed magnetization configuration is saved to serve as the initial configuration for the next dynamic stage. Because we want to use a well defined method that is supported by all simulation tools, we minimize the system’s energy by integrating the LLG equation with a large, quasistatic Gilbert damping $\\alpha = 1$ for $5 \\,\\text{ns}$. In the next step (dynamic stage), a simulation is started using the equilibrium magnetisation configuration from the relaxation stage as the initial configuration. Now, the direction of an external magnetic field is altered to $e = (1, 0.7, 0)$. This simulation stage runs for $T = 20 \\,\\text{ns}$ while the (average and spatially resolved) magnetization $M(t)$ is recorded every $\\Delta t = 5 \\,\\text{ps}$. The Gilbert damping in this dynamic simulation stage is $\\alpha = 0.008$.\n",
23+
"An external magnetic bias field with magnitude $80 \\,\\text{kA/m}$ is applied along the direction $e = (1, 0.715, 0)$. We choose the external magnetic field direction slightly off the sample diagonal in order to break the system’s symmetry and thus avoid degenerate eigenmodes. First, we initialize the system with a uniform out-of-plane magnetisation $m_{0} = (0, 0, 1)$. The system is allowed to relax for $5 \\,\\text{ns}$, which was found to be sufficient time to obtain a well-converged equilibrium magnetisation configuration. We refer to this stage of simulation as the relaxation stage, and its final relaxed magnetisation configuration is saved to serve as the initial configuration for the next dynamic stage. Because we want to use a well defined method that is supported by all simulation tools, we minimize the system’s energy by integrating the LLG equation with a large, quasistatic Gilbert damping $\\alpha = 1$ for $5 \\,\\text{ns}$. In the next step (dynamic stage), a simulation is started using the equilibrium magnetisation configuration from the relaxation stage as the initial configuration. Now, the direction of an external magnetic field is altered to $e = (1, 0.7, 0)$. This simulation stage runs for $T = 20 \\,\\text{ns}$ while the (average and spatially resolved) magnetisation $M(t)$ is recorded every $\\Delta t = 5 \\,\\text{ps}$. The Gilbert damping in this dynamic simulation stage is $\\alpha = 0.008$.\n",
2424
"\n",
2525
"Details of this standard problem specification can be found in Ref. 1.\n",
2626
"\n",

examples/11-tutorial-deriving-fields.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"source": [
1313
"# Deriving energy values\n",
1414
"\n",
15-
"In this tutorial, we show how derived fields and values can be computed afetr the micromagnetic system is defined.\n",
15+
"In this tutorial, we show how derived fields and values can be computed after the micromagnetic system is defined.\n",
1616
"\n",
1717
"## Simulation\n",
1818
"\n",
@@ -126,7 +126,7 @@
126126
"source": [
127127
"## Effective field\n",
128128
"\n",
129-
"All computations are performed using `mc.compute`, where `mc` is the micromagnetic calculator we choose at import. `compute` function takes two arguments:\n",
129+
"All computations are performed using `oc.compute`, where `oc` is the micromagnetic calculator we choose at import. `compute` function takes two arguments:\n",
130130
"\n",
131131
"1. Property we want to compute\n",
132132
"2. System object\n",
@@ -385,7 +385,7 @@
385385
"cell_type": "markdown",
386386
"metadata": {},
387387
"source": [
388-
"We can also chack the sum of all individual energy terms and check if it the same as the total energy."
388+
"We can also check the sum of all individual energy terms and check if it the same as the total energy."
389389
]
390390
},
391391
{

examples/12-tutorial-stray-field.ipynb

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

examples/13-tutorial-skyrmion.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"cell_type": "markdown",
1818
"metadata": {},
1919
"source": [
20-
"In this tutorial, we compute and relax a skyrmion in a interfacial-DMI material in a confined disk like geometry."
20+
"In this tutorial, we compute and relax a skyrmion in an interfacial-DMI material in a confined disk like geometry."
2121
]
2222
},
2323
{
@@ -105,7 +105,7 @@
105105
"cell_type": "markdown",
106106
"metadata": {},
107107
"source": [
108-
"Disk geometry is set up be defining the saturation magnetisation (norm of the magnetisation field). For that, we define a function:"
108+
"Disk geometry is set up by defining the saturation magnetisation (norm of the magnetisation field). For that, we define a function:"
109109
]
110110
},
111111
{

examples/choosing-runner.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"source": [
1313
"# Choosing runner\n",
1414
"\n",
15-
"In this tutorial, we show how to choose different \"runners\" to run your simulations. This is helpful if you want to change OOMMF installation you want to use. This is in particular helpful if you want to run OOMMF inside Docker, which allows us to run simulations on a \"small linux machine\", which is automatically pulled from the cloud, simulations are run inside, and in the end it is destroyed automatically. This all happens in the background and requires no special assistance from the user. In order to use Docker, we need to have it installed on our machine - you can download it here: https://www.docker.com/products/docker-desktop.\n",
15+
"In this tutorial, we show how to choose different runners to run your simulations. This is helpful if you want to change OOMMF installation you want to use. This is in particular helpful if you want to run OOMMF inside Docker, which allows us to run simulations on a small linux machine, which is automatically pulled from the cloud, simulations are run inside, and in the end it is destroyed automatically. This all happens in the background and requires no special assistance from the user. In order to use Docker, we need to have it installed on our machine - you can download it here: https://www.docker.com/products/docker-desktop.\n",
1616
"\n",
1717
"For that example, we simulate a skyrmion in a sample with periodic boundary conditions."
1818
]
@@ -199,7 +199,7 @@
199199
"name": "python",
200200
"nbconvert_exporter": "python",
201201
"pygments_lexer": "ipython3",
202-
"version": "3.10.12"
202+
"version": "3.8.17"
203203
},
204204
"widgets": {
205205
"application/vnd.jupyter.widget-state+json": {

examples/fixed-subregions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"source": [
1313
"# Fixed subregions\n",
1414
"\n",
15-
"It is somethomes necessary to \"fix\" specific regions of the mesh to ensure they do not change during driving. In order to do that, the first step is to create a mesh and specify subregions we want to keep fixed.\n",
15+
"It is sometimes necessary to \"fix\" specific regions of the mesh to ensure they do not change during driving. In order to do that, the first step is to create a mesh and specify subregions we want to keep fixed.\n",
1616
"\n",
1717
"As an example, let us simulate a simple one-dimensional sample and define subregions in such a way that the first and the last discretisation cell remain fixed."
1818
]

examples/hysteresis.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"cell_type": "markdown",
4848
"metadata": {},
4949
"source": [
50-
"Now that we have `system` object we can simulate hysteresis using `HysteresisDriver`. Like all other drivers, `HysteresisDriver` has `drive` method. As input arhuments it takes `system` object (as usual) and:\n",
50+
"Now that we have `system` object we can simulate hysteresis using `HysteresisDriver`. Like all other drivers, `HysteresisDriver` has `drive` method. As input arguments it takes `system` object (as usual) and:\n",
5151
"\n",
5252
"- `Hmin` - the starting value of magnetic field\n",
5353
"- `Hmin` - the end value of magnetic field\n",

examples/periodic-boundary-conditions.ipynb

Lines changed: 8 additions & 43 deletions
Large diffs are not rendered by default.

examples/spatially-varying-parameters1.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
"### Spatially varying H\n",
181181
"\n",
182182
"There are two different ways how a parameter can be made spatially varying, by using:\n",
183+
"\n",
183184
"1. Dictionary\n",
184185
"2. `discretisedfield.Field`\n",
185186
"\n",

0 commit comments

Comments
 (0)