proteus
1.8.1
C/C++/Fortran libraries
|
#include </Users/cekees/proteus/proteus/densityRelations.h>
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 |
The density of a linearly compressible fluid.
[in] | psi | The 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] | rho | The density |
[out] | drho | The 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.
|
inline |
Definition at line 59 of file densityRelations.h.
|
inline |
Definition at line 65 of file densityRelations.h.
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.