TFEL/PhysicalConstants libraryThe TFEL/PhysicalConstants library is header-only which
provides:
PhysicalConstants in the
namespace tfel. This class defined a constexpr static data
member per physical constant. This class has two template parameters:
NumericType: which is the floatting point number type
to be used to define the physical constants.use_quantities: which states if quantities
(i.e. numbers with units) shall be used. to be used to define the
physical constants.tfel::constants. Those variables have the same
template parameters than the PhysicalConstants classThe values of the physical constants are extracted from: http://physics.nist.gov/cuu/Constants/index.html
The values of the physical constants depend on the compatibility
modes: those of the current version of TFEL are those
exposed by the names without suffix, whereas those of the next major
version are those of the tfel::future and
tfel::constants::future namespaces, as described in the
page devoted to compatibility
modes in the TFEL libraries.
Fortran bindingsA include file named TFELPHYSICALCONSTANTS.INC is
provided for fortran77. This include declares the physical
constants as real64 parameters.
A module named TFEL_PHYSICAL_CONSTANTS is provided for
fortran95. This module exposes the physical constants as
real64 parameters.
The Fortran bindings are not versioned: they expose the
values of the next major version of TFEL.
Python bindingsThe tfel module exposes the class
PhysicalConstants which declares the physical constants as
read-only attributes. The constants of a given compatibility mode are
exposed by a submodule of the same name.