ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ylmcoef.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_BASE_YLMCOEF_H
2#define ABACUS_SOURCE_BASE_YLMCOEF_H
3
4
5#include <cmath>
6#include "constants.h"
7
8namespace ModuleBase {
9
11constexpr int YLMCOEF_SIZE = 36;
12
13#ifdef __CUDACC__
14// GPU version: must use numeric constants (CUDA doesn't support runtime init for __device__)
15__device__ static const double ylmcoef[YLMCOEF_SIZE] = {
16#else
17// Use static constexpr for C++11 compatibility (inline variables require C++17)
18static constexpr double ylmcoef[YLMCOEF_SIZE] = {
19#endif
200.28209479177387813964, // 1.0 / sqrt(ModuleBase::FOUR_PI)
210.48860251190291992263, // sqrt (3.0 / ModuleBase::FOUR_PI)
221.93649167310370851069, // sqrt (15.0) / 2.0
231.11803398874989490253, // sqrt (5.0) / 2.0
242.23606797749978980505, // sqrt (5.0)
250.57735026918962584208, // 1.0 / sqrt(3.0)
261.29099444873580559978, // sqrt (5.0 / 3.0)
271.97202659436653870983, // sqrt (35.0 / 9.0)
281.01835015443463117180, // sqrt (7.0/3.0)/1.5
292.09165006633518890666, // sqrt (35.0 / 8.0)
300.93541434669348533237, // sqrt (7.0 / 8.0)
312.64575131106459071617, // sqrt (7.0)
320.25819888974716109775, // 1.0 / sqrt (15.0)
330.96609178307929588492, // sqrt (14.0 / 15.0)
342.16024689946928694084, // sqrt (14.0 / 3.0)
351.98431348329844303713, // sqrt(7.0)*3.0/4.0
361.00623058987490532346, // 9.0/4.0/sqrt(5.0)
372.04939015319191986109, // sqrt(21.0/5.0)
380.97979589711327119694, // sqrt(24.0/25.0)
392.29128784747791991450, // sqrt(21.0)/2.0
400.86602540378443859659, // sqrt(3.0)/2.0
410.18898223650461359879, // 0.5/sqrt(7.0)
420.98198050606196563006, // 1.5*sqrt(3.0/7.0)
432.12132034355964238515, // 3.0/sqrt(2.0)
441.98997487421323970835, // 0.6*sqrt(11.0)
451.00285307284481395307, // 0.8*sqrt(11.0/7.0)
462.03100960115899020764, // sqrt (33.0/8.0)
470.99103120896511487370, // sqrt (55.0/56.0)
482.17124059336723762570, // sqrt (33.0/7.0)
490.94760708295868567586, // sqrt (11.0)*2.0/7.0
502.48746859276654985749, // sqrt (11.0)*0.75
510.82915619758884995250, // sqrt (11.0)*0.25
523.31662479035539980998, // sqrt (11.0)
530.14907119849998595740, // 1.0/3.0/sqrt(5.0)
540.98882646494608839038, // 2.0/3.0*sqrt(11.0/5.0)
552.09761769634030326159 // sqrt(22.0/5.0)
56};
57
58} // namespace ModuleBase
59
60#endif // ABACUS_SOURCE_BASE_YLMCOEF_H
Definition clebsch_gordan_coeff.cpp:8
constexpr int YLMCOEF_SIZE
ylmcoef coefficient count (supports up to L=5)
Definition ylmcoef.h:11