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

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

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

Public Member Functions

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

Public Attributes

double rho_0
 
double psi_0
 
double beta
 
- Public Attributes inherited from DensityRelation
double rho
 
double drho
 

Detailed Description

The density of a linearly compressible fluid.

Parameters
[in]psiThe pressure head (not used)
[in]rwork[0]The reference density, \( \rho_0 \)
[in]rwork[1]The reference pressure head, \( \psi_0 \)
[in]rwork[2]The compressibility \( \beta \)
[out]rhoThe density
[out]drhoThe derivative of density with respect to pressure head

This is a trivial function but it demonstrates the density relation interface.

\[ \rho &= \rho_0 [1+\beta(\psi - \psi_0) ] \]

Definition at line 55 of file densityRelations.h.

Constructor & Destructor Documentation

LinearDensity::LinearDensity ( const double *  rwork)
inline

Definition at line 59 of file densityRelations.h.

Member Function Documentation

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

Definition at line 65 of file densityRelations.h.

Member Data Documentation

double LinearDensity::beta

Definition at line 58 of file densityRelations.h.

double LinearDensity::psi_0

Definition at line 58 of file densityRelations.h.

double LinearDensity::rho_0

Definition at line 58 of file densityRelations.h.


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