proteus 1.9.0
C/C++/Fortran libraries
Loading...
Searching...
No Matches
RealGasDensity Class Reference

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

Inheritance diagram for RealGasDensity:
[legend]
Collaboration diagram for RealGasDensity:
[legend]

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.

Parameters
[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)
inline

Definition at line 111 of file densityRelations.h.

Member Function Documentation

◆ calc()

void RealGasDensity::calc ( const double & psi)
inline

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: