electromagneticConstants.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 "mathematicalConstants.H"
29 #include "universalConstants.H"
31 #include "atomicConstants.H"
32 #include "dimensionedConstants.H"
33 
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35 
36 namespace Foam
37 {
38 namespace constant
39 {
40 
42 (
46  (
47  "mu0",
48  dimensionSet(1, 1, -2, 0, 0, -2, 0),
49  4.0*mathematical::pi*1e-07
50  ),
51  constantelectromagneticmu0,
52  "mu0"
53 );
54 
55 
56 // Note: cannot use dimless etc. since not guaranteed to be constructed
58 (
61 
63  (
64  "epsilon0",
66  (
67  "C",
68  dimensionSet(0, 0, 0, 0, 0),
69  1.0
70  )
72  ),
73  constantelectromagneticepsilon0,
74  "epsilon0"
75 );
76 
77 
79 (
83  (
84  "Z0",
86  ),
87  constantelectromagneticZ0,
88  "Z0"
89 );
90 
91 
93 (
96 
98  (
99  "kappa",
101  (
102  "C",
103  dimensionSet(0, 0, 0, 0, 0),
104  1.0/(4.0*mathematical::pi)
105  )
107  ),
108 
109  constantelectromagnetickappa,
110  "kappa"
111 );
112 
113 
115 (
119  (
120  "G0",
121  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
123  /universal::h
124  ),
125  constantelectromagneticG0,
126  "G0"
127 );
128 
129 
131 (
135  (
136  "KJ",
137  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
139  /universal::h
140  ),
141  constantelectromagneticKJ,
142  "KJ"
143 );
144 
145 
147 (
151  (
152  "phi0",
154  /(
155  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
157  )
158  ),
159  constantelectromagneticphi0,
160  "phi0"
161 );
162 
163 
165 (
169  (
170  "RK",
172  ),
173  constantelectromagneticRK,
174  "RK"
175 );
176 
177 
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 
180 } // End namespace constant
181 } // End namespace Foam
182 
183 // ************************************************************************* //
mathematicalConstants.H
Foam::constant::electromagnetic::RK
const dimensionedScalar RK
Von Klitzing constant: default SI units: [ohm].
universalConstants.H
Foam::constant::electromagnetic::group
constexpr const char *const group
Group name for electromagnetic constants.
Definition: electromagneticConstants.H:51
Foam::constant::electromagnetic::kappa
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Foam::constant::electromagnetic::epsilon0
const dimensionedScalar epsilon0
Electric constant: default SI units: [F/m].
Foam::constant::universal::h
const dimensionedScalar h
Planck constant.
Definition: setRegionSolidFields.H:33
Foam::constant::electromagnetic::G0
const dimensionedScalar G0
Conductance quantum: default SI units: [S].
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::constant::electromagnetic::phi0
const dimensionedScalar phi0
Magnetic flux quantum: default SI units: [Wb].
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:42
Foam::constant::electromagnetic::KJ
const dimensionedScalar KJ
Josephson constant: default SI units: [Hz/V].
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
electromagneticConstants.H
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition: dimensionedSymmTensor.C:51
atomicConstants.H
Foam::constant::mathematical::pi
constexpr scalar pi(M_PI)
Foam::constant::electromagnetic::e
const dimensionedScalar e
Elementary charge.
Definition: createFields.H:11
Foam::constant::electromagnetic::mu0
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
Foam::constant::universal::c
const dimensionedScalar c
Speed of light in a vacuum.
constant
constant condensation/saturation model.
Foam::constant::electromagnetic::Z0
const dimensionedScalar Z0
Characteristic impedance of a vacuum: default SI units: [ohm].
dimensionedConstants.H
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...