Web Analytics Made Easy - Statcounter
Skip to content

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:

Short name: SBConstant

For example:

SBQuantity::mass m = *SBConstant::protonMass;

Short name: SBConstant

See also: SAMSON's unit system

Public Static Attributes Documentation#

variable DegToRad#

DegToRad is SBDQuantityConstant::Pi / 180.0.

const double SBDQuantityConstant::DegToRad;


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.

const SBQuantity::dimensionless *const SBDQuantityConstant::Pi;


variable RadToDeg#

RadToDeg is 180.0 / SBDQuantityConstant::Pi .

const double SBDQuantityConstant::RadToDeg;


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.

const SBQuantity::picometer *const SBDQuantityConstant::bohrRadius;


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.

const SBQuantity::yoctogram *const SBDQuantityConstant::electronMass;


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.

const SBQuantity::yoctogram *const SBDQuantityConstant::neutronMass;


variable protonMass#

The proton mass.

const SBQuantity::yoctogram *const SBDQuantityConstant::protonMass;


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
)