![]() |
(git:3d5d2e5)
|
Original scalar radial fields in the native real-harmonic projector order. Regular radial factors are splined in r**2, with Cartesian solid harmonics. An exact zero suffix supplies a C2 closure; no numerical cutoff is introduced. More...
Data Types | |
| type | upf_radial_fields_type |
Functions/Subroutines | |
| subroutine, public | upf_radial_fields_init (r, radial, lbeta, fields, finite_table) |
| Cache original f_l(r)Y_lm, without weights, normalization changes or channel rotations. f_l/r**l is continued from the first positive-radius cubic to the origin. The final interval into the exact zero suffix matches value and two derivatives. Noncompact tables require an explicit boundary policy and are rejected here. | |
| subroutine, public | upf_radial_fields_evaluate (fields, displacement, value, gradient, hessian) |
| Evaluate values and Cartesian derivatives from the same radial/harmonic polynomial. | |
| subroutine, public | upf_radial_fields_periodic (fields, points, center, cell, images, reduced_k, value, gradient, response, gradient_response, points_response, center_response, cell_response, reduced_k_response) |
| Sum supplied Bloch images on common Cartesian quadrature points, including responses. Caller supplies complete image bounds; no minimum-image approximation is made. Cell responses use Cartesian cell columns, with reduced k fixed unless differentiated. | |
Original scalar radial fields in the native real-harmonic projector order. Regular radial factors are splined in r**2, with Cartesian solid harmonics. An exact zero suffix supplies a C2 closure; no numerical cutoff is introduced.
| subroutine, public upf_radial_fields::upf_radial_fields_init | ( | real(dp), dimension(:), intent(in) | r, |
| real(dp), dimension(:, :), intent(in) | radial, | ||
| integer, dimension(:), intent(in) | lbeta, | ||
| type(upf_radial_fields_type), intent(out) | fields, | ||
| logical, intent(in), optional | finite_table ) |
Cache original f_l(r)Y_lm, without weights, normalization changes or channel rotations. f_l/r**l is continued from the first positive-radius cubic to the origin. The final interval into the exact zero suffix matches value and two derivatives. Noncompact tables require an explicit boundary policy and are rejected here.
| r | Original strictly increasing nonnegative radial mesh. |
| radial | Original f_l(r), including its full exact zero suffix. |
| lbeta | Angular momentum of each original radial channel. |
| fields | Immutable cache, initialized outside threaded regions. |
| finite_table | Retain a noncompact reference table. Queries beyond its last node are invalid. |
Definition at line 53 of file upf_radial_fields.F.
| subroutine, public upf_radial_fields::upf_radial_fields_evaluate | ( | type(upf_radial_fields_type), intent(in) | fields, |
| real(dp), dimension(3), intent(in) | displacement, | ||
| real(dp), dimension(:), intent(out) | value, | ||
| real(dp), dimension(:, :), intent(out), optional | gradient, | ||
| real(dp), dimension(:, :, :), intent(out), optional | hessian ) |
Evaluate values and Cartesian derivatives from the same radial/harmonic polynomial.
| fields | Initialized original radial fields. |
| displacement | Point minus field center, in bohr. |
| value | Values in the native magnetic-projector order. |
| gradient | Optional Cartesian point gradients; center gradients have opposite sign. |
| hessian | Optional Cartesian Hessians, including origin and coordinate axes. |
Definition at line 140 of file upf_radial_fields.F.
| subroutine, public upf_radial_fields::upf_radial_fields_periodic | ( | type(upf_radial_fields_type), intent(in) | fields, |
| real(dp), dimension(:, :), intent(in) | points, | ||
| real(dp), dimension(3), intent(in) | center, | ||
| real(dp), dimension(3, 3), intent(in) | cell, | ||
| integer, dimension(:, :), intent(in) | images, | ||
| real(dp), dimension(3), intent(in) | reduced_k, | ||
| complex(dp), dimension(:, :), intent(out) | value, | ||
| complex(dp), dimension(:, :, :), intent(out), optional | gradient, | ||
| complex(dp), dimension(:, :), intent(out), optional | response, | ||
| complex(dp), dimension(:, :, :), intent(out), optional | gradient_response, | ||
| real(dp), dimension(:, :), intent(in), optional | points_response, | ||
| real(dp), dimension(3), intent(in), optional | center_response, | ||
| real(dp), dimension(3, 3), intent(in), optional | cell_response, | ||
| real(dp), dimension(3), intent(in), optional | reduced_k_response ) |
Sum supplied Bloch images on common Cartesian quadrature points, including responses. Caller supplies complete image bounds; no minimum-image approximation is made. Cell responses use Cartesian cell columns, with reduced k fixed unless differentiated.
| fields | Original radial cache. |
| points | Cartesian quadrature points, one per column. |
| center | Cartesian original center. |
| cell | Cartesian cell vectors, one per column. |
| images | Integer image vectors, one per column. |
| reduced_k | Reduced Bloch wavevector, in reciprocal lattice units. |
| value | Bloch values, point-major and native projector-minor. |
| gradient | Optional spatial gradients, Cartesian axis last. |
| response | Optional geometry/Bloch response, including image phase derivatives. |
| gradient_response | Optional joint spatial/geometry response, requiring Hessians. |
| points_response | Optional Cartesian point displacements. |
| center_response | Optional Cartesian center displacement. |
| cell_response | Optional cell-vector response. |
| reduced_k_response | Optional reduced Bloch-wavevector response. |
Definition at line 245 of file upf_radial_fields.F.