-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better Fe example and output reference
- Loading branch information
Showing
4 changed files
with
101 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,74 @@ | ||
Iron | ||
------- | ||
|
||
This is an example to calculate the muon local field at the tetrahedral site(s) in bcc-Fe [Schmolz1986]_. | ||
BCC Iron | ||
--------- | ||
|
||
This example shows how to calculate the local field at the tetrahedral | ||
site(s) in bcc-Fe as descibed in Ref. [Schmolz1986]_. | ||
|
||
Let's first load some useful tools. | ||
|
||
.. literalinclude:: ../examples/Fe_bcc/run_example.py | ||
:lines: 6-36 | ||
:lines: 6-14 | ||
:lineno-start: 6 | ||
:language: python | ||
|
||
the lattice structure and one of the twelve tetrahedral muon sites are | ||
added to our sample objectc: | ||
|
||
.. literalinclude:: ../examples/Fe_bcc/run_example.py | ||
:lines: 20-24 | ||
:lineno-start: 20 | ||
:language: python | ||
|
||
Since the lattice structure was parsed from a CIF file, symmetry information | ||
are already present in our Sample object. This allows to obtain all the | ||
twelve tetrahedral sites with the command | ||
|
||
.. literalinclude:: ../examples/Fe_bcc/run_example.py | ||
:lines: 29 | ||
:lineno-start: 29 | ||
:language: python | ||
|
||
Finally, we define the ferromagnetci structure with local moments parallel | ||
to z in Cartesian coordinates. | ||
|
||
.. literalinclude:: ../examples/Fe_bcc/run_example.py | ||
:lines: 32-37 | ||
:lineno-start: 32 | ||
:language: python | ||
|
||
The local fields at the muon sites are obtained with the following commands | ||
|
||
.. literalinclude:: ../examples/Fe_bcc/run_example.py | ||
:lines: 77-78 | ||
:lineno-start: 77 | ||
:language: python | ||
|
||
By default, for each muon site the contact coupling is set to 0. To obtain | ||
the total contribution at the muon sites the parameter ACont must be set | ||
for all the twelse muon sites (can be different in general). | ||
|
||
.. literalinclude:: ../examples/Fe_bcc/run_example.py | ||
:lines: 92-102 | ||
:lineno-start: 92 | ||
:emphasize-lines: 9 | ||
:language: python | ||
|
||
In the aboce lines we collected the results in numpy arrays to simplify the | ||
output statements. | ||
|
||
|
||
As discussed in [Schmolz1986]_, "The field contribution at each equivalent site | ||
is either parallel or antiparallel to the magnetization of the domains" such that | ||
B_dip(parallel)=-2B_dip(antiparallel) "the average of the dipolar field at these three sites vanishes " | ||
|
||
The final print statements shows that this result is actually verified | ||
by our calculations. | ||
|
||
.. literalinclude:: ../examples/Fe_bcc/run_example.py | ||
:lines: 115-123 | ||
:lineno-start: 115 | ||
:language: python | ||
|
||
|
||
|
||
.. [Schmolz1986] M. Schmolz et.al, Hyperfine Interactions 31 199 (1986) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Using internal LFC library | ||
Dipolar Field for all the 12 tetrahedral equivalent sites | ||
[[ 0. 0. 0.26498] | ||
[-0. -0. 0.26498] | ||
[-0. 0. -0.52995] | ||
[ 0. 0. -0.52995] | ||
[ 0. 0. 0.26498] | ||
[-0. -0. 0.26498] | ||
[ 0. -0. 0.26498] | ||
[-0. -0. 0.26498] | ||
[ 0. 0. -0.52995] | ||
[ 0. 0. -0.52995] | ||
[-0. -0. 0.26498] | ||
[-0. -0. 0.26498]] | ||
The Lorentz field is 0.000 0.000 0.731 | ||
The contact field is 1.111 T | ||
Dipolar average of 1 parallel site and 2 antiparallel sites is 0.00000 T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters