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

Rogers-Stallybrass-Clements version of effective saturation for single-phase simulations as a function of porepressure, and its derivs wrt to that pressure. More...

#include <RichardsSeff1RSC.h>

Inheritance diagram for RichardsSeff1RSC:
[legend]

Public Member Functions

 RichardsSeff1RSC (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 _oil_viscosity
 oil viscosity More...
 
Real _scale_ratio
 RSC scale ratio. More...
 
Real _shift
 RSC shift. More...
 
Real _scale
 RSC scale. More...
 

Detailed Description

Rogers-Stallybrass-Clements version of effective saturation for single-phase simulations as a function of porepressure, and its derivs wrt to that pressure.

Note that this is mostly useful for 2phase simulations, not this singlephase version. Valid for residual saturations = 0, and viscosityOil = 2*viscosityWater. (the "2" is important here!). C Rogers, MP Stallybrass and DL Clements "On two phase filtration under gravity and with boundary infiltration: application of a Backlund transformation" Nonlinear Analysis Theory Methods and Applications 7 (1983) 785–799.

Definition at line 29 of file RichardsSeff1RSC.h.

Constructor & Destructor Documentation

RichardsSeff1RSC::RichardsSeff1RSC ( const InputParameters &  parameters)

Definition at line 41 of file RichardsSeff1RSC.C.

42  : RichardsSeff(parameters),
43  _oil_viscosity(getParam<Real>("oil_viscosity")),
44  _scale_ratio(getParam<Real>("scale_ratio")),
45  _shift(getParam<Real>("shift")),
47 {
48 }
Real _shift
RSC shift.
RichardsSeff(const InputParameters &parameters)
Definition: RichardsSeff.C:22
Real _scale_ratio
RSC scale ratio.
Real _oil_viscosity
oil viscosity
Real _scale
RSC scale.

Member Function Documentation

void RichardsSeff1RSC::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 67 of file RichardsSeff1RSC.C.

70 {
71  Real pc = -(*p[0])[qp];
72  result[0][0] = RichardsSeffRSC::d2seff(pc, _shift, _scale);
73 }
static Real d2seff(Real pc, Real shift, Real scale)
2nd derivative of effective saturation wrt capillary pressure
Real _shift
RSC shift.
Real _scale
RSC scale.
void RichardsSeff1RSC::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 58 of file RichardsSeff1RSC.C.

61 {
62  Real pc = -(*p[0])[qp];
63  result[0] = -RichardsSeffRSC::dseff(pc, _shift, _scale);
64 }
Real _shift
RSC shift.
static Real dseff(Real pc, Real shift, Real scale)
derivative of effective saturation wrt capillary pressure
Real _scale
RSC scale.
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 RichardsSeff1RSC::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
qpthe quadpoint to evaluate effective saturation at

Implements RichardsSeff.

Definition at line 51 of file RichardsSeff1RSC.C.

52 {
53  Real pc = -(*p[0])[qp];
54  return RichardsSeffRSC::seff(pc, _shift, _scale);
55 }
Real _shift
RSC shift.
static Real seff(Real pc, Real shift, Real scale)
effective saturation as a function of capillary pressure
Real _scale
RSC scale.

Member Data Documentation

Real RichardsSeff1RSC::_oil_viscosity
protected

oil viscosity

Definition at line 64 of file RichardsSeff1RSC.h.

Real RichardsSeff1RSC::_scale
protected

RSC scale.

Definition at line 73 of file RichardsSeff1RSC.h.

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

Real RichardsSeff1RSC::_scale_ratio
protected

RSC scale ratio.

Definition at line 67 of file RichardsSeff1RSC.h.

Real RichardsSeff1RSC::_shift
protected

RSC shift.

Definition at line 70 of file RichardsSeff1RSC.h.

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


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