www.mooseframework.org
PorousFlowFLACrelperm.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 
10 #include "PorousFlowFLACrelperm.h"
11 
12 namespace PorousFlowFLACrelperm
13 {
14 Real
15 dRelativePermeability(Real seff, Real m)
16 {
17  if (seff <= 0.0 || seff >= 1.0)
18  return 0.0;
19  return (1.0 + m) * m * std::pow(seff, m - 1.0) - m * (m + 1.0) * std::pow(seff, m);
20 }
21 
22 Real
23 d2RelativePermeability(Real seff, Real m)
24 {
25  if (seff <= 0.0 || seff >= 1.0)
26  return 0.0;
27  return (1.0 + m) * m * (m - 1.0) * std::pow(seff, m - 2.0) -
28  m * (m + 1.0) * m * std::pow(seff, m - 1.0);
29 }
30 }
Real d2RelativePermeability(Real seff, Real m)
Second derivative of relative permeability with respect to effective saturation.
Real dRelativePermeability(Real seff, Real m)
Derivative of relative permeability with respect to effective saturation.
FLAC inspired relative permeability relationship.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MooseUnits pow(const MooseUnits &, int)