www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
RichardsSeff2gasVG Class Reference

van-Genuchten gas effective saturation as a function of (Pwater, Pgas), and its derivs wrt to those pressures. More...

#include <RichardsSeff2gasVG.h>

Inheritance diagram for RichardsSeff2gasVG:
[legend]

Public Member Functions

 RichardsSeff2gasVG (const InputParameters &parameters)
 
Real seff (std::vector< const VariableValue * > p, unsigned int qp) const
 gas effective saturation More...
 
void dseff (std::vector< const VariableValue * > p, unsigned int qp, std::vector< Real > &result) const
 derivative of effective saturation as a function of porepressure More...
 
void d2seff (std::vector< const VariableValue * > p, unsigned int qp, std::vector< std::vector< Real >> &result) const
 second derivative of effective saturation as a function of porepressure More...
 
void initialize ()
 
void execute ()
 
void finalize ()
 

Protected Attributes

Real _al
 van Genuchten alpha parameter More...
 
Real _m
 van Genuchten m parameter More...
 

Detailed Description

van-Genuchten gas effective saturation as a function of (Pwater, Pgas), and its derivs wrt to those pressures.

Note that the water pressure appears first in the tuple (Pwater, Pgas)

Definition at line 24 of file RichardsSeff2gasVG.h.

Constructor & Destructor Documentation

RichardsSeff2gasVG::RichardsSeff2gasVG ( const InputParameters &  parameters)

Definition at line 35 of file RichardsSeff2gasVG.C.

36  : RichardsSeff(parameters), _al(getParam<Real>("al")), _m(getParam<Real>("m"))
37 {
38 }
Real _m
van Genuchten m parameter
RichardsSeff(const InputParameters &parameters)
Definition: RichardsSeff.C:22
Real _al
van Genuchten alpha parameter

Member Function Documentation

void RichardsSeff2gasVG::d2seff ( std::vector< const VariableValue * >  p,
unsigned int  qp,
std::vector< std::vector< Real >> &  result 
) const
virtual

second derivative of effective saturation as a function of porepressure

Parameters
pporepressure in the element. Note that (*p[0])[qp] is the porepressure at quadpoint qp
qpthe quad point to evaluate effective saturation at
resultthe derivtives will be placed in this array

Implements RichardsSeff.

Definition at line 58 of file RichardsSeff2gasVG.C.

61 {
62  Real negpc = (*p[0])[qp] - (*p[1])[qp];
63  result[0][0] = -RichardsSeffVG::d2seff(negpc, _al, _m);
64  result[0][1] = -result[0][0];
65  result[1][0] = -result[0][0];
66  result[1][1] = result[0][0];
67 }
Real _m
van Genuchten m parameter
static Real d2seff(Real p, Real al, Real m)
2nd derivative of effective saturation wrt porepressure
Real _al
van Genuchten alpha parameter
void RichardsSeff2gasVG::dseff ( std::vector< const VariableValue * >  p,
unsigned int  qp,
std::vector< Real > &  result 
) const
virtual

derivative of effective saturation as a function of porepressure

Parameters
pporepressure in the element. Note that (*p[0])[qp] is the porepressure at quadpoint qp
qpthe quad point to evaluate effective saturation at
resultthe derivtives will be placed in this array

Implements RichardsSeff.

Definition at line 48 of file RichardsSeff2gasVG.C.

51 {
52  Real negpc = (*p[0])[qp] - (*p[1])[qp];
53  result[0] = -RichardsSeffVG::dseff(negpc, _al, _m);
54  result[1] = -result[0];
55 }
Real _m
van Genuchten m parameter
static Real dseff(Real p, Real al, Real m)
derivative of effective saturation wrt porepressure
Real _al
van Genuchten alpha parameter
void RichardsSeff::execute ( )
inherited

Definition at line 30 of file RichardsSeff.C.

31 {
32 }
void RichardsSeff::finalize ( )
inherited

Definition at line 35 of file RichardsSeff.C.

36 {
37 }
void RichardsSeff::initialize ( )
inherited

Definition at line 25 of file RichardsSeff.C.

26 {
27 }
Real RichardsSeff2gasVG::seff ( std::vector< const VariableValue * >  p,
unsigned int  qp 
) const
virtual

gas effective saturation

Parameters
pporepressures. Here (*p[0])[qp] is the water pressure at quadpoint qp, and (*p[1])[qp] is the gas porepressure
qpthe quadpoint to evaluate effective saturation at

Implements RichardsSeff.

Definition at line 41 of file RichardsSeff2gasVG.C.

42 {
43  Real negpc = (*p[0])[qp] - (*p[1])[qp];
44  return 1 - RichardsSeffVG::seff(negpc, _al, _m);
45 }
Real _m
van Genuchten m parameter
static Real seff(Real p, Real al, Real m)
effective saturation as a fcn of porepressure
Real _al
van Genuchten alpha parameter

Member Data Documentation

Real RichardsSeff2gasVG::_al
protected

van Genuchten alpha parameter

Definition at line 60 of file RichardsSeff2gasVG.h.

Referenced by d2seff(), dseff(), and seff().

Real RichardsSeff2gasVG::_m
protected

van Genuchten m parameter

Definition at line 63 of file RichardsSeff2gasVG.h.

Referenced by d2seff(), dseff(), and seff().


The documentation for this class was generated from the following files: