www.mooseframework.org
RichardsDensityVDW.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "RichardsDensity.h"
13 
14 class RichardsDensityVDW;
15 
16 template <>
17 InputParameters validParams<RichardsDensityVDW>();
18 
37 {
38 public:
39  RichardsDensityVDW(const InputParameters & parameters);
40 
45  Real density(Real p) const;
46 
51  Real ddensity(Real p) const;
52 
57  Real d2density(Real p) const;
58 
59 protected:
61  Real _a;
62 
64  Real _b;
65 
67  Real _rt;
68 
71 
74 
76  Real _rhs;
77 
79  Real _b2oa;
80 
82  Real _vdw0;
83 
85  Real _slope0;
86 
92  Real densityVDW(Real p) const;
93 };
94 
RichardsDensityVDW::d2density
Real d2density(Real p) const
second derivative of fluid density wrt porepressure
Definition: RichardsDensityVDW.C:114
RichardsDensityVDW::density
Real density(Real p) const
fluid density as a function of porepressure
Definition: RichardsDensityVDW.C:82
validParams< RichardsDensityVDW >
InputParameters validParams< RichardsDensityVDW >()
Definition: RichardsDensityVDW.C:17
RichardsDensityVDW::RichardsDensityVDW
RichardsDensityVDW(const InputParameters &parameters)
Definition: RichardsDensityVDW.C:49
RichardsDensityVDW::_b
Real _b
van der Waals b
Definition: RichardsDensityVDW.h:64
RichardsDensityVDW::_infinity_ratio
Real _infinity_ratio
density at P=-infinity is _infinity_ratio*_molar_mass
Definition: RichardsDensityVDW.h:73
RichardsDensityVDW::_rhs
Real _rhs
R*T*b/a.
Definition: RichardsDensityVDW.h:76
RichardsDensityVDW::densityVDW
Real densityVDW(Real p) const
Density according to the van der Waals expression This is modified to yield density(p) as noted above...
Definition: RichardsDensityVDW.C:64
RichardsDensityVDW::_b2oa
Real _b2oa
b^2/a
Definition: RichardsDensityVDW.h:79
RichardsDensityVDW::_molar_mass
Real _molar_mass
molar mass of gas
Definition: RichardsDensityVDW.h:70
RichardsDensityVDW::ddensity
Real ddensity(Real p) const
derivative of fluid density wrt porepressure
Definition: RichardsDensityVDW.C:91
RichardsDensity
Base class for fluid density as a function of porepressure The functions density, ddensity and d2dens...
Definition: RichardsDensity.h:24
RichardsDensityVDW::_a
Real _a
van der Waals a
Definition: RichardsDensityVDW.h:61
RichardsDensityVDW::_vdw0
Real _vdw0
density at P=0 according to the van der Waals expression
Definition: RichardsDensityVDW.h:82
RichardsDensity.h
RichardsDensityVDW::_rt
Real _rt
R*T (gas constant * temperature)
Definition: RichardsDensityVDW.h:67
RichardsDensityVDW::_slope0
Real _slope0
(1/_molar_mass)*d(density)/dP at P=0
Definition: RichardsDensityVDW.h:85
RichardsDensityVDW
Density of a gas according to the van der Waals expression (P + n^2 a/V^2)(V - nb) = nRT How density ...
Definition: RichardsDensityVDW.h:36