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-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 \*---------------------------------------------------------------------------*/
25 
26 #include "mathematicalConstants.H"
27 #include "universalConstants.H"
29 #include "atomicConstants.H"
30 
31 #include "dimensionedConstants.H"
32 
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 
35 namespace Foam
36 {
37 namespace constant
38 {
39 
40 const char* const electromagnetic::group = "electromagnetic";
41 
42 
44 (
45  electromagnetic::group,
48  (
49  "mu0",
50  dimensionSet(1, 1, -2, 0, 0, -2, 0),
51  4.0*mathematical::pi*1e-07
52  ),
53  constantelectromagneticmu0,
54  "mu0"
55 );
56 
57 
58 // Note: cannot use dimless etc. since not guaranteed to be constructed
60 (
61  electromagnetic::group,
63 
65  (
66  "epsilon0",
68  (
69  "C",
70  dimensionSet(0, 0, 0, 0, 0),
71  1.0
72  )
74  ),
75  constantelectromagneticepsilon0,
76  "epsilon0"
77 );
78 
79 
81 (
82  electromagnetic::group,
85  (
86  "Z0",
88  ),
89  constantelectromagneticZ0,
90  "Z0"
91 );
92 
93 
95 (
96  electromagnetic::group,
98 
100  (
101  "kappa",
103  (
104  "C",
105  dimensionSet(0, 0, 0, 0, 0),
106  1.0/(4.0*mathematical::pi)
107  )
109  ),
110 
111  constantelectromagnetickappa,
112  "kappa"
113 );
114 
115 
117 (
118  electromagnetic::group,
121  (
122  "G0",
123  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
125  /universal::h
126  ),
127  constantelectromagneticG0,
128  "G0"
129 );
130 
131 
133 (
134  electromagnetic::group,
137  (
138  "KJ",
139  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
141  /universal::h
142  ),
143  constantelectromagneticKJ,
144  "KJ"
145 );
146 
147 
149 (
150  electromagnetic::group,
153  (
154  "phi0",
156  /(
157  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
159  )
160  ),
161  constantelectromagneticphi0,
162  "phi0"
163 );
164 
165 
167 (
168  electromagnetic::group,
171  (
172  "RK",
174  ),
175  constantelectromagneticRK,
176  "RK"
177 );
178 
179 
180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181 
182 } // End namespace constant
183 } // End namespace Foam
184 
185 // ************************************************************************* //
const dimensionedScalar Z0
Characteristic impedance of a vacuum: default SI units: [ohm].
const dimensionedScalar mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
const dimensionedScalar G0
Conductance quantum: default SI units: [S].
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...
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")
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionedScalar phi0
Magnetic flux quantum: default SI units: [Wb].
const dimensionedScalar epsilon0
Electric constant: default SI units: [F/m].
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
const dimensionedScalar RK
Von Klitzing constant: default SI units: [ohm].
const dimensionedScalar KJ
Josephson constant: default SI units: [Hz/V].
Dimension set for the base types.
Definition: dimensionSet.H:120
const dimensionedScalar e
Elementary charge.
Definition: doubleScalar.H:98
const dimensionedScalar h
Planck constant.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionedScalar c
Speed of light in a vacuum.
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:98
Namespace for OpenFOAM.