version 3.10-dev
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
13#ifndef DUMUX_CONSTANTS_HH
14#define DUMUX_CONSTANTS_HH
15
16#include <cmath>
17
18namespace Dumux {
19
25template<class Scalar>
27{
28public:
32 static constexpr Scalar R = 8.314472;
33
37 static constexpr Scalar Na = 6.02214179e23;
38
42 static constexpr Scalar kb = R / Na;
43
47 static constexpr Scalar c = 299792458;
48
54 static constexpr Scalar F = 96485.3365;
55
59 static constexpr Scalar G = 6.67428e-11;
60
64 static constexpr Scalar h = 6.62606896e-34;
65
69 static constexpr Scalar hRed = h / (2 * M_PI);
70};
71
72} // end namespace Dumux
73
74#endif
A central place for various physical constants occurring in some equations.
Definition: constants.hh:27
static constexpr Scalar G
Newtonian constant of gravitation .
Definition: constants.hh:59
static constexpr Scalar F
Faraday constant .
Definition: constants.hh:54
static constexpr Scalar kb
The Boltzmann constant .
Definition: constants.hh:42
static constexpr Scalar R
The ideal gas constant .
Definition: constants.hh:32
static constexpr Scalar Na
The Avogadro constant .
Definition: constants.hh:37
static constexpr Scalar hRed
Reduced Planck constant .
Definition: constants.hh:69
static constexpr Scalar h
Planck constant .
Definition: constants.hh:64
static constexpr Scalar c
Speed of light in vacuum .
Definition: constants.hh:47
Definition: adapt.hh:17