opm-common
Loading...
Searching...
No Matches
Opm::IAPWS::Common< Scalar > Class Template Reference

Implements relations which are common for all regions of the IAPWS '97 formulation. More...

#include <Common.hpp>

Static Public Member Functions

template<class Evaluation>
static OPM_HOST_DEVICE Evaluation viscosity (const Evaluation &temperature, const Evaluation &rho)
 The dynamic viscosity $\mathrm{[(N/m^2)*s]}$of pure water.
template<class Evaluation>
static OPM_HOST_DEVICE Evaluation thermalConductivityIAPWS (const Evaluation &T, const Evaluation &rho)
 Thermal conductivity $\mathrm{[[W/(m^2 K/m)]}$ water (IAPWS) .

Static Public Attributes

static constexpr Scalar molarMass = Scalar(18.01518e-3)
 The molar mass of water $\mathrm{[kg/mol]}$.
static constexpr Scalar Rs = Constants<Scalar>::R / molarMass
 Specific gas constant of water $\mathrm{[J/(kg*K)]}$.
static constexpr Scalar criticalTemperature = Scalar(647.096)
 Critical temperature of water $\mathrm{[K]}$.
static constexpr Scalar criticalPressure = Scalar(22.064e6)
 Critical pressure of water $\mathrm{[Pa]}$.
static constexpr Scalar criticalDensity = Scalar(322.0)
 Density of water at the critical point $\mathrm{[kg/m^3]}$.
static constexpr Scalar criticalVolume = Scalar(5.595e-2)
 Critical volume of water $\mathrm{[m^3/kmol]}$.
static constexpr Scalar criticalMolarVolume = molarMass / criticalDensity
 Critical molar volume of water $\mathrm{[m^3/mol]}$.
static constexpr Scalar acentricFactor = Scalar(0.344)
 The acentric factor of water $\mathrm{[-]}$.
static constexpr Scalar tripleTemperature = Scalar(273.16)
 Triple temperature of water $\mathrm{[K]}$.
static constexpr Scalar triplePressure = Scalar(611.657)
 Triple pressure of water $\mathrm{[Pa]}$.

Detailed Description

template<class Scalar>
class Opm::IAPWS::Common< Scalar >

Implements relations which are common for all regions of the IAPWS '97 formulation.

Template Parameters
ScalarThe type used for scalar values

See:

IAPWS: "Revised Release on the IAPWS Industrial Formulation 1997 for the Thermodynamic Properties of Water and Steam", http://www.iapws.org/relguide/IF97-Rev.pdf

Member Function Documentation

◆ thermalConductivityIAPWS()

template<class Scalar>
template<class Evaluation>
OPM_HOST_DEVICE Evaluation Opm::IAPWS::Common< Scalar >::thermalConductivityIAPWS ( const Evaluation & T,
const Evaluation & rho )
inlinestatic

Thermal conductivity $\mathrm{[[W/(m^2 K/m)]}$ water (IAPWS) .

Implementation taken from: freesteam - IAPWS-IF97 steam tables library Copyright (C) 2004-2009 John Pye

Appendix B: Recommended Interpolating equation for Industrial Use see http://www.iapws.org/relguide/thcond.pdf

Parameters
Tabsolute temperature in K
rhodensity of water in kg/m^3

◆ viscosity()

template<class Scalar>
template<class Evaluation>
OPM_HOST_DEVICE Evaluation Opm::IAPWS::Common< Scalar >::viscosity ( const Evaluation & temperature,
const Evaluation & rho )
inlinestatic

The dynamic viscosity $\mathrm{[(N/m^2)*s]}$of pure water.

This relation is valid for all regions of the IAPWS '97 formulation.

Parameters
temperaturetemperature of component in $\mathrm{[K]}$
rhodensity of component in $\mathrm{[kg/m^3]}$

See:

IAPWS: "Release on the IAPWS Formulation 2008 for the Viscosity of Ordinary Water Substance", http://www.iapws.org/relguide/visc.pdf


The documentation for this class was generated from the following file: