We have shown that mid-point rule time-stepping preserves
magnetization magnitude conservation and Lyapunov structure of LLG
equation. Nevertheless, since the time-stepping equations
(4.33) are solved through an iterative
procedure, the properties of mid-point rule we have demonstrated
in Sec. 4.4 are fulfilled only within a
certain accuracy related to the tolerance which we imposed on the
quasi-NR technique. In this respect, it is important to test the
accuracy of the preservation of LLG properties during the
computation.
To this end, as far as magnetization magnitude conservation, we
will check the accuracy with the following quantities:
mavmmav
(4.51)
which are, respectively, mean value and variance of the
magnetization magnitude over the cells of the mesh.
As far as the energy balance equation is concerned, we use the
self-consistency criterion proposed by Albuquerque and
coworkers [94]. This criterion is based on
Eq. (4.28) rewritten in the
following form
(4.52)
which is valid for constant applied field. It is quite natural, to
test the preservation of energy dynamics in numerical computation,
to compute
(4.53)
at each time step, and compare the value of the sequence
with the constant . In this respect, we
observe that if we could exactly invert the nonlinear system of
equations (4.43), then the sequence
would be constant coincident with .
This can be immediately derived from the property
(4.40) of the
mid-point rule. However, since we determine the new time step by
an iterative procedure, the sequence will be in fact nonconstant
and it will usually exhibit an oscillatory behavior. It has been
shown in Ref. [94] that numerical instabilities can
be detected from the observation of the behavior of the values
.
For the case of conservative dynamics, the discretized energy is
conserved according to
Eq. (4.29) for
:
(4.54)
With mid-point rule time discretization, this property becomes
(see
Eq. (4.40)):
(4.55)
which holds regardless of the time step. One can test the accuracy
of the scheme by recording the deviation of the total energy from
its initial value.
Again, one cannot expect that this property will be exactly
fulfilled as far as we solve the time stepping algorithm with an
iterative procedure. In this respect, we will verify a-posteriori
that the energy conservation is guaranteed with sufficient
precision by computing the relative error
g of
with respect to the initial energy
: