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

PowerGas form of relative permeability Define s = (seff - simm)/(1 - simm). More...

#include <RichardsRelPermPowerGas.h>

Inheritance diagram for RichardsRelPermPowerGas:
[legend]

Public Member Functions

 RichardsRelPermPowerGas (const InputParameters &parameters)
 
Real relperm (Real seff) const
 Relative permeability. More...
 
Real drelperm (Real seff) const
 Derivative of relative permeability wrt seff. More...
 
Real d2relperm (Real seff) const
 Second derivative of relative permeability wrt seff. More...
 
void initialize ()
 
void execute ()
 
void finalize ()
 

Protected Attributes

Real _simm
 immobile saturation More...
 
Real _n
 exponent More...
 

Detailed Description

PowerGas form of relative permeability Define s = (seff - simm)/(1 - simm).

Then relperm = 1 - (n+1)(1-s)^n + n(1-s)^(n+1) if s<simm, otherwise relperm=1

Definition at line 23 of file RichardsRelPermPowerGas.h.

Constructor & Destructor Documentation

RichardsRelPermPowerGas::RichardsRelPermPowerGas ( const InputParameters &  parameters)

Definition at line 34 of file RichardsRelPermPowerGas.C.

35  : RichardsRelPerm(parameters), _simm(getParam<Real>("simm")), _n(getParam<Real>("n"))
36 {
37 }
RichardsRelPerm(const InputParameters &parameters)
Real _simm
immobile saturation

Member Function Documentation

Real RichardsRelPermPowerGas::d2relperm ( Real  seff) const
virtual

Second derivative of relative permeability wrt seff.

Parameters
seffeffective saturation

Implements RichardsRelPerm.

Definition at line 79 of file RichardsRelPermPowerGas.C.

80 {
81  if (seff >= 1.0)
82  return 0.0;
83 
84  if (seff <= _simm)
85  return 0.0;
86 
87  Real s_internal = (seff - _simm) / (1.0 - _simm);
88  Real krelpp = -(_n + 1) * _n * (_n - 1) * std::pow(1 - s_internal, _n - 2) +
89  _n * (_n + 1) * _n * std::pow(1 - s_internal, _n - 1);
90  return krelpp / std::pow(1.0 - _simm, 2);
91 }
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
Real _simm
immobile saturation
Real RichardsRelPermPowerGas::drelperm ( Real  seff) const
virtual

Derivative of relative permeability wrt seff.

Parameters
seffeffective saturation

Implements RichardsRelPerm.

Definition at line 64 of file RichardsRelPermPowerGas.C.

65 {
66  if (seff >= 1.0)
67  return 0.0;
68 
69  if (seff <= _simm)
70  return 0.0;
71 
72  Real s_internal = (seff - _simm) / (1.0 - _simm);
73  Real krelp = (_n + 1) * _n * std::pow(1 - s_internal, _n - 1) -
74  _n * (_n + 1) * std::pow(1 - s_internal, _n);
75  return krelp / (1.0 - _simm);
76 }
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
Real _simm
immobile saturation
void RichardsRelPerm::execute ( )
inherited

Definition at line 32 of file RichardsRelPerm.C.

33 {
34 }
void RichardsRelPerm::finalize ( )
inherited

Definition at line 37 of file RichardsRelPerm.C.

38 {
39 }
void RichardsRelPerm::initialize ( )
inherited

Definition at line 27 of file RichardsRelPerm.C.

28 {
29 }
Real RichardsRelPermPowerGas::relperm ( Real  seff) const
virtual

Relative permeability.

Parameters
seffeffective saturation

Implements RichardsRelPerm.

Definition at line 40 of file RichardsRelPermPowerGas.C.

41 {
42  if (seff >= 1.0)
43  return 1.0;
44 
45  if (seff <= _simm)
46  return 0.0;
47 
48  Real s_internal = (seff - _simm) / (1.0 - _simm);
49  Real krel = 1 - (_n + 1) * std::pow(1 - s_internal, _n) + _n * std::pow(1 - s_internal, _n + 1);
50 
51  // bound, just in case
52  if (krel < 0)
53  {
54  krel = 0;
55  }
56  if (krel > 1)
57  {
58  krel = 1;
59  }
60  return krel;
61 }
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
Real _simm
immobile saturation

Member Data Documentation

Real RichardsRelPermPowerGas::_n
protected

exponent

Definition at line 51 of file RichardsRelPermPowerGas.h.

Referenced by d2relperm(), drelperm(), and relperm().

Real RichardsRelPermPowerGas::_simm
protected

immobile saturation

Definition at line 48 of file RichardsRelPermPowerGas.h.

Referenced by d2relperm(), drelperm(), and relperm().


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