ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
sccs_cell_test.h
Go to the documentation of this file.
1#ifndef SCCS_CELL_TEST_H
2#define SCCS_CELL_TEST_H
3
7
8#include <vector>
9
10namespace SccsTest
11{
12// One unit-charge atom at fractional (1/4, 1/4, 1/4) with 0.6 uniform
13// electrons in one spin channel, on the cell of the PW basis.
14class CellTest : public PwTest
15{
16protected:
18 {
19 cell.lat0 = length;
20 cell.tpiba = tpiba;
21 cell.omega = basis.omega;
22 cell.ntype = 1;
23 cell.nat = 1;
24 cell.atoms = &atom;
25 atom.na = 1;
26 atom.mass = 1.0;
27 atom.ncpp.zv = 1.0;
28 atom.tau = {ModuleBase::Vector3<double>(0.25, 0.25, 0.25)};
29 const double density_value = 0.6 / basis.omega;
30 density.assign(basis.nrxx, density_value);
31 channel = density.data();
32 charge.nspin = 1;
33 charge.rho = &channel;
34 }
35
39 std::vector<double> density;
40 double* channel = nullptr;
41};
42} // namespace SccsTest
43
44#endif
Atom class for storing atom information.
Definition atom_spec.h:14
Definition charge.h:24
3 elements vector
Definition vector3.h:21
Definition sccs_cell_test.h:15
std::vector< double > density
Definition sccs_cell_test.h:39
Atom atom
Definition sccs_cell_test.h:37
double * channel
Definition sccs_cell_test.h:40
Charge charge
Definition sccs_cell_test.h:38
void set_up_cell()
Definition sccs_cell_test.h:17
UnitCell cell
Definition sccs_cell_test.h:36
ModulePW::PW_Basis basis
Definition sccs_test.h:97
PwTest()
Definition sccs_test.h:38
const double length
Definition sccs_test.h:95
double tpiba
Definition sccs_test.h:96
Provide the basic information about unitcell.
Definition unitcell.h:16
Definition sccs_cell_test.h:11