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-2019 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,
46  mu0,
48  (
49  dimensionSet(1, 1, -2, 0, 0, -2, 0),
50  4*mathematical::pi*1e-07
51  )
52 );
53 
54 
55 // Note: cannot use dimless etc. since not guaranteed to be constructed
57 (
58  electromagnetic,
59  epsilon0,
61  (
63  (
64  "C",
65  dimensionSet(0, 0, 0, 0, 0),
66  1
67  )
69  )
70 );
71 
72 
74 (
75  electromagnetic,
76  Z0,
78 );
79 
80 
82 (
83  electromagnetic,
84  kappa,
86  (
88  (
89  "C",
90  dimensionSet(0, 0, 0, 0, 0),
91  1/(4*mathematical::pi)
92  )
94  )
95 );
96 
97 
99 (
100  electromagnetic,
101  G0,
103  (
104  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
106  /universal::h
107  )
108 );
109 
110 
112 (
113  electromagnetic,
114  KJ,
116  (
117  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
119  /universal::h
120  )
121 );
122 
123 
125 (
126  electromagnetic,
127  phi0,
129  (
131  /(
132  dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2)
134  )
135  )
136 );
137 
138 
140 (
141  electromagnetic,
142  RK,
144 );
145 
146 
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 
149 } // End namespace constant
150 } // End namespace Foam
151 
152 // ************************************************************************* //
const dimensionedScalar & kappa
Coulomb constant: default SI units: [N.m2/C2].
const dimensionedScalar & epsilon0
Electric constant: default SI units: [F/m].
Dictionary reading and supplying the dimensioned constants used within OpenFOAM, particularly for the...
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const dimensionedScalar & KJ
Josephson constant: default SI units: [Hz/V].
const dimensionedScalar & c
Speed of light in a vacuum.
const dimensionedScalar & mu0
Magnetic constant/permeability of free space: default SI units: [H/m].
defineDimensionedConstantWithDefault(atomic, alpha, dimensionedScalar(sqr(electromagnetic::e)/(dimensionedScalar("C", dimensionSet(0, 0, 0, 0, 0), 2.0) *electromagnetic::epsilon0 *universal::h *universal::c)))
Dimension set for the base types.
Definition: dimensionSet.H:120
const dimensionedScalar & e
Elementary charge.
Definition: doubleScalar.H:105
const dimensionedScalar & G0
Conductance quantum: default SI units: [S].
const dimensionedScalar & phi0
Magnetic flux quantum: default SI units: [Wb].
const dimensionedScalar & RK
Von Klitzing constant: default SI units: [ohm].
const dimensionedScalar & Z0
Characteristic impedance of a vacuum: default SI units: [ohm].
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionedScalar & h
Planck constant.
const doubleScalar e
Elementary charge.
Definition: doubleScalar.H:105
Namespace for OpenFOAM.