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-------------------------------------------------------------------------------
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
30#include "universalConstants.H"
32#include "atomicConstants.H"
35
36// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37
38namespace Foam
39{
40namespace 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(
87 constantatomicme,
88 "me"
89);
90
91
93(
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// ************************************************************************* //
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.
#define defineDimensionedConstant(Group, Switch, Tag, Name)
Defined dimensioned constant , lookup as Name.
Fundamental dimensioned constants.
const dimensionedScalar mp
Proton mass.
const dimensionedScalar me
Electron mass.
constexpr const char *const group
Group name for atomic constants.
const dimensionedScalar e
Elementary charge.
constexpr const char *const group
Group name for electromagnetic constants.
const dimensionedScalar NA
Avagadro number.
const dimensionedScalar mu
Atomic mass unit.
constexpr const char *const group
Group name for physico-chemical constants.
const dimensionedScalar k
Boltzmann constant.
const dimensionedScalar Pstd
Standard pressure.
const dimensionedScalar Tstd
Standard temperature.
const dimensionedScalar h
Planck constant.
const dimensionedScalar c
Speed of light in a vacuum.
const dimensionedScalar G
Newtonian constant of gravitation.
constexpr const char *const group
Group name for universal constants.
Namespace for OpenFOAM.