pyiapws95.saturation_props

pyiapws95.saturation_props(temperature, units=True)[source]

Computes water properties at saturation pressure.

Parameters
  • temperature (float or pint.Quantity) – Temperature, in degrees Kelvin or as a pint Quantity.

  • units (bool) – If pint is avaliable and units is True, return pint Quantites. Default is True.

Returns

Tuple with fields: ‘liquid’ and ‘vapour’. Each field is a tuple with water properties for the relevant phase.

Return type

typing.NamedTuple

Raises

ValueError – When the algorithm fails to converge.

See also

water_props

Return water properties for single phase.

Examples

>>> saturation_props(280, units=False)
Liquid WaterProps(
  temperature = 280.0
  pressure = 991.8203199195548
  density = 999.862210022028
  entropy = 104.11824993199234
  internal_energy = 28795.297190165784
  enthalpy = 28796.28914716716
  gibbs_free_energy = -356.82083379069445
  isochoric_heat_capacity = 4200.257591191563
  isobaric_heat_capacity = 4201.350463857432
  speed_of_sound = 1434.1151160257625
)
Vapour WaterProps(
  temperature = 280.0
  pressure = 991.8203199195548
  density = 0.007681162498197408
  entropy = 8977.875870567612
  internal_energy = 2384324.697167183
  enthalpy = 2513448.422925141
  gibbs_free_energy = -356.820833790116
  isochoric_heat_capacity = 1424.168493620011
  isobaric_heat_capacity = 1891.341041100502
  speed_of_sound = 413.9245165642786
)