www.mooseframework.org
RichardsDensityIdeal.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef RICHARDSDENSITYIDEAL_H
9 #define RICHARDSDENSITYIDEAL_H
10 
11 #include "RichardsDensity.h"
12 
14 
15 template <>
16 InputParameters validParams<RichardsDensityIdeal>();
17 
22 {
23 public:
24  RichardsDensityIdeal(const InputParameters & parameters);
25 
30  Real density(Real p) const;
31 
35  Real ddensity(Real /*p*/) const;
36 
40  Real d2density(Real /*p*/) const;
41 
42 protected:
44  Real _slope;
45 
47  Real _p0;
48 };
49 
50 #endif // RICHARDSDENSITYIDEAL_H
RichardsDensityIdeal(const InputParameters &parameters)
Real _slope
density = _slope*(p - _p0)
Real density(Real p) const
fluid density as a function of porepressure
Real ddensity(Real) const
derivative of fluid density wrt porepressure
InputParameters validParams< RichardsDensityIdeal >()
Fluid density of an ideal gas.
Real d2density(Real) const
second derivative of fluid density wrt porepressure
Real _p0
density = _slope*(p - _p0)
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...