ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
vdw::Vdwd4 Class Reference

#include <vdwd4.h>

Inheritance diagram for vdw::Vdwd4:
Collaboration diagram for vdw::Vdwd4:

Public Member Functions

 Vdwd4 (const UnitCell &unit_in, const std::string &xc_name, const Input_para &input)
 ~Vdwd4 () override=default
Public Member Functions inherited from vdw::Vdw
 Vdw (const UnitCell &unit_in)
virtual ~Vdw ()=default
VdwResult evaluate (const VdwRequest &request)

Private Member Functions

void evaluate_impl (const VdwRequest &request, VdwResult &result) override
void set_force_from_gradient (const std::vector< double > &gradient_ha_bohr, const std::vector< int > &atom_indices, VdwResult &result) const
void set_stress_from_sigma (const std::array< double, 9 > &sigma_ha, VdwResult &result) const
void build_structure (std::vector< int > &numbers, std::vector< double > &positions, std::vector< double > &lattice, std::array< bool, 3 > &periodic, std::vector< int > &atom_indices) const
void compute (double &energy_ha, std::vector< double > *gradient_ha_bohr, std::array< double, 9 > *sigma_ha, std::vector< int > &atom_indices)

Private Attributes

std::string xc_name_
std::string model_name_
double cutoff_disp2_ = 0.0
double cutoff_disp3_ = 0.0
double cutoff_cn_ = 0.0
double smooth_width_2b_ = 0.0
double smooth_width_3b_ = 0.0
double total_charge_ = 0.0

Additional Inherited Members

Protected Attributes inherited from vdw::Vdw
const UnitCell & ucell_

Constructor & Destructor Documentation

◆ Vdwd4()

vdw::Vdwd4::Vdwd4 ( const UnitCell & unit_in,
const std::string & xc_name,
const Input_para & input )
Here is the call graph for this function:

◆ ~Vdwd4()

vdw::Vdwd4::~Vdwd4 ( )
overridedefault

Member Function Documentation

◆ build_structure()

void vdw::Vdwd4::build_structure ( std::vector< int > & numbers,
std::vector< double > & positions,
std::vector< double > & lattice,
std::array< bool, 3 > & periodic,
std::vector< int > & atom_indices ) const
private
Here is the caller graph for this function:

◆ compute()

void vdw::Vdwd4::compute ( double & energy_ha,
std::vector< double > * gradient_ha_bohr,
std::array< double, 9 > * sigma_ha,
std::vector< int > & atom_indices )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ evaluate_impl()

void vdw::Vdwd4::evaluate_impl ( const VdwRequest & request,
VdwResult & result )
overrideprivatevirtual

Implements vdw::Vdw.

Here is the call graph for this function:

◆ set_force_from_gradient()

void vdw::Vdwd4::set_force_from_gradient ( const std::vector< double > & gradient_ha_bohr,
const std::vector< int > & atom_indices,
VdwResult & result ) const
private
Here is the caller graph for this function:

◆ set_stress_from_sigma()

void vdw::Vdwd4::set_stress_from_sigma ( const std::array< double, 9 > & sigma_ha,
VdwResult & result ) const
private
Here is the caller graph for this function:

Member Data Documentation

◆ cutoff_cn_

double vdw::Vdwd4::cutoff_cn_ = 0.0
private

◆ cutoff_disp2_

double vdw::Vdwd4::cutoff_disp2_ = 0.0
private

◆ cutoff_disp3_

double vdw::Vdwd4::cutoff_disp3_ = 0.0
private

◆ model_name_

std::string vdw::Vdwd4::model_name_
private

◆ smooth_width_2b_

double vdw::Vdwd4::smooth_width_2b_ = 0.0
private

◆ smooth_width_3b_

double vdw::Vdwd4::smooth_width_3b_ = 0.0
private

◆ total_charge_

double vdw::Vdwd4::total_charge_ = 0.0
private

◆ xc_name_

std::string vdw::Vdwd4::xc_name_
private

The documentation for this class was generated from the following files: