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