electromagneticConstants.C
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-2020 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"
29 #include "atomicConstants.H"
30 #include "dimensionedConstants.H"
31 
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 namespace constant
37 {
38 
39 const char* const electromagnetic::group = "electromagnetic";
40 
41 
42 // Note: cannot use dimless etc. as they may not have been constructed yet
43 
45 (
47  (
48  electromagnetic::group,
49  "mu0",
51  (
52  dimensionSet(1, 1, -2, 0, 0, -2, 0),
53  4*mathematical::pi*1e-07
54  )
55  )
56 );
57 
58 
60 (
62  (
63  electromagnetic::group,
64  "epsilon0",
66  )
67 );
68 
69 
71 (
73  (
74  electromagnetic::group,
75  "Z0",
77  )
78 );
79 
80 
82 (
84  (
85  electromagnetic::group,
86  "kappa",
88  )
89 );
90 
91 
93 (
95  (
96  electromagnetic::group,
97  "G0",
99  )
100 );
101 
102 
104 (
106  (
107  electromagnetic::group,
108  "KJ",
110  )
111 );
112 
113 
115 (
117  (
118  electromagnetic::group,
119  "phi0",
121  )
122 );
123 
124 
126 (
128  (
129  electromagnetic::group,
130  "RK",
132  )
133 );
134 
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 } // End namespace constant
139 } // End namespace Foam
140 
141 // ************************************************************************* //
const dimensionedScalar KJ
Josephson constant: default SI units: [Hz/V].
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...
const dimensionedScalar Z0
Characteristic impedance of a vacuum: default SI units: [ohm].
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionedScalar h
Planck constant.
const dimensionedScalar c
Speed of light in a vacuum.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Dimension set for the base types.
Definition: dimensionSet.H:121
dimensionedScalar dimensionedConstant(const char *const group, const char *name, const dimensionSet &dimensions)
const dimensionedScalar RK
Von Klitzing constant: default SI units: [ohm].
const dimensionedScalar G0
Conductance quantum: default SI units: [S].
const dimensionedScalar epsilon0
Electric constant: default SI units: [F/m].
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:105
const dimensionedScalar phi0
Magnetic flux quantum: default SI units: [Wb].
const dimensionedScalar e
Elementary charge.
Definition: doubleScalar.H:105
Namespace for OpenFOAM.