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 const char* const atomic::group = "atomic";
42 
43 
44 // Note: cannot use dimless etc. since not guaranteed to be constructed
46 (
50  (
51  "alpha",
53  /(
54  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2.0)
58  )
59  ),
60  constantatomicalpha,
61  "alpha"
62 );
63 
64 
66 (
70  (
71  "Rinf",
73  *atomic::me
75  /(
77  (
78  "C",
79  dimensionSet(0, 0, 0, 0, 0),
80  2.0
81  )
83  )
84  ),
85  constantatomicRinf,
86  "Rinf"
87 );
88 
89 
91 (
93  atomic::a0,
95  (
96  "a0",
98  /(
100  (
101  "C",
102  dimensionSet(0, 0, 0, 0, 0),
103  4.0*mathematical::pi
104  )
105  *atomic::Rinf
106  )
107  ),
108  constantatomica0,
109  "a0"
110 );
111 
112 
114 (
116  atomic::re,
118  (
119  "re",
121  /(
123  (
124  "C",
125  dimensionSet(0, 0, 0, 0, 0),
126  4.0*mathematical::pi
127  )
129  *atomic::me
131  )
132  ),
133  constantatomicre,
134  "re"
135 );
136 
137 
139 (
141  atomic::Eh,
143  (
144  "Eh",
145  Foam::dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2.0)
147  ),
148  constantatomicEh,
149  "Eh"
150 );
151 
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 } // End namespace constant
156 } // End namespace Foam
157 
158 // ************************************************************************* //
mathematicalConstants.H
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::constant::atomic::group
const char *const group
Group name for atomic constants.
Definition: atomicConstants.C:41
Foam::dimensionSet
Dimension set for the base types.
Definition: dimensionSet.H:65
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:43
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...