|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <esolver_forcefields.h>
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. | |
| ModuleESolver::esolver_forcefields::esolver_forcefields | ( | std::unique_ptr< ModuleMD::ForceField > | potential, |
| std::ofstream & | running_log ) |
|
overridedefault |
|
overridevirtual |
perform post processing calculations
Implements ModuleESolver::ESolver.
|
overridevirtual |
initialize the energy solver by using input parameters and cell modules
Implements ModuleESolver::ESolver.
|
overridevirtual |
calculate total energy of a given system
Implements ModuleESolver::ESolver.
|
overridevirtual |
calcualte forces for the atoms in the given cell
Implements ModuleESolver::ESolver.
|
overridevirtual |
calcualte stress of given cell
Implements ModuleESolver::ESolver.
|
overridevirtual |
run energy solver
Implements ModuleESolver::ESolver.
|
private |
|
private |
|
private |
|
private |
|
private |