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

Go to the source code of this file.

Data Types

type  upf_inverse::upf_inverse_type
type  upf_inverse::upf_inverse_kinetic_type
type  upf_inverse::upf_inverse_atomic_type

Modules

module  upf_inverse
 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.

Functions/Subroutines

subroutine, public upf_inverse::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::upf_inverse_atomic_difference_init (pot, degree, atomic)
 Prepare the local difference integrals without factorizing a local inverse.
subroutine, public upf_inverse::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::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::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::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::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::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::upf_inverse_init (beta_delta, inverse, info, minimum_rcond)
 Factor K with original projector normalization and all supplied intercenter blocks.
subroutine, public upf_inverse::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::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::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::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::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::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.