Volume expansion for ideal gas (volume_idealgas
)#
Classes:
|
Calculates specific derivative values at refV with data x and W. |
Functions:
|
Factory function to provide coefficients of expansion. |
|
Factory function to create Extrapolation model for volume expansion. |
|
Factory function to create Extrapolation model for volume expansion. |
- class thermoextrap.volume_idealgas.VolumeDerivFuncsIG(refV=1.0)[source]#
Bases:
object
Calculates specific derivative values at refV with data x and W. Only go to first order for volume extrapolation. Here W represents the virial instead of the potential energy.
- thermoextrap.volume_idealgas.factory_derivatives(refV=1.0)[source]#
Factory function to provide coefficients of expansion.
- Parameters:
refV (
float
) – reference volume (default 1 - if already divided by volume no need to set)- Returns:
derivatives (
thermoextrap.models.Derivatives
object) – Object used to calculate moments
- thermoextrap.volume_idealgas.factory_extrapmodel(volume, uv, xv, order=1, alpha_name='volume', **kws)[source]#
Factory function to create Extrapolation model for volume expansion.
- Parameters:
order (
int
) – maximum ordervolume (
float
) – reference value of volumeuv, xv (array-like) – values for u and x
alpha_name, str, default=’volume’ – name of expansion parameter
kws (
dict
) – extra arguments to factory_datavalues
- Returns:
extrapmodel (
ExtrapModel
)
- thermoextrap.volume_idealgas.factory_extrapmodel_data(volume, data, order=1, alpha_name='volume')[source]#
Factory function to create Extrapolation model for volume expansion.
- Parameters:
- Returns:
extrapmodel (
ExtrapModel
)