Physlib.Thermodynamics.Temperature.Basic
Temperature
In this module we define the type `Temperature`, corresponding to the temperature in a given (but arbitrary) set of units which have absolute zero at zero.
This is the version of temperature most often used in undergraduate and non-mathematical physics.
The choice of units can be made on a case-by-case basis, as long as they are done consistently.
Regularity of `ofβ`
Convergence
Conversion to and from `ℝ≥0`
Calculus relating T and β
28 declarations
Coercion of `Temperature` to
This 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
The function maps a temperature to its representation as a real number in .
Coercion of `Temperature` to
This 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
The 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` ()
The 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
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
The function mapping the inverse temperature to the temperature , defined as where is the Boltzmann constant, is continuous on the interval .
is differentiable on
The 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
For sufficiently large inverse temperature , the corresponding temperature , defined as where is the Boltzmann constant, is strictly positive.
as
Let denote the temperature corresponding to an inverse temperature , where and is the Boltzmann constant. As , the temperature converges to in .
as
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
Given 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
For any non-negative real number , the underlying value of the temperature constructed from is equal to .
The value of a temperature constructed from is
For 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
For any non-negative real number , the real number representation of the temperature constructed from is equal to .
Temperature from where
Given 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
For 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
Given 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
For any real number , the inverse temperature function is given by the closed-form expression , where is the Boltzmann constant.
on
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
For 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
Let 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.
