(git:3d5d2e5)
Loading...
Searching...
No Matches
upf_radial_fields Module Reference

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.

Detailed Description

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.

Function/Subroutine Documentation

◆ upf_radial_fields_init()

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.

Parameters
rOriginal strictly increasing nonnegative radial mesh.
radialOriginal f_l(r), including its full exact zero suffix.
lbetaAngular momentum of each original radial channel.
fieldsImmutable cache, initialized outside threaded regions.
finite_tableRetain a noncompact reference table. Queries beyond its last node are invalid.

Definition at line 53 of file upf_radial_fields.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ upf_radial_fields_evaluate()

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.

Parameters
fieldsInitialized original radial fields.
displacementPoint minus field center, in bohr.
valueValues in the native magnetic-projector order.
gradientOptional Cartesian point gradients; center gradients have opposite sign.
hessianOptional Cartesian Hessians, including origin and coordinate axes.

Definition at line 140 of file upf_radial_fields.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ upf_radial_fields_periodic()

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.

Parameters
fieldsOriginal radial cache.
pointsCartesian quadrature points, one per column.
centerCartesian original center.
cellCartesian cell vectors, one per column.
imagesInteger image vectors, one per column.
reduced_kReduced Bloch wavevector, in reciprocal lattice units.
valueBloch values, point-major and native projector-minor.
gradientOptional spatial gradients, Cartesian axis last.
responseOptional geometry/Bloch response, including image phase derivatives.
gradient_responseOptional joint spatial/geometry response, requiring Hessians.
points_responseOptional Cartesian point displacements.
center_responseOptional Cartesian center displacement.
cell_responseOptional cell-vector response.
reduced_k_responseOptional reduced Bloch-wavevector response.

Definition at line 245 of file upf_radial_fields.F.

Here is the call graph for this function: