Vlasiator
ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
physconst.h
Go to the documentation of this file.
1
#pragma once
2
/*
3
* This file is part of Vlasiator.
4
* Copyright 2010-2016 Finnish Meteorological Institute
5
*
6
* For details of usage, see the COPYING file and read the "Rules of the Road"
7
* at http://www.physics.helsinki.fi/vlasiator/
8
*
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License along
20
* with this program; if not, write to the Free Software Foundation, Inc.,
21
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
*/
23
#include <math.h>
24
25
// The default is (Gaussian) CGS units
26
class
PhysicalConstantsCGS
27
{
28
public
:
29
PhysicalConstantsCGS
(){};
30
31
static
const
double
me
;
// Electron mass (g)
32
static
const
double
mp
;
// Proton mass (g)
33
static
const
double
mpi0
;
// Mass of uncharged pion (g)
34
static
const
double
e
;
// Elementary charge (statcoulomb)
35
static
const
double
c
;
// Speed of light (cm/s)
36
static
const
double
eps0
;
// Permitivity of vacuum
37
static
const
double
mu0
;
// Permeability of vacuum
38
static
const
double
thomcs
;
// Thomson cross section (cm^2)
39
static
const
double
h
;
// Planck constant (erg sec)
40
static
const
double
hbar
;
// reduced Planck constant (erg sec)
41
static
const
double
k
;
// Boltzmann constant (erg / K)
42
static
const
double
r0
;
// Classical electron radius / Thomson scattering length (cm)
43
static
const
double
G
;
// Gravitational constant cm^3/(g sec^2)
44
};
45
46
// Constants in SI
47
class
PhysicalConstantsSI
48
{
49
public
:
50
PhysicalConstantsSI
(){};
51
52
static
const
double
me
;
// Electron mass (kg)
53
static
const
double
mp
;
// Proton mass (kg)
54
static
const
double
mpi0
;
// Mass of uncharged pion (kg)
55
static
const
double
e
;
// Elementary charge (C)
56
static
const
double
c
;
// Speed of light (m/s)
57
static
const
double
eps0
;
// Permitivity of vacuum (F / m)
58
static
const
double
mu0
;
// Permeability of vacuum (H / m)
59
static
const
double
thomcs
;
// Thomson cross section (m^2)
60
static
const
double
h
;
// Planck constant (J s)
61
static
const
double
hbar
;
// reduced Planck constant (J s)
62
static
const
double
k
;
// Boltzmann constant (J / K)
63
static
const
double
r0
;
// Classical electron radius / Thomson scattering length (m)
64
static
const
double
G
;
// Gravitational constant m^3/(kg s^2)
65
};
66
67
// Natural Units with e = c = k = me = 1 (Stoney units)
68
class
PhysicalConstantsnorm
69
{
70
public
:
71
PhysicalConstantsnorm
(){};
72
73
static
const
double
me
;
// Electron mass
74
static
const
double
mp
;
// Proton mass
75
static
const
double
mpi0
;
// Mass of uncharged pion
76
static
const
double
e
;
// Elementary charge
77
static
const
double
c
;
// Speed of light
78
static
const
double
eps0
;
// Permitivity of vacuum
79
static
const
double
mu0
;
// Permeability of vacuum
80
static
const
double
thomcs
;
// Thomson cross section
81
static
const
double
h
;
// Planck constant
82
static
const
double
hbar
;
// reduced Planck constant
83
static
const
double
k
;
// Boltzmann constant
84
static
const
double
r0
;
// Classical electron radius
85
static
const
double
G
;
// Gravitational constant
86
87
// l = e^2 / c^2 me
88
// t = e^2 / c^3 me
89
// T = = me c^2 / k
90
};
91
PhysicalConstantsCGS::h
static const double h
Definition
physconst.h:39
PhysicalConstantsCGS::mu0
static const double mu0
Definition
physconst.h:37
PhysicalConstantsCGS::PhysicalConstantsCGS
PhysicalConstantsCGS()
Definition
physconst.h:29
PhysicalConstantsCGS::hbar
static const double hbar
Definition
physconst.h:40
PhysicalConstantsCGS::mp
static const double mp
Definition
physconst.h:32
PhysicalConstantsCGS::eps0
static const double eps0
Definition
physconst.h:36
PhysicalConstantsCGS::thomcs
static const double thomcs
Definition
physconst.h:38
PhysicalConstantsCGS::me
static const double me
Definition
physconst.h:31
PhysicalConstantsCGS::k
static const double k
Definition
physconst.h:41
PhysicalConstantsCGS::G
static const double G
Definition
physconst.h:43
PhysicalConstantsCGS::e
static const double e
Definition
physconst.h:34
PhysicalConstantsCGS::c
static const double c
Definition
physconst.h:35
PhysicalConstantsCGS::mpi0
static const double mpi0
Definition
physconst.h:33
PhysicalConstantsCGS::r0
static const double r0
Definition
physconst.h:42
PhysicalConstantsSI::thomcs
static const double thomcs
Definition
physconst.h:59
PhysicalConstantsSI::mp
static const double mp
Definition
physconst.h:53
PhysicalConstantsSI::r0
static const double r0
Definition
physconst.h:63
PhysicalConstantsSI::eps0
static const double eps0
Definition
physconst.h:57
PhysicalConstantsSI::PhysicalConstantsSI
PhysicalConstantsSI()
Definition
physconst.h:50
PhysicalConstantsSI::e
static const double e
Definition
physconst.h:55
PhysicalConstantsSI::c
static const double c
Definition
physconst.h:56
PhysicalConstantsSI::mu0
static const double mu0
Definition
physconst.h:58
PhysicalConstantsSI::hbar
static const double hbar
Definition
physconst.h:61
PhysicalConstantsSI::me
static const double me
Definition
physconst.h:52
PhysicalConstantsSI::h
static const double h
Definition
physconst.h:60
PhysicalConstantsSI::k
static const double k
Definition
physconst.h:62
PhysicalConstantsSI::mpi0
static const double mpi0
Definition
physconst.h:54
PhysicalConstantsSI::G
static const double G
Definition
physconst.h:64
PhysicalConstantsnorm::r0
static const double r0
Definition
physconst.h:84
PhysicalConstantsnorm::me
static const double me
Definition
physconst.h:73
PhysicalConstantsnorm::PhysicalConstantsnorm
PhysicalConstantsnorm()
Definition
physconst.h:71
PhysicalConstantsnorm::G
static const double G
Definition
physconst.h:85
PhysicalConstantsnorm::k
static const double k
Definition
physconst.h:83
PhysicalConstantsnorm::hbar
static const double hbar
Definition
physconst.h:82
PhysicalConstantsnorm::eps0
static const double eps0
Definition
physconst.h:78
PhysicalConstantsnorm::mpi0
static const double mpi0
Definition
physconst.h:75
PhysicalConstantsnorm::c
static const double c
Definition
physconst.h:77
PhysicalConstantsnorm::thomcs
static const double thomcs
Definition
physconst.h:80
PhysicalConstantsnorm::mu0
static const double mu0
Definition
physconst.h:79
PhysicalConstantsnorm::mp
static const double mp
Definition
physconst.h:74
PhysicalConstantsnorm::h
static const double h
Definition
physconst.h:81
PhysicalConstantsnorm::e
static const double e
Definition
physconst.h:76
particles
physconst.h
Generated on
for Vlasiator by
1.16.1