ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
sccs_lowpass.h
Go to the documentation of this file.
1#ifndef SCCS_LOWPASS_H
2#define SCCS_LOWPASS_H
3
4#include <vector>
5
6namespace ModulePW
7{
8class PW_Basis;
9}
10
11namespace ModuleSccs
12{
13struct CavityParameters;
15struct SccsResponse;
16
17// Reciprocal-space filter on the local G vectors; empty when disabled. As
18// Environ 3.1.1 core_fft_lowpass.f90 (filter_lowpass): f(G) =
19// erfc(p1 G^2 / Gcut^2 - p2) / 2, applied before every FFT derivative.
20std::vector<double> switch_filter(const CavityParameters &cavity, const ModulePW::PW_Basis &basis);
21
22// Exact derivative of the filtered, discrete sqrt-CG reaction energy with
23// respect to the boundary s; collective over the PW pool.
25 const std::vector<double> &charge,
26 const CavityParameters &cavity,
27 const CavityDerivatives &derivatives,
28 const ModulePW::PW_Basis &basis,
29 double tpiba,
30 SccsResponse &response);
31} // namespace ModuleSccs
32
33#endif
A class which can convert a function of "r" to the corresponding linear superposition of plane waves ...
Definition pw_basis.h:60
Definition pw_op.cpp:3
Definition sccs_fixed_src.h:11
void lowpass_bnd_pot(const std::vector< double > &charge, const CavityParameters &cavity, const CavityDerivatives &derivatives, const ModulePW::PW_Basis &basis, double tpiba, SccsResponse &response)
Definition sccs_lowpass.cpp:35
std::vector< double > switch_filter(const CavityParameters &cavity, const ModulePW::PW_Basis &basis)
Definition sccs_lowpass.cpp:15
Definition sccs_cav_deriv.h:19
Definition sccs_cavity.h:20
Definition sccs_response.h:32