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
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,36 @@ i.e. including nearest and next-nearest neighbours on the cubic lattice. Notice
56
56
57
57
Phase diagrams
58
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
+
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.
64
+
65
+
The ``inpsd.dat`` will here look as follows (to start with). Note the **TEMP** entries for initial and measurement temperatures.
66
+
67
+
.. literalinclude:: SquareLattice/Base/inpsd.dat
68
+
69
+
and the ``posfile`` and ``momfile``, and ``jfile`` files looks as
70
+
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`` (not Joule either).
76
+
77
+
In order to obtain the full M(T) curve, several simulations are needed at consecutive temperatures.
78
+
This is preferably scripted, like in this example where we use a simple ``bash`` script ``runme.sh``
79
+
80
+
.. literalinclude:: SquareLattice/runme.sh
81
+
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
+
84
+
* Run the script and plot the resulting M(T) curve.
85
+
86
+
* Compare with the reference data in the :download:`sc_64_ALPS.dat <SquareLattice/sc_64_ALPS.dat>` file
87
+
88
+
* Are the simulation parameters "good enough" or are more thermalization/sampling steps needed to obtain an accurate M(T) curve?
0 commit comments