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

#include </work/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::IdealGasDensity ( const double * rwork)
inline

Definition at line 140 of file densityRelations.h.

Member Function Documentation

◆ calc()

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

Definition at line 150 of file densityRelations.h.

Member Data Documentation

◆ convFactor

double IdealGasDensity::convFactor

Definition at line 139 of file densityRelations.h.

◆ psi0

double IdealGasDensity::psi0

Definition at line 139 of file densityRelations.h.

◆ R

double IdealGasDensity::R

Definition at line 139 of file densityRelations.h.

◆ rho0

double IdealGasDensity::rho0

Definition at line 139 of file densityRelations.h.

◆ T

double IdealGasDensity::T

Definition at line 139 of file densityRelations.h.

◆ W

double IdealGasDensity::W

Definition at line 139 of file densityRelations.h.

◆ WoverRT

double IdealGasDensity::WoverRT

Definition at line 139 of file densityRelations.h.


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