https://mooseframework.inl.gov
PorousFlowRelativePermeabilityFLAC.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
14 
15 template <bool is_ad>
18 {
21  "m", "m >= 0", "relperm = (1 + m)seff^m - m seff^(m+1)");
22  params.addClassDescription(
23  "This Material calculates relative permeability of a phase using a model inspired by FLAC");
24  return params;
25 }
26 
27 template <bool is_ad>
29  const InputParameters & parameters)
30  : PorousFlowRelativePermeabilityBaseTempl<is_ad>(parameters),
31  _m(this->template getParam<Real>("m"))
32 {
33 }
34 
35 template <bool is_ad>
38 {
40 }
41 
42 template <bool is_ad>
43 Real
45 {
47 }
48 
Moose::GenericType< Real, is_ad > GenericReal
void addRequiredRangeCheckedParam(const std::string &name, const std::string &parsed_function, const std::string &doc_string)
registerMooseObject("PorousFlowApp", PorousFlowRelativePermeabilityFLAC)
T relativePermeability(const T &seff, Real m)
Relative permeability as a function of effective saturation.
virtual GenericReal< is_ad > relativePermeability(GenericReal< is_ad > seff) const override
Relative permeability equation (must be overriden in derived class)
Real dRelativePermeability(Real seff, Real m)
Derivative of relative permeability with respect to effective saturation.
virtual Real dRelativePermeability(Real seff) const override
Derivative of relative permeability with respect to effective saturation.
PorousFlowRelativePermeabilityFLACTempl(const InputParameters &parameters)
Base class for PorousFlow relative permeability materials.
Material to calculate relative permeability inspired by the formula used in FLAC: relperm = (1 + m) s...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)