ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
langevin.h
Go to the documentation of this file.
1#ifndef LANGEVIN_H
2#define LANGEVIN_H
3
4#include "md_base.h"
5
14class Langevin : public MD_base
15{
16 public:
17 Langevin(const Parameter& param_in, UnitCell& unit_in);
18
19 ~Langevin();
20
21 private:
22 void setup(ModuleESolver::ESolver* p_esolver, const std::string& global_readin_dir);
23
24 void first_half(std::ofstream& ofs);
25
26 void second_half();
27
28 void print_md(std::ofstream& ofs, const bool& cal_stress);
29
30 void write_restart(const std::string& global_out_dir);
31
32 void restart(const std::string& global_readin_dir);
33
38 void post_force();
39
41 double md_damp;
42};
43
44#endif
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 esolver.h:11
Definition parameter.h:13
Definition unitcell.h:16