ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
sccs_pcc_2d.h
Go to the documentation of this file.
1#ifndef SCCS_PCC_2D_ADAPTER_H
2#define SCCS_PCC_2D_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 SlabCell;
24}
25namespace elecstate
26{
27struct Pcc2dParameters;
28
29// Slab PCC cell with the mass-weighted ionic origin along the normal, with
30// the PotPcc alignment tolerance; a tilted open axis stops the run.
31void pcc_2d_geometry(const UnitCell& cell,
32 const std::vector<unitcell::AtomData>& atoms,
33 int open_axis,
34 unitcell::SlabCell& geometry,
35 Pcc2dParameters& parameters);
36
37// Replace Cartesian positions, in place, by the normal times their
38// minimum-image coordinate from the slab origin.
39void pcc_2d_project(const unitcell::SlabCell& geometry,
40 std::vector<ModuleBase::Vector3<double>>& positions);
41
42// Assemble an SCCS grid-charge operator using the existing cell geometry and
43// mass-weighted ionic origin, on the Cartesian grid coordinates grid_positions
44// (e.g. from SccsFixedSources). An unsupported cell stops the run.
45void pcc_2d_operator(const UnitCell& cell,
46 const ModulePW::PW_Basis& basis,
47 const std::vector<unitcell::AtomData>& atoms,
48 int open_axis,
49 const std::vector<ModuleBase::Vector3<double>>& grid_positions,
50 std::unique_ptr<ModuleSccs::CoulombOperator>& coulomb);
51} // namespace elecstate
52
53#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_2d_operator(const UnitCell &cell, const ModulePW::PW_Basis &basis, const std::vector< unitcell::AtomData > &atoms, int open_axis, const std::vector< ModuleBase::Vector3< double > > &grid_positions, std::unique_ptr< ModuleSccs::CoulombOperator > &coulomb)
Definition sccs_pcc_2d.cpp:49
void pcc_2d_project(const unitcell::SlabCell &geometry, std::vector< ModuleBase::Vector3< double > > &positions)
Definition sccs_pcc_2d.cpp:39
void pcc_2d_geometry(const UnitCell &cell, const std::vector< unitcell::AtomData > &atoms, int open_axis, unitcell::SlabCell &geometry, Pcc2dParameters &parameters)
Definition sccs_pcc_2d.cpp:12
Free functions for extracting atom/orbital info from Atom array.
Definition bcast_cell.cpp:8
Definition pcc_2d.h:14
Cartesian atom information in type-major order, matching ABACUS atom indices.
Definition cell_tools.h:21
Definition cell_geometry.h:50