Skip to content

Commit 5cf6a88

Browse files
committed
correction in the typos
1 parent 0d47700 commit 5cf6a88

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

getting-started/unit-converter.ipynb

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"metadata": {},
2222
"source": [
2323
"## CGS to SI\n",
24-
"`Ubermag` uses SI units for all of the system parameters. Experimentally, material parameters are can often be measured in CGS units SI units, or a mixture of the two. Firstly, we show a convinent way of converting from CGS to SI units and other useful quantities.\n",
24+
"`Ubermag` uses SI units for all of the system parameters. Experimentally, material parameters can often be measured in CGS units, SI units, or a mixture of the two. Firstly, we show a convenient way of converting from CGS to SI units and other useful quantities.\n",
2525
"\n",
2626
"To do this, we make use of `astropy.units`, a package aimed at the astrophysics community for its unit converting functionality. `astropy` is not installed by default. We can install it (e.g. with `pip`) directly from the notebook. Generally, you will not install `astropy` from inside the notebook (using either `pip` or `conda`) but for the sake of demonstration we run the command in here."
2727
]
@@ -44,11 +44,11 @@
4444
"name": "stdout",
4545
"output_type": "stream",
4646
"text": [
47-
"Requirement already satisfied: astropy in /home/mlang/miniconda3/envs/ubermagdev310/lib/python3.10/site-packages (5.3.4)\n",
48-
"Requirement already satisfied: numpy<2,>=1.21 in /home/mlang/miniconda3/envs/ubermagdev310/lib/python3.10/site-packages (from astropy) (1.26.0)\n",
49-
"Requirement already satisfied: pyerfa>=2.0 in /home/mlang/miniconda3/envs/ubermagdev310/lib/python3.10/site-packages (from astropy) (2.0.1)\n",
50-
"Requirement already satisfied: PyYAML>=3.13 in /home/mlang/miniconda3/envs/ubermagdev310/lib/python3.10/site-packages (from astropy) (6.0.1)\n",
51-
"Requirement already satisfied: packaging>=19.0 in /home/mlang/miniconda3/envs/ubermagdev310/lib/python3.10/site-packages (from astropy) (23.1)\n"
47+
"Requirement already satisfied: astropy in /home/zulfigak/anaconda3/envs/ubermagdev3/lib/python3.8/site-packages (5.2.2)\n",
48+
"Requirement already satisfied: numpy>=1.20 in /home/zulfigak/anaconda3/envs/ubermagdev3/lib/python3.8/site-packages (from astropy) (1.24.3)\n",
49+
"Requirement already satisfied: pyerfa>=2.0 in /home/zulfigak/anaconda3/envs/ubermagdev3/lib/python3.8/site-packages (from astropy) (2.0.0.3)\n",
50+
"Requirement already satisfied: PyYAML>=3.13 in /home/zulfigak/anaconda3/envs/ubermagdev3/lib/python3.8/site-packages (from astropy) (6.0.1)\n",
51+
"Requirement already satisfied: packaging>=19.0 in /home/zulfigak/anaconda3/envs/ubermagdev3/lib/python3.8/site-packages (from astropy) (23.2)\n"
5252
]
5353
}
5454
],
@@ -230,7 +230,7 @@
230230
"$0.001 \\; \\mathrm{m^{2}\\,A}$"
231231
],
232232
"text/plain": [
233-
"<Quantity 0.001 m2 A>"
233+
"<Quantity 0.001 A m2>"
234234
]
235235
},
236236
"execution_count": 7,
@@ -247,7 +247,7 @@
247247
"id": "e6ac0a10",
248248
"metadata": {},
249249
"source": [
250-
"If we wish to detach the numervical value for its units, we can do this using `.value`"
250+
"If we wish to detach the numerical value for its units, we can do this using `.value`"
251251
]
252252
},
253253
{
@@ -278,7 +278,7 @@
278278
"source": [
279279
"### Equivalencies\n",
280280
"\n",
281-
"The `astropy.units` also enables conversions of units with different equivalencies i.e. temperature and energy. To use this we can create a variable with the relevant units of temperature and use the `to` function to convert to the relevant units with the relevant equivalency.\n",
281+
"`astropy.units` also enables conversions of units with different equivalencies such as temperature and energy. To use this we can create a variable with the relevant units of temperature and use the `to` function to convert to the relevant units with the relevant equivalency.\n",
282282
"\n",
283283
"For example, if an exchange interaction has a temperature of 4.15 K we can calculate the equivalent energy in J."
284284
]
@@ -313,7 +313,7 @@
313313
"id": "3b9b4a7a",
314314
"metadata": {},
315315
"source": [
316-
"While `astropy` handles a variety of units and conversions, it does not currently have an equivalency for magnetic induction and magnetic field strength i.e. B to H . As this is a very useful for the magnetism community, we have provided the conversion here."
316+
"While `astropy` handles a variety of units and conversions, it does not currently have an equivalency for magnetic induction and magnetic field strength i.e. B to H . As this is very useful for the magnetism community, we have provided the conversion here."
317317
]
318318
},
319319
{
@@ -380,7 +380,7 @@
380380
"J = \\frac{3k_\\text{B}T_\\text{C}}{\\epsilon z},\n",
381381
"\\end{equation}\n",
382382
"where $k_\\text{B}$ is the Boltzmann constant, $z$ is the number of nearest neighbours, and $\\epsilon$ is\n",
383-
"a structural depended correction factor. The values of this correction factor has been calculated in Table I of [Garanin 1996](https://doi.org/10.1103/PhysRevB.53.11593)."
383+
"a structurally dependent correction factor. The values of this correction factor have been calculated in Table I of [Garanin 1996](https://doi.org/10.1103/PhysRevB.53.11593)."
384384
]
385385
},
386386
{
@@ -440,7 +440,7 @@
440440
"\\begin{equation}\n",
441441
"A = \\frac{zJl^2}{12V},\n",
442442
"\\end{equation}\n",
443-
"where $J$ is the Heisenberg exchange, $z$ is the number of nearest neighbour atoms, and $l$ is the distance between neighbor atoms and $V$ is the crystal volume per magnetic atom."
443+
"where $J$ is the Heisenberg exchange, $z$ is the number of nearest neighbour atoms, and $l$ is the distance between neighbouring atoms, and $V$ is the crystal volume per magnetic atom."
444444
]
445445
},
446446
{
@@ -547,7 +547,7 @@
547547
"\\begin{equation}\n",
548548
"D = \\frac{zdl}{12V},\n",
549549
"\\end{equation}\n",
550-
"where $d$ is the atomistic DMI, $z$ is the number of nearest neighbour atoms, and $l$ is the distance between neighbor atoms and $V$ is the crystal volume per magnetic atom."
550+
"where $d$ is the atomistic DMI, $z$ is the number of nearest neighbour atoms, and $l$ is the distance between neighbouring atoms, and $V$ is the crystal volume per magnetic atom."
551551
]
552552
},
553553
{
@@ -616,7 +616,7 @@
616616
"id": "5709f726",
617617
"metadata": {},
618618
"source": [
619-
"For a system with a micromagentic exchange of $6\\times 10^{-14}$ Jm$^{-1}$ and a helical period of 20 nm"
619+
"For a system with a micromagentic exchange of $6\\times 10^{-14}$ Jm$^{-1}$ and a helical period of 20 nm."
620620
]
621621
},
622622
{
@@ -651,7 +651,7 @@
651651
"\\begin{equation}\n",
652652
"P = \\frac{4\\pi J l}{|d|},\n",
653653
"\\end{equation}\n",
654-
"where $J$ is the Heisenberg exchange, $d$ is the atomistic DMI, and $l$ is the distance between neighbor atoms."
654+
"where $J$ is the Heisenberg exchange, $d$ is the atomistic DMI, and $l$ is the distance between neighbouring atoms."
655655
]
656656
},
657657
{
@@ -661,11 +661,11 @@
661661
"source": [
662662
"### Saturation Magnetisation\n",
663663
"#### Micromagnetics\n",
664-
"The saturation magnetisation is often measured in $\\mu_\\text{B}/f.u.$ but is needed in A/m in micromagnetics. A simple converstion can be used\n",
664+
"The saturation magnetisation is often measured in $\\mu_\\text{B}/f.u.$ but is needed in A/m in micromagnetics. A simple conversion can be used\n",
665665
"\\begin{equation}\n",
666666
"M_s [ \\text{A}/ \\text{m}]= \\frac{\\mu_\\text{B} M_s[\\mu_\\text{B}/f.u.]}{V},\n",
667667
"\\end{equation}\n",
668-
"where $M_s[\\mu_\\text{B}/f.u.]$ is the saturation magnetisation in $\\mu_B$ per formula unit, $\\mu_B$ is the Bohr magneton in J/m, and $V$ is the volume of the formula unit in m$^3$."
668+
"where $M_s[\\mu_\\text{B}/f.u.]$ is the saturation magnetisation in $\\mu_B$ per formula unit, $\\mu_B$ is the Bohr magneton in J/T, and $V$ is the volume of the formula unit in m$^3$."
669669
]
670670
},
671671
{
@@ -704,7 +704,7 @@
704704
"metadata": {},
705705
"source": [
706706
"#### Atomistic\n",
707-
"In atomistic simulations the saturation magnetisation $M_s$ in micromagnetic simulations can be related to the magnetic moment $\\mu$ simply by\n",
707+
"In atomistic simulations, the saturation magnetisation $M_s$ in micromagnetic simulations can be related to the magnetic moment $\\mu$ simply by\n",
708708
"\\begin{equation}\n",
709709
"\\mu = M_s V,\n",
710710
"\\end{equation}\n",
@@ -752,7 +752,7 @@
752752
"source": [
753753
"### Anisotropy\n",
754754
"#### Micromagnetic\n",
755-
"Anisotropy can can be measured experimentally in a variety of different ways. The results torque magnetometry, for example, can give correct value for the anisotropy in units of Jm$^{-3}$."
755+
"Anisotropy can be measured experimentally in a variety of different ways. The results torque magnetometry, for example, can give correct value for the anisotropy in units of Jm$^{-3}$."
756756
]
757757
},
758758
{
@@ -761,12 +761,12 @@
761761
"metadata": {},
762762
"source": [
763763
"#### Atomistic\n",
764-
"Similarly to the saturation magnetisation the conversion between micromagnetic $K$ and atomistic anisotropy $k$ is simply volume weighted\n",
764+
"Similarly to the saturation magnetisation, the conversion between micromagnetic $K$ and atomistic anisotropy $k$ is simply volume weighted\n",
765765
"\\begin{equation}\n",
766766
"k = K V,\n",
767767
"\\end{equation}\n",
768768
"where $V$ is the crystal volume per magnetic atom.\n",
769-
"This atomistic anisotropy $k$ can also be calculated from the difference in energy of $J$ in different directions. i.e. $J_{\\perp} = 6\\times 10^{-23}$ J and $J_{\\parallel} = 5 \\times 10^{-23}$ J gives an atomistic anisotropy $k=1\\times 10^{-23}$ J."
769+
"This atomistic anisotropy $k$ can also be calculated from the difference in energy between $J$ in different directions, i.e. $J_{\\perp} = 6\\times 10^{-23}$ J and $J_{\\parallel} = 5 \\times 10^{-23}$ J, gives an atomistic anisotropy $k=1\\times 10^{-23}$ J."
770770
]
771771
},
772772
{
@@ -816,8 +816,8 @@
816816
"id": "2da69916",
817817
"metadata": {},
818818
"source": [
819-
"Here FeGe will be used as example for how to obtain micromagnetic parameters. FeGe has a cubic crystal structure with four Ge and four Fe atoms per unit cell with a lattice constant of $a=\t\n",
820-
"4.6995$ Å and the distance between Fe atoms is 2.881 Å \\[[Wilhelm 2007](http://doi.org/10.1016/j.stam.2007.04.004)\\]. The saturation magnetisation is $1.07 \\mu_\\text{B}/f.u.$ \\[[Yamada 2003](https://doi.org/10.1016%2FS0921-4526%2802%2902471-7)\\] and magnetic ordering temperature is 278 K \\[[Lebech 1989](https://iopscience.iop.org/article/10.1088/0953-8984/1/35/010/meta)\\]. The helical period of FeGe is $\\sim 70$ nm \\[[Yu 2011](https://doi.org/10.1038/nmat2916)\\]."
819+
"Here, FeGe will be used as example for how to obtain micromagnetic parameters. FeGe has a cubic crystal structure with four Ge and four Fe atoms per unit cell with a lattice constant of $a=\t\n",
820+
"4.6995$ Å, and the distance between Fe atoms is 2.881 Å \\[[Wilhelm 2007](http://doi.org/10.1016/j.stam.2007.04.004)\\]. The saturation magnetisation is $1.07 \\mu_\\text{B}/f.u.$ \\[[Yamada 2003](https://doi.org/10.1016%2FS0921-4526%2802%2902471-7)\\], and magnetic ordering temperature is 278 K \\[[Lebech 1989](https://iopscience.iop.org/article/10.1088/0953-8984/1/35/010/meta)\\]. The helical period of FeGe is $\\sim 70$ nm \\[[Yu 2011](https://doi.org/10.1038/nmat2916)\\]."
821821
]
822822
},
823823
{
@@ -978,7 +978,7 @@
978978
"name": "python",
979979
"nbconvert_exporter": "python",
980980
"pygments_lexer": "ipython3",
981-
"version": "3.10.12"
981+
"version": "3.8.19"
982982
},
983983
"widgets": {
984984
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)