Time-dependent equations
The td-wslda
code solves equations of the form:
where the Hamiltonian is given by
and qpwfs
):
Note that all qpwfs
fluctuate in time with a typical oscillating factor , where is a quasi-particle energy. Since we evolve all states with quasi-particle energies from the interval , the evolved states exhibit both very slow as well as very rapid oscillations in time. In order to improve accuracy of the time integration, in each integration step we subtract from the quasi-particle solution the typical frequency of oscillations, which in practice modifies
the equation to the form:
where
is instantaneous quasi-particle energy. Although this step introduces a significant numeric cost to the calculations, it greatly improves the accuracy of the time integration.ABM integration algorithm
We convert time-dependent equations into from:
where:
Adams-Bashforth-Moulton (ABM) is designed as follow:
- predictor of 4-th order:
- corrector of 5-th order:
where
. The accuracy of the method is set by the corrector.The algorithm requires 5 (wave function) buffers called:
, , , , .The algorithm is as follows (operations listed within a single step have to be executed simultaneously):
-
Compute densities from
and formulate potentials (like and ) needed to formulate Hamiltonian. This step requires MPI communication. For densities and potentials, use additional buffers; note they are small compared to wave function buffers. -
, this is the first application of Hamiltonian; use potentials formulated in step 2. This step can be done in batched mode. This is a numerically intensive step.
-
, this step can be merged with step 3. Now buffer holds wave functions for .
-
Compute densities from
and formulate potentials (like and ) needed to formulate Hamiltonian. This step requires MPI communication. For densities and potentials, use additional buffers; note they are small compared to wave function buffers. -
Preparation of buffers for the next step. Note the last operation corresponds to the second application of Hamiltonian; use potentials formulated in step 5. This step can be done in batched mode. This is a numerically intensive step.
- Increase by one and go to step 1.