ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
force_stress_assemble.h
Go to the documentation of this file.
1#ifndef FORCE_STRESS_ASSEMBLE_H
2#define FORCE_STRESS_ASSEMBLE_H
3
4#include "force_stress_lcao.h"
5
6#include <string> // std::string for dpks_out_type
7
8// Free functions that assemble the per-term LCAO force/stress parts into the
9// total force/stress matrices and print the breakdown. The DeePKS label output
10// only needs the output-type selector dpks_out_type, so these functions are
11// independent of the electronic template type T.
12
13class UnitCell;
14namespace ModuleSymmetry
15{
16class Symmetry;
17}
18namespace vdw
19{
20struct VdwResult;
21}
22
23namespace LCAO_domain
24{
25
26// Sum the computed force parts into fcs, apply symmetry and the net-force
27// (drift) correction, then print the per-term and total forces.
28// force_threshold is Force_Stress_LCAO<T>::force_invalid_threshold_ev, passed
29// in explicitly so this function need not be a class member.
30void assemble_print_force(const UnitCell& ucell,
31 const bool istestf,
32 const vdw::VdwResult* vdw_result,
33 const Exx_Info& exx_info,
35 const std::string& dpks_out_type,
36 const LCAOForceParts& parts,
37 const double force_threshold,
39
40// Sum the computed stress parts into scs, symmetrize, subtract the external
41// pressure and print the per-term and total stresses.
42void assemble_print_stress(const UnitCell& ucell,
43 const bool istests,
44 const vdw::VdwResult* vdw_result,
45 const Exx_Info& exx_info,
47 const std::string& dpks_out_type,
48 const LCAOStressParts& sparts,
50
51} // namespace LCAO_domain
52
53#endif
Definition lcao_nl_mu.cpp:16
Symmetry analysis class.
Definition lcao_nl_mu.cpp:24
Provide the basic information about unitcell.
Definition lcao_nl_mu.cpp:16
Symmetry analysis class.
Definition symmetry.h:24
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition allocate_dm.cpp:8
void assemble_print_stress(const UnitCell &ucell, const bool istests, const vdw::VdwResult *vdw_result, const Exx_Info &exx_info, ModuleSymmetry::Symmetry *symm, const std::string &dpks_out_type, const LCAOStressParts &sparts, ModuleBase::matrix &scs)
Definition force_stress_assemble.cpp:308
void assemble_print_force(const UnitCell &ucell, const bool istestf, const vdw::VdwResult *vdw_result, const Exx_Info &exx_info, ModuleSymmetry::Symmetry *symm, const std::string &dpks_out_type, const LCAOForceParts &parts, const double force_threshold, ModuleBase::matrix &fcs)
Definition force_stress_assemble.cpp:237
Definition klist_io.h:13
Definition esolver_fp.h:18
Definition vdw.h:30