You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/finitetemp/finitetemp.rst
+21-18Lines changed: 21 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,9 +28,10 @@ An accessible article for those interested in spin chains and statistics can be
28
28
29
29
Thermalization
30
30
--------------
31
-
In this exercise the thermalization rates in spin simulations will be investigated.
31
+
In this exercise the thermalization rates in spin simulations will be investigated.
32
+
The input files can be found in the directory ``finitetemp/SimpleCubic``.
32
33
33
-
As mentioned in the lecture, thermalising the system before performing measurements is crucial for ensuring relevant results.
34
+
Thermalising the system before performing measurements is crucial for ensuring relevant results.
34
35
Here we will investigate this for a simple cubic model system.
35
36
36
37
The initial ``inpsd.dat`` file looks as follows
@@ -54,40 +55,42 @@ i.e. including nearest and next-nearest neighbours on the cubic lattice. Notice
54
55
55
56
* Change the sign of the next-nearest neighbour and redo the study. Is the magnetization a good measurable for determining the thermalization now?
56
57
57
-
Phase diagrams
58
-
--------------
59
-
Obtaining the M vs T relationship is probably the most common use case for Monte Carlo simulations on spin systems.
60
-
In this exercise you can compare the MC functionalities of UppASD with a the ALPS package.
61
58
62
-
The system in question is here the 2d square lattice with NN exchange couplings.
63
-
To compare with other model implementations this example uses the ``aunits Y`` flag which sets the temperature unit to the exchange strength ``J`` instead of Kelvin.
59
+
Phase diagram for bcc Fe
60
+
^^^^^^^^^^^^^^^^^^^^^^^^
61
+
62
+
Atomistic spin dynamics simulations with Langevin dynamics can be used to investigate
63
+
the thermal properties of materials. In this exercise you will investigate how the
64
+
magnetic order parameter, the heat capacity, the susceptibility depends on temperature.
65
+
Input files and scripts for bcc Fe can be found in ``examples/PhaseDiagrams/bccFe-Tsweep``.
64
66
65
67
The ``inpsd.dat`` will here look as follows (to start with). Note the **TEMP** entries for initial and measurement temperatures.
66
68
67
-
.. literalinclude:: SquareLattice/Base/inpsd.dat
69
+
.. literalinclude:: bccFe-Tsweep/Base/inpsd.dat
68
70
69
71
and the ``posfile`` and ``momfile``, and ``jfile`` files looks as
70
72
71
-
.. literalinclude:: SquareLattice/Base/posfile
72
-
.. literalinclude:: SquareLattice/Base/momfile
73
-
.. literalinclude:: SquareLattice/Base/jfile
74
-
75
-
Again, note that with ``aunits Y`` the exchange interaction in ``jfile`` is not defined in ``mRy`` but in the dimensionless energy scale of ``J`` (which is not Joule either).
73
+
.. literalinclude:: /Base/posfile
74
+
.. literalinclude:: bccFe-Tsweep/Base/momfile
75
+
.. literalinclude:: bccFe-Tsweep/Base/jfile
76
76
77
77
In order to obtain the full M(T) curve, several simulations are needed at consecutive temperatures.
78
78
This is preferably scripted, like in this example where we use a simple ``bash`` script ``runme.sh``
79
79
80
-
.. literalinclude:: SquareLattice/runme.sh
80
+
.. literalinclude:: bccFe-Tsweep/runme.sh
81
81
82
82
Here you either need to replace the ``${SD_BINARY}`` expression, or export the location of your UppASD binary as the environment variable with the same name.
83
83
You also need to use the same directory structure as intended, i.e. put the input files in a directory called `Base` and the ``runme.sh``
84
84
script in the directory below.
85
85
86
-
* Run the script and plot the resulting M(T) curve.
86
+
* Run the sweep over temperature with the ``runme.sh`` script. What kind of simulations is run?
87
+
88
+
* Examine the results by using the printM.sh and the plot.gnu scripts. The latter is a script for Gnuplot.
89
+
90
+
* Change the inpsd.dat so that you can the temperature sweep as a Monte Carlo simulation, instead of an ASD simulation. Compare the results with each other, and with Fig. 2 of [Skubic2008]_.
87
91
88
-
* Compare with the reference data in the :download:`sc_64_ALPS.dat <SquareLattice/sc_64_ALPS.dat>` file
92
+
* Run additional simulations for different cell sizes. Use the Binder cumulant crossing approach to determine the critical temperature.
89
93
90
-
* Are the simulation parameters "good enough" or are more thermalization/sampling steps needed to obtain an accurate M(T) curve?
0 commit comments