3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
constants.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
25#ifndef DUMUX_CONSTANTS_HH
26#define DUMUX_CONSTANTS_HH
27
28#include <cmath>
29
30namespace Dumux {
31
37template<class Scalar>
39{
40public:
44 static constexpr Scalar R = 8.314472;
45
49 static constexpr Scalar Na = 6.02214179e23;
50
54 static constexpr Scalar kb = R / Na;
55
59 static constexpr Scalar c = 299792458;
60
66 static constexpr Scalar F = 96485.3365;
67
71 static constexpr Scalar G = 6.67428e-11;
72
76 static constexpr Scalar h = 6.62606896e-34;
77
81 static constexpr Scalar hRed = h / (2 * M_PI);
82};
83
84} // end namespace Dumux
85
86#endif
Definition: adapt.hh:29
A central place for various physical constants occuring in some equations.
Definition: constants.hh:39
static constexpr Scalar G
Newtonian constant of gravitation .
Definition: constants.hh:71
static constexpr Scalar F
Faraday constant .
Definition: constants.hh:66
static constexpr Scalar kb
The Boltzmann constant .
Definition: constants.hh:54
static constexpr Scalar R
The ideal gas constant .
Definition: constants.hh:44
static constexpr Scalar Na
The Avogadro constant .
Definition: constants.hh:49
static constexpr Scalar hRed
Reduced Planck constant .
Definition: constants.hh:81
static constexpr Scalar h
Planck constant .
Definition: constants.hh:76
static constexpr Scalar c
Speed of light in vacuum .
Definition: constants.hh:59