ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
sccs_functional.h
Go to the documentation of this file.
1#ifndef SCCS_FUNCTIONAL_H
2#define SCCS_FUNCTIONAL_H
3
4#include <vector>
5
6namespace ModulePW
7{
8class PW_Basis;
9}
10
11namespace ModuleSccs
12{
13class CoulombOperator;
14
15struct SccsConfig;
16struct SccsResponse;
17
19{
20 double reaction_energy = 0.0; // Hartree
21 double surface_energy = 0.0;
22 double volume_energy = 0.0;
23 double surface = 0.0; // Bohr^2
24 double volume = 0.0; // Bohr^3
25 std::vector<double> reaction_potential; // dielectric minus vacuum, Hartree
26 std::vector<double> electron_potential; // derivative of all three energy terms
27 std::vector<double> cavity_potential; // derivative w.r.t. cavity density, Hartree; full cavity only
28};
29
30// Collective over the PW pool; without the solvent-aware filling.
32 const std::vector<double> &charge,
33 const SccsResponse &response,
34 const SccsConfig &config,
35 const ModulePW::PW_Basis &basis,
36 double tpiba,
37 FunctionalResult &result);
38
39// Use the same operator for the dielectric response and vacuum subtraction.
40// probe_kernel is the one passed to solve_response for response.
42 const std::vector<double> &charge,
43 const SccsResponse &response,
44 const SccsConfig &config,
45 const std::vector<double> &probe_kernel,
46 const ModulePW::PW_Basis &basis,
47 double tpiba,
48 CoulombOperator &coulomb,
49 FunctionalResult &result);
50} // namespace ModuleSccs
51
52#endif
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Definition sccs_coulomb.h:17
Definition pw_op.cpp:3
Definition sccs_fixed_src.h:11
void eval_functional(const std::vector< double > &charge, const SccsResponse &response, const SccsConfig &config, const ModulePW::PW_Basis &basis, double tpiba, FunctionalResult &result)
Definition sccs_functional.cpp:90
Definition sccs_functional.h:19
double reaction_energy
Definition sccs_functional.h:20
std::vector< double > reaction_potential
Definition sccs_functional.h:25
double volume
Definition sccs_functional.h:24
std::vector< double > electron_potential
Definition sccs_functional.h:26
double volume_energy
Definition sccs_functional.h:22
double surface
Definition sccs_functional.h:23
std::vector< double > cavity_potential
Definition sccs_functional.h:27
double surface_energy
Definition sccs_functional.h:21
Definition sccs_parameters.h:28
Definition sccs_response.h:32