www.mooseframework.org
RichardsDensityVDW.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 RICHARDSDENSITYVDW_H
9 #define RICHARDSDENSITYVDW_H
10 
11 #include "RichardsDensity.h"
12 
13 class RichardsDensityVDW;
14 
15 template <>
16 InputParameters validParams<RichardsDensityVDW>();
17 
36 {
37 public:
38  RichardsDensityVDW(const InputParameters & parameters);
39 
44  Real density(Real p) const;
45 
50  Real ddensity(Real p) const;
51 
56  Real d2density(Real p) const;
57 
58 protected:
60  Real _a;
61 
63  Real _b;
64 
66  Real _rt;
67 
70 
73 
75  Real _rhs;
76 
78  Real _b2oa;
79 
81  Real _vdw0;
82 
84  Real _slope0;
85 
91  Real densityVDW(Real p) const;
92 };
93 
94 #endif // RICHARDSDENSITYVDW_H
RichardsDensityVDW(const InputParameters &parameters)
Real _infinity_ratio
density at P=-infinity is _infinity_ratio*_molar_mass
Real _b
van der Waals b
Real _a
van der Waals a
Real _slope0
(1/_molar_mass)*d(density)/dP at P=0
Real d2density(Real p) const
second derivative of fluid density wrt porepressure
Real densityVDW(Real p) const
Density according to the van der Waals expression This is modified to yield density(p) as noted above...
Real _vdw0
density at P=0 according to the van der Waals expression
Real _rt
R*T (gas constant * temperature)
Real ddensity(Real p) const
derivative of fluid density wrt porepressure
Real density(Real p) const
fluid density as a function of porepressure
InputParameters validParams< RichardsDensityVDW >()
Density of a gas according to the van der Waals expression (P + n^2 a/V^2)(V - nb) = nRT How density ...
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
Real _molar_mass
molar mass of gas