ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
sccs_ion_force.h
Go to the documentation of this file.
1#ifndef SCCS_ION_FORCE_H
2#define SCCS_ION_FORCE_H
3
4#include <vector>
5
6namespace ModuleBase
7{
8template <class T>
9class Vector3;
10}
11namespace ModulePW
12{
13class PW_Basis;
14}
15namespace unitcell
16{
17struct AtomData;
18}
19namespace ModuleSccs
20{
21// Explicit Gaussian-ion derivative of the reaction energy at fixed electron
22// density. reaction_potential is in Ha; force is in Ha/Bohr, atom-major.
23// Collective over the PW pool.
25 const std::vector<unitcell::AtomData> &atoms,
26 const std::vector<double> &reaction_potential,
27 const ModulePW::PW_Basis &basis,
28 double tpiba,
29 double spread,
30 std::vector<ModuleBase::Vector3<double>> &forces);
31
32// One positive width per atom.
34 const std::vector<unitcell::AtomData> &atoms,
35 const std::vector<double> &reaction_potential,
36 const ModulePW::PW_Basis &basis,
37 double tpiba,
38 const std::vector<double> &spreads,
39 std::vector<ModuleBase::Vector3<double>> &forces);
40
41// Full cavity: a singleton skips known Z == zv atoms; per-atom lists override
42// that choice. Nonpositive widths always disable the atom.
44 const std::vector<unitcell::AtomData> &atoms,
45 const std::vector<double> &reaction_potential,
46 const ModulePW::PW_Basis &basis,
47 double tpiba,
48 const std::vector<double> &atom_spreads,
49 std::vector<ModuleBase::Vector3<double>> &forces);
50} // namespace ModuleSccs
51#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 clebsch_gordan_coeff.cpp:8
Definition pw_op.cpp:3
Definition sccs_fixed_src.h:11
void gauss_core_frc(const std::vector< unitcell::AtomData > &atoms, const std::vector< double > &reaction_potential, const ModulePW::PW_Basis &basis, double tpiba, const std::vector< double > &atom_spreads, std::vector< ModuleBase::Vector3< double > > &forces)
Definition sccs_ion_force.cpp:61
void gauss_ion_force(const std::vector< unitcell::AtomData > &atoms, const std::vector< double > &reaction_potential, const ModulePW::PW_Basis &basis, double tpiba, double spread, std::vector< ModuleBase::Vector3< double > > &forces)
Definition sccs_ion_force.cpp:14
Free functions for extracting atom/orbital info from Atom array.
Definition bcast_cell.cpp:8
Cartesian atom information in type-major order, matching ABACUS atom indices.
Definition cell_tools.h:21