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

#include <ions_move_methods.h>

Collaboration diagram for Ions_Move_Methods:

Public Member Functions

 Ions_Move_Methods ()
 ~Ions_Move_Methods ()
void allocate (const int &natom, const std::string &relax_method)
void cal_movement (const int &istep, const int &force_step, const ModuleBase::matrix &f, const double &etot, UnitCell &ucell, std::ofstream &ofs, std::string &relax_method, const Relax_Criteria &criteria)
void reset_after_cell_change (const std::string &relax_method, std::ofstream &ofs)
bool get_converged () const
double get_ediff () const
double get_largest_grad () const
double get_trust_radius () const
int get_update_iter () const
void set_converged (const bool value)
void set_update_iter (const int value)
std::vector< double > & get_etot_info ()
 {etot, etot_p} of the current and previous step
Ions_Move_BFGS & get_bfgs ()
 the BFGS optimiser used by relax_method "bfgs"
Ions_Move_BFGS2 & get_bfgs_trad ()
 the traditional BFGS optimiser used by relax_method "bfgs_trad"

Private Attributes

Ions_Move_BFGS bfgs
Ions_Move_CG cg
Ions_Move_SD sd
Ions_Move_BFGS2 bfgs_trad
Ions_Move_LBFGS lbfgs
bool converged_ = false
int update_iter_ = 0
std::vector< double > etot_info_ {0.0, 0.0}

Constructor & Destructor Documentation

◆ Ions_Move_Methods()

Ions_Move_Methods::Ions_Move_Methods ( )

◆ ~Ions_Move_Methods()

Ions_Move_Methods::~Ions_Move_Methods ( )

Member Function Documentation

◆ allocate()

void Ions_Move_Methods::allocate ( const int & natom,
const std::string & relax_method )
Here is the call graph for this function:

◆ cal_movement()

void Ions_Move_Methods::cal_movement ( const int & istep,
const int & force_step,
const ModuleBase::matrix & f,
const double & etot,
UnitCell & ucell,
std::ofstream & ofs,
std::string & relax_method,
const Relax_Criteria & criteria )
Here is the call graph for this function:

◆ get_bfgs()

Ions_Move_BFGS & Ions_Move_Methods::get_bfgs ( )
inline

the BFGS optimiser used by relax_method "bfgs"

◆ get_bfgs_trad()

Ions_Move_BFGS2 & Ions_Move_Methods::get_bfgs_trad ( )
inline

the traditional BFGS optimiser used by relax_method "bfgs_trad"

◆ get_converged()

bool Ions_Move_Methods::get_converged ( ) const
inline

◆ get_ediff()

double Ions_Move_Methods::get_ediff ( ) const
inline

◆ get_etot_info()

std::vector< double > & Ions_Move_Methods::get_etot_info ( )
inline

{etot, etot_p} of the current and previous step

◆ get_largest_grad()

double Ions_Move_Methods::get_largest_grad ( ) const
inline

◆ get_trust_radius()

double Ions_Move_Methods::get_trust_radius ( ) const
inline

◆ get_update_iter()

int Ions_Move_Methods::get_update_iter ( ) const
inline

◆ reset_after_cell_change()

void Ions_Move_Methods::reset_after_cell_change ( const std::string & relax_method,
std::ofstream & ofs )
Here is the call graph for this function:

◆ set_converged()

void Ions_Move_Methods::set_converged ( const bool value)
inline

◆ set_update_iter()

void Ions_Move_Methods::set_update_iter ( const int value)
inline

Member Data Documentation

◆ bfgs

Ions_Move_BFGS Ions_Move_Methods::bfgs
private

◆ bfgs_trad

Ions_Move_BFGS2 Ions_Move_Methods::bfgs_trad
private

◆ cg

Ions_Move_CG Ions_Move_Methods::cg
private

◆ converged_

bool Ions_Move_Methods::converged_ = false
private

◆ etot_info_

std::vector<double> Ions_Move_Methods::etot_info_ {0.0, 0.0}
private

◆ lbfgs

Ions_Move_LBFGS Ions_Move_Methods::lbfgs
private

◆ sd

Ions_Move_SD Ions_Move_Methods::sd
private

◆ update_iter_

int Ions_Move_Methods::update_iter_ = 0
private

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