ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
sccs_output.h
Go to the documentation of this file.
1#ifndef SCCS_OUTPUT_H
2#define SCCS_OUTPUT_H
3
6#include <iosfwd>
7#include <vector>
8
9class UnitCell;
10namespace ModulePW { class PW_Basis; }
11namespace unitcell { struct AtomData; }
12namespace ModuleSccs
13{
14struct SccsConfig;
15struct SccsResponse;
16struct FunctionalResult;
17}
18namespace elecstate
19{
20// Scalar reporting snapshot only: no retained grid buffers or model controls.
22{
23 bool slab = false;
24 int axis = 2;
25 double coordinate = 0.0;
28 ChargeMoments moments[4]; // smooth, point, polarization, screened
29 double smooth_energy = 0.0; // Hartree
30};
32{
33 bool valid = false;
35 int iterations = 0;
36 bool warm_started = false;
37 double residual_rms = 0.0;
38 double residual_max = 0.0;
39 double reaction_energy = 0.0;
40 double volume = 0.0;
41 double surface = 0.0;
42 bool filled = false; // solvent-aware cavity
43 double filled_volume = 0.0;
44 double far_field_charge = 0.0;
45 double expected_charge = 0.0;
48};
49// All ranks in the PW pool call together.
50void collect_output(const UnitCell& cell,
51 const ModulePW::PW_Basis& basis,
52 const std::vector<unitcell::AtomData>& atoms,
53 const std::vector<ModuleBase::Vector3<double>>& grid_positions,
54 const std::vector<double>& ions,
55 const std::vector<double>& charge,
56 const ModuleSccs::SccsConfig& config,
57 const ModuleSccs::SccsResponse& response,
58 SccsOutput& result);
59// sccs_debug lines of one SCF iteration, tagged and column-aligned.
60void write_sccs_out(std::ostream& output, const SccsOutput& result, int level,
61 double solvation_energy, bool pcc, double pcc_energy);
62// The line of an SCF iteration while a delayed SCCS waits.
63void write_sccs_wait(std::ostream& output, double residual, double start_drho, int start_nmax);
64} // namespace elecstate
65#endif
3 elements vector
Definition vector3.h:21
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition output.h:13
Definition pw_op.cpp:3
Definition sccs_fixed_src.h:11
Definition read_atoms_hlp_test.cpp:13
void write_sccs_wait(std::ostream &output, double residual, double start_drho, int start_nmax)
Definition sccs_output.cpp:101
void collect_output(const UnitCell &cell, const ModulePW::PW_Basis &basis, const std::vector< unitcell::AtomData > &atoms, const std::vector< ModuleBase::Vector3< double > > &grid_positions, const std::vector< double > &ions, const std::vector< double > &charge, const ModuleSccs::SccsConfig &config, const ModuleSccs::SccsResponse &response, SccsOutput &result)
Definition sccs_collect.cpp:17
void write_sccs_out(std::ostream &output, const SccsOutput &result, int level, double solvation_energy, bool pcc, double pcc_energy)
Definition sccs_output.cpp:109
Free functions for extracting atom/orbital info from Atom array.
Definition bcast_cell.cpp:8
Definition sccs_coulomb.h:9
Definition sccs_functional.h:19
Definition sccs_parameters.h:28
Definition sccs_response.h:32
Moments about one common origin. Charges carry their physical sign.
Definition charge_moments.h:11
Definition sccs_output.h:22
double smooth_energy
Definition sccs_output.h:29
double coordinate
Definition sccs_output.h:25
ModuleBase::Vector3< double > normal
Definition sccs_output.h:27
int axis
Definition sccs_output.h:24
bool slab
Definition sccs_output.h:23
ModuleBase::Vector3< double > origin
Definition sccs_output.h:26
ChargeMoments moments[4]
Definition sccs_output.h:28
Definition sccs_output.h:32
bool valid
Definition sccs_output.h:33
double residual_rms
Definition sccs_output.h:37
double reaction_energy
Definition sccs_output.h:39
int iterations
Definition sccs_output.h:35
double far_field_charge
Definition sccs_output.h:44
double filled_volume
Definition sccs_output.h:43
ModuleSccs::CoulombTransformCounts transforms
Definition sccs_output.h:46
double surface
Definition sccs_output.h:41
bool reused_fixed_sources
Definition sccs_output.h:34
double volume
Definition sccs_output.h:40
bool warm_started
Definition sccs_output.h:36
double residual_max
Definition sccs_output.h:38
double expected_charge
Definition sccs_output.h:45
bool filled
Definition sccs_output.h:42
PccOutput pcc
Definition sccs_output.h:47
Cartesian atom information in type-major order, matching ABACUS atom indices.
Definition cell_tools.h:21