32 void restart(
const std::string& global_readin_dir);
Langevin method.
Definition langevin.h:15
void second_half()
the second half of equation of motion, update velocities
Definition langevin.cpp:52
void setup(ModuleESolver::ESolver *p_esolver, const std::string &global_readin_dir)
init before running md, calculate energy, force, and stress of the initial configuration.
Definition langevin.cpp:25
ModuleBase::Vector3< double > * total_force
total force = true force + Langevin fictitious_force
Definition langevin.h:40
~Langevin()
Definition langevin.cpp:19
void restart(const std::string &global_readin_dir)
restart MD when md_restart is true
Definition langevin.cpp:79
void first_half(std::ofstream &ofs)
the first half of equation of motion, update velocities and positions
Definition langevin.cpp:39
double md_damp
damping factor
Definition langevin.h:41
void print_md(std::ofstream &ofs, const bool &cal_stress)
output MD information such as energy, temperature, and pressure
Definition langevin.cpp:65
void post_force()
calculate fictitious forces
Definition langevin.cpp:86
void write_restart(const std::string &global_out_dir)
write the information into files used for MD restarting
Definition langevin.cpp:72
base class of md
Definition md_base.h:16
bool cal_stress
whether calculate stress
Definition md_base.h:93
3 elements vector
Definition vector3.h:22
Definition parameter.h:13