![]() |
(git:3d5d2e5)
|
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. | |
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.
| 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.
| pot | Original scalar NC/USPP and compatible projector-indexed hard/soft reference pairs. |
| degree | Largest Gaussian Cartesian degree plus derivatives or moments. |
| atomic | New owned one-center inverse, hard projectors and kinetic correction. |
| info | Zero on success, otherwise the atomic inverse-factorization status. |
| direct | Use original projectors and soft orbitals without reconstruction. |
Definition at line 72 of file upf_inverse.F.
| 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.
| pot | Original scalar USPP dataset. |
| degree | Largest Gaussian Cartesian degree including derivatives. |
| atomic | Difference projectors and their radial matrices. |
Definition at line 88 of file upf_inverse.F.
| 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.
| pot | Original radial mesh, quadrature and angular channel order. |
| kinetic | Compatible reference-wave interpolants. |
| matrix | Owned symmetric radial-channel T_hard-T_soft, without magnetic multiplicity. |
| difference_kinetic | Optional owned Delta kinetic matrix, required with difference_overlap. |
| difference_overlap | Optional owned Delta norm matrix, required with difference_kinetic. |
Definition at line 223 of file upf_inverse.F.
| 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.
| atomic | Original one-center matrices and transformed hard projectors. |
| coefficients | Hard projector bras against Gaussian AO columns. |
| delta_overlap | Delta bras against the same Gaussian columns. |
| delta_kinetic | Delta bras against the Gaussian kinetic operator. |
| kinetic_residual | Owned AO correction beyond hard D-T. |
| metric_residual | Owned AO correction beyond the original q minus wave-norm residual. |
Definition at line 300 of file upf_inverse.F.
| 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.
| pot | Original scalar dataset with compatible full-wave pairs. |
| kinetic | New radial caches in the original magnetic-projector order. |
Definition at line 332 of file upf_inverse.F.
| 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.
| kinetic | Original reference-wave caches, independent of the supplied charge Q. |
| displacement | Point minus original center, in bohr. |
| matrix | Symmetric kinetic augmentation in the native magnetic-projector order. |
| gradient | Optional Cartesian point gradient. Center motion has the opposite sign. |
Definition at line 361 of file upf_inverse.F.
| 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.
| pot | Original data with a complete full-wave pair for every beta projector. |
| degree | Required Cartesian degree, including derivatives or moments. |
| delta | Original radial quadrature and angular maps for (u_AE-u_PS)/r. |
Definition at line 414 of file upf_inverse.F.
| 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.
| pot | Original UPF data, with complete full waves for reconstructing channels. |
| beta | Original projector fields, without weights. |
| delta | Original reconstruction differences, without weights. |
| direct | Use original projectors and soft orbitals without reconstruction. |
| home_coupling | Optional on-site overlaps between the projectors and the reconstruction differences. |
Definition at line 435 of file upf_inverse.F.
| 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.
| beta_delta | P*Delta, including periodic images and Bloch phases. |
| inverse | New factors; a failed construction cannot reuse an earlier factorization. |
| info | Zero on success, LAPACK pivot on singularity, nproj+1 for poor conditioning, nproj+2 for nonfinite data. Failed factors must not be used. |
| minimum_rcond | Optional condition limit; no regularization changes the reconstruction. |
Definition at line 559 of file upf_inverse.F.
| 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.
| inverse | ... |
| beta_gaussian | B=P*chi, with one Gaussian function per column. |
| coefficients | W, using the already factored full K. |
Definition at line 618 of file upf_inverse.F.
| 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.
| inverse | ... |
| coefficients | ... |
| beta_gaussian_response | ... |
| beta_delta_response | ... |
| response | ... |
Definition at line 648 of file upf_inverse.F.
| 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.
| gaussian | ... |
| delta | ... |
| coefficients | ... |
| soft | ... |
Definition at line 676 of file upf_inverse.F.
| 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.
| gaussian_response | ... |
| delta | ... |
| delta_response | ... |
| coefficients | ... |
| coefficients_response | ... |
| response | ... |
Definition at line 697 of file upf_inverse.F.
| 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.
| 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>. |
| augmentation | Original projector-space contribution; q for the metric, Dij+integral(v*Q) for nonlocal/local-augmentation terms. |
| coefficients | W=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.
| 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.
| 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.