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 -------------------------------------------------------------------------------
10 License
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 
28 #include "mathematicalConstants.H"
29 #include "universalConstants.H"
31 #include "atomicConstants.H"
32 #include "dimensionedConstants.H"
33 
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 
36 namespace Foam
37 {
38 namespace 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",
70  *atomic::me
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 (
90  atomic::a0,
92  (
93  "a0",
95  /(
97  (
98  "C",
99  dimensionSet(0, 0, 0, 0, 0),
100  4.0*mathematical::pi
101  )
102  *atomic::Rinf
103  )
104  ),
105  constantatomica0,
106  "a0"
107 );
108 
109 
111 (
113  atomic::re,
115  (
116  "re",
118  /(
120  (
121  "C",
122  dimensionSet(0, 0, 0, 0, 0),
123  4.0*mathematical::pi
124  )
126  *atomic::me
128  )
129  ),
130  constantatomicre,
131  "re"
132 );
133 
134 
136 (
138  atomic::Eh,
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 // ************************************************************************* //
mathematicalConstants.H
Foam::constant::atomic::group
constexpr const char *const group
Group name for atomic constants.
Definition: atomicConstants.H:52
Foam::constant::atomic::Eh
const dimensionedScalar Eh
Hartree energy: default SI units: [J].
universalConstants.H
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:212
Foam::dimensionSet
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Definition: dimensionSet.H:108
Foam::constant::atomic::me
const dimensionedScalar me
Electron mass.
Foam::constant::electromagnetic::epsilon0
const dimensionedScalar epsilon0
Electric constant: default SI units: [F/m].
Foam::constant::universal::h
const dimensionedScalar h
Planck constant.
Definition: setRegionSolidFields.H:33
Foam::constant::defineDimensionedConstantWithDefault
defineDimensionedConstantWithDefault(atomic::group, atomic::alpha, dimensionedScalar("alpha", sqr(electromagnetic::e)/(dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2.0) *electromagnetic::epsilon0 *universal::h *universal::c)), constantatomicalpha, "alpha")
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:42
Foam::constant::atomic::re
const dimensionedScalar re
Classical electron radius: default SI units: [m].
Foam::constant::atomic::Rinf
const dimensionedScalar Rinf
Rydberg constant: default SI units: [1/m].
Foam::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
electromagneticConstants.H
Foam::constant::atomic::a0
const dimensionedScalar a0
Bohr radius: default SI units: [m].
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:51
atomicConstants.H
Foam::constant::mathematical::pi
constexpr scalar pi(M_PI)
Foam::constant::electromagnetic::e
const dimensionedScalar e
Elementary charge.
Definition: createFields.H:11
Foam::constant::universal::c
const dimensionedScalar c
Speed of light in a vacuum.
constant
constant condensation/saturation model.
dimensionedConstants.H
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...