fundamentalConstants.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 "fundamentalConstants.H"
29 
30 #include "universalConstants.H"
32 #include "atomicConstants.H"
34 #include "dimensionedConstants.H"
35 
36 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37 
38 namespace Foam
39 {
40 namespace constant
41 {
42 
44 (
47  constantuniversalc,
48  "c"
49 );
50 
51 
53 (
56  constantuniversalG,
57  "G"
58 );
59 
60 
62 (
65  constantuniversalh,
66  "h"
67 );
68 
69 
70 // Electromagnetic
71 
73 (
76  constantelectromagnetice,
77  "e"
78 );
79 
80 
81 // Atomic
82 
84 (
86  atomic::me,
87  constantatomicme,
88  "me"
89 );
90 
91 
93 (
95  atomic::mp,
96  constantatomicmp,
97  "mp"
98 );
99 
100 
101 // Physico-chemical
102 
104 (
107  constantphysicoChemicalmu,
108  "mu"
109 );
110 
111 
112 // Note: cannot use dimless etc since not guaranteed to be constructed
114 (
118  (
119  "NA",
120  dimensionSet(0, 0, 0, 0, -1), //Foam::dimless/Foam::dimMoles,
121  6.0221417930e+23
122  ),
123  constantphysicoChemicalNA,
124  "NA"
125 );
126 
127 
129 (
132  constantphysicoChemicalk,
133  "k"
134 );
135 
136 
137 // Standard
138 
140 (
141  "standard",
143  constantstandardPstd,
144  "Pstd"
145 );
146 
147 
149 (
150  "standard",
152  constantstandardTstd,
153  "Tstd"
154 );
155 
156 
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 
159 } // End namespace constant
160 } // End namespace Foam
161 
162 // ************************************************************************* //
Foam::constant::atomic::mp
const dimensionedScalar mp
Proton mass.
Foam::constant::physicoChemical::NA
const dimensionedScalar NA
Avagadro number.
Foam::constant::atomic::group
constexpr const char *const group
Group name for atomic constants.
Definition: atomicConstants.H:52
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
Foam::constant::physicoChemical::k
const dimensionedScalar k
Boltzmann constant.
Definition: LISASMDCalcMethod2.H:41
Foam::constant::universal::G
const dimensionedScalar G
Newtonian constant of gravitation.
Foam::constant::standard::Pstd
const dimensionedScalar Pstd
Standard pressure.
Definition: thermodynamicConstants.C:48
Foam::constant::physicoChemical::group
constexpr const char *const group
Group name for physico-chemical constants.
Definition: physicoChemicalConstants.H:52
universalConstants.H
Foam::constant::electromagnetic::group
constexpr const char *const group
Group name for electromagnetic constants.
Definition: electromagneticConstants.H:51
Foam::constant::standard::Tstd
const dimensionedScalar Tstd
Standard temperature.
Definition: thermodynamicConstants.C:49
Foam::constant::atomic::me
const dimensionedScalar me
Electron mass.
Foam::constant::universal::group
constexpr const char *const group
Group name for universal constants.
Definition: universalConstants.H:52
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::dimensioned< scalar >
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
electromagneticConstants.H
atomicConstants.H
Foam::constant::defineDimensionedConstant
defineDimensionedConstant(universal::group, universal::c, constantuniversalc, "c")
physicoChemicalConstants.H
fundamentalConstants.H
Fundamental dimensioned constants.
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...