Physlib.Thermodynamics.Temperature.Basic
28 declarations
Coercion of `Temperature` to
#instCoeNNRealThis definition provides a coercion from the type `Temperature` to the set of non-negative real numbers . It allows a temperature to be treated as its underlying numerical value in , consistent with the convention that absolute zero corresponds to zero.
Temperature as a real number
#toRealThe function maps a temperature to its representation as a real number in .
Coercion of `Temperature` to
#instCoeRealThis definition provides a coercion from the type `Temperature` to the real numbers . It allows a temperature to be treated as its numerical representation in via the mapping .
Induced topology on `Temperature` from
#instTopologicalSpaceThe topological space structure on the type `Temperature` is the induced topology from the non-negative real numbers under the mapping , which assigns to each temperature its numerical representation in .
Zero element of `Temperature` ()
#instZeroThe type `Temperature` is equipped with a zero element , which represents the absolute zero of temperature and corresponds to the value in the underlying numerical representation.
For any two temperatures , if their underlying numerical values and in the non-negative real numbers are equal, then and are equal.
Inverse temperature
#βGiven a temperature , the inverse temperature is defined by the formula , where is the Boltzmann constant.
Temperature as a function of inverse temperature
#ofβGiven an inverse temperature , this function returns the corresponding temperature defined as , where is the Boltzmann constant.
The function `ofβ` maps an inverse temperature to a temperature value defined by the expression , where is the Boltzmann constant.
For any non-negative real number , the inverse temperature associated with the temperature derived from (where ) is equal to . Mathematically, this is expressed as .
For any temperature , the temperature obtained by converting its inverse temperature back into a temperature value is equal to . Mathematically, this is expressed as .
For any temperature , if its value is strictly positive (i.e., ), then the corresponding inverse temperature (where ) is also strictly positive (i.e., ).
is continuous on
#ofβ_continuousOnThe function mapping the inverse temperature to the temperature , defined as where is the Boltzmann constant, is continuous on the interval .
is differentiable on
#ofβ_differentiableOnThe function that maps a real number to the temperature value corresponding to an inverse temperature , defined by where is the Boltzmann constant, is differentiable on the interval .
is eventually positive as
#eventually_pos_ofβFor sufficiently large inverse temperature , the corresponding temperature , defined as where is the Boltzmann constant, is strictly positive.
Let denote the temperature corresponding to an inverse temperature , where and is the Boltzmann constant. As , the temperature converges to in .
Let denote the temperature corresponding to an inverse temperature . As tends to infinity, the temperature converges to from the right in the real numbers , remaining within the set of positive real numbers (denoted as ).
Temperature from
#ofNNRealGiven a non-negative real number , this function constructs a value of type `Temperature` with magnitude . The resulting `Temperature` is defined in a system of units where corresponds to absolute zero.
The value of `Temperature.ofNNReal t` is
#ofNNReal_valFor any non-negative real number , the underlying value of the temperature constructed from is equal to .
The value of a temperature constructed from is
#coe_ofNNReal_coeFor any non-negative real number , the value of the temperature constructed from , when converted back to a non-negative real number, is equal to .
The real value of a temperature from is
#coe_ofNNReal_realFor any non-negative real number , the real number representation of the temperature constructed from is equal to .
Temperature from where
#ofRealNonnegGiven a real number and a proof that , this function constructs a value of type `Temperature` with magnitude . The resulting value represents an absolute temperature in a system of units where corresponds to absolute zero.
The value of `ofRealNonneg t ht` equals
#ofRealNonneg_valFor any real number and a proof that , the underlying non-negative real value of the temperature constructed from (denoted by `ofRealNonneg t ht`) is equal to the representation of as a non-negative real number .
Inverse temperature as a function of
#betaFromRealGiven a real number , the function returns the inverse temperature as a real number. The calculation is performed by first taking the non-negative part of , defined as , and then calculating , where is the Boltzmann constant.
For any real number , the inverse temperature function is given by the closed-form expression , where is the Boltzmann constant.
For any real number in the interval , the inverse temperature function (defined as `betaFromReal`) is equal to , where is the Boltzmann constant.
The derivative of with respect to is for
#deriv_beta_wrt_TFor a temperature with a strictly positive value , the inverse temperature function (defined as `betaFromReal`) is differentiable at within the interval . Its derivative at this point is given by where is the Boltzmann constant.
Chain Rule for
#chain_rule_T_betaLet be a function and . For a temperature with a strictly positive value , if is differentiable at within the interval with derivative , then the composite function is differentiable at within the interval , and its derivative is given by: where is the Boltzmann constant and is the inverse temperature.
