www.mooseframework.org
PorousFlowRelativePermeabilityBC.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<PorousFlowRelativePermeabilityBase>();
16  params.addRequiredParam<Real>("lambda", "The Brooks-Corey exponent of the phase");
17  params.addParam<bool>("nw_phase", false, "Set true if this is the non-wetting phase");
18  params.addClassDescription("Brooks-Corey relative permeability");
19  return params;
20 }
21 
23  const InputParameters & parameters)
25  _lambda(getParam<Real>("lambda")),
26  _is_nonwetting(getParam<bool>("nw_phase"))
27 {
28 }
29 
30 Real
32 {
33  if (_is_nonwetting)
35  else
37 }
38 
39 Real
41 {
42  if (_is_nonwetting)
44  else
46 }
const Real _lambda
Brooks-Corey exponent lambda.
Real relativePermeabilityW(Real seff, Real lambda)
Relative permeability of the wetting phase as a function of effective saturation. ...
Real dRelativePermeabilityNW(Real seff, Real lambda)
Derivative of relative permeability of the non-wetting phase wrt to effective saturation.
const bool _is_nonwetting
Flag that is set to true if this is the non-wetting (gas) phase.
InputParameters validParams< PorousFlowRelativePermeabilityBC >()
virtual Real dRelativePermeability(Real seff) const override
Derivative of relative permeability with respect to effective saturation.
Base class for PorousFlow relative permeability materials.
PorousFlowRelativePermeabilityBC(const InputParameters &parameters)
Real dRelativePermeabilityW(Real seff, Real lambda)
Derivative of relative permeability of the wetting phase wrt to effective saturation.
InputParameters validParams< PorousFlowRelativePermeabilityBase >()
Real relativePermeabilityNW(Real seff, Real lambda)
Relative permeability of the non-wetting phase as a function of effective saturation.
virtual Real relativePermeability(Real seff) const override
Relative permeability equation (must be overriden in derived class)