![]() |
Octopus
|
Data Types | |
| interface | dipole_me |
| interface | ks_multipoles_1d |
| interface | ks_multipoles_2d |
| interface | ks_multipoles_3d |
| interface | one_body_me |
| interface | two_body_me |
Functions/Subroutines | |
| subroutine, public | elec_momentum_me (namespace, gr, st, space, hm, ions, momentum, non_local) |
| subroutine, public | elec_angular_momentum_me (gr, st, space, ll, l2) |
| subroutine, public | zelec_velocity_me_uspp (namespace, gr, st, space, hm, velocity) |
| Ultrasoft/PAW conserved macroscopic current (= dipole velocity), per state. More... | |
| subroutine | zelec_momentum_me (namespace, gr, st, space, hm, ions, momentum, non_local) |
| The routine calculates the expectation value of the momentum operator. More... | |
| subroutine | zelec_angular_momentum_me (gr, st, space, ll, l2) |
| It calculates the expectation value of the angular momentum of the states. If l2 is passed, it also calculates the expectation value of the square of the angular momentum of the state phi. More... | |
| subroutine | zelec_ks_multipoles_3d_me (gr, st, space, ll, mm, ik, elements) |
| Prints out the multipole matrix elements between KS states. More... | |
| subroutine | zelec_ks_multipoles_2d_me (gr, st, ll, ik, elements) |
| Prints out the dipole matrix elements (X or Y) between single orbitals, in the 1d case. More... | |
| subroutine | zelec_ks_multipoles_1d_me (gr, st, ll, ik, elements) |
| Prints out the multipole matrix elements (X**l) between single orbitals, in the 1d case. More... | |
| subroutine | zelec_dipole_me (gr, st, namespace, hm, ions, ik, st_start, st_end, elements) |
| Computes the dipole matrix elements between KS states. More... | |
| subroutine | zcalculate_expectation_values_matrix (namespace, hm, der, st, eigen, terms, diagonal_states) |
| subroutine | zelec_one_body_me (gr, st, namespace, hm, iindex, jindex, oneint) |
| subroutine | zelec_two_body_me (gr, st, space, namespace, kpoints, psolver, st_min, st_max, iindex, jindex, kindex, lindex, twoint, phase, singularity, exc_k) |
| subroutine | delec_momentum_me (namespace, gr, st, space, hm, ions, momentum, non_local) |
| The routine calculates the expectation value of the momentum operator. More... | |
| subroutine | delec_angular_momentum_me (gr, st, space, ll, l2) |
| It calculates the expectation value of the angular momentum of the states. If l2 is passed, it also calculates the expectation value of the square of the angular momentum of the state phi. More... | |
| subroutine | delec_ks_multipoles_3d_me (gr, st, space, ll, mm, ik, elements) |
| Prints out the multipole matrix elements between KS states. More... | |
| subroutine | delec_ks_multipoles_2d_me (gr, st, ll, ik, elements) |
| Prints out the dipole matrix elements (X or Y) between single orbitals, in the 1d case. More... | |
| subroutine | delec_ks_multipoles_1d_me (gr, st, ll, ik, elements) |
| Prints out the multipole matrix elements (X**l) between single orbitals, in the 1d case. More... | |
| subroutine | delec_dipole_me (gr, st, namespace, hm, ions, ik, st_start, st_end, elements) |
| Computes the dipole matrix elements between KS states. More... | |
| subroutine | dcalculate_expectation_values_matrix (namespace, hm, der, st, eigen, terms, diagonal_states) |
| subroutine | delec_one_body_me (gr, st, namespace, hm, iindex, jindex, oneint) |
| subroutine | delec_two_body_me (gr, st, space, namespace, kpoints, psolver, st_min, st_max, iindex, jindex, kindex, lindex, twoint, phase, singularity, exc_k) |
| subroutine, public elec_matrix_elements_oct_m::elec_momentum_me | ( | type(namespace_t), intent(in) | namespace, |
| type(grid_t), intent(in) | gr, | ||
| type(states_elec_t), intent(in) | st, | ||
| type(space_t), intent(in) | space, | ||
| type(hamiltonian_elec_t), intent(in) | hm, | ||
| type(ions_t), intent(in) | ions, | ||
| real(real64), dimension(:,:,:), intent(out), contiguous | momentum, | ||
| logical, intent(in), optional | non_local | ||
| ) |
Definition at line 176 of file elec_matrix_elements.F90.
| subroutine, public elec_matrix_elements_oct_m::elec_angular_momentum_me | ( | type(grid_t), intent(in) | gr, |
| type(states_elec_t), intent(in) | st, | ||
| type(space_t), intent(in) | space, | ||
| real(real64), dimension(:, :, :), intent(out), contiguous | ll, | ||
| real(real64), dimension(:, :), intent(out), optional, contiguous | l2 | ||
| ) |
| [out] | ll | (stnst, stnik, 1 or 3) |
| [out] | l2 | (stnst, stnik) |
Definition at line 198 of file elec_matrix_elements.F90.
| subroutine, public elec_matrix_elements_oct_m::zelec_velocity_me_uspp | ( | type(namespace_t), intent(in) | namespace, |
| type(grid_t), intent(in) | gr, | ||
| type(states_elec_t), intent(in) | st, | ||
| type(space_t), intent(in) | space, | ||
| type(hamiltonian_elec_t), intent(in) | hm, | ||
| real(real64), dimension(:,:,:), intent(out) | velocity | ||
| ) |
Ultrasoft/PAW conserved macroscopic current (= dipole velocity), per state.
For ultrasoft/PAW the Kohn-Sham problem is generalized, \( H\tilde\psi = \epsilon S\tilde\psi \) with \( S = 1 + \sum_{ij}|\beta_i\rangle q_{ij}\langle\beta_j| \), and the physical density is augmented, \( n = \sum_n f_n[|\tilde\psi_n|^2 + \sum_{ij}\langle\tilde\psi_n|\beta_i\rangle Q_{ij}(r)\langle\beta_j|\tilde\psi_n\rangle] \). The conserved macroscopic current is the time derivative of the augmented dipole \( \hat X_\alpha = x_\alpha + \sum_{ij}|\beta_i\rangle M^\alpha_{ij}\langle\beta_j| \), \( M^\alpha_{ij} = \int x_\alpha Q_{ij}(r)\,dr \). Using the generalized TDKS equation \( \partial_t\tilde\psi = -i S^{-1}H\tilde\psi \),
\[ J_\alpha = \frac{d\langle\hat X_\alpha\rangle}{dt} = +2\sum_n f_n \mathrm{Im}\Big[\langle\tilde\psi_n|x_\alpha|\chi_n\rangle + \sum_{ij}\langle\tilde\psi_n|\beta_i\rangle M^\alpha_{ij}\langle\beta_j|\chi_n\rangle\Big], \quad \chi_n = S^{-1}H\tilde\psi_n\; (= i\,\partial_t\tilde\psi_n). \]
This respects the continuity equation for the augmented density by construction and is gauge-correct: the vector potential enters only through \( H(A) \) inside \( \chi_n \). For norm-conserving pseudopotentials (S=1, M=0) it reduces to \( -i\langle\psi|[x,H]|\psi\rangle \) (= momentum + nonlocal commutator), so the caller uses elec_momentum_me there instead.
Definition at line 237 of file elec_matrix_elements.F90.
|
private |
The routine calculates the expectation value of the momentum operator.
\[ <p> = < phi*(ist, k) | -i \nabla | phi(ist, ik) > \]
Optionally, this can be used to compute the velocity matrix element if non_local=.true.
In this case this computes
\[ <v> = < phi*(ist, k) | \hat{v} | phi(ist, ik) > \]
Definition at line 415 of file elec_matrix_elements.F90.
|
private |
It calculates the expectation value of the angular momentum of the states. If l2 is passed, it also calculates the expectation value of the square of the angular momentum of the state phi.
| [out] | ll | (stnst, stnik, 1 or 3) |
| [out] | l2 | (stnst, stnik) |
Definition at line 537 of file elec_matrix_elements.F90.
|
private |
Prints out the multipole matrix elements between KS states.
It prints the states to the file opened in iunit. It prints the (ll,mm) multipole moment, for the Kohn-Sham states in the irreducible subspace ik.
Definition at line 613 of file elec_matrix_elements.F90.
|
private |
Prints out the dipole matrix elements (X or Y) between single orbitals, in the 1d case.
It prints the states to the file opened in iunit. It prints the moment, for single orbital states irreducible subspace ik. It only prints the first order moments X or Y. Eventually it should print the circular multipoles of arbitrary order, similar to the 3D case.
The argument ll should be 1 (X) or 2 (Y).
Definition at line 677 of file elec_matrix_elements.F90.
|
private |
Prints out the multipole matrix elements (X**l) between single orbitals, in the 1d case.
It prints the states to the file opened in iunit. It prints the moment of ll-th order, for single orbital states irreducible subspace ik.
Definition at line 733 of file elec_matrix_elements.F90.
|
private |
Computes the dipole matrix elements between KS states.
Definition at line 782 of file elec_matrix_elements.F90.
|
private |
Definition at line 896 of file elec_matrix_elements.F90.
|
private |
Definition at line 952 of file elec_matrix_elements.F90.
|
private |
Definition at line 1040 of file elec_matrix_elements.F90.
|
private |
The routine calculates the expectation value of the momentum operator.
\[ <p> = < phi*(ist, k) | -i \nabla | phi(ist, ik) > \]
Optionally, this can be used to compute the velocity matrix element if non_local=.true.
In this case this computes
\[ <v> = < phi*(ist, k) | \hat{v} | phi(ist, ik) > \]
Definition at line 1334 of file elec_matrix_elements.F90.
|
private |
It calculates the expectation value of the angular momentum of the states. If l2 is passed, it also calculates the expectation value of the square of the angular momentum of the state phi.
| [out] | ll | (stnst, stnik, 1 or 3) |
| [out] | l2 | (stnst, stnik) |
Definition at line 1456 of file elec_matrix_elements.F90.
|
private |
Prints out the multipole matrix elements between KS states.
It prints the states to the file opened in iunit. It prints the (ll,mm) multipole moment, for the Kohn-Sham states in the irreducible subspace ik.
Definition at line 1523 of file elec_matrix_elements.F90.
|
private |
Prints out the dipole matrix elements (X or Y) between single orbitals, in the 1d case.
It prints the states to the file opened in iunit. It prints the moment, for single orbital states irreducible subspace ik. It only prints the first order moments X or Y. Eventually it should print the circular multipoles of arbitrary order, similar to the 3D case.
The argument ll should be 1 (X) or 2 (Y).
Definition at line 1587 of file elec_matrix_elements.F90.
|
private |
Prints out the multipole matrix elements (X**l) between single orbitals, in the 1d case.
It prints the states to the file opened in iunit. It prints the moment of ll-th order, for single orbital states irreducible subspace ik.
Definition at line 1643 of file elec_matrix_elements.F90.
|
private |
Computes the dipole matrix elements between KS states.
Definition at line 1692 of file elec_matrix_elements.F90.
|
private |
Definition at line 1795 of file elec_matrix_elements.F90.
|
private |
Definition at line 1851 of file elec_matrix_elements.F90.
|
private |
Definition at line 1939 of file elec_matrix_elements.F90.