20 const bool cal_stress_in,
47 void restart(
const std::string &global_readin_dir);
62 void rescale(std::ofstream &ofs,
const double &volume);
76 std::vector<ModuleBase::Vector3<double>>
old_v;
Domain decomposition for distributed and single-domain neighbor input.
Definition dom_decomp.h:32
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
double msst_vis
artificial msst_vis (mass/length/time)
Definition msst.h:87
double vsum
sum over v^2
Definition msst.h:84
void rescale(std::ofstream &ofs, const double &volume)
rescale the lattice and velocities
Definition msst.cpp:264
double v0
initial volume
Definition msst.h:80
void restart(const std::string &global_readin_dir)
restart MD when md_restart is true
Definition msst.cpp:202
const ModuleBase::Vector3< double > & get_omega() const
time derivative of the volume, per lattice direction
Definition msst.h:27
double get_v0() const
volume of the initial configuration
Definition msst.h:33
double vel_sum() const
get the sum of square of velocities
Definition msst.cpp:250
ModuleBase::Vector3< double > omega
time derivative of volume
Definition msst.h:78
double lag_pos
Lagrangian location of cell.
Definition msst.h:83
double get_e0() const
energy of the initial configuration
Definition msst.h:30
double msst_vel
shock msst_vel (\AA/fs)
Definition msst.h:85
double p0
initial pressure
Definition msst.h:79
double get_p0() const
pressure of the initial configuration
Definition msst.h:36
void propagate_vel(void)
propagate atomic velocities
Definition msst.cpp:287
std::vector< ModuleBase::Vector3< double > > old_v
old atomic velocities
Definition msst.h:76
double msst_qmass
cell mass-like parameter (mass^2/length^4)
Definition msst.h:86
MSST(const MD_para &mdp_in, const bool cal_stress_in, const bool init_vel, const int my_rank_in, MDCell &mdcell_in)
Definition msst.cpp:10
void print_md(std::ofstream &ofs, const bool &cal_stress)
output MD information such as energy, temperature, and pressure
Definition msst.cpp:170
void first_half(std::ofstream &ofs)
the first half of equation of motion, update velocities and positions
Definition msst.cpp:87
void write_restart(const std::string &global_out_dir)
write the information into files used for MD restarting
Definition msst.cpp:177
void second_half()
the second half of equation of motion, update velocities
Definition msst.cpp:143
~MSST()
Definition msst.cpp:42
double get_lag_pos() const
Lagrangian location of the cell.
Definition msst.h:39
double totmass
total mass of the cell
Definition msst.h:82
ModuleBase::Vector3< double > dilation
dilation scale
Definition msst.h:77
double e0
initial energy
Definition msst.h:81
void propagate_voldot(void)
propagate the volume change rate
Definition msst.cpp:318
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 msst.cpp:44
3 elements vector
Definition vector3.h:21
input parameters used in md
Definition md_parameter.h:12