fundamentalConstants.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Description
25  Fundamental dimensioned constants
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "fundamentalConstants.H"
30 
31 #include "universalConstants.H"
33 #include "atomicConstants.H"
35 
36 #include "dimensionedConstants.H"
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 // Universal constants
41 
42 namespace Foam
43 {
44 namespace constant
45 {
46 
48 (
51  constantuniversalc,
52  "c"
53 );
54 
55 
57 (
60  constantuniversalG,
61  "G"
62 );
63 
64 
66 (
69  constantuniversalh,
70  "h"
71 );
72 
73 
74 // Electromagnetic
75 
77 (
80  constantelectromagnetice,
81  "e"
82 );
83 
84 
85 // Atomic
86 
88 (
90  atomic::me,
91  constantatomicme,
92  "me"
93 );
94 
95 
97 (
99  atomic::mp,
100  constantatomicmp,
101  "mp"
102 );
103 
104 
105 // Physico-chemical
106 
108 (
111  constantphysicoChemicalmu,
112  "mu"
113 );
114 
115 
116 // Note: cannot use dimless etc since not guaranteed to be constructed
118 (
122  (
123  "NA",
124  dimensionSet(0, 0, 0, 0, -1), // Foam::dimless/Foam::dimMoles,
125  6.0221417930e+23
126  ),
127  constantphysicoChemicalNA,
128  "NA"
129 );
130 
131 
133 (
136  constantphysicoChemicalk,
137  "k"
138 );
139 
140 
141 // Standard
142 
144 (
145  "standard",
147  constantstandardPstd,
148  "Pstd"
149 );
150 
151 
153 (
154  "standard",
156  constantstandardTstd,
157  "Tstd"
158 );
159 
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 
163 } // End namespace constant
164 } // End namespace Foam
165 
166 // ************************************************************************* //
const char *const group
Group name for atomic constants.
const char *const group
Group name for universal constants.
const char *const group
Group name for physico-chemical constants.
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...
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")
const dimensionedScalar G
Newtonian constant of gravitation.
const dimensionedScalar me
Electron mass.
Fundamental dimensioned constants.
const dimensionedScalar e
Elementary charge.
Definition: doubleScalar.H:98
const dimensionedScalar Pstd
Standard pressure.
const dimensionedScalar Tstd
Standard temperature.
const dimensionedScalar h
Planck constant.
const dimensionedScalar mu
Atomic mass unit.
const dimensionedScalar NA
Avagadro number.
const dimensionedScalar k
Boltzmann constant.
const dimensionedScalar c
Speed of light in a vacuum.
const char *const group
Group name for electromagnetic constants.
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:98
const dimensionedScalar mp
Proton mass.
Namespace for OpenFOAM.
defineDimensionedConstant(universal::group, universal::c, constantuniversalc, "c")