29 std::ofstream &ofs_running);
42 std::ofstream &ofs_running);
51 bool &force_converged,
52 std::ofstream &ofs_running);
61 bool &force_converged,
62 std::ofstream &ofs_running);
Definition line_search.h:7
3x3 matrix and related mathamatical operations
Definition matrix3.h:15
ModuleBase::matrix grad_ion_p
Definition relax_sync.h:108
void move_cell_ions(UnitCell &ucell, const bool is_new_dir, std::ofstream &ofs_running)
Definition relax_sync.cpp:526
double etot
Definition relax_sync.h:145
int istep
Definition relax_sync.h:32
bool relax_step(UnitCell &ucell, const ModuleBase::matrix &force, const ModuleBase::matrix &stress, const double etot_in, std::ofstream &ofs_running)
Definition relax_sync.cpp:63
int cg_step
Definition relax_sync.h:124
double step_size
Definition relax_sync.h:103
double omega_p
previous cell volume in Angstrom^3, used to print volume diff during cell-relax
Definition relax_sync.h:148
double fac_stress
Definition relax_sync.h:154
double gr_sr
Definition relax_sync.h:137
ModuleBase::matrix search_dr_cell
Definition relax_sync.h:113
bool brent_done
Definition relax_sync.h:151
double force_thr_eva
Definition relax_sync.h:149
const std::vector< double > & get_max_stress_history() const
Definition relax_sync.h:168
double e2ord
Definition relax_sync.h:140
void print_gradient_summary(bool force_converged, std::ofstream &ofs_running)
Definition relax_sync.cpp:305
double dmoveh
Definition relax_sync.h:144
ModuleBase::matrix grad_cell
Definition relax_sync.h:107
ModuleBase::matrix search_dr_ion_p
Definition relax_sync.h:114
double e2ord2
Definition relax_sync.h:141
ModuleBase::matrix grad_cell_p
Definition relax_sync.h:109
void perform_line_search(std::ofstream &ofs_running)
Definition relax_sync.cpp:401
ModuleBase::matrix grad_ion
Definition relax_sync.h:106
~Relax()
Definition relax_sync.h:19
double gr_gr
Definition relax_sync.h:134
void update_reciprocal_cell(UnitCell &ucell, std::ofstream &ofs_running)
Definition relax_sync.cpp:710
double e1ord1
Definition relax_sync.h:138
ModuleBase::matrix search_dr_ion
Definition relax_sync.h:112
ModuleBase::Matrix3 latvec_save
Definition relax_sync.h:156
double dmovel
Definition relax_sync.h:143
ModuleBase::matrix search_dr_cell_p
Definition relax_sync.h:115
const Input_para * inp_
Definition relax_sync.h:158
bool check_line_search()
Definition relax_sync.cpp:379
void init_relax(const int nat_in, const Input_para &inp)
Definition relax_sync.cpp:14
double gamma
Definition relax_sync.h:127
double gr_grp
Definition relax_sync.h:135
int nat
Definition relax_sync.h:100
Line_Search ls
Definition relax_sync.h:157
std::vector< double > max_stress_history_
Largest stress of each step (kbar), only filled in cell-relax.
Definition relax_sync.h:163
double srp_srp
Definition relax_sync.h:133
bool setup_gradient(const UnitCell &ucell, const ModuleBase::matrix &force, const ModuleBase::matrix &stress, std::ofstream &ofs_running)
Definition relax_sync.cpp:109
double e1ord2
Definition relax_sync.h:139
Relax()
Definition relax_sync.h:18
double fac_force
Definition relax_sync.h:153
double dmove
Definition relax_sync.h:142
double grp_grp
Definition relax_sync.h:136
const std::vector< double > & get_max_force_history() const
Read-only observers of the per-step convergence history, for the final summary.
Definition relax_sync.h:167
void update_lattice(UnitCell &ucell, double fac, bool is_new_dir)
Definition relax_sync.cpp:593
double etot_p
Definition relax_sync.h:146
bool if_cell_moves
Definition relax_sync.h:118
void update_ion_positions(UnitCell &ucell, double fac, std::ofstream &ofs_running)
Definition relax_sync.cpp:663
void setup_cell_gradient(const UnitCell &ucell, const ModuleBase::matrix &stress, bool &force_converged, std::ofstream &ofs_running)
Definition relax_sync.cpp:218
bool ltrial
Definition relax_sync.h:101
double sr_sr
Definition relax_sync.h:132
std::vector< double > max_force_history_
Largest force of each step (eV/Angstrom), includes trial and line-search steps.
Definition relax_sync.h:161
void new_direction(std::ofstream &ofs_running)
Definition relax_sync.cpp:436
void calculate_gamma()
Definition relax_sync.cpp:328
double setup_ion_gradient(const UnitCell &ucell, const ModuleBase::matrix &force, bool &force_converged, std::ofstream &ofs_running)
Definition relax_sync.cpp:146
Provide the basic information about unitcell.
Definition unitcell.h:16