ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
verlet.h
Go to the documentation of this file.
1#ifndef VERLET_H
2#define VERLET_H
3
4#include "md_base.h"
5
10class Verlet : public MD_base
11{
12 public:
13 Verlet(
14 const MD_para &mdp_in,
15 const bool cal_stress_in,
16 const bool init_vel,
17 const int my_rank_in,
18 MDCell &mdcell_in);
19 ~Verlet();
20
21 private:
22 void setup(ModuleESolver::ESolver *p_esolver, const std::string &global_readin_dir, DomainDecomposition &decomp);
23 void first_half(std::ofstream &ofs);
24 void second_half();
25 void restart(const std::string &global_readin_dir);
26 void print_md(std::ofstream &ofs, const bool &cal_stress);
27 void write_restart(const std::string &global_out_dir);
28
33 void apply_thermostat();
34
42 void thermalize(const int &nraise, const double &current_temp, const double &target_temp);
43
50 void apply_csvr(const double &current_temp, const double &target_temp);
51};
52
53#endif
Domain decomposition for distributed and single-domain neighbor input.
Definition dom_decomp.h:32
Definition mdcell.h:29
bool cal_stress
whether calculate stress
Definition md_base.h:117
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
Definition md_base.cpp:13
Definition esolver.h:13
Verlet(const MD_para &mdp_in, const bool cal_stress_in, const bool init_vel, const int my_rank_in, MDCell &mdcell_in)
Definition verlet.cpp:10
void thermalize(const int &nraise, const double &current_temp, const double &target_temp)
rescale atomic velocities
Definition verlet.cpp:111
void apply_csvr(const double &current_temp, const double &target_temp)
apply CSVR thermostat
Definition verlet.cpp:129
void print_md(std::ofstream &ofs, const bool &cal_stress)
output MD information such as energy, temperature, and pressure
Definition verlet.cpp:199
void second_half()
the second half of equation of motion, update velocities
Definition verlet.cpp:43
~Verlet()
Definition verlet.cpp:20
void write_restart(const std::string &global_out_dir)
write the information into files used for MD restarting
Definition verlet.cpp:205
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.
Definition verlet.cpp:22
void first_half(std::ofstream &ofs)
the first half of equation of motion, update velocities and positions
Definition verlet.cpp:32
void restart(const std::string &global_readin_dir)
restart MD when md_restart is true
Definition verlet.cpp:211
void apply_thermostat()
apply specifical thermostats according to the input para
Definition verlet.cpp:54
input parameters used in md
Definition md_parameter.h:12