pyiapws95.water_props

pyiapws95.water_props(pressure, temperature, density=None, units=True)[source]

Computes water properties.

Parameters
  • pressure (float or pint.Quantity) – Pressure, either in pascals or as a pint Quantity.

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

  • density (float, pint.Quantity or None) – Initial density. If None, the density will be determined by lookup of Table 13.2. If numeric, must be kg/m^3.

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

Returns

Tuple with fields: ‘temperature’, ‘pressure’, ‘density’, ‘entropy’, ‘internal_energy’, ‘enthalpy’, ‘gibbs_free_energy’, ‘isochoric_heat_capacity’, ‘isobaric_heat_capacity’, ‘speed_of_sound’

Return type

typing.NamedTuple

Raises

ValueError – When the algorithm fails to converge.

See also

saturation_props

Return water properties at saturation.

Examples

>>> water_props(1e5, 280)
WaterProps(
  temperature = 280.0 kelvin
  pressure = 100000.0 pascal
  density = 999.9103569375845 kilogram / meter ** 3
  entropy = 104.11392202805507 joule / kelvin / kilogram
  internal_energy = 28794.08780871546 joule / kilogram
  enthalpy = 28894.09677381184 joule / kilogram
  gibbs_free_energy = -257.8013940435776 joule / kilogram
  isochoric_heat_capacity = 4199.837682609676 joule / kelvin / kilogram
  isobaric_heat_capacity = 4200.944742530026 joule / kelvin / kilogram
  speed_of_sound = 1434.2746295730974 meter / second
)