next up previous contents index
Next: Example mcphas.ini file for Up: Input Files Previous: Example - a simple   Contents   Index


mcphas.ini - controlling the algorithm

Initial file containing algorithm control parameters, for instance the range and spacing of propagation vectors Q or the number of Monte Carlo trials for initial spin configurations - mind: this file is rewritten and reread when running the program and may be changed by the user in order to manipulate the running simulation.

mcphas.ini consists of several sections:

MCPHASE RUNTIME CONTROL:
this section contains the parameters controlling the status of the calculation.
XY PHASEDIAGRAM PARAMETERS:
here the temperature and field range and step widths of the calculation are specified. The definition of the x and y axis in terms of temperature and magnetic field is followed by the corresponding range and step width. An offset may be given for all field and temperature values. Note that for most cases of interest this offset is zero (T0=0, Ha0=0, Hb0=0, Hc0=0). For the simple case of calculating a Temperature-Field phase diagram It is just necessary to set xT=1 and give the temperature range by xmin/xmax/xstep. For field in b direction then just set yHb=1 and define the range in ymin/ymax/ystep. In case of non-orthogonal axes the applied magnetic field components $Ha, Hb, Hc$ refer to the orthogonal coordinate system defined with respect to the nonorthogonal lattice $\mathbf a,\mathbf b,\mathbf c$ as $Hb\vert\vert\mathbf b$, $Hc\vert\vert(\mathbf a \times \mathbf b)$ and $Ha$ perpendicular to $Hb$ and $Hc$.

GENERATION OF SPINCONFIGURATIONS:
at the beginning of the program some initial values of spin configurations are generated from a set of propagation vectors. This section defines the range of propagation vectors and the step width. Depending on the value of the propagation Q with respect to the primitive reciprocal lattice 1-, 2- or 3-dimensional simulations of magnetic lattices are possible. It is advisable to think carefully about the chosen range and spacing of Q vectors in order to limit calculation time.

For example a good starting point is to begin with a calculation with large step widths (e.g. 0.1) covering the Brillouin zone. This should give an idea of the propagation vectors which are stabilised. An advanced calculation could then fine tune the propagation and determine its accurate value (using small step widths in a limited area of the zone). The verbose option of mcphas allows to inspect the propagation vectors which are actually used in the calculation. Trick: in order to get a quick overview of the q-vector range covered by the mcphas simulation start mcphas, exit and just type felog ./results/mcphas.qvc (need perl,perldl,pdl,pgplot packages).

In order to limit calculation time, the maximum periodicity of the magnetic unit cell with respect to the crystallographic unit cell (maxqperiod) and the maximum number of spins in the magnetic unit cell (maxnofspins) can be limited. Also the maximum number of test spin configurations in the internal table can be limited (maxnoftestspincf). A critical feature with respect to calculation time is also the number of spin configurations which are generated by a random process from a tabulated SPINCONFIGURATIONS during the calculation.

In summary the variables in this section are mainly important to adapt the program to a given computer system with finite speed. They have to be set to optimise between speed and accuracy of the calculation. In order to find appropriate values it is best to perform some calculations and restrict the parameters step by step if insufficient speed is obtained. Also the examples included in the program package may serve as starting points.

PARAMETERS FOR SUB FECALC SELFCONSISTENCY PROCESS:
the most important procedure in the module mcphas is the sub fecalc. In this part of the program the self consistent calculation of the magnetic moment configuration is performed as shown schematically in fig. 8. In the mean field approximation the Hamiltonian (1) is approximated by


\begin{displaymath}
{\mathcal H}=\sum_n H_{SI}^n + E_{corr}
\end{displaymath} (13)

with the single ion Hamiltonian (in case of module so1ion)


\begin{displaymath}
H_{SI}^n= B_l^m O_{lm}({\mathbf J}^n)
- g_{Jn} \mu_B {\mathbf J}^n {\mathbf H^n_{eff}}
\end{displaymath} (14)

and the correction term


\begin{displaymath}
E_{corr}=\frac{1}{2}\sum_{n} g_{Jn} \mu_B \langle {\mathbf J}^n
\rangle (\mathbf H^n_{eff}-\mathbf H)
\end{displaymath} (15)

and with the mean fields $ \mathbf H^n_{eff}$ given by


\begin{displaymath}
\mathbf H^n_{eff}=\mathbf H + \mathbf H^n_{xc}=\mathbf H+\su...
...\mathbf r_{n'}))}{g_{Jn}\mu_B } \langle{\mathbf J}^{n'}\rangle
\end{displaymath} (16)

These mean fields and the moments $\langle \mathbf J^n \rangle$ are determined in a self consistent way. For a given magnetic unit cell and initial configuration of magnetic moments the mean fields are calculated according to equation (16). Then, for each magnetic ion the single ion property module is taken and the magnetic moment $\langle \mathbf J^n \rangle$ is calculated from it's mean field. The mean fields are used again in equation (16) and so on .... until convergence is reached. Then, the free energy ( $f=-kT\sum_n \ln(z_n) + E_{corr}$ ) of the stabilised configuration is calculated (this is why this sub is called fecalc). The free energies of a lot of different stabilised configurations have to be compared in order to find out which configuration has lowest free energy, i.e. is stable in thermal equilibrium.

It may happen that this process does not converge due to bad choice of the initial configuration, therefore a maximum number of mean field loops has to be given by the user. The results of a calculation may be significantly influenced by changing parameters such as the maximum number of iteration loops in this section. In fact the simulation is always a compromise of calculation time and accuracy: if only a few initial spin configurations are tried at each (H-T) point, the calculation speed is fast, however it is possible that the program misses the magnetic structure with the lowest free energy. The same holds if other critical parameters of the simulation are restricted too much.

OUTPUT OF PHYSICAL PROPERTIES:
Some options for the output of the calculation can be changed in this section.

Figure 8: Mean field process of sub fecalc.
\includegraphics[angle=0,width=0.9\columnwidth]{figsrc/fecalc.eps}


next up previous contents index
Next: Example mcphas.ini file for Up: Input Files Previous: Example - a simple   Contents   Index
martin rotter 2013-09-19