www.mooseframework.org
PorousFlowRelativePermeabilityConst.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<PorousFlowRelativePermeabilityBase>();
19  params.addParam<Real>("kr", 1.0, "Relative permeability");
20  params.addClassDescription(
21  "This class sets the relative permeability to a constant value (default = 1)");
22  return params;
23 }
24 
26  const InputParameters & parameters)
27  : PorousFlowRelativePermeabilityBase(parameters), _relperm(getParam<Real>("kr"))
28 {
29 }
30 
32 {
33  return _relperm;
34 }
35 
36 Real PorousFlowRelativePermeabilityConst::dRelativePermeability(Real /*seff*/) const { return 0.0; }
PorousFlowRelativePermeabilityConst::_relperm
const Real _relperm
Constant relative permeability.
Definition: PorousFlowRelativePermeabilityConst.h:33
PorousFlowRelativePermeabilityConst::dRelativePermeability
virtual Real dRelativePermeability(Real seff) const override
Derivative of relative permeability with respect to effective saturation.
Definition: PorousFlowRelativePermeabilityConst.C:36
validParams< PorousFlowRelativePermeabilityConst >
InputParameters validParams< PorousFlowRelativePermeabilityConst >()
Definition: PorousFlowRelativePermeabilityConst.C:16
PorousFlowRelativePermeabilityBase
Base class for PorousFlow relative permeability materials.
Definition: PorousFlowRelativePermeabilityBase.h:24
PorousFlowRelativePermeabilityConst.h
registerMooseObject
registerMooseObject("PorousFlowApp", PorousFlowRelativePermeabilityConst)
PorousFlowRelativePermeabilityConst::PorousFlowRelativePermeabilityConst
PorousFlowRelativePermeabilityConst(const InputParameters &parameters)
Definition: PorousFlowRelativePermeabilityConst.C:25
PorousFlowRelativePermeabilityConst::relativePermeability
virtual Real relativePermeability(Real seff) const override
Relative permeability equation (must be overriden in derived class)
Definition: PorousFlowRelativePermeabilityConst.C:31
PorousFlowRelativePermeabilityConst
This class simply sets a constant relative permeability at the nodes.
Definition: PorousFlowRelativePermeabilityConst.h:23
validParams< PorousFlowRelativePermeabilityBase >
InputParameters validParams< PorousFlowRelativePermeabilityBase >()
Definition: PorousFlowRelativePermeabilityBase.C:14