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

Inverse of a specified finite-rank UPF reconstruction, including intercenter coupling. Delta contains original AE-minus-PS waves, P the original projector bras. For K=I+P*Delta and B=P*chi, W=K^-1*B gives U*chi=chi-Delta*W and P*U*chi=W. Atomic hard projectors use the nonoverlapping one-center construction. The general complex inverse remains available for checking the original functional explicitly. More...

Data Types

type  upf_inverse_type
type  upf_inverse_kinetic_type
type  upf_inverse_atomic_type

Functions/Subroutines

subroutine, public upf_inverse_atomic_init (pot, degree, atomic, info, direct)
 Local hard projectors and D-T for the nonoverlapping partial-wave construction. Both factors of a nonlocal term use these transformed projectors. Original Q and norm data remain independent and are not replaced by a partial-wave identity here. The hard reference may be an AE or a harder NC wave, as supplied by its generator.
subroutine, public upf_inverse_atomic_difference_init (pot, degree, atomic)
 Prepare the local difference integrals without factorizing a local inverse.
subroutine, public upf_inverse_kinetic_matrix (pot, kinetic, matrix, difference_kinetic, difference_overlap)
 Full radial-channel kinetic matrix from the same interpolated hard/soft reference waves. The spherical-harmonic addition theorem integrates the angular gradient products analytically. Off-diagonal channels are retained, with one half in Hartree units. Only the compact difference contributes, so reference-wave tails cancel exactly.
subroutine, public upf_inverse_atomic_residual (atomic, coefficients, delta_overlap, delta_kinetic, kinetic_residual, metric_residual)
 Finite partial-wave closure residuals added to Gaussian T plus hard D-T and Gaussian S. These vanish only when the local hard-wave expansion satisfies the corresponding operator identity. Nonoverlap alone does not remove them on an arbitrary AO space.
subroutine, public upf_inverse_kinetic_init (pot, kinetic)
 Independent valence kinetic augmentation from original projector-indexed AE/PS pairs. Charge Q is not used. The noncompact PS table is retained over its full supplied mesh. Only the compact AE-minus-PS difference is evaluated outside the reconstruction region. This kernel does not supply a frozen-core kinetic density or a pseudization of tau.
subroutine, public upf_inverse_kinetic_evaluate (kinetic, displacement, matrix, gradient)
 One-half grad(AE_i).grad(AE_j) minus one-half grad(PS_i).grad(PS_j). Factoring through Delta preserves an exact zero outside its compact support. Values and spatial derivatives use the same interpolated reference waves.
subroutine, public upf_inverse_delta_init (pot, degree, delta)
 Prepare original AE-minus-PS radial overlaps in the native projector/harmonic order. The ordinary radial/Gaussian integrator supplies overlaps and AO-center derivatives. This is an overlap cache, not a replacement for the original nonlocal operator.
subroutine, public upf_inverse_fields_init (pot, beta, delta, direct, home_coupling)
 Prepare original beta and reconstruction fields for common intercenter quadratures. Native radial channels and real harmonics agree with the Gaussian overlap cache. NC channels have zero reconstruction but retain their original projector bras.
subroutine, public upf_inverse_init (beta_delta, inverse, info, minimum_rcond)
 Factor K with original projector normalization and all supplied intercenter blocks.
subroutine, public upf_inverse_project (inverse, beta_gaussian, coefficients)
 Solve for W=P*U*chi; do not replace original q by an orthogonalized metric.
subroutine, public upf_inverse_project_response (inverse, coefficients, beta_gaussian_response, beta_delta_response, response)
 Differentiate the same reconstruction: K*dW=dB-dK*W. Displacement/strain responses must include the original waves, projectors, their moving integration measure, and all relevant Bloch-image terms.
subroutine, public upf_inverse_basis (gaussian, delta, coefficients, soft)
 Evaluate inverse images on a field batch: U*chi=chi-Delta*W. Spatial derivatives use the corresponding derivative fields, with W fixed.
subroutine, public upf_inverse_basis_response (gaussian_response, delta, delta_response, coefficients, coefficients_response, response)
 Joint field response d(U*chi)=dchi-dDelta*W-Delta*dW.
subroutine, public upf_inverse_operator (gaussian_operator, gaussian_delta, delta_gaussian, delta_operator, augmentation, coefficients, transformed)
 Pull back A+P^dagger*augmentation*P into reconstructed Gaussian variables.
subroutine, public upf_inverse_operator_response (gaussian_response, gaussian_delta, delta_gaussian, delta_operator, augmentation, coefficients, gaussian_delta_response, delta_gaussian_response, delta_operator_response, augmentation_response, coefficients_response, response)
 Differentiate the full operator pullback, including both inverse-basis legs. Matrix responses already include their moving original fields and quadratures. The stationary energy also requires the transformed-metric Pulay term.

Detailed Description

Inverse of a specified finite-rank UPF reconstruction, including intercenter coupling. Delta contains original AE-minus-PS waves, P the original projector bras. For K=I+P*Delta and B=P*chi, W=K^-1*B gives U*chi=chi-Delta*W and P*U*chi=W. Atomic hard projectors use the nonoverlapping one-center construction. The general complex inverse remains available for checking the original functional explicitly.

Function/Subroutine Documentation

◆ upf_inverse_atomic_init()

subroutine, public upf_inverse::upf_inverse_atomic_init ( type(atom_upfpot_type), intent(in), target pot,
integer, intent(in) degree,
type(upf_inverse_atomic_type), intent(out) atomic,
integer, intent(out) info,
logical, intent(in), optional direct )

Local hard projectors and D-T for the nonoverlapping partial-wave construction. Both factors of a nonlocal term use these transformed projectors. Original Q and norm data remain independent and are not replaced by a partial-wave identity here. The hard reference may be an AE or a harder NC wave, as supplied by its generator.

Parameters
potOriginal scalar NC/USPP and compatible projector-indexed hard/soft reference pairs.
degreeLargest Gaussian Cartesian degree plus derivatives or moments.
atomicNew owned one-center inverse, hard projectors and kinetic correction.
infoZero on success, otherwise the atomic inverse-factorization status.
directUse original projectors and soft orbitals without reconstruction.

Definition at line 72 of file upf_inverse.F.

Here is the caller graph for this function:

◆ upf_inverse_atomic_difference_init()

subroutine, public upf_inverse::upf_inverse_atomic_difference_init ( type(atom_upfpot_type), intent(in), target pot,
integer, intent(in) degree,
type(upf_inverse_atomic_type), intent(out) atomic )

Prepare the local difference integrals without factorizing a local inverse.

Parameters
potOriginal scalar USPP dataset.
degreeLargest Gaussian Cartesian degree including derivatives.
atomicDifference projectors and their radial matrices.

Definition at line 88 of file upf_inverse.F.

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

◆ upf_inverse_kinetic_matrix()

subroutine, public upf_inverse::upf_inverse_kinetic_matrix ( type(atom_upfpot_type), intent(in) pot,
type(upf_inverse_kinetic_type), intent(in) kinetic,
real(dp), dimension(:, :), intent(out), allocatable matrix,
real(dp), dimension(:, :), intent(out), optional, allocatable difference_kinetic,
real(dp), dimension(:, :), intent(out), optional, allocatable difference_overlap )

Full radial-channel kinetic matrix from the same interpolated hard/soft reference waves. The spherical-harmonic addition theorem integrates the angular gradient products analytically. Off-diagonal channels are retained, with one half in Hartree units. Only the compact difference contributes, so reference-wave tails cancel exactly.

Parameters
potOriginal radial mesh, quadrature and angular channel order.
kineticCompatible reference-wave interpolants.
matrixOwned symmetric radial-channel T_hard-T_soft, without magnetic multiplicity.
difference_kineticOptional owned Delta kinetic matrix, required with difference_overlap.
difference_overlapOptional owned Delta norm matrix, required with difference_kinetic.

Definition at line 223 of file upf_inverse.F.

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

◆ upf_inverse_atomic_residual()

subroutine, public upf_inverse::upf_inverse_atomic_residual ( type(upf_inverse_atomic_type), intent(in) atomic,
complex(dp), dimension(:, :), intent(in) coefficients,
complex(dp), dimension(:, :), intent(in) delta_overlap,
complex(dp), dimension(:, :), intent(in) delta_kinetic,
complex(dp), dimension(:, :), intent(out), allocatable kinetic_residual,
complex(dp), dimension(:, :), intent(out), allocatable metric_residual )

Finite partial-wave closure residuals added to Gaussian T plus hard D-T and Gaussian S. These vanish only when the local hard-wave expansion satisfies the corresponding operator identity. Nonoverlap alone does not remove them on an arbitrary AO space.

Parameters
atomicOriginal one-center matrices and transformed hard projectors.
coefficientsHard projector bras against Gaussian AO columns.
delta_overlapDelta bras against the same Gaussian columns.
delta_kineticDelta bras against the Gaussian kinetic operator.
kinetic_residualOwned AO correction beyond hard D-T.
metric_residualOwned AO correction beyond the original q minus wave-norm residual.

Definition at line 300 of file upf_inverse.F.

Here is the caller graph for this function:

◆ upf_inverse_kinetic_init()

subroutine, public upf_inverse::upf_inverse_kinetic_init ( type(atom_upfpot_type), intent(in) pot,
type(upf_inverse_kinetic_type), intent(out) kinetic )

Independent valence kinetic augmentation from original projector-indexed AE/PS pairs. Charge Q is not used. The noncompact PS table is retained over its full supplied mesh. Only the compact AE-minus-PS difference is evaluated outside the reconstruction region. This kernel does not supply a frozen-core kinetic density or a pseudization of tau.

Parameters
potOriginal scalar dataset with compatible full-wave pairs.
kineticNew radial caches in the original magnetic-projector order.

Definition at line 332 of file upf_inverse.F.

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

◆ upf_inverse_kinetic_evaluate()

subroutine, public upf_inverse::upf_inverse_kinetic_evaluate ( type(upf_inverse_kinetic_type), intent(in) kinetic,
real(dp), dimension(3), intent(in) displacement,
real(dp), dimension(:, :), intent(out) matrix,
real(dp), dimension(:, :, :), intent(out), optional gradient )

One-half grad(AE_i).grad(AE_j) minus one-half grad(PS_i).grad(PS_j). Factoring through Delta preserves an exact zero outside its compact support. Values and spatial derivatives use the same interpolated reference waves.

Parameters
kineticOriginal reference-wave caches, independent of the supplied charge Q.
displacementPoint minus original center, in bohr.
matrixSymmetric kinetic augmentation in the native magnetic-projector order.
gradientOptional Cartesian point gradient. Center motion has the opposite sign.

Definition at line 361 of file upf_inverse.F.

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

◆ upf_inverse_delta_init()

subroutine, public upf_inverse::upf_inverse_delta_init ( type(atom_upfpot_type), intent(in) pot,
integer, intent(in) degree,
type(upf_projector_type), intent(out) delta )

Prepare original AE-minus-PS radial overlaps in the native projector/harmonic order. The ordinary radial/Gaussian integrator supplies overlaps and AO-center derivatives. This is an overlap cache, not a replacement for the original nonlocal operator.

Parameters
potOriginal data with a complete full-wave pair for every beta projector.
degreeRequired Cartesian degree, including derivatives or moments.
deltaOriginal radial quadrature and angular maps for (u_AE-u_PS)/r.

Definition at line 414 of file upf_inverse.F.

Here is the call graph for this function:

◆ upf_inverse_fields_init()

subroutine, public upf_inverse::upf_inverse_fields_init ( type(atom_upfpot_type), intent(in) pot,
type(upf_radial_fields_type), intent(out) beta,
type(upf_radial_fields_type), intent(out) delta,
logical, intent(in), optional direct,
real(dp), dimension(:, :), intent(out), optional, allocatable home_coupling )

Prepare original beta and reconstruction fields for common intercenter quadratures. Native radial channels and real harmonics agree with the Gaussian overlap cache. NC channels have zero reconstruction but retain their original projector bras.

Parameters
potOriginal UPF data, with complete full waves for reconstructing channels.
betaOriginal projector fields, without weights.
deltaOriginal reconstruction differences, without weights.
directUse original projectors and soft orbitals without reconstruction.
home_couplingOptional on-site overlaps between the projectors and the reconstruction differences.

Definition at line 435 of file upf_inverse.F.

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

◆ upf_inverse_init()

subroutine, public upf_inverse::upf_inverse_init ( complex(kind=dp), dimension(:, :), intent(in) beta_delta,
type(upf_inverse_type), intent(out) inverse,
integer, intent(out) info,
real(kind=dp), intent(in), optional minimum_rcond )

Factor K with original projector normalization and all supplied intercenter blocks.

Parameters
beta_deltaP*Delta, including periodic images and Bloch phases.
inverseNew factors; a failed construction cannot reuse an earlier factorization.
infoZero on success, LAPACK pivot on singularity, nproj+1 for poor conditioning, nproj+2 for nonfinite data. Failed factors must not be used.
minimum_rcondOptional condition limit; no regularization changes the reconstruction.

Definition at line 559 of file upf_inverse.F.

Here is the caller graph for this function:

◆ upf_inverse_project()

subroutine, public upf_inverse::upf_inverse_project ( type(upf_inverse_type), intent(in) inverse,
complex(kind=dp), dimension(:, :), intent(in) beta_gaussian,
complex(kind=dp), dimension(:, :), intent(out) coefficients )

Solve for W=P*U*chi; do not replace original q by an orthogonalized metric.

Parameters
inverse...
beta_gaussianB=P*chi, with one Gaussian function per column.
coefficientsW, using the already factored full K.

Definition at line 618 of file upf_inverse.F.

Here is the caller graph for this function:

◆ upf_inverse_project_response()

subroutine, public upf_inverse::upf_inverse_project_response ( type(upf_inverse_type), intent(in) inverse,
complex(kind=dp), dimension(:, :), intent(in) coefficients,
complex(kind=dp), dimension(:, :), intent(in) beta_gaussian_response,
complex(kind=dp), dimension(:, :), intent(in) beta_delta_response,
complex(kind=dp), dimension(:, :), intent(out) response )

Differentiate the same reconstruction: K*dW=dB-dK*W. Displacement/strain responses must include the original waves, projectors, their moving integration measure, and all relevant Bloch-image terms.

Parameters
inverse...
coefficients...
beta_gaussian_response...
beta_delta_response...
response...

Definition at line 648 of file upf_inverse.F.

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

◆ upf_inverse_basis()

subroutine, public upf_inverse::upf_inverse_basis ( complex(kind=dp), dimension(:, :), intent(in) gaussian,
complex(kind=dp), dimension(:, :), intent(in) delta,
complex(kind=dp), dimension(:, :), intent(in) coefficients,
complex(kind=dp), dimension(:, :), intent(out) soft )

Evaluate inverse images on a field batch: U*chi=chi-Delta*W. Spatial derivatives use the corresponding derivative fields, with W fixed.

Parameters
gaussian...
delta...
coefficients...
soft...

Definition at line 676 of file upf_inverse.F.

Here is the caller graph for this function:

◆ upf_inverse_basis_response()

subroutine, public upf_inverse::upf_inverse_basis_response ( complex(kind=dp), dimension(:, :), intent(in) gaussian_response,
complex(kind=dp), dimension(:, :), intent(in) delta,
complex(kind=dp), dimension(:, :), intent(in) delta_response,
complex(kind=dp), dimension(:, :), intent(in) coefficients,
complex(kind=dp), dimension(:, :), intent(in) coefficients_response,
complex(kind=dp), dimension(:, :), intent(out) response )

Joint field response d(U*chi)=dchi-dDelta*W-Delta*dW.

Parameters
gaussian_response...
delta...
delta_response...
coefficients...
coefficients_response...
response...

Definition at line 697 of file upf_inverse.F.

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

◆ upf_inverse_operator()

subroutine, public upf_inverse::upf_inverse_operator ( complex(kind=dp), dimension(:, :), intent(in) gaussian_operator,
complex(kind=dp), dimension(:, :), intent(in) gaussian_delta,
complex(kind=dp), dimension(:, :), intent(in) delta_gaussian,
complex(kind=dp), dimension(:, :), intent(in) delta_operator,
complex(kind=dp), dimension(:, :), intent(in) augmentation,
complex(kind=dp), dimension(:, :), intent(in) coefficients,
complex(kind=dp), dimension(:, :), intent(out) transformed )

Pull back A+P^dagger*augmentation*P into reconstructed Gaussian variables.

Parameters
gaussian_operator<chi|A|chi>.
gaussian_delta<chi|A|Delta>.
delta_gaussian<Delta|A|chi>; supplied separately for non-Hermitian operators.
delta_operator<Delta|A|Delta>.
augmentationOriginal projector-space contribution; q for the metric, Dij+integral(v*Q) for nonlocal/local-augmentation terms.
coefficientsW=K^-1*B. Original operators are retained, including residuals.
transformed<U*chi|A|U*chi>+W^dagger*augmentation*W.

Definition at line 720 of file upf_inverse.F.

Here is the caller graph for this function:

◆ upf_inverse_operator_response()

subroutine, public upf_inverse::upf_inverse_operator_response ( complex(kind=dp), dimension(:, :), intent(in) gaussian_response,
complex(kind=dp), dimension(:, :), intent(in) gaussian_delta,
complex(kind=dp), dimension(:, :), intent(in) delta_gaussian,
complex(kind=dp), dimension(:, :), intent(in) delta_operator,
complex(kind=dp), dimension(:, :), intent(in) augmentation,
complex(kind=dp), dimension(:, :), intent(in) coefficients,
complex(kind=dp), dimension(:, :), intent(in) gaussian_delta_response,
complex(kind=dp), dimension(:, :), intent(in) delta_gaussian_response,
complex(kind=dp), dimension(:, :), intent(in) delta_operator_response,
complex(kind=dp), dimension(:, :), intent(in) augmentation_response,
complex(kind=dp), dimension(:, :), intent(in) coefficients_response,
complex(kind=dp), dimension(:, :), intent(out) response )

Differentiate the full operator pullback, including both inverse-basis legs. Matrix responses already include their moving original fields and quadratures. The stationary energy also requires the transformed-metric Pulay term.

Parameters
gaussian_response...
gaussian_delta...
delta_gaussian...
delta_operator...
augmentation...
coefficients...
gaussian_delta_response...
delta_gaussian_response...
delta_operator_response...
augmentation_response...
coefficients_response...
response...

Definition at line 750 of file upf_inverse.F.

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