physicoChemicalConstants.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 | Copyright (C) 2011-2013 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 \*---------------------------------------------------------------------------*/
25 
26 #include "mathematicalConstants.H"
27 #include "universalConstants.H"
30 
31 #include "dimensionedConstants.H"
32 
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 
35 namespace Foam
36 {
37 namespace constant
38 {
39 
40 const char* const physicoChemical::group = "physicoChemical";
41 
43 (
47  (
48  "R",
50  ),
51  constantphysicoChemicalR,
52  "R"
53 );
54 
55 
57 (
61  (
62  "F",
64  ),
65  constantphysicoChemicalF,
66  "F"
67 );
68 
69 
70 // Note: cannot use dimless etc. since not guaranteed to be constructed
72 (
76  (
77  "sigma",
79  (
80  "C",
81  dimensionSet(0, 0, 0, 0, 0), //Foam::dimless,
83  )
86 #ifdef WM_SP
87  .dimensions(),
88  // Assuming this is the Stefan-Boltzmann constant
89  // http://en.wikipedia.org/wiki/Stefan%E2%80%93Boltzmann_law
90  // Single precision can't handle the pow4(k),
91  // where k is Boltzmann constant = 1.3806488e-23
92  5.6704e-8f
93 #endif
94  ),
95  constantphysicoChemicalsigma,
96  "sigma"
97 );
98 
99 
101 (
105  (
106  "b",
109  (
110  "C",
111  dimensionSet(0, 0, 0, 0, 0), //Foam::dimless
112  4.965114231
113  )
114  ),
115  constantphysicoChemicalb,
116  "b"
117 );
118 
119 
121 (
125  (
126  "c1",
128  (
129  "C",
130  dimensionSet(0, 0, 0, 0, 0), //Foam::dimless,
132  )
134  ),
135  constantphysicoChemicalc1,
136  "c1"
137 );
138 
139 
141 (
145  (
146  "c2",
148  ),
149  constantphysicoChemicalc2,
150  "c2"
151 );
152 
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 } // End namespace constant
157 } // End namespace Foam
158 
159 // ************************************************************************* //
mathematicalConstants.H
Foam::constant::physicoChemical::NA
const dimensionedScalar NA
Avagadro number.
Foam::constant::physicoChemical::k
const dimensionedScalar k
Boltzmann constant.
Definition: LISASMDCalcMethod2.H:41
Foam::constant::physicoChemical::group
const char *const group
Group name for physico-chemical constants.
Definition: physicoChemicalConstants.C:40
universalConstants.H
Foam::constant::mathematical::twoPi
const scalar twoPi(2 *pi)
Foam::dimensionSet
Dimension set for the base types.
Definition: dimensionSet.H:116
Foam::constant::physicoChemical::R
const dimensionedScalar R
Universal gas constant: default SI units: [J/mol/K].
Definition: evaluateNearWall.H:6
Foam::constant::physicoChemical::F
const dimensionedScalar F
Faraday constant: default SI units: [C/mol].
constant
Constant dispersed-phase particle diameter model.
Foam::pow4
dimensionedScalar pow4(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:98
Foam::constant::universal::hr
const dimensionedScalar hr
Reduced Planck constant: default SI units: [J/s].
Foam::constant::physicoChemical::c1
const dimensionedScalar c1
First radiation constant: default SI units: [W/m2].
Foam::constant::physicoChemical::b
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Definition: createFields.H:28
Foam::pow3
dimensionedScalar pow3(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:87
Foam::constant::universal::h
const dimensionedScalar h
Planck constant.
Definition: createFields.H:6
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
Generic dimensioned Type class.
Definition: dimensionedScalarFwd.H:41
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::constant::physicoChemical::c2
const dimensionedScalar c2
Second radiation constant: default SI units: [m.K].
Foam::e
const double e
Elementary charge.
Definition: doubleFloat.H:94
electromagneticConstants.H
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:49
f
labelList f(nPoints)
physicoChemicalConstants.H
Foam::constant::electromagnetic::e
const dimensionedScalar e
Elementary charge.
Definition: doubleFloat.H:94
Foam::constant::physicoChemical::sigma
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Foam::constant::mathematical::pi
const scalar pi(M_PI)
Foam::constant::universal::c
const dimensionedScalar c
Speed of light in a vacuum.
dimensionedConstants.H
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...