|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <fire.h>
Public Member Functions | |
| FIRE (const MD_para &mdp_in, const bool cal_stress_in, const bool init_vel, const int my_rank_in, const double force_thr_in, MDCell &mdcell_in) | |
| ~FIRE () | |
| double | get_alpha () const |
| mixing coefficient of the FIRE velocity update | |
| double | get_dt_max () const |
| largest time step the adaptive scheme is allowed to reach | |
| int | get_negative_count () const |
| number of consecutive steps with negative power | |
| Public Member Functions inherited from MD_base | |
| MD_base (const MD_para &mdp_in, const bool cal_stress_in, const bool init_vel, const int my_rank_in, MDCell &mdcell_in) | |
| construct the integrator from the values it actually uses | |
| virtual | ~MD_base () |
| double | get_md_dt () const |
| the time increment in a.u., converted from mdp.md_dt | |
Private Member Functions | |
| void | setup (ModuleESolver::ESolver *p_esolver, const std::string &global_readin_dir, DomainDecomposition &decomp) |
| init before running md, calculate energy, force, and stress of the initial configuration. | |
| void | first_half (std::ofstream &ofs) |
| the first half of equation of motion, update velocities and positions | |
| void | second_half () |
| the second half of equation of motion, update velocities | |
| void | print_md (std::ofstream &ofs, const bool &cal_stress) |
| output MD information such as energy, temperature, and pressure | |
| void | restart (const std::string &global_readin_dir) |
| restart MD when md_restart is true | |
| void | write_restart (const std::string &global_out_dir) |
| write the information into files used for MD restarting | |
| void | check_force (void) |
| check the atomic forces converged or not | |
| void | check_fire (void) |
| update related parameters | |
Private Attributes | |
| double | max |
| max force | |
| double | alpha_start |
| alpha_start begin | |
| double | alpha |
| alpha begin | |
| double | finc |
| finc begin | |
| double | fdec |
| fdec begin | |
| double | f_alpha |
| f_alpha | |
| int | n_min |
| n_min | |
| double | dt_max |
| dt_max | |
| int | negative_count |
| Negative count. | |
| double | force_thr |
| force convergence threshold in FIRE method | |
Additional Inherited Members | |
| Public Attributes inherited from MD_base | |
| bool | stop |
| MD stop or not. | |
| double | t_current |
| current temperature | |
| int | step_ |
| the MD step finished in current calculation | |
| int | step_rst_ |
| the MD step finished in previous calculations | |
| std::int64_t | frozen_freedom_ |
| the fixed freedom of the system | |
| ModuleBase::matrix | virial |
| virial for this lattice | |
| ModuleBase::matrix | stress |
| stress for this lattice | |
| double | potential = 0.0 |
| potential energy | |
| double | kinetic |
| kinetic energy | |
| Protected Member Functions inherited from MD_base | |
| virtual void | update_pos () |
| perform one step update of pos due to atomic velocity | |
| virtual void | update_vel () |
| perform half-step update of vel due to atomic force | |
| Protected Attributes inherited from MD_base | |
| const MD_para & | mdp |
| input parameters used in md | |
| MDCell & | mdcell |
| mdcell information | |
| double | energy_ = 0.0 |
| total energy of the system | |
| bool | cal_stress |
| whether calculate stress | |
| int | my_rank |
| MPI rank of the processor. | |
| double | md_dt |
| Time increment (hbar/E_hartree). | |
| double | md_tfirst |
| Temperature (in Hartree, 1 Hartree ~ 3E5 K). | |
| double | md_tlast |
| Target temperature. | |
FIRE method.
A MD-based relaxation algorithm, named fast inertial relaxation engine. [Phys. Rev. Lett. 97, 170201 (2006)] It is based on conventional molecular dynamics with additional velocity modifications and adaptive time steps. The MD trajectory will descend to an energy-minimum.
| FIRE::FIRE | ( | const MD_para & | mdp_in, |
| const bool | cal_stress_in, | ||
| const bool | init_vel, | ||
| const int | my_rank_in, | ||
| const double | force_thr_in, | ||
| MDCell & | mdcell_in ) |
| force_thr_in | force convergence threshold used by the FIRE descent |
| FIRE::~FIRE | ( | ) |
|
private |
update related parameters
initial dt_max
|
private |
check the atomic forces converged or not
|
privatevirtual |
the first half of equation of motion, update velocities and positions
| ofs | determine the output files |
Reimplemented from MD_base.
|
inline |
|
inline |
largest time step the adaptive scheme is allowed to reach
|
inline |
number of consecutive steps with negative power
|
privatevirtual |
output MD information such as energy, temperature, and pressure
| ofs | determine the output files |
| cal_stress | whether calculate and output stress |
Reimplemented from MD_base.
|
privatevirtual |
restart MD when md_restart is true
Public counterpart of write_restart(): setup() calls it internally when md_restart is set, and a caller that has just written a restart file may read it back through here.
| global_readin_dir | directory of files for reading |
Reimplemented from MD_base.
|
privatevirtual |
the second half of equation of motion, update velocities
Reimplemented from MD_base.
|
privatevirtual |
init before running md, calculate energy, force, and stress of the initial configuration.
| p_esolver | the energy solver used in md |
| global_readin_dir | directory of files for reading |
Reimplemented from MD_base.
|
privatevirtual |
write the information into files used for MD restarting
| global_out_dir | directory of output files |
Reimplemented from MD_base.
|
private |
alpha begin
|
private |
alpha_start begin
|
private |
dt_max
|
private |
f_alpha
|
private |
fdec begin
|
private |
finc begin
|
private |
force convergence threshold in FIRE method
|
private |
max force
|
private |
n_min
|
private |
Negative count.