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

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

Definition at line 59 of file densityRelations.h.

Member Function Documentation

◆ calc()

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

Definition at line 65 of file densityRelations.h.

Member Data Documentation

◆ beta

double LinearDensity::beta

Definition at line 58 of file densityRelations.h.

◆ psi_0

double LinearDensity::psi_0

Definition at line 58 of file densityRelations.h.

◆ rho_0

double LinearDensity::rho_0

Definition at line 58 of file densityRelations.h.


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