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-------------------------------------------------------------------------------
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#include "universalConstants.H"
31#include "atomicConstants.H"
33
34// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35
36namespace Foam
37{
38namespace 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)
124 ),
125 constantelectromagneticG0,
126 "G0"
127);
128
129
131(
135 (
136 "KJ",
137 dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
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// ************************************************************************* //
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.
const dimensionedScalar e
Elementary charge.
const dimensionedScalar G0
Conductance quantum: default SI units: [S].
const dimensionedScalar epsilon0
Electric constant: default SI units: [F/m].
const dimensionedScalar KJ
Josephson constant: default SI units: [Hz/V].
const dimensionedScalar RK
Von Klitzing constant: default SI units: [ohm].
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
const dimensionedScalar phi0
Magnetic flux quantum: default SI units: [Wb].
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
constexpr const char *const group
Group name for electromagnetic constants.
const dimensionedScalar Z0
Characteristic impedance of a vacuum: default SI units: [ohm].
constexpr scalar pi(M_PI)
const dimensionedScalar h
Planck constant.
const dimensionedScalar c
Speed of light in a vacuum.
Namespace for OpenFOAM.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
volScalarField & e
Definition: createFields.H:11