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

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

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

Public Member Functions

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

Public Attributes

double T
 
double W
 
double R
 
double convFactor
 
double WoverRT
 
double rho0
 
double psi0
 
- Public Attributes inherited from DensityRelation
double rho
 
double drho
 

Detailed Description

The density of an ideal gas.

Parameters
[in]psiThe pressure head
[in]rwork[0]The temperature in say [K], \( T \)
[in]rwork[1]The molar weight of the gas in say [kg]/[mol], \( W \),
[in]rwork[2]The ideal gas weight constant in say [J]/[mol]/[K], \( R \)
[in]rwork[3]Conversion factor for input pressure head to pressure units consistent with W, R, and T, ie rho_0*|g|
[in]rwork[4]reference density, say in [kg]/[m^3]
[in]rwork[5]reference pressure head, say in [m]
[out]rhoThe density
[out]drhoThe derivative of density with respect to pressure head

\[ \rho &= rho_0 + (\psi - psi0) d W/RT \]

Definition at line 136 of file densityRelations.h.

Constructor & Destructor Documentation

IdealGasDensity::IdealGasDensity ( const double *  rwork)
inline

Definition at line 140 of file densityRelations.h.

Member Function Documentation

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

Definition at line 150 of file densityRelations.h.

Member Data Documentation

double IdealGasDensity::convFactor

Definition at line 139 of file densityRelations.h.

double IdealGasDensity::psi0

Definition at line 139 of file densityRelations.h.

double IdealGasDensity::R

Definition at line 139 of file densityRelations.h.

double IdealGasDensity::rho0

Definition at line 139 of file densityRelations.h.

double IdealGasDensity::T

Definition at line 139 of file densityRelations.h.

double IdealGasDensity::W

Definition at line 139 of file densityRelations.h.

double IdealGasDensity::WoverRT

Definition at line 139 of file densityRelations.h.


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