ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
sccs_pcc_0d.h
Go to the documentation of this file.
1#ifndef SCCS_PCC_0D_ADAPTER_H
2#define SCCS_PCC_0D_ADAPTER_H
3
4#include <memory>
5#include <vector>
6
7class UnitCell;
8namespace ModuleBase
9{
10template <typename T> class Vector3;
11}
12namespace ModulePW
13{
14class PW_Basis;
15}
16namespace ModuleSccs
17{
18class CoulombOperator;
19}
20namespace unitcell
21{
22struct AtomData;
23struct OrthogonalCell;
24}
25namespace elecstate
26{
27struct Pcc0dParameters;
28
29// Cubic PCC cell with the mass-weighted ionic origin, as PotPcc; a cell that
30// is not an equal-edge cube stops the run.
31void pcc_0d_geometry(const UnitCell& cell,
32 const std::vector<unitcell::AtomData>& atoms,
33 unitcell::OrthogonalCell& geometry,
34 Pcc0dParameters& parameters);
35
36// Minimum-image displacements of Cartesian positions from the origin, in place.
37void pcc_0d_relative(const unitcell::OrthogonalCell& geometry,
38 std::vector<ModuleBase::Vector3<double>>& positions);
39
40// Assemble an SCCS grid-charge operator using the existing cell geometry and
41// mass-weighted ionic origin, on the Cartesian grid coordinates grid_positions
42// (e.g. from SccsFixedSources). An unsupported cell stops the run.
43void pcc_0d_operator(const UnitCell& cell,
44 const ModulePW::PW_Basis& basis,
45 const std::vector<unitcell::AtomData>& atoms,
46 const std::vector<ModuleBase::Vector3<double>>& grid_positions,
47 std::unique_ptr<ModuleSccs::CoulombOperator>& coulomb);
48} // namespace elecstate
49
50#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
Definition sccs_coulomb.h:17
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition clebsch_gordan_coeff.cpp:8
Definition pw_op.cpp:3
Definition sccs_fixed_src.h:11
Definition read_atoms_hlp_test.cpp:13
void pcc_0d_relative(const unitcell::OrthogonalCell &geometry, std::vector< ModuleBase::Vector3< double > > &positions)
Definition sccs_pcc_0d.cpp:35
void pcc_0d_geometry(const UnitCell &cell, const std::vector< unitcell::AtomData > &atoms, unitcell::OrthogonalCell &geometry, Pcc0dParameters &parameters)
Definition sccs_pcc_0d.cpp:12
void pcc_0d_operator(const UnitCell &cell, const ModulePW::PW_Basis &basis, const std::vector< unitcell::AtomData > &atoms, const std::vector< ModuleBase::Vector3< double > > &grid_positions, std::unique_ptr< ModuleSccs::CoulombOperator > &coulomb)
Definition sccs_pcc_0d.cpp:44
Free functions for extracting atom/orbital info from Atom array.
Definition bcast_cell.cpp:8
Definition pcc_0d.h:15
Cartesian atom information in type-major order, matching ABACUS atom indices.
Definition cell_tools.h:21
Definition cell_geometry.h:20