the md methods based on the velocity-Verlet equation
More...
#include <verlet.h>
|
| | Verlet (const MD_para &mdp_in, const bool cal_stress_in, const bool init_vel, const int my_rank_in, MDCell &mdcell_in) |
| | ~Verlet () |
| | 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
|
|
| 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 | restart (const std::string &global_readin_dir) |
| | restart MD when md_restart is true
|
| void | print_md (std::ofstream &ofs, const bool &cal_stress) |
| | output MD information such as energy, temperature, and pressure
|
| void | write_restart (const std::string &global_out_dir) |
| | write the information into files used for MD restarting
|
| void | apply_thermostat () |
| | apply specifical thermostats according to the input para
|
| void | thermalize (const int &nraise, const double ¤t_temp, const double &target_temp) |
| | rescale atomic velocities
|
| void | apply_csvr (const double ¤t_temp, const double &target_temp) |
| | apply CSVR thermostat
|
the md methods based on the velocity-Verlet equation
◆ Verlet()
| Verlet::Verlet |
( |
const MD_para & | mdp_in, |
|
|
const bool | cal_stress_in, |
|
|
const bool | init_vel, |
|
|
const int | my_rank_in, |
|
|
MDCell & | mdcell_in ) |
◆ ~Verlet()
◆ apply_csvr()
| void Verlet::apply_csvr |
( |
const double & | current_temp, |
|
|
const double & | target_temp ) |
|
private |
apply CSVR thermostat
- Parameters
-
| current_temp | the current temperature |
| target_temp | the target temperature |
◆ apply_thermostat()
| void Verlet::apply_thermostat |
( |
void | | ) |
|
|
private |
apply specifical thermostats according to the input para
◆ first_half()
| void Verlet::first_half |
( |
std::ofstream & | ofs | ) |
|
|
privatevirtual |
the first half of equation of motion, update velocities and positions
- Parameters
-
| ofs | determine the output files |
Reimplemented from MD_base.
◆ print_md()
| void Verlet::print_md |
( |
std::ofstream & | ofs, |
|
|
const bool & | cal_stress ) |
|
privatevirtual |
output MD information such as energy, temperature, and pressure
- Parameters
-
| ofs | determine the output files |
| cal_stress | whether calculate and output stress |
Reimplemented from MD_base.
◆ restart()
| void Verlet::restart |
( |
const std::string & | global_readin_dir | ) |
|
|
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.
- Parameters
-
| global_readin_dir | directory of files for reading |
Reimplemented from MD_base.
◆ second_half()
| void Verlet::second_half |
( |
void | | ) |
|
|
privatevirtual |
the second half of equation of motion, update velocities
Reimplemented from MD_base.
◆ setup()
init before running md, calculate energy, force, and stress of the initial configuration.
- Parameters
-
| p_esolver | the energy solver used in md |
| global_readin_dir | directory of files for reading |
Reimplemented from MD_base.
◆ thermalize()
| void Verlet::thermalize |
( |
const int & | nraise, |
|
|
const double & | current_temp, |
|
|
const double & | target_temp ) |
|
private |
rescale atomic velocities
- Parameters
-
| nraise | a parameter related to thermostats |
| current_temp | the current temperature |
| target_temp | the target temperature |
◆ write_restart()
| void Verlet::write_restart |
( |
const std::string & | global_out_dir | ) |
|
|
privatevirtual |
write the information into files used for MD restarting
- Parameters
-
| global_out_dir | directory of output files |
Reimplemented from MD_base.
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_md/verlet.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_md/verlet.cpp