proteus  1.5.1
C/C++/Fortran libraries
Public Member Functions | Public Attributes | List of all members
RealGasDensity Class Reference

#include </home/cekees/proteus/proteus/densityRelations.h>

Inheritance diagram for RealGasDensity:
Collaboration diagram for RealGasDensity:

Public Member Functions

 RealGasDensity (const double *rwork)
void calc (const double &psi)

Public Attributes

double psi_0
double oneOverZRT
- Public Attributes inherited from DensityRelation
double rho
double drho

Detailed Description

The density of a real gas.

[in]psiThe pressure head (not used)
[in]rwork[0]The reference pressure head, \( \psi_0 \)
[in]rwork[1]The constant, \( 1/ZRT \), where \( Z \) is the real gas constant, \( R \) is the ideal gas constant, and \( T \) is the temperature.
[out]rhoThe density
[out]drhoThe derivative of density with respect to pressure head

\[ \rho &= (\psi - \psi_0)/ZRT \]

Definition at line 107 of file densityRelations.h.

Constructor & Destructor Documentation

◆ RealGasDensity()

RealGasDensity::RealGasDensity ( const double *  rwork)

Definition at line 111 of file densityRelations.h.

Member Function Documentation

◆ calc()

void RealGasDensity::calc ( const double &  psi)

Definition at line 115 of file densityRelations.h.

Member Data Documentation

◆ oneOverZRT

double RealGasDensity::oneOverZRT

Definition at line 110 of file densityRelations.h.

◆ psi_0

double RealGasDensity::psi_0

Definition at line 110 of file densityRelations.h.

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