![]() |
Octopus
|
Data Types | |
| type | current_t |
Functions/Subroutines | |
| subroutine, public | current_init (this, namespace) |
| subroutine | current_batch_accumulate (st, der, ik, ib, psib, gpsib) |
| subroutine, public | current_calculate (this, namespace, gr, hm, space, st) |
| Compute total electronic current density. More... | |
| subroutine | current_calculate_dia_non_unif_vec_pot (der, hm, st) |
| Compute diamagnetic current density from non-uniform vector potential (the part coming from the uniform vector potential is already included in the paramagnetic term) More... | |
| subroutine, public | current_calculate_mag (der, st) |
| Compute magnetization current Note: due to the the numerical curl, the magnetization current could deviate from the analytical one near the origin (see test for "current_density"). More... | |
| subroutine | current_calculate_para (this, namespace, gr, hm, space, st) |
| Compute paramagnetic current density (including full diamagnetic term if method = Hamiltonian us used, and including diamagnetic from uniform vector potential otherwise) More... | |
| subroutine | current_aug_accumulate (hm, gr, st, ik, psib, gpsib, caug) |
| Accumulate the ultrasoft/PAW augmentation-current coefficients for one block of states. More... | |
| subroutine | current_aug_scatter (hm, gr, st, ik, caug) |
| Scatter the ultrasoft/PAW augmentation current onto the k-resolved current density. More... | |
| subroutine, public | current_heat_calculate (space, der, hm, st, current) |
Variables | |
| integer, parameter, public | current_gradient = 1 |
| integer, parameter, public | current_gradient_corr = 2 |
| integer, parameter, public | current_hamiltonian = 3 |
| subroutine, public current_oct_m::current_init | ( | type(current_t), intent(out) | this, |
| type(namespace_t), intent(in) | namespace | ||
| ) |
Definition at line 160 of file current.F90.
|
private |
Definition at line 208 of file current.F90.
| subroutine, public current_oct_m::current_calculate | ( | type(current_t), intent(in) | this, |
| type(namespace_t), intent(in) | namespace, | ||
| type(grid_t), intent(inout) | gr, | ||
| type(hamiltonian_elec_t), intent(inout) | hm, | ||
| class(space_t), intent(in) | space, | ||
| type(states_elec_t), intent(inout) | st | ||
| ) |
Compute total electronic current density.
Definition at line 352 of file current.F90.
|
private |
Compute diamagnetic current density from non-uniform vector potential (the part coming from the uniform vector potential is already included in the paramagnetic term)
Definition at line 394 of file current.F90.
| subroutine, public current_oct_m::current_calculate_mag | ( | type(derivatives_t), intent(inout) | der, |
| type(states_elec_t), intent(inout) | st | ||
| ) |
Compute magnetization current Note: due to the the numerical curl, the magnetization current could deviate from the analytical one near the origin (see test for "current_density").
Definition at line 429 of file current.F90.
|
private |
Compute paramagnetic current density (including full diamagnetic term if method = Hamiltonian us used, and including diamagnetic from uniform vector potential otherwise)
Definition at line 461 of file current.F90.
|
private |
Accumulate the ultrasoft/PAW augmentation-current coefficients for one block of states.
The augmentation current is the augmentation part of the symmetric current-density operator \( \hat j_\alpha(r) = \tfrac12\{\hat v_\alpha,\hat n(r)\} \), \( \hat v_\alpha=-i[\hat r_\alpha,\hat H] \), with the augmented density operator \( \hat n(r)=\delta(r-\hat r)+\sum_{ij}|\beta_i\rangle Q_{ij}(r)\langle\beta_j| \):
\[ j_{\mathrm{aug},\alpha}(r) = \sum_{ij} Q_{ij}(r)\sum_n f_n\, \mathrm{Re}\big[\langle\hat v_\alpha\tilde\psi_n|\beta_i\rangle\langle\beta_j|\tilde\psi_n\rangle\big]. \]
This routine works on the batched orbitals: it projects the already phased block psib (giving \( \langle\beta_j|\tilde\psi\rangle \)) and the velocity-projected batches gpsib(idir) = \( (\nabla+[\hat r_\alpha,V_{nl}])\tilde\psi = i\hat v_\alpha\tilde\psi \) that were already built for the smooth current, and accumulates the per-pair coefficients caug. current_aug_scatter then scatters \( \sum_{ij} c_{ij}^\alpha Q_{ij}(r) \) onto the mesh. Refs: Vanderbilt, PRB 41, 7892 (1990); Laasonen et al., PRB 47, 10142 (1993); Gajdos et al., PRB 73, 045112 (2006).
Definition at line 827 of file current.F90.
|
private |
Scatter the ultrasoft/PAW augmentation current onto the k-resolved current density.
Adds \( \sum_{ij} c_{ij}^\alpha\, Q_{ij}(r) \) (coefficients caug from current_aug_accumulate) to stcurrent_kpt for k-point ik, with the same Gaunt / cached-Y_LM / radial-Q machinery as the augmentation density. The caller sums current_kpt over k into current_para and reduces over the states-kpoints communicator, so the result is consistent with the smooth current under domain / state / k-point parallelization.
Definition at line 887 of file current.F90.
| subroutine, public current_oct_m::current_heat_calculate | ( | class(space_t), intent(in) | space, |
| type(derivatives_t), intent(in) | der, | ||
| type(hamiltonian_elec_t), intent(in) | hm, | ||
| type(states_elec_t), intent(in) | st, | ||
| real(real64), dimension(:, :, :), intent(out), contiguous | current | ||
| ) |
Definition at line 939 of file current.F90.
| integer, parameter, public current_oct_m::current_gradient = 1 |
Definition at line 153 of file current.F90.
| integer, parameter, public current_oct_m::current_gradient_corr = 2 |
Definition at line 153 of file current.F90.
| integer, parameter, public current_oct_m::current_hamiltonian = 3 |
Definition at line 153 of file current.F90.