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
27{
28 public:
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
48{
49 public:
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)
69{
70 public:
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
static const double h
Definition physconst.h:39
static const double mu0
Definition physconst.h:37
static const double hbar
Definition physconst.h:40
static const double mp
Definition physconst.h:32
static const double eps0
Definition physconst.h:36
static const double thomcs
Definition physconst.h:38
static const double me
Definition physconst.h:31
static const double k
Definition physconst.h:41
static const double G
Definition physconst.h:43
static const double e
Definition physconst.h:34
static const double c
Definition physconst.h:35
static const double mpi0
Definition physconst.h:33
static const double r0
Definition physconst.h:42
static const double thomcs
Definition physconst.h:59
static const double mp
Definition physconst.h:53
static const double r0
Definition physconst.h:63
static const double eps0
Definition physconst.h:57
static const double e
Definition physconst.h:55
static const double c
Definition physconst.h:56
static const double mu0
Definition physconst.h:58
static const double hbar
Definition physconst.h:61
static const double me
Definition physconst.h:52
static const double h
Definition physconst.h:60
static const double k
Definition physconst.h:62
static const double mpi0
Definition physconst.h:54
static const double G
Definition physconst.h:64
static const double r0
Definition physconst.h:84
static const double me
Definition physconst.h:73
static const double G
Definition physconst.h:85
static const double k
Definition physconst.h:83
static const double hbar
Definition physconst.h:82
static const double eps0
Definition physconst.h:78
static const double mpi0
Definition physconst.h:75
static const double c
Definition physconst.h:77
static const double thomcs
Definition physconst.h:80
static const double mu0
Definition physconst.h:79
static const double mp
Definition physconst.h:74
static const double h
Definition physconst.h:81
static const double e
Definition physconst.h:76