wavefunction_analysis.property package
Submodules
wavefunction_analysis.property.delta_scf module
- class Delta_UKS(mol, xc='LDA,VWN')[source]
Bases:
GKS- get_occ(mo_energy=None, mo_coeff=None)
- def get_jk(self, mol=None, dm=None, hermi=0, with_j=True, with_k=True,
omega=None):
if mol is None: mol = self.mol if dm is None: dm = self.make_rdm1() vj, vk = super().get_jk(mol, dm, hermi, with_j, with_k, omega)
ispin = self.spin_image if ispin:
nao = mol.nao kaa, kbb = np.copy(vk[:nao,:nao]), np.copy(vk[nao:,nao:]) print_matrix(‘jaa:’, vj[:nao,:nao], 10) print_matrix(‘kaa:’, kaa, 10) print_matrix(‘jbb:’, vj[nao:,nao:], 10) print_matrix(‘kbb:’, kbb, 10) vk[:nao,:nao] += ispin * kbb vk[nao:,nao:] += ispin * kaa
return vj, vk
- get_veff(mol=None, dm=None, dm_last=0, vhf_last=0, hermi=1)[source]
Coulomb + XC functional
Note
This function will change the ks object.
- Parameters:
ks – an instance of
RKSXC functional are controlled by ks.xc attribute. Attribute ks.grids might be initialized.dm – ndarray or list of ndarrays A density matrix or a list of density matrices
- Kwargs:
- dm_lastndarray or a list of ndarrays or 0
The density matrix baseline. If not 0, this function computes the increment of HF potential w.r.t. the reference HF potential matrix.
- vhf_lastndarray or a list of ndarrays or 0
The reference Vxc potential matrix.
- hermiint
Whether J, K matrix is hermitian
0 : no hermitian or symmetric1 : hermitian2 : anti-hermitian
- Returns:
matrix Veff = J + Vxc. Veff can be a list matrices, if the input dm is a list of density matrices.
wavefunction_analysis.property.energy_density_plot module
- class EnergyDensity(atom, functional, basis, ecp=None, charge=0, max_memory=4000, efield=None, debug=False)[source]
Bases:
objectground-state energy density: j_only(), jk(), xc() excited-state energy density: coulomb_only(), coulomb_exchange(), functional()
- decompose_energy_density(directory, nstates=1, estate=0, plotnum=3, grid_type=1, nxyz=0.1, dohirshfeld=True, dobecke=True, withcharge=False, decompose_es=True, cal_another_attraction=False)[source]
- decompose_energy_density_es(directory, hf_type, has_xc, ie, grid_type=1, dohirshfeld=True, dobecke=True)[source]
- energy_density_coulomb_exchange(dm1, dm2, dm3, dm4, rho_value1, rho_value2, hf_type)[source]
dm1, dm2: ground-state, difference, transition, transition_symmetric dm rho_value1, rho_value2: difference, transition rho_value
- energy_density_coulomb_only(dm1, dm2, rho_value1, rho_value2)[source]
dm1, dm2: ground-state, transition_symmetric dm rho_value1, rho_value2: difference, transition rho_value