Magnons
The objective of this tutorial is to give a basic idea of how it is possible to compute magnons and transverse spin susceptibilities from a real-time calculation using Octopus. The details of the methods are discussed in Ref.1
This tutorial requires access to a cluster to be able to run calculations which have a non-negligible numerical cost and cannot be run locally.
This tutorial is still under construction.
Magnon kick in supercell
As a first approach, we will investigate how to obtain transverse spin susceptibilities using supercells adapted to host a spin spiral of a specific momentum.
Ground-state input file
As a prototypical example for investigating spin-waves, we will consider bulk iron, which is a ferromagnetic material. We start here by computing its ground-state by constructing a supercell corresponding to the cubic cell of iron, doubled along one direction. For this, we use the following input file:
CalculationMode = gs
PeriodicDimensions = 3
BoxShape = parallelepiped
ExperimentalFeatures = yes
PseudopotentialSet=pseudodojo_lda
a = 2.867*Angstrom
%LatticeParameters
a | a | 2*a
90| 90| 90
%
%ReducedCoordinates
"Fe" | 0.0 | 0.0 | 0.0
"Fe" | 1/2 | 1/2 | 1/4
"Fe" | 0.0 | 0.0 | 1/2
"Fe" | 1/2 | 1/2 | 3/4
%
Spacing = 0.35
%KPointsGrid
4 | 4 | 2
%
Smearing = 0.1*eV
SmearingFunction = fermi_dirac
LCAOStart = lcao_states
SpinComponents = spinors
GuessMagnetDensity = user_defined
%AtomsMagnetDirection
0.0 | 0.0 | 4.0
0.0 | 0.0 | 4.0
0.0 | 0.0 | 4.0
0.0 | 0.0 | 4.0
%
EigenSolver = rmmdiis
ConvRelDens = 1e-7
ExtraStates = 20
Running this input file will give the ground state of bulk iron in a supercell.
It is important to note here that we are using Pauli spinors to represent the wavefunctions. This is needed because we will later on kick the system with a spiral in spin space, that cannot be represented by collinear spins. As the system is metallic, we are using a smearing of the occupations, defined by Smearing and SmearingFunction, and added some extra states using ExtraStates to allow for a finite population of the conduction bands due to the smearing of the occupations.
Note that the present input file is not converged in the number of k-points and should not be considered for production runs. Similarly, the smearing of the occupation is set here to a high temperature of 0.1 eV, which is also not realistic for practical applications. This is done here because the number of k-point is too low in our example to properly sample the energy window close to the Fermi energy.
Time-dependent run
Now that we constructed the supercell, we can investigate a spin spiral. The momemtum q corresponding to this cell has a value of q=(0,0,2 pi/a/2), where a is lattice parameter of iron, which we took as 2.867 angstrom in our example.
Let us now look at how to specify a magnon kick in Octopus. There are three different points that need to be specified:
- The strength of the kick. This determines how strongly we perturb the system.
- The momentum of the kick. This is the momentum of the spin spiral we are imposing to the system’s spins.
- The easy axis of the material. This is usually the z direction, but the code allows for defining an arbitrary direction. This direction is used to determine the transverse magnetization from the total magnetization computed in Cartesian coordinates.
First of all, we need to set that we will use a magnon kick:
TDDeltaStrengthMode = kick_magnon
Then we specify the strength of the perturbation:
TDDeltaStrength = 0.01
The strength of the perturbation should be converged such that the results are guarantied to be valid within linear response. The means that changing the strength of the kick should lead to the same transverse spin susceptibility than the original calculation, as the extracted susceptibility (see next section) does not depend on the kick strength within linear response. The momentum of spin spiral is set using the block
%TDMomentumTransfer
0 | 0 | 2*pi/a/2
%
Alternatively, one could specified the momemtum in reduced coordinates, using the variable TDReducedMomentumTransfer.
Finally, the easy axis of the material is defined by
%TDEasyAxis
0 | 0 | 1
%
The full input file should read as
CalculationMode = td
PeriodicDimensions = 3
BoxShape = parallelepiped
ExperimentalFeatures = yes
PseudopotentialSet=pseudodojo_lda
a = 2.867*Angstrom
%LatticeParameters
a | a | 2*a
90| 90| 90
%
%ReducedCoordinates
"Fe" | 0.0 | 0.0 | 0.0
"Fe" | 1/2 | 1/2 | 1/4
"Fe" | 0.0 | 0.0 | 1/2
"Fe" | 1/2 | 1/2 | 3/4
%
Spacing = 0.35
%KPointsGrid
4 | 4 | 2
%
RestartFixedOccupations = yes
SpinComponents = spinors
ExtraStates = 8
RestartWriteInterval = 5000
TDDeltaStrength = 0.01
TDDeltaStrengthMode = kick_magnon
%TDMomentumTransfer
0 | 0 | 2*pi/a/2
%
%TDEasyAxis
0 | 0 | 1
%
TDTimeStep = 0.075
TDPropagator = aetrs
TDExponentialMethod = lanczos
TDExpOrder = 16
TDPropagationTime = 1800
%TDOutput
total_magnetization
energy
%
The parameters for time-dependent runs are already explained in other tutorials and are not further detailed here. Here the time-propagation is performed only up to 1800 atomic units. This frequency resolution for this time propagation is probably too large for most applications, but we use this value here to maintain the tutorial feasible within a reasonable amount of time. We note that we kept here some extra states in the time-dependent calculation. This is due to the metallic nature of the system, and these states have a finite populations, so they need to be included in the time evolution in order to conserve the number of electrons.
Looking at the total energy (td.general/energy) of the system, one realizes that it starts to increase, which is not correct. This is due to the poor convergence parameters used for the calculation. In practical calculation, it is strongly advised to check that the energy is conserved throughout the complete simulation.
Computing the transverse spin susceptibility
In order to extract the transverse spin susceptibilities from the total magnetization, one needs to use the utility oct-spin_susceptibility. This utility produces files names td.general/spin_susceptibility_qXXX, where XXX is the index of the q-vector. There is typically only one file produced, except in the multi-q kick mode, see below for some example.
Magnon kick using the generalized Bloch theorem
If the Hamiltonian does not include any off-diagonal terms in spin space, it is possible to use the so-called generalized Bloch theorem (GBT). Thanks to the GBT, it is possible to investigate spin spirals using only the primitive cell of the system. This comes at the cost of modifying the periodic boundary conditions by some twisted boundary conditions in which a different phase is applied to each components of the Pauli spinors.
In order to investigate it, we first need to prepare the ground-state of the system in its primitive cell. For this, we modify the above input file to define only the primitive cell
CalculationMode = gs
PeriodicDimensions = 3
BoxShape = parallelepiped
ExperimentalFeatures = yes
PseudopotentialSet=pseudodojo_lda
a = 2.867*Angstrom
%LatticeParameters
a | a | a
%
%LatticeVectors
-0.5 | 0.5 | 0.5
0.5 |-0.5 | 0.5
0.5 | 0.5 |-0.5
%
%ReducedCoordinates
"Fe" | 0.0 | 0.0 | 0.0
%
Spacing = 0.35
%KPointsGrid
4 | 4 | 4
%
Smearing = 0.1*eV
SmearingFunction = fermi_dirac
LCAOStart = lcao_states
SpinComponents = spinors
GuessMagnetDensity = user_defined
%AtomsMagnetDirection
0.0 | 0.0 | 4.0
%
EigenSolver = rmmdiis
ConvRelDens = 1e-7
ExtraStates = 10
Once the ground state is converged, we need to run the time-dependent calculation. This is done using the same variable as used before, only adding the line
SpiralBoundaryCondition = yes
This variable set the use of the GBT and allow to do spin-wave calculations in primitive cell.
References
-
N. Tancogne-Dejean, F. G. Eich, and A. Rubio, Time-Dependent Magnons from First Principles, Journal of Chemical Theory and Computation 16 1007 (2020); ↩︎