ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ylmcoef.h
Go to the documentation of this file.
1#pragma once
2
3#include <cmath>
4#include "constants.h"
5
6namespace ModuleBase {
7
9constexpr int YLMCOEF_SIZE = 36;
10
11#ifdef __CUDACC__
12// GPU version: must use numeric constants (CUDA doesn't support runtime init for __device__)
13__device__ static const double ylmcoef[YLMCOEF_SIZE] = {
14#else
15// Use static constexpr for C++11 compatibility (inline variables require C++17)
16static constexpr double ylmcoef[YLMCOEF_SIZE] = {
17#endif
180.28209479177387813964, // 1.0 / sqrt(ModuleBase::FOUR_PI)
190.48860251190291992263, // sqrt (3.0 / ModuleBase::FOUR_PI)
201.93649167310370851069, // sqrt (15.0) / 2.0
211.11803398874989490253, // sqrt (5.0) / 2.0
222.23606797749978980505, // sqrt (5.0)
230.57735026918962584208, // 1.0 / sqrt(3.0)
241.29099444873580559978, // sqrt (5.0 / 3.0)
251.97202659436653870983, // sqrt (35.0 / 9.0)
261.01835015443463117180, // sqrt (7.0/3.0)/1.5
272.09165006633518890666, // sqrt (35.0 / 8.0)
280.93541434669348533237, // sqrt (7.0 / 8.0)
292.64575131106459071617, // sqrt (7.0)
300.25819888974716109775, // 1.0 / sqrt (15.0)
310.96609178307929588492, // sqrt (14.0 / 15.0)
322.16024689946928694084, // sqrt (14.0 / 3.0)
331.98431348329844303713, // sqrt(7.0)*3.0/4.0
341.00623058987490532346, // 9.0/4.0/sqrt(5.0)
352.04939015319191986109, // sqrt(21.0/5.0)
360.97979589711327119694, // sqrt(24.0/25.0)
372.29128784747791991450, // sqrt(21.0)/2.0
380.86602540378443859659, // sqrt(3.0)/2.0
390.18898223650461359879, // 0.5/sqrt(7.0)
400.98198050606196563006, // 1.5*sqrt(3.0/7.0)
412.12132034355964238515, // 3.0/sqrt(2.0)
421.98997487421323970835, // 0.6*sqrt(11.0)
431.00285307284481395307, // 0.8*sqrt(11.0/7.0)
442.03100960115899020764, // sqrt (33.0/8.0)
450.99103120896511487370, // sqrt (55.0/56.0)
462.17124059336723762570, // sqrt (33.0/7.0)
470.94760708295868567586, // sqrt (11.0)*2.0/7.0
482.48746859276654985749, // sqrt (11.0)*0.75
490.82915619758884995250, // sqrt (11.0)*0.25
503.31662479035539980998, // sqrt (11.0)
510.14907119849998595740, // 1.0/3.0/sqrt(5.0)
520.98882646494608839038, // 2.0/3.0*sqrt(11.0/5.0)
532.09761769634030326159 // sqrt(22.0/5.0)
54};
55
56} // namespace ModuleBase
Definition clebsch_gordan_coeff.cpp:8
constexpr int YLMCOEF_SIZE
ylmcoef coefficient count (supports up to L=5)
Definition ylmcoef.h:9