ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
output_log.h
Go to the documentation of this file.
1#ifndef OUTPUT_LOG
2#define OUTPUT_LOG
3
4#include <fstream>
5
10
11namespace elecstate
12{
13struct Efermi;
14}
15
16namespace ModuleIO
17{
18
23void output_convergence_after_scf(const bool&convergence, double& energy, std::ofstream& ofs_running);
24
29void output_after_relax(bool conv_ion, bool conv_esolver, std::ofstream& ofs_running);
30
35void output_efermi(const bool &convergence, const elecstate::Efermi& eferm, std::ofstream& ofs_running);
36
45void output_vacuum_level(const UnitCell* ucell,
46 const double* const* rho,
47 const double* v_elecstat,
48 const int& nx,
49 const int& ny,
50 const int& nz,
51 const int& nxyz,
52 const int& nrxx,
53 const int& nplane,
54 const int& startz_current,
55 std::ofstream& ofs_running);
56
63void print_force(std::ofstream& ofs,
64 const UnitCell& cell,
65 const std::string& name,
66 const ModuleBase::matrix& force,
67 bool ry = true);
68
72void print_net_force(std::ofstream& ofs, const ModuleBase::Vector3<double>& net_force);
73
78void print_stress(const std::string& name,
79 const ModuleBase::matrix& scs,
80 const bool screen,
81 const bool ry,
82 std::ofstream &ofs);
83
89void write_head(std::ofstream& ofs_running, const int& istep, const int& iter, const std::string& basisname);
90
97void write_head_td(std::ofstream& ofs_running, const int& istep, const int& estep, const int& iter, const std::string& basisname);
98} // namespace ModuleIO
99
100#endif
Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in e...
Definition csr_reader.cpp:8
void output_vacuum_level(const UnitCell *ucell, const double *const *rho, const double *v_elecstat, const int &nx, const int &ny, const int &nz, const int &nxyz, const int &nrxx, const int &nplane, const int &startz_current, std::ofstream &ofs_running)
calculate and output the vacuum level We first determine the vacuum direction, then get the vacuum po...
Definition output_log.cpp:77
void print_stress(const std::string &name, const ModuleBase::matrix &scs, const bool screen, const bool ry, std::ofstream &ofs)
output stress components
Definition output_log.cpp:312
void output_convergence_after_scf(const bool &convergence, double &energy, std::ofstream &ofs_running)
output if is convergence and energy after scf
Definition output_log.cpp:20
void output_after_relax(bool conv_ion, bool conv_esolver, std::ofstream &ofs_running)
output after relaxation
Definition output_log.cpp:35
void write_head(std::ofstream &ofs, const int &istep, const int &iter, const std::string &basisname)
write head for scf iteration
Definition output_log.cpp:384
void write_head_td(std::ofstream &ofs, const int &istep, const int &estep, const int &iter, const std::string &basisname)
write head for scf iteration
Definition output_log.cpp:394
void output_efermi(const bool &convergence, const elecstate::Efermi &eferm, std::ofstream &ofs_running)
output the fermi energy
Definition output_log.cpp:57
void print_net_force(std::ofstream &ofs, const ModuleBase::Vector3< double > &net_force)
output the net force vector and the magnitude of the force drift
Definition output_log.cpp:294
void print_force(std::ofstream &ofs_running, const UnitCell &cell, const std::string &name, const ModuleBase::matrix &force, bool ry)
output atomic forces
Definition output_log.cpp:230
Definition read_atoms_hlp_test.cpp:13
Definition fp_energy.h:65