proteus
1.8.1
C/C++/Fortran libraries
|
#include </Users/cekees/proteus/proteus/densityRelations.h>
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 |
The density of an exponentially 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 e^{\beta_f \psi} \]
Definition at line 84 of file densityRelations.h.
|
inline |
Definition at line 87 of file densityRelations.h.
|
inline |
Definition at line 90 of file densityRelations.h.