Class SBDQuantityConstant#
ClassList > SBDQuantityConstant
This class holds several useful physical constants. More...
#include "SBDQuantityConstant.hpp"
Public Static Attributes#
Type | Name |
---|---|
const double | DegToRad DegToRad is SBDQuantityConstant::Pi / 180.0. |
const SBDQuantityType< SBDQuantityUnitType< SBUnitSystemSI, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0 > > *const | NA The Avogadro constant. |
const SBQuantity::dimensionless *const | Pi Pi is 3.1415926535897932. |
const double | RadToDeg RadToDeg is 180.0 / SBDQuantityConstant::Pi . |
const SBDQuantityType< SBDQuantityUnitType< SBUnitSystemSI, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0 > > *const | avogadroConstant The Avogadro constant. |
const SBQuantity::picometer *const | bohrRadius The Bohr radius, a0. |
const SBDQuantityType< SBDQuantityUnitType< SBUnitSystemSI, -12, 2, -27, 1, -15, -2, 0, 0, 0, -1, 0, 0, 0, 0 > > *const | boltzmannConstant The Boltzmann constant. |
const SBDQuantityType< SBDQuantityUnitType< SBUnitSystemSI, 0, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0 > > *const | c The speed of light in vacuum. |
const SBDQuantityType< SBDQuantityUnitType< SBUnitSystemSI, 0, 3, 0, 1, 0, -4, 0, -2, 0, 0, 0, 0, 0, 0 > > *const | coulombConstant The Coulomb constant. |
const SBQuantity::yoctogram *const | electronMass The electron mass. |
const SBDQuantityType< SBDQuantityUnitType< SBUnitSystemSI, -12, 2, -27, 1, -15, -2, 0, 0, 0, -1, 0, 0, 0, 0 > > *const | kB The Boltzmann constant. |
const SBQuantity::yoctogram *const | neutronMass The neutron mass. |
const SBQuantity::yoctogram *const | protonMass The proton mass. |
const SBDQuantityType< SBDQuantityUnitType< SBUnitSystemSI, 0, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0 > > *const | speedOfLight The speed of light in vacuum. |
Public Static Functions#
Type | Name |
---|---|
SBQuantity::degree | getDegreesFromRadians (const SBQuantity::radian & angle) Converts radians in degrees in the interval [-180, 180]. |
Detailed Description#
This class holds several useful physical constants, which are accessed through static const pointers.
Values for physical constants correspond to 2022 CODATA internationally recommended values of the Fundamental Physical Constants.
See:
- National Institute of Standards and Technology (NIST): https://physics.nist.gov/cuu/Constants/
- Table of physical constants: https://physics.nist.gov/cuu/Constants/Table/allascii.txt
Short name: SBConstant
For example:
Short name: SBConstant
See also: SAMSON's unit system
Public Static Attributes Documentation#
variable DegToRad#
DegToRad is SBDQuantityConstant::Pi / 180.0.
variable NA#
The Avogadro constant.
const SBQuantityType< SBUnitType< SBUnitSystemSI, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0 > > *const SBDQuantityConstant::NA;
variable Pi#
Pi is 3.1415926535897932.
variable RadToDeg#
RadToDeg is 180.0 / SBDQuantityConstant::Pi .
variable avogadroConstant#
The Avogadro constant.
const SBQuantityType< SBUnitType< SBUnitSystemSI, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0 > > *const SBDQuantityConstant::avogadroConstant;
variable bohrRadius#
The Bohr radius, a0.
variable boltzmannConstant#
The Boltzmann constant.
const SBQuantityType< SBUnitType< SBUnitSystemSI, -12, 2, -27, 1, -15, -2, 0, 0, 0, -1, 0, 0, 0, 0 > > *const SBDQuantityConstant::boltzmannConstant;
variable c#
The speed of light in vacuum.
const SBQuantityType< SBUnitType< SBUnitSystemSI, 0, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0 > > *const SBDQuantityConstant::c;
variable coulombConstant#
The Coulomb constant.
const SBQuantityType< SBUnitType< SBUnitSystemSI, 0, 3, 0, 1, 0, -4, 0, -2, 0, 0, 0, 0, 0, 0 > > *const SBDQuantityConstant::coulombConstant;
variable electronMass#
The electron mass.
variable kB#
The Boltzmann constant.
const SBQuantityType< SBUnitType< SBUnitSystemSI, -12, 2, -27, 1, -15, -2, 0, 0, 0, -1, 0, 0, 0, 0 > > *const SBDQuantityConstant::kB;
variable neutronMass#
The neutron mass.
variable protonMass#
The proton mass.
variable speedOfLight#
The speed of light in vacuum.
const SBQuantityType< SBUnitType< SBUnitSystemSI, 0, 1, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0 > > *const SBDQuantityConstant::speedOfLight;
Public Static Functions Documentation#
function getDegreesFromRadians#
Converts radians in degrees in the interval [-180, 180].
static SBQuantity::degree SBDQuantityConstant::getDegreesFromRadians (
const SBQuantity::radian & angle
)