proteus  1.5.1 C/C++/Fortran libraries
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] 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.

## ◆ LinearDensity()

 LinearDensity::LinearDensity ( const double * rwork )
inline

Definition at line 59 of file densityRelations.h.

## ◆ calc()

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

Definition at line 65 of file densityRelations.h.

## ◆ 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: