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

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

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

Public Member Functions

 ExponentialDensity (const double *rwork)
 
void calc (const double &psi)
 
- Public Member Functions inherited from LinearDensity
 LinearDensity (const double *rwork)
 
void calc (const double &psi)
 

Additional Inherited Members

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

Detailed Description

The density of an exponentially 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 e^{\beta_f \psi} \]

Definition at line 84 of file densityRelations.h.

Constructor & Destructor Documentation

◆ ExponentialDensity()

ExponentialDensity::ExponentialDensity ( const double *  rwork)
inline

Definition at line 87 of file densityRelations.h.

Member Function Documentation

◆ calc()

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

Definition at line 90 of file densityRelations.h.


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