proteus  1.5.1 C/C++/Fortran libraries
RealGasDensity Class Reference

#include </home/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] psi The 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] rho The density [out] drho The derivative of density with respect to pressure head

$\rho &= (\psi - \psi_0)/ZRT$

Definition at line 107 of file densityRelations.h.

## ◆ RealGasDensity()

 RealGasDensity::RealGasDensity ( const double * rwork )
inline

Definition at line 111 of file densityRelations.h.

## ◆ calc()

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

Definition at line 115 of file densityRelations.h.

## ◆ 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: