|
MADNESS 0.10.1
|
#include <MolecularOrbitals.h>


Public Member Functions | |
| MolecularOrbitals ()=default | |
| MolecularOrbitals (const MolecularOrbitals< T, NDIM > &other)=default | |
| MolecularOrbitals (const std::vector< Function< T, NDIM > > &mo) | |
| MolecularOrbitals (const std::vector< Function< T, NDIM > > &mo, const Tensor< double > &eps) | |
| MolecularOrbitals (const std::vector< Function< T, NDIM > > &mo, const Tensor< double > &eps, const std::vector< std::string > &irrep, const Tensor< double > &occ, const std::vector< int > &set) | |
| std::vector< Vector< typename Tensor< T >::scalar_type, 3 > > | compute_center (const Function< typename Tensor< T >::scalar_type, NDIM > metric2=Function< typename Tensor< T >::scalar_type, NDIM >()) const |
| Tensor< double > | get_eps () const |
| std::vector< std::string > | get_irreps () const |
| std::vector< int > | get_localize_sets () const |
| std::vector< Function< T, NDIM > > | get_mos () const |
| Tensor< double > | get_occ () const |
| MolecularOrbitals | get_subset (const int iset) const |
| void | invalidate_all () |
| void | invalidate_eps () |
| void | invalidate_irreps () |
| void | invalidate_localize_sets () |
| void | invalidate_mos () |
| void | invalidate_occ () |
| void | load_mos (archive::ParallelInputArchive<> &ar, const Molecule &molecule, const std::size_t nmo_from_input, const bool allow_fewer=false) |
| void | post_process_mos (World &world, const double thresh, const int k) |
| void | pretty_print (std::string message, std::vector< std::string > flags=std::vector< std::string >()) const |
| void | print_cubefiles (const std::string name, const std::vector< std::string > cubefile_header) const |
| void | print_frozen_orbitals (const long freeze) const |
| void | project_ao (World &world, const Tensor< T > &Saomo, const std::vector< Function< double, 3 > > &aos) |
| MolecularOrbitals & | recompute_irreps (const std::string pointgroup, const Function< typename Tensor< T >::scalar_type, NDIM > &metric) |
| MolecularOrbitals & | recompute_localize_sets (const double bandwidth=1.5) |
| group orbitals into sets of similar orbital energies for localization | |
| void | save_mos (archive::ParallelOutputArchive<> &ar, const Molecule &molecule) const |
| legacy code | |
| template<typename Archive> | |
| void | serialize (Archive &ar) |
| MolecularOrbitals & | set_all_orbitals_occupied () |
| MolecularOrbitals & | set_mos (const std::vector< Function< T, NDIM > > &mo_new) |
| setters will always invalidate all other member variables | |
| std::size_t | size () const |
| MolecularOrbitals & | update_localize_set (const std::vector< int > &set) |
| updates will keep other member variables | |
| MolecularOrbitals & | update_mos (const std::vector< Function< T, NDIM > > &mo_new) |
| updates will keep other member variables | |
| MolecularOrbitals & | update_mos_and_eps (const std::vector< Function< T, NDIM > > &mo_new, const Tensor< double > &eps_new) |
| updates will keep other member variables | |
| MolecularOrbitals & | update_occ (const Tensor< double > &occ_new) |
| void | write_to (std::vector< Function< T, NDIM > > &mo_out, Tensor< double > &eps_out, std::vector< std::string > &irrep_out, Tensor< double > &occ_out, std::vector< int > &set_out) const |
Static Public Member Functions | |
| static std::vector< Slice > | convert_set_to_slice (const std::vector< int > &localized_set) |
| static std::pair< MolecularOrbitals< T, NDIM >, MolecularOrbitals< T, NDIM > > | read_restartaodata (World &world, const Molecule &molecule, const bool have_beta) |
| uses AO-projection as a restart guess | |
| static std::pair< MolecularOrbitals< T, NDIM >, MolecularOrbitals< T, NDIM > > | read_restartdata (World &world, const std::string filename, const Molecule &molecule, const std::size_t nmo_alpha, const std::size_t nmo_beta) |
| reads amo and bmo from the restartdata file | |
| static void | save_restartaodata (World &world, const Molecule &molecule, const MolecularOrbitals< T, NDIM > &amo, const MolecularOrbitals< T, NDIM > &bmo, const AtomicBasisSet &aobasis) |
| save MOs in the AO projection for geometry restart | |
| static void | save_restartdata (World &world, const std::string filename, const Molecule &molecule, const MolecularOrbitals< T, NDIM > &amo, const MolecularOrbitals< T, NDIM > &bmo) |
| writes amo and bmo to a restartdata file | |
Private Attributes | |
| Tensor< double > | eps |
| std::vector< std::string > | irreps |
| std::vector< int > | localize_sets |
| std::vector< Function< T, NDIM > > | mo |
| Tensor< double > | occ |
Friends | |
| bool | similar (const MolecularOrbitals &mo1, const MolecularOrbitals &mo2, const double thresh=1.e-6) |
|
default |
References MolecularOrbitals().
Referenced by MolecularOrbitals(), get_subset(), print_frozen_orbitals(), read_restartaodata(), read_restartdata(), recompute_irreps(), recompute_localize_sets(), save_restartaodata(), save_restartdata(), set_all_orbitals_occupied(), set_mos(), similar, update_localize_set(), update_mos(), update_mos_and_eps(), and update_occ().
|
default |
|
inline |
References eps, irreps, localize_sets, mo, and occ.
|
inline |
References eps, irreps, localize_sets, mo, and occ.
|
inline |
References eps, irreps, localize_sets, mo, and occ.
| std::vector< Vector< typename Tensor< T >::scalar_type, 3 > > madness::MolecularOrbitals< T, NDIM >::compute_center | ( | const Function< typename Tensor< T >::scalar_type, NDIM > | metric2 = Function<typename Tensor<T>::scalar_type,NDIM>() | ) | const |
|
inlinestatic |
Referenced by madness::Localizer::check_core_valence_separation(), madness::MP2::check_core_valence_separation(), madness::Localizer::check_frozen_consistency(), madness::Localizer::determine_frozen_orbitals(), get_subset(), madness::Localizer::localize(), and madness::Localizer::undo_rotations_within_sets().
|
inlinenodiscard |
|
inlinenodiscard |
References irreps.
Referenced by pretty_print().
|
inline |
References localize_sets.
Referenced by madness::CC2::check_core_valence_separation(), madness::MP2::check_core_valence_separation(), compare_calc_and_mos(), madness::Localizer::compute_core_valence_separation_transformation_matrix(), madness::Localizer::compute_localization_matrix(), madness::Localizer::determine_frozen_orbitals(), madness::CC2::enforce_core_valence_separation(), madness::TDHF::enforce_core_valence_separation(), madness::SCF::load_mos(), madness::Localizer::localize(), pretty_print(), save_restartaodata(), and madness::Localizer::separate_core_valence().
|
inline |
References mo.
Referenced by compare_calc_and_mos(), madness::Localizer::compute_localization_matrix(), madness::Localizer::determine_frozen_orbitals(), madness::CC2::enforce_core_valence_separation(), madness::TDHF::enforce_core_valence_separation(), madness::SCF::load_mos(), madness::Localizer::localize(), madness::BSHApply< T, NDIM >::operator()(), print_cubefiles(), print_frozen_orbitals(), madness::HartreeFock< T, NDIM >::reset_orbitals(), save_restartaodata(), madness::Localizer::separate_core_valence(), test_ethylene(), and test_ne_boys().
|
inline |
References occ.
Referenced by compare_calc_and_mos(), madness::SCF::load_mos(), pretty_print(), recompute_localize_sets(), save_restartaodata(), test_ethylene(), and test_ne_boys().
|
inline |
References MolecularOrbitals(), convert_set_to_slice(), madness::copy(), eps, irreps, localize_sets, MADNESS_CHECK, mo, and occ.
Referenced by madness::Localizer::localize().
|
inline |
References invalidate_eps(), invalidate_irreps(), invalidate_localize_sets(), invalidate_mos(), and invalidate_occ().
Referenced by set_mos().
|
inline |
References eps.
Referenced by invalidate_all().
|
inline |
References irreps.
Referenced by invalidate_all().
|
inline |
References localize_sets.
Referenced by invalidate_all().
|
inline |
References mo.
Referenced by invalidate_all().
|
inline |
References occ.
Referenced by invalidate_all().
|
inline |
legacy code
| [in] | allow_fewer | return the archive's orbitals when it holds fewer than requested (the caller pads); otherwise that is an error |
References madness::copy(), eps, localize_sets, MADNESS_CHECK_THROW, mo, molecule, and occ.
Referenced by madness::SCF::load_mos(), and read_restartdata().
| void madness::MolecularOrbitals< T, NDIM >::post_process_mos | ( | World & | world, |
| const double | thresh, | ||
| const int | k ) |
|
inline |
References bufsize, get_eps(), get_irreps(), get_localize_sets(), get_occ(), irreps, mo, and madness::print().
Referenced by madness::MP2::check_core_valence_separation(), madness::Localizer::determine_frozen_orbitals(), print_frozen_orbitals(), test_ethylene(), and test_ne_boys().
| void madness::MolecularOrbitals< T, NDIM >::print_cubefiles | ( | const std::string | name, |
| const std::vector< std::string > | cubefile_header ) const |
| [in] | cubefile_header | header of the cube file, from molecule::cubefile_header() |
References madness::cubefile_header(), madness::filename, get_mos(), madness::name(), madness::plot_cubefile(), and size().
|
inline |
References MolecularOrbitals(), get_mos(), mo, pretty_print(), madness::print(), madness::World::rank(), and recompute_localize_sets().
Referenced by madness::TDHF::print_frozen_orbitals(), and madness::CC2::solve().
| void madness::MolecularOrbitals< T, NDIM >::project_ao | ( | World & | world, |
| const Tensor< T > & | Saomo, | ||
| const std::vector< Function< double, 3 > > & | aos ) |
References c, madness::convert(), madness::gesvp(), madness::matrix_inner(), mo, madness::orthonormalize_symmetric(), madness::transform(), and madness::truncate().
Referenced by read_restartaodata().
|
static |
uses AO-projection as a restart guess
References MolecularOrbitals(), aobasis, eps, molecule, occ, madness::print(), project_ao(), and madness::SCF::project_ao_basis_only().
Referenced by madness::Znemo::read_restartaodata(), and test_read_restartaodata().
|
inlinestatic |
reads amo and bmo from the restartdata file
References MolecularOrbitals(), madness::filename, load_mos(), and molecule.
Referenced by madness::Znemo::read_complex_guess(), madness::Znemo::read_real_guess(), test_read_restartaodata(), and test_read_restartdata().
| MolecularOrbitals< T, NDIM > & madness::MolecularOrbitals< T, NDIM >::recompute_irreps | ( | const std::string | pointgroup, |
| const Function< typename Tensor< T >::scalar_type, NDIM > & | metric ) |
References MolecularOrbitals(), irreps, mo, NDIM, and madness::print().
Referenced by madness::OEP::save_restartdata().
|
inline |
group orbitals into sets of similar orbital energies for localization
References MolecularOrbitals(), eps, get_occ(), mo, set_all_orbitals_occupied(), and update_localize_set().
Referenced by madness::CC2::check_core_valence_separation(), madness::MP2::check_core_valence_separation(), madness::Localizer::determine_frozen_orbitals(), madness::CC2::enforce_core_valence_separation(), madness::MP2::enforce_core_valence_separation(), madness::TDHF::enforce_core_valence_separation(), print_frozen_orbitals(), test_ethylene(), and test_ne_boys().
|
inline |
|
static |
save MOs in the AO projection for geometry restart
compute the aos in MRA projection as:
compute the aos in MRA projection as: std::vector<Function<double,3> > aos=SCF::project_ao_basis_only(world, calc.aobasis, calc.molecule);
References MolecularOrbitals(), aobasis, get_eps(), get_localize_sets(), get_mos(), get_occ(), madness::matrix_inner(), molecule, madness::SCF::project_ao_basis_only(), madness::World::rank(), madness::BaseTensor::size(), and size().
Referenced by madness::Znemo::save_orbitals(), and test_read_restartaodata().
|
inlinestatic |
writes amo and bmo to a restartdata file
The header is written through RestartMetadata, so an archive produced here is readable by SCF::load_mos. Most header fields describe an SCF this function does not have (energy, convergence, xc), so they keep their "unknown" defaults – a restart will treat these orbitals as a guess to iterate on rather than a converged answer, which is what they are.
References MolecularOrbitals(), madness::filename, madness::FunctionDefaults< NDIM >::get_k(), molecule, and save_mos().
|
inline |
|
inline |
References MolecularOrbitals(), mo, and occ.
Referenced by madness::Localizer::localize(), recompute_localize_sets(), madness::Localizer::separate_core_valence(), test_ethylene(), and test_ne_boys().
|
inline |
setters will always invalidate all other member variables
References MolecularOrbitals(), invalidate_all(), and mo.
Referenced by madness::Znemo::custom_guess(), and madness::Znemo::read_explicit_guess_functions().
|
inline |
References mo.
Referenced by print_cubefiles(), and save_restartaodata().
|
inline |
updates will keep other member variables
References MolecularOrbitals(), and localize_sets.
Referenced by recompute_localize_sets().
|
inline |
updates will keep other member variables
References MolecularOrbitals(), and mo.
Referenced by madness::Localizer::localize().
|
inline |
updates will keep other member variables
References MolecularOrbitals(), madness::copy(), eps, and mo.
Referenced by madness::Znemo::save_orbitals(), madness::OEP::save_restartdata(), test_ethylene(), and test_ne_boys().
|
inline |
References MolecularOrbitals(), and occ.
Referenced by madness::OEP::save_restartdata().
| void madness::MolecularOrbitals< T, NDIM >::write_to | ( | std::vector< Function< T, NDIM > > & | mo_out, |
| Tensor< double > & | eps_out, | ||
| std::vector< std::string > & | irrep_out, | ||
| Tensor< double > & | occ_out, | ||
| std::vector< int > & | set_out ) const |
References madness::Tensor< T >::clear(), madness::copy(), eps, irreps, localize_sets, mo, and occ.
|
friend |
References MolecularOrbitals(), eps, madness::FunctionDefaults< NDIM >::thresh, irreps, localize_sets, mo, madness::norm2(), and similar.
Referenced by similar.
|
private |
|
private |
|
private |
|
private |
Referenced by MolecularOrbitals(), MolecularOrbitals(), MolecularOrbitals(), compute_center(), get_mos(), get_subset(), invalidate_mos(), load_mos(), post_process_mos(), pretty_print(), print_frozen_orbitals(), project_ao(), recompute_irreps(), recompute_localize_sets(), save_mos(), serialize(), set_all_orbitals_occupied(), set_mos(), similar, size(), update_mos(), update_mos_and_eps(), and write_to().
|
private |