www.mooseframework.org
PorousFlowRelativePermeabilityCorey.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.addRequiredParam<Real>("n", "The Corey exponent of the phase.");
16  params.addClassDescription("This Material calculates relative permeability of the fluid phase, "
17  "using the simple Corey model ((S-S_res)/(1-sum(S_res)))^n");
18  return params;
19 }
20 
22  const InputParameters & parameters)
23  : PorousFlowRelativePermeabilityBase(parameters), _n(getParam<Real>("n"))
24 {
25 }
26 
27 Real
29 {
30  return std::pow(seff, _n);
31 }
32 
33 Real
35 {
36  return _n * std::pow(seff, _n - 1.0);
37 }
Base class for PorousFlow relative permeability materials.
PorousFlowRelativePermeabilityCorey(const InputParameters &parameters)
InputParameters validParams< PorousFlowRelativePermeabilityCorey >()
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
virtual Real relativePermeability(Real seff) const override
Relative permeability equation (must be overriden in derived class)
InputParameters validParams< PorousFlowRelativePermeabilityBase >()
virtual Real dRelativePermeability(Real seff) const override
Derivative of relative permeability with respect to effective saturation.
const Real _n
Corey exponent n for the specified phase.