Micromagnetic parameter reference
This page lists every micromagnetic input parameter, its Matlab name, its
Python name and its default value. The Matlab names are the field names of the
struct that is handed to Fortran, as defined by getProblemFieldnames in
MagTenseMicroMagIO.f90.
In Matlab, parameters that map onto an internal integer flag are set through a
set... method rather than by assigning the number; those methods are named
in the tables. Integer-valued fields must be assigned as int32.
In Python, most parameters are constructor arguments of MicromagProblem;
those that are not are marked “attribute” and are assigned after construction.
Grid and geometry
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
required |
Number of cells along x, y and z. For unstructured meshes use
|
|
|
|
Size of the rectangular domain in m. Only used for a uniform grid. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Node coordinates of a tetrahedral mesh. |
|
|
|
Node indices of each tetrahedral element. |
|
|
|
Number of nodes in the tetrahedral mesh. |
See Grids and meshes.
Material and anisotropy
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
Saturation magnetization [A/m], per cell. |
|
|
|
Exchange stiffness [J/m], per cell. |
|
|
|
Uniaxial anisotropy constant [J/m^3], per cell. |
|
|
|
Cubic anisotropy constants [J/m^3], per cell. |
|
|
|
|
|
|
identity |
|
|
|
|
|
|
|
|
Damping constant [m/(A s)]. Zero switches to the |
|
|
|
Precession constant [m/(A s)]. Zero removes precession. |
|
|
|
Tabulated time-dependent damping. Matlab: |
|
|
|
Legacy, not used by the current solver. |
|
|
random |
|
Solver, time and applied field
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Output times. Matlab: |
|
|
zero field |
Applied field table of |
|
|
|
Relative tolerance of the ODE solver. |
|
|
|
Threshold below which a solution component is treated as zero. |
|
|
|
Convergence-check times. Matlab:
|
|
|
|
Convergence criterion. |
|
|
|
Progress is reported every n’th step. |
|
|
|
Use CVODE instead of RKSuite. Matlab: |
|
|
|
Evaluate the demagnetization field on a GPU. Matlab: |
Adaptive hysteresis parameters
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
|
|
|
|
Maximum number of accepted field steps. |
|
|
|
Start and end applied field [A/m]. |
|
|
|
First field step [A/m]. |
|
|
|
Smallest and largest allowed field step [A/m]. |
|
|
|
Growth factor. The Matlab default is 1.25, the Python method default is 1.5. |
|
|
|
Shrink factor. The Matlab default is 0.5, the Python method default is 0.75. |
|
|
|
Grow the step below this magnetization change. |
|
|
|
Shrink the step above this magnetization change. |
|
|
|
Reject and retry the step above this magnetization change. |
|
|
|
Largest step accepted across a magnetization sign change [A/m]. |
See Adaptive hysteresis.
Exchange
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Exponent of the inverse-distance face weighting. |
|
|
|
Use an externally supplied exchange matrix. Matlab:
|
|
|
|
Size of the supplied exchange matrix. |
|
|
|
The supplied exchange matrix in COO form, 1-based indices. |
- |
|
|
Python only. Length of the returned exchange-matrix arrays as
|
|
|
|
Periodic exchange boundaries along x, y and z. |
Demagnetization
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
Include the demagnetization field. Matlab: |
|
|
|
Use the cell-averaged prism tensor rather than the tensor at the cell centre. |
|
|
|
Numerical sub-grid averaging of the tensor over the receiving cell,
|
|
|
|
|
|
|
|
Cut-off used by the threshold approximations. |
|
|
|
Coefficient of variation of a random error added to the demagnetization field. |
|
|
|
Return or write the demagnetization tensor. Matlab:
|
|
|
|
Load a stored demagnetization tensor. Matlab: |
|
|
|
OpenMP threads used when building the tensor. |
|
|
|
Accepted but not used; the tensor is always single precision. |
|
|
|
Accepted but not used by the current solver. |
Macrogeometry and shape correction
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
Number of domain copies on each side along x, y and z. |
|
|
|
Spacing between neighbouring copies [m]. |
|
|
|
Side lengths of the prism approximating the macrogeometry [m]. |
|
|
|
Side lengths of the prism approximating the sample [m]. |
Thermal parameters
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
Per-cell temperature [K]. |
|
|
|
Random seed: |
See Thermal fluctuations.
FMM demagnetization
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
Enable the FMM demagnetization path. Requires |
|
|
|
Maximum cells in a leaf node before splitting. |
|
|
|
Requested FMM accuracy, which sets the plane-wave expansion order. |
|
|
|
Multipole expansion order. Negative means derive it from |
|
|
|
Tree type. Must be 1 (uniform tree). |
|
|
|
Minimum and maximum level of the octree. |
|
|
|
Allow falling back to the direct calculation for small problems. |
|
|
|
Cell-count threshold above which FMM is used. |
See Demag field - FMM.
Output, tracing and timing
Matlab |
Python |
Default |
Description |
|---|---|---|---|
|
|
|
Return the individual effective-field terms. |
|
|
|
Build everything but skip the time integration. |
|
|
|
Directory for the trace and timing logs. Matlab:
|
|
|
|
Timing log file. Matlab: |
|
|
|
Trace log file. Matlab: |
|
|
|
Flush timing statistics at intervals rather than only at the end. |
|
|
|
Timing window length [s]. |
|
|
|
Enable the execution trace. Significant performance cost. |
|
|
|
Flush the trace file after every entry. |
|
|
|
Only log trace events with at least this verbosity. |
See Micromagnetic output and Performance, Timing & Trace Logging.
Matlab-only convenience fields
The following fields exist on the Matlab problem object but are not passed to Fortran. They are used by the example scripts to steer plotting and saving:
SaveTheResult, ShowTheResult, SolverType, DirectoryFilename,
SimulationName, FileName, HextFct, FFTdims, ExternalMesh,
MeshType, ExternalMeshFileName, DemagTensorFileName and
exch_mat.