File indexing completed on 2024-12-08 03:37:05
0001 /* 0002 SPDX-FileCopyrightText: 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef STEPCORE_CONSTANTS_H 0008 #define STEPCORE_CONSTANTS_H 0009 0010 /** \file constants.h 0011 * \brief Constants class 0012 */ 0013 0014 namespace StepCore { 0015 0016 /** \ingroup constants 0017 * \brief Common physical constants 0018 * 0019 * Values taken from https://en.wikipedia.org/wiki/Physical_constants 0020 */ 0021 class Constants { 0022 public: 0023 /** Pi constant */ 0024 static const double Pi; 0025 0026 /** Speed of light in vacuum [m/s] */ 0027 static const double SpeedOfLight; 0028 /** Electric constant (permittivity of free space) [F/m] */ 0029 static const double Electric; 0030 /** Magnetic constant (permeability of free space) [N/A^2] */ 0031 static const double Magnetic; 0032 0033 /** Coulomb's constant [N*m^2/C^2] */ 0034 static const double Coulomb; 0035 /** Error of Coulomb's constant */ 0036 static const double CoulombError; 0037 0038 /** Newtonian constant of gravitation [N*m^2/kg^2] */ 0039 static const double Gravitational; 0040 /** Error of newtonian constant of gravitation */ 0041 static const double GravitationalError; 0042 0043 /** Planck's constant [J*s] */ 0044 static const double Planck; 0045 /** Error of Planck's constant */ 0046 static const double PlanckError; 0047 0048 /** Boltzmann's constant [J/K] */ 0049 static const double Boltzmann; 0050 /** Error of Boltzmann's constant */ 0051 static const double BoltzmannError; 0052 0053 /** Standard acceleration of gravity (free fall on Earth) [m/s^2] */ 0054 static const double WeightAccel; 0055 /** Error of standard acceleration of gravity (free fall on Earth) */ 0056 static const double WeightAccelError; 0057 }; 0058 0059 } // namespace StepCore 0060 0061 #endif 0062