sc::MBPT2(3)
πΈ NAME πΈ
okay so this is sc::MBPT2 from the MPQC manual β the class that implements several second-order perturbation theory methods. Itβs giving quantum-chemistry main character energy, and yes bestie, weβre getting into all of it π
β¨
β¨ SYNOPSIS β¨
#include <mbpt.h>
Inherits sc::Wavefunction.
Inherited by sc::MBPT2_R12.
π Public Member Functions
MBPT2 (StateIn &)MBPT2 (const Ref< KeyVal > &)β The KeyVal constructor.void save_data_state (StateOut &)β Save the base classes (withsave_data_state) and the members in the same order that the StateIn CTOR initializes them.Ref< SCF > ref ()double ref_energy ()double corr_energy ()RefSCVector ref_energy_gradient ()RefSCVector corr_energy_gradient ()int nelectron ()β Returns the number of electrons.int nfzcore () constint nfzvirt () constRefSymmSCMatrix density ()β Returns the SO density.int spin_polarized ()β Return1if the alpha density is not equal to the beta density.int gradient_implemented () constint value_implemented () constβ Information about the availability of values, gradients, and hessians.void symmetry_changed ()β Call this if you have changed the molecular symmetry of the molecule contained by thisMolecularEnergy.void obsolete ()β Marks all results as being out of date.void print (std::ostream &o=ExEnv::out0()) constβ Print information about the object.
π«Ά Protected Member Functions
void init_variables ()void compute ()β Recompute at least the results that have compute true and are not already computed.void eigen (RefDiagSCMatrix &vals, RefSCMatrix &vecs, RefDiagSCMatrix &occs)void compute_hsos_v1 ()distsize_t compute_v2_memory (int ni, int nfuncmax, int nbfme, int nshell, int ndocc, int nsocc, int nvir, int nproc)void compute_hsos_v2 ()void compute_hsos_v2_lb ()int compute_cs_batchsize (size_t mem_static, int nocc_act)distsize_t compute_cs_dynamic_memory (int ni, int nocc_act)int make_cs_gmat (RefSymmSCMatrix &Gmat, double *DPmat)int make_cs_gmat_new (RefSymmSCMatrix &Gmat, const RefSymmSCMatrix &DPmat)void form_max_dens (double *DPmat, signed char *maxp)int init_cs_gmat ()void done_cs_gmat ()int make_g_d_nor (RefSymmSCMatrix &Gmat, double *DPmat, const double *mgdbuff)void cs_cphf (double **scf_vector, double *Laj, double *eigval, RefSCMatrix &P2aj)void s2pdm_contrib (const double *intderbuf, double *PHF, double *P2AO, double **hf_ginter, double **ginter)void hcore_cs_grad (double *PHF, double *PMP2, double **hf_ginter, double **ginter)void overlap_cs_grad (double *WHF, double *WMP2, double **hf_ginter, double **ginter)void compute_cs_grad ()
π Protected Attributes
Ref< SCF > reference_Ref< MemoryGrp > memint nfzcint nfzvsize_t mem_allocdouble cphf_epsilon_int eliminate_in_gmat_const double * intbuf_Ref< TwoBodyInt > tbint_Ref< TwoBodyInt > * tbints_Ref< TwoBodyDerivInt > * tbintder_int nbasisint nosoRef< MessageGrp > msg_int nvirint noccint nsoccRef< ThreadGrp > thr_int dynamic_double print_percent_int max_norb_int * symorb_irrep_int * symorb_num_char * method_char * algorithm_int do_d1_int do_d2_int nfuncmaxdouble hf_energy_RefSCVector hf_gradient_double restart_ecorr_int restart_orbital_v1_int restart_orbital_memgrp_
π¦ Additional Inherited Members
yep, this page also has an Additional Inherited Members heading β the original just drops the heading and keeps it moving, no extra list here β¨
π DETAILED DESCRIPTION π
The MBPT2 class implements several second-order perturbation theory methods. Periodt. Thatβs the whole vibe, and now weβre gonna walk through the constructor tea π«
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
sc::MBPT2::MBPT2 (const Ref< KeyVal > &)
The KeyVal constructor. This is where you pass the setup details, bestie, and every key matters π
referenceβ This gives the reference wavefunction. It must be an object of typeCLSCFfor closed-shell molecules andHSOSSCFfor open-shell molecules. There is no default β not one, no cap.nfzcβ The number of frozen core orbitals. The default is0. If no atoms have an atomic number greater than30, then the number of orbitals to be frozen can be automatically determined by specifyingnfzc = auto.nfzvβ The number of frozen virtual orbitals. The default is0.memoryβ The amount of memory, in bytes, that each processor may use.methodβ This gives a string that must take on one of the values below. The default ismpfor closed-shell systems andzaptfor open-shell systems.mpβ UseM/ller-Plessetperturbation theory. This is only valid for closed-shell systems. Energies and gradients can be computed with this method.opt1β Use the OPT1 variant of open-shell perturbation theory. Only energies can be computed for open-shell systems.opt2β Use the OPT2 variant of open-shell perturbation theory. Only energies can be computed for open-shell systems.zaptβ Use the ZAPT variant of open-shell perturbation theory. Only energies can be computed for open-shell systems.
algorithmβ This gives a string that must take on one of the values given below. The default ismemgrpfor closed-shell systems. For open-shell systemsv1is used for a small number of processors andv2is used otherwise.memgrpβ Use the distributed shared memory algorithm (which uses aMemoryGrpobject). This is only valid for MP2 energies and gradients.v1β Use algorithm V1. Only energies can be computed. The maximum number of processors that can be utilized is the number of virtual orbitals. This algorithm computes few integrals than the others, but has higher communication requirements.v2β Use algorithm V2. Only energies can be computed. The maximum number of processors that can be utilized is the number of shells.v2lbβ Use a modified V2 algorithm that may compute more two electron integrals, but may get better load balance on the$O(n_thrm{basis}^5)$part of the calculation. Only energies can be computed. This is recommended only for computations involving large molecules (where the transformation is dominant) on very many processors (approaching the number of shells).
The v1 and v2 algorithms are discussed in Ida M. B. Nielsen and Edward T. Seidl, J. Comp. Chem. 16, 1301 (1995). The memgrp algorithm is discussed in Ida M. B. Nielsen, Chem. Phys. Lett. 255, 210 (1996). iconic citations, honestly π₯
memorygrpβ AMemoryGrpobject is used by thememgrpalgorithm. If this is not given the program will try to find an appropriate default.
π MEMBER FUNCTION DOCUMENTATION π
void sc::MBPT2::compute () [protected], [virtual]
Recompute at least the results that have compute true and are not already computed. This should only be called by Result's members.
Implements sc::Compute.
Reimplemented in sc::MBPT2_R12.
void sc::MBPT2::obsolete () [virtual]
Marks all results as being out of date. Any subsequent access to results will cause Compute::compute() to be called.
Reimplemented from sc::Compute.
Reimplemented in sc::MBPT2_R12.
void sc::MBPT2::save_data_state (StateOut &) [virtual]
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them. This must be implemented by the derived class if the class has data.
Reimplemented from sc::MolecularEnergy.
Reimplemented in sc::MBPT2_R12.
π AUTHOR π
Generated automatically by Doxygen for MPQC from the source code.
π Thatβs the whole MPQC sc::MBPT2(3) page, bestie β Version 2.3.1, Sun Oct 4 2020, straight from the source code. Byeee! π
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms