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

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

#include <RichardsSeff2waterVG.h>

Inheritance diagram for RichardsSeff2waterVG:
[legend]

Public Member Functions

 RichardsSeff2waterVG (const InputParameters &parameters)
 
Real seff (std::vector< const VariableValue * > p, unsigned int qp) const
 water 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 water 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 RichardsSeff2waterVG.h.

Constructor & Destructor Documentation

RichardsSeff2waterVG::RichardsSeff2waterVG ( const InputParameters &  parameters)

Definition at line 35 of file RichardsSeff2waterVG.C.

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

Member Function Documentation

void RichardsSeff2waterVG::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 RichardsSeff2waterVG.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 _al
van Genuchten alpha parameter
Real _m
van Genuchten m parameter
static Real d2seff(Real p, Real al, Real m)
2nd derivative of effective saturation wrt porepressure
void RichardsSeff2waterVG::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 RichardsSeff2waterVG.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 _al
van Genuchten alpha parameter
static Real dseff(Real p, Real al, Real m)
derivative of effective saturation wrt porepressure
Real _m
van Genuchten m 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 RichardsSeff2waterVG::seff ( std::vector< const VariableValue * >  p,
unsigned int  qp 
) const
virtual

water 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 RichardsSeff2waterVG.C.

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

Member Data Documentation

Real RichardsSeff2waterVG::_al
protected

van Genuchten alpha parameter

Definition at line 60 of file RichardsSeff2waterVG.h.

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

Real RichardsSeff2waterVG::_m
protected

van Genuchten m parameter

Definition at line 63 of file RichardsSeff2waterVG.h.

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


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