occ
|
Class for molecular integration grids in DFT. More...
#include <molecular_grid.h>
Public Member Functions | |
MolecularGrid (const AOBasis &basis, const GridSettings &settings=GridSettings(), RadialGridMethod method=RadialGridMethod::LMG) | |
Constructor from AOBasis. | |
MolecularGrid (const Mat3N &positions, const IVec &atomic_numbers, const GridSettings &settings=GridSettings(), RadialGridMethod method=RadialGridMethod::LMG) | |
Constructor from custom positions and atomic numbers. | |
size_t | n_atoms () const |
Get the number of atoms. | |
AtomGrid | get_partitioned_atom_grid (size_t atom_idx) const |
Generate a partitioned atom grid for a specific atom. | |
AtomGrid | get_atom_grid (size_t atom_idx) const |
Generate an atom grid for a specific atomic number. | |
const GridSettings & | settings () const |
Get the grid settings. | |
void | populate_molecular_grid_points () |
Generate and initialize the molecular grid points. | |
const MolecularGridPoints & | get_molecular_grid_points () const |
Get the molecular grid points. | |
void | set_atomic_radii (const Vec &) |
const Vec & | atomic_radii () const |
Class for molecular integration grids in DFT.
This class manages the creation and manipulation of molecular integration grids for density functional theory calculations. It supports various grid generation methods and can work with either basis set information or user-provided data.
occ::dft::MolecularGrid::MolecularGrid | ( | const AOBasis & | basis, |
const GridSettings & | settings = GridSettings() , |
||
RadialGridMethod | method = RadialGridMethod::LMG |
||
) |
Constructor from AOBasis.
Creates a molecular grid based on basis set information.
basis | Basis set information |
settings | Grid settings |
method | Grid generation method |
occ::dft::MolecularGrid::MolecularGrid | ( | const Mat3N & | positions, |
const IVec & | atomic_numbers, | ||
const GridSettings & | settings = GridSettings() , |
||
RadialGridMethod | method = RadialGridMethod::LMG |
||
) |
Constructor from custom positions and atomic numbers.
Creates a molecular grid based on user-provided atomic positions and numbers.
positions | Atomic positions (3 x N matrix) |
atomic_numbers | Atomic numbers |
settings | Grid settings |
method | Grid generation method |
|
inline |
AtomGrid occ::dft::MolecularGrid::get_atom_grid | ( | size_t | atom_idx | ) | const |
Generate an atom grid for a specific atomic number.
atomic_number | Atomic number |
const MolecularGridPoints & occ::dft::MolecularGrid::get_molecular_grid_points | ( | ) | const |
Get the molecular grid points.
AtomGrid occ::dft::MolecularGrid::get_partitioned_atom_grid | ( | size_t | atom_idx | ) | const |
Generate a partitioned atom grid for a specific atom.
atom_idx | Index of the atom |
size_t occ::dft::MolecularGrid::n_atoms | ( | ) | const |
Get the number of atoms.
void occ::dft::MolecularGrid::populate_molecular_grid_points | ( | ) |
Generate and initialize the molecular grid points.
This method generates the actual grid points for the molecular calculation. It is called automatically when needed, but can also be called explicitly.
void occ::dft::MolecularGrid::set_atomic_radii | ( | const Vec & | ) |
const GridSettings & occ::dft::MolecularGrid::settings | ( | ) | const |
Get the grid settings.