PhysicalConstants

class PhysicalConstants

This class provides physical constants and conversions for convenience. The main purpose is to facilitate comparison to machine percision. For example, the molar gas constant is derived from the Boltzmann and Avogadro constants. Do not use this as a primary source for NIST physical constants. Instead, refer to the primary publications CODATA sources.

Subclassed by feasst::CODATA2010, feasst::CODATA2014, feasst::CODATA2018, feasst::PhysicalConstantsCustom

class CODATA2018 : public feasst::PhysicalConstants

Physical constants from CODATA 2018. See https://doi.org/10.1103/RevModPhys.93.025010.

class CODATA2014 : public feasst::PhysicalConstants

Physical constants from CODATA 2014. See http://dx.doi.org/10.1103/RevModPhys.88.035009 and http://dx.doi.org/10.1063/1.4954402 .

class CODATA2010 : public feasst::PhysicalConstants

Physical constants from CODATA 2010. See http://dx.doi.org/10.1103/RevModPhys.84.1527 and http://dx.doi.org/10.1063/1.4724320 .

class PhysicalConstantsCustom : public feasst::PhysicalConstants

Define custom physical constants.

Arguments

  • boltzmann_constant

  • avogadro_constant

  • permitivity_vacuum

  • elementary_charge