|
| subroutine, public | exponential_init (te, namespace, full_batch) |
| |
| subroutine, public | exponential_copy (teo, tei) |
| |
| subroutine | exponential_apply_single (te, namespace, mesh, hm, zpsi, ist, ik, deltat, imag_time) |
| | Wrapper to batchified routine for applying exponential to an array. More...
|
| |
| subroutine | exponential_apply_batch (te, namespace, mesh, hm, psib, deltat, psib2, deltat2, imag_time, inh_psib, op) |
| | This routine performs the operation: More...
|
| |
| subroutine | exponential_taylor_series_batch (te, namespace, mesh, hm, psib, deltat, op, psib2, deltat2, inh_psib, phik_shift) |
| |
| subroutine | exponential_lanczos_batch (te, namespace, mesh, psib, deltat, op, inh_psib, psib2, deltat2) |
| | Lanczos/Arnoldi procedure for the exponential of an operator. More...
|
| |
| subroutine, public | exponential_lanczos_function_batch (te, namespace, mesh, psib, deltat, fun, op, psib2, deltat2) |
| | Compute fun(H) psib, i.e. the application of a function of the Hamiltonian to a batch. More...
|
| |
| subroutine | exponential_cheby_batch (te, namespace, mesh, hm, psib, chebyshev_function, op) |
| | Calculates the exponential of the Hamiltonian through an expansion in Chebyshev polynomials. More...
|
| |
| subroutine, public | exponential_apply_all (te, namespace, gr, hm, st, deltat, order) |
| | Note that this routine not only computes the exponential, but also an extra term if there is a inhomogeneous term in the Hamiltonian hm. More...
|
| |
| subroutine | exponential_apply_phi_batch (te, namespace, mesh, hm, psib, deltat, k, op) |
| |
| type(hamiltonian_operator_t) function, pointer | hamiltonian_operator_constructor (namespace, mesh, hm) |
| |
| subroutine | hamiltonian_operator_init (this, namespace, mesh, hm) |
| |
| subroutine | hamiltonian_operator_apply (this, psib, hpsib) |
| |
| logical function | operator_is_hermitian (this) |
| |
| logical function | hamiltonian_operator_is_hermitian (this) |
| |
| type(sinvh_operator_t) function, pointer | sinvh_operator_constructor (namespace, mesh, hm) |
| |
| subroutine | sinvh_operator_init (this, namespace, mesh, hm) |
| |
| subroutine | sinvh_operator_apply (this, psib, hpsib) |
| | Apply A = S^{-1} H, the operator propagated for ultrasoft/PAW. More...
|
| |
| logical function | sinvh_operator_is_hermitian (this) |
| |
| subroutine exponential_oct_m::exponential_apply_batch |
( |
class(exponential_t), intent(inout) |
te, |
|
|
type(namespace_t), intent(in) |
namespace, |
|
|
class(mesh_t), intent(in) |
mesh, |
|
|
class(hamiltonian_abst_t), intent(inout) |
hm, |
|
|
class(batch_t), intent(inout) |
psib, |
|
|
real(real64), intent(in) |
deltat, |
|
|
class(batch_t), intent(inout), optional |
psib2, |
|
|
real(real64), intent(in), optional |
deltat2, |
|
|
logical, intent(in), optional |
imag_time, |
|
|
class(batch_t), intent(inout), optional |
inh_psib, |
|
|
class(operator_t), intent(in), optional, target |
op |
|
) |
| |
|
private |
This routine performs the operation:
\[
\exp{-i*\Delta t*hm(t)}|\psi> <-- |\psi>
\]
If imag_time is present and is set to true, it performs instead:
\[
\exp{ \Delta t*hm(t)}|\psi> <-- |\psi>
\]
If an inhomogeneous term is present, the operation is:
\[
\exp{-i*\Delta t*hm(t)}|\psi> + \Delta t*\phi_1{-i*\Delta t*hm(t)}|inh\psi> <-- |\psi>
\]
where:
\[
\phi_1(x) = (e^x - 1)/x
\]
- Parameters
-
| [in,out] | inh_psib | inhomogeneous term |
| [in] | op | operator to be applied in the exponential |
Definition at line 433 of file exponential.F90.
| subroutine, public exponential_oct_m::exponential_lanczos_function_batch |
( |
type(exponential_t), intent(inout) |
te, |
|
|
type(namespace_t), intent(in) |
namespace, |
|
|
class(mesh_t), intent(in) |
mesh, |
|
|
class(batch_t), intent(inout) |
psib, |
|
|
complex(real64), intent(in) |
deltat, |
|
|
|
fun, |
|
|
class(operator_t), intent(in) |
op, |
|
|
class(batch_t), intent(inout), optional |
psib2, |
|
|
complex(real64), intent(in), optional |
deltat2 |
|
) |
| |
Compute fun(H) psib, i.e. the application of a function of the Hamiltonian to a batch.
Usually, the function is an exponential, or a related function.
Some details of the implementation can be understood from Saad, Y. (1992). Analysis of some Krylov subspace approximations to the matrix exponential operator. SIAM Journal on Numerical Analysis, 29(1), 209-228.
A pdf can be accessed here or via the DOI. Equation numbers below refer to this paper.
Support two time-steps, where the construction of the Krylov subspace is reused for the two time-steps
- Parameters
-
| [in] | op | operator to be applied in the exponential |
| [in,out] | psib2 | second output fun(deltat2*H) psib, sharing the Krylov basis |
Order the projected matrices are allocated for; grown on demand up to max_order
Definition at line 720 of file exponential.F90.