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

#include <esolver_forcefields.h>

Inheritance diagram for ModuleESolver::esolver_forcefields:
Collaboration diagram for ModuleESolver::esolver_forcefields:

Public Member Functions

 esolver_forcefields (std::unique_ptr< ModuleMD::ForceField > potential, std::ofstream &running_log)
 ~esolver_forcefields () override
void before_all_runners (BaseCell &cell, const Input_para &inp) override
 initialize the energy solver by using input parameters and cell modules
void runner (BaseCell &cell, int istep) override
 run energy solver
double cal_energy () override
 calculate total energy of a given system
void cal_force (BaseCell &cell, ModuleBase::matrix &force) override
 calcualte forces for the atoms in the given cell
void cal_stress (BaseCell &cell, ModuleBase::matrix &stress) override
 calcualte stress of given cell
void after_all_runners (BaseCell &cell) override
 perform post processing calculations
Public Member Functions inherited from ModuleESolver::ESolver
 ESolver ()
virtual ~ESolver ()
virtual void others (BaseCell &, const int)

Private Attributes

std::unique_ptr< ModuleMD::ForceField > potential_
std::ofstream & running_log_
double energy_ = 0.0
ModuleBase::matrix force_
ModuleBase::matrix stress_

Additional Inherited Members

Public Attributes inherited from ModuleESolver::ESolver
bool conv_esolver = true
std::string classname
Protected Attributes inherited from ModuleESolver::ESolver
const Input_para * inp_ = nullptr
 Bound in before_all_runners; members use inp_->xxx instead of PARAM.inp.xxx.

Constructor & Destructor Documentation

◆ esolver_forcefields()

ModuleESolver::esolver_forcefields::esolver_forcefields ( std::unique_ptr< ModuleMD::ForceField > potential,
std::ofstream & running_log )

◆ ~esolver_forcefields()

ModuleESolver::esolver_forcefields::~esolver_forcefields ( )
overridedefault

Member Function Documentation

◆ after_all_runners()

void ModuleESolver::esolver_forcefields::after_all_runners ( BaseCell & cell)
overridevirtual

perform post processing calculations

Implements ModuleESolver::ESolver.

◆ before_all_runners()

void ModuleESolver::esolver_forcefields::before_all_runners ( BaseCell & cell,
const Input_para & inp )
overridevirtual

initialize the energy solver by using input parameters and cell modules

Implements ModuleESolver::ESolver.

Here is the caller graph for this function:

◆ cal_energy()

double ModuleESolver::esolver_forcefields::cal_energy ( )
overridevirtual

calculate total energy of a given system

Implements ModuleESolver::ESolver.

Here is the caller graph for this function:

◆ cal_force()

void ModuleESolver::esolver_forcefields::cal_force ( BaseCell & cell,
ModuleBase::matrix & force )
overridevirtual

calcualte forces for the atoms in the given cell

Implements ModuleESolver::ESolver.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cal_stress()

void ModuleESolver::esolver_forcefields::cal_stress ( BaseCell & cell,
ModuleBase::matrix & stress )
overridevirtual

calcualte stress of given cell

Implements ModuleESolver::ESolver.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ runner()

void ModuleESolver::esolver_forcefields::runner ( BaseCell & cell,
int istep )
overridevirtual

run energy solver

Implements ModuleESolver::ESolver.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ energy_

double ModuleESolver::esolver_forcefields::energy_ = 0.0
private

◆ force_

ModuleBase::matrix ModuleESolver::esolver_forcefields::force_
private

◆ potential_

std::unique_ptr<ModuleMD::ForceField> ModuleESolver::esolver_forcefields::potential_
private

◆ running_log_

std::ofstream& ModuleESolver::esolver_forcefields::running_log_
private

◆ stress_

ModuleBase::matrix ModuleESolver::esolver_forcefields::stress_
private

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