Volume expansion for ideal gas (volume_idealgas)#

Classes:

VolumeDerivFuncsIG([refV])

Calculates specific derivative values at refV with data x and W.

Functions:

factory_derivatives([refV])

Factory function to provide coefficients of expansion.

factory_extrapmodel(volume, uv, xv[, order, ...])

Factory function to create Extrapolation model for volume expansion.

factory_extrapmodel_data(volume, data[, ...])

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 order

  • volume (float) – reference value of volume

  • uv, 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:
  • volume (float) – reference value of volume

  • data (object) – Note that this data object should have central=False, deriv_dim=None

  • alpha_name, str, default=’volume’ – name of expansion parameter

Returns:

extrapmodel (ExtrapModel)