openmc.data.water_density

openmc.data.water_density(temperature, pressure=0.1013)[source]

Return the density of liquid water at a given temperature and pressure.

The density is calculated from a polynomial fit using equations and values from the 2012 version of the IAPWS-IF97 formulation. Only the equations for region 1 are implemented here. Region 1 is limited to liquid water below 100 [MPa] with a temperature above 273.15 [K], below 623.15 [K], and below saturation.

Reference: International Association for the Properties of Water and Steam, “Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam”, IAPWS R7-97(2012).

Parameters
  • temperature (float) – Water temperature in units of [K]

  • pressure (float) – Water pressure in units of [MPa]

Returns

Water density in units of [g/cm^3]

Return type

float