www.mooseframework.org
PorousFlowRelativePermeabilityBC.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 #include "PorousFlowBrooksCorey.h"
12 
14 
15 template <>
16 InputParameters
18 {
19  InputParameters params = validParams<PorousFlowRelativePermeabilityBase>();
20  params.addRequiredParam<Real>("lambda", "The Brooks-Corey exponent of the phase");
21  params.addParam<bool>("nw_phase", false, "Set true if this is the non-wetting phase");
22  params.addClassDescription("Brooks-Corey relative permeability");
23  return params;
24 }
25 
27  const InputParameters & parameters)
29  _lambda(getParam<Real>("lambda")),
30  _is_nonwetting(getParam<bool>("nw_phase"))
31 {
32 }
33 
34 Real
36 {
37  if (_is_nonwetting)
39  else
41 }
42 
43 Real
45 {
46  if (_is_nonwetting)
48  else
50 }
PorousFlowBrooksCorey::relativePermeabilityNW
Real relativePermeabilityNW(Real seff, Real lambda)
Relative permeability of the non-wetting phase as a function of effective saturation.
Definition: PorousFlowBrooksCorey.C:104
PorousFlowRelativePermeabilityBC::_is_nonwetting
const bool _is_nonwetting
Flag that is set to true if this is the non-wetting (gas) phase.
Definition: PorousFlowRelativePermeabilityBC.h:38
PorousFlowBrooksCorey::dRelativePermeabilityNW
Real dRelativePermeabilityNW(Real seff, Real lambda)
Derivative of relative permeability of the non-wetting phase wrt to effective saturation.
Definition: PorousFlowBrooksCorey.C:115
PorousFlowBrooksCorey::dRelativePermeabilityW
Real dRelativePermeabilityW(Real seff, Real lambda)
Derivative of relative permeability of the wetting phase wrt to effective saturation.
Definition: PorousFlowBrooksCorey.C:94
PorousFlowRelativePermeabilityBC
Material to calculate Brooks-Corey relative permeability of an arbitrary phase given the effective sa...
Definition: PorousFlowRelativePermeabilityBC.h:26
PorousFlowRelativePermeabilityBC::dRelativePermeability
virtual Real dRelativePermeability(Real seff) const override
Derivative of relative permeability with respect to effective saturation.
Definition: PorousFlowRelativePermeabilityBC.C:44
PorousFlowRelativePermeabilityBC::_lambda
const Real _lambda
Brooks-Corey exponent lambda.
Definition: PorousFlowRelativePermeabilityBC.h:36
registerMooseObject
registerMooseObject("PorousFlowApp", PorousFlowRelativePermeabilityBC)
PorousFlowRelativePermeabilityBase
Base class for PorousFlow relative permeability materials.
Definition: PorousFlowRelativePermeabilityBase.h:24
PorousFlowBrooksCorey.h
PorousFlowBrooksCorey::relativePermeabilityW
Real relativePermeabilityW(Real seff, Real lambda)
Relative permeability of the wetting phase as a function of effective saturation.
Definition: PorousFlowBrooksCorey.C:83
PorousFlowRelativePermeabilityBC.h
PorousFlowRelativePermeabilityBC::relativePermeability
virtual Real relativePermeability(Real seff) const override
Relative permeability equation (must be overriden in derived class)
Definition: PorousFlowRelativePermeabilityBC.C:35
PorousFlowRelativePermeabilityBC::PorousFlowRelativePermeabilityBC
PorousFlowRelativePermeabilityBC(const InputParameters &parameters)
Definition: PorousFlowRelativePermeabilityBC.C:26
validParams< PorousFlowRelativePermeabilityBC >
InputParameters validParams< PorousFlowRelativePermeabilityBC >()
Definition: PorousFlowRelativePermeabilityBC.C:17
validParams< PorousFlowRelativePermeabilityBase >
InputParameters validParams< PorousFlowRelativePermeabilityBase >()
Definition: PorousFlowRelativePermeabilityBase.C:14