ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vdw::Vdw Class Referenceabstract

#include <vdw.h>

Inheritance diagram for vdw::Vdw:
Collaboration diagram for vdw::Vdw:

Public Member Functions

 Vdw (const UnitCell &unit_in)
 
virtual ~Vdw ()=default
 
double get_energy (bool cal=true)
 
const std::vector< ModuleBase::Vector3< double > > & get_force (bool cal=true)
 
const ModuleBase::Matrix3get_stress (bool cal=true)
 

Protected Member Functions

virtual void cal_energy ()=0
 
virtual void cal_force ()=0
 
virtual void cal_stress ()=0
 

Protected Attributes

const UnitCellucell_
 
double energy_ = 0
 
std::vector< ModuleBase::Vector3< double > > force_
 
ModuleBase::Matrix3 stress_
 

Constructor & Destructor Documentation

◆ Vdw()

vdw::Vdw::Vdw ( const UnitCell unit_in)
inline

◆ ~Vdw()

virtual vdw::Vdw::~Vdw ( )
virtualdefault

Member Function Documentation

◆ cal_energy()

virtual void vdw::Vdw::cal_energy ( )
protectedpure virtual

Implemented in vdw::Vdwd2, and vdw::Vdwd3.

Here is the caller graph for this function:

◆ cal_force()

virtual void vdw::Vdw::cal_force ( )
protectedpure virtual

Implemented in vdw::Vdwd2, and vdw::Vdwd3.

Here is the caller graph for this function:

◆ cal_stress()

virtual void vdw::Vdw::cal_stress ( )
protectedpure virtual

Implemented in vdw::Vdwd2, and vdw::Vdwd3.

Here is the caller graph for this function:

◆ get_energy()

double vdw::Vdw::get_energy ( bool  cal = true)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_force()

const std::vector< ModuleBase::Vector3< double > > & vdw::Vdw::get_force ( bool  cal = true)
inline
Here is the call graph for this function:

◆ get_stress()

const ModuleBase::Matrix3 & vdw::Vdw::get_stress ( bool  cal = true)
inline
Here is the call graph for this function:

Member Data Documentation

◆ energy_

double vdw::Vdw::energy_ = 0
protected

◆ force_

std::vector<ModuleBase::Vector3<double> > vdw::Vdw::force_
protected

◆ stress_

ModuleBase::Matrix3 vdw::Vdw::stress_
protected

◆ ucell_

const UnitCell& vdw::Vdw::ucell_
protected

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