atomicConstants.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2013 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
29#include "universalConstants.H"
31#include "atomicConstants.H"
33
34// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35
36namespace Foam
37{
38namespace constant
39{
40
41// Note: cannot use dimless etc. since not guaranteed to be constructed
43(
47 (
48 "alpha",
50 /(
51 dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2.0)
55 )
56 ),
57 constantatomicalpha,
58 "alpha"
59);
60
61
63(
67 (
68 "Rinf",
72 /(
74 (
75 "C",
76 dimensionSet(0, 0, 0, 0, 0),
77 2.0
78 )
80 )
81 ),
82 constantatomicRinf,
83 "Rinf"
84);
85
86
88(
92 (
93 "a0",
95 /(
97 (
98 "C",
99 dimensionSet(0, 0, 0, 0, 0),
101 )
103 )
104 ),
105 constantatomica0,
106 "a0"
107);
108
109
111(
115 (
116 "re",
118 /(
120 (
121 "C",
122 dimensionSet(0, 0, 0, 0, 0),
124 )
128 )
129 ),
130 constantatomicre,
131 "re"
132);
133
134
136(
140 (
141 "Eh",
142 Foam::dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2.0)
144 ),
145 constantatomicEh,
146 "Eh"
147);
148
149
150// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151
152} // End namespace constant
153} // End namespace Foam
154
155// ************************************************************************* //
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Definition: dimensionSet.H:109
constant condensation/saturation model.
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...
#define defineDimensionedConstantWithDefault(Group, Switch, DefaultExpr, Tag, Name)
Defined dimensioned constant with default , lookup as Name.
const dimensionedScalar re
Classical electron radius: default SI units: [m].
const dimensionedScalar Eh
Hartree energy: default SI units: [J].
const dimensionedScalar Rinf
Rydberg constant: default SI units: [1/m].
const dimensionedScalar a0
Bohr radius: default SI units: [m].
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
const dimensionedScalar me
Electron mass.
constexpr const char *const group
Group name for atomic constants.
const dimensionedScalar e
Elementary charge.
const dimensionedScalar epsilon0
Electric constant: default SI units: [F/m].
constexpr scalar pi(M_PI)
const dimensionedScalar h
Planck constant.
const dimensionedScalar c
Speed of light in a vacuum.
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedSymmTensor sqr(const dimensionedVector &dv)