ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
td_obs_pw.h
Go to the documentation of this file.
1#ifndef TD_OBS_PW_H
2#define TD_OBS_PW_H
3
4#include <array>
5#include <vector>
6
7namespace pw
8{
11{
12 bool charge_total = false;
13 bool charge_per_k = false;
14 bool spin_current = false;
15};
16
19{
20 std::array<double, 3> total{};
21 std::vector<double> per_k;
22 std::array<double, 9> spin{};
23};
24
27{
28 std::array<double, 3> mag{};
29 double mag_abs = 0.0;
30 double electrons = 0.0;
31 std::vector<double> atom_mag;
32 std::array<double, 3> xc{};
33 std::array<double, 3> soc{};
34 std::vector<double> atom_soc;
35};
36} // namespace pw
37#endif
Definition deltaspin_pw.cpp:7
Independent requests; all ranks must use the same choices.
Definition td_obs_pw.h:11
bool charge_per_k
Definition td_obs_pw.h:13
bool spin_current
Definition td_obs_pw.h:14
bool charge_total
Definition td_obs_pw.h:12
Endpoint observables replicated on all ranks after the appropriate reductions.
Definition td_obs_pw.h:27
double mag_abs
Integral of the magnetization magnitude, in mu_B.
Definition td_obs_pw.h:29
std::vector< double > atom_mag
[atom][Cartesian direction], in mu_B.
Definition td_obs_pw.h:31
std::array< double, 3 > xc
Rate of spin angular momentum S=M/2, hbar/atomic time.
Definition td_obs_pw.h:32
std::array< double, 3 > mag
ABACUS Pauli moment in mu_B; no electron minus sign.
Definition td_obs_pw.h:28
double electrons
Valence electron count; excludes the NLCC core density.
Definition td_obs_pw.h:30
std::vector< double > atom_soc
Pseudopotential atom decomposition, [atom][direction].
Definition td_obs_pw.h:34
std::array< double, 3 > soc
Same units as xc.
Definition td_obs_pw.h:33
Globally reduced currents; unrequested arrays stay zero or empty.
Definition td_obs_pw.h:19
std::array< double, 9 > spin
Spin angular momentum flux, [flow][spin], hbar/(Bohr^2*atomic time).
Definition td_obs_pw.h:22
std::array< double, 3 > total
Electron charge current per volume, in Hartree atomic units.
Definition td_obs_pw.h:20
std::vector< double > per_k
Same units, [global k including spin][Cartesian direction].
Definition td_obs_pw.h:21