fundamentalConstants.H
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 #ifndef fundamentalConstants_H
30 #define fundamentalConstants_H
31 
32 #include "dimensionedScalar.H"
33 
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 
36 namespace Foam
37 {
38 namespace constant
39 {
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace universal
44 {
45  //- Speed of light in a vacuum
46  extern const dimensionedScalar c;
47 
48  //- Newtonian constant of gravitation
49  extern const dimensionedScalar G;
50 
51  //- Planck constant
52  extern const dimensionedScalar h;
53 }
54 
55 namespace electromagnetic
56 {
57  //- Elementary charge
58  extern const dimensionedScalar e;
59 }
60 
61 namespace atomic
62 {
63  //- Electron mass
64  extern const dimensionedScalar me;
65 
66  //- Proton mass
67  extern const dimensionedScalar mp;
68 }
69 
70 namespace physicoChemical
71 {
72  //- Atomic mass unit
73  extern const dimensionedScalar mu;
74 
75  //- Avagadro number
76  extern const dimensionedScalar NA;
77 
78  //- Boltzmann constant
79  extern const dimensionedScalar k;
80 }
81 
82 namespace standard
83 {
84  //- Standard pressure
85  extern const dimensionedScalar Pstd;
86 
87  //- Standard temperature
88  extern const dimensionedScalar Tstd;
89 }
90 
91 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 
93 } // End namespace constant
94 } // End namespace Foam
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 #endif
99 
100 // ************************************************************************* //
const dimensionedScalar G
Newtonian constant of gravitation.
const dimensionedScalar me
Electron mass.
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 doubleScalar e
Elementary charge.
Definition: doubleScalar.H:98
const dimensionedScalar mp
Proton mass.
Namespace for OpenFOAM.