www.mooseframework.org
PorousFlowRelativePermeabilityConst.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 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<PorousFlowRelativePermeabilityBase>();
15  params.addParam<Real>("kr", 1.0, "Relative permeability");
16  params.addClassDescription(
17  "This class sets the relative permeability to a constant value (default = 1)");
18  return params;
19 }
20 
22  const InputParameters & parameters)
23  : PorousFlowRelativePermeabilityBase(parameters), _relperm(getParam<Real>("kr"))
24 {
25 }
26 
28 {
29  return _relperm;
30 }
31 
32 Real PorousFlowRelativePermeabilityConst::dRelativePermeability(Real /*seff*/) const { return 0.0; }
virtual Real relativePermeability(Real seff) const override
Relative permeability equation (must be overriden in derived class)
const Real _relperm
Constant relative permeability.
PorousFlowRelativePermeabilityConst(const InputParameters &parameters)
Base class for PorousFlow relative permeability materials.
InputParameters validParams< PorousFlowRelativePermeabilityBase >()
virtual Real dRelativePermeability(Real seff) const override
Derivative of relative permeability with respect to effective saturation.
InputParameters validParams< PorousFlowRelativePermeabilityConst >()