https://mooseframework.inl.gov
PorousFlowPermeabilityKozenyCarmanFromVar.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 {
20  params.addRequiredCoupledVar("A", "Variable used in permeability function.");
21  params.addClassDescription("This Material calculates the permeability tensor from the "
22  "Kozeny-Carman equation for spatially varying initial properties.");
23  return params;
24 }
25 
26 template <bool is_ad>
29  : PorousFlowPermeabilityKozenyCarmanBaseTempl<is_ad>(parameters), _A(coupledValue("A"))
30 {
31 }
32 
33 template <bool is_ad>
34 Real
36 {
37  if (_A[_qp] < 0)
38  mooseError("The variable A must be greater than zero; A = ", _A[_qp], ".");
39  return _A[_qp];
40 }
41 
Base class for material designed to provide the permeability tensor which is calculated from porosity...
void mooseError(Args &&... args)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Real computeA() const override
retrieve constant value for A computed in constructor
Material designed to provide the permeability tensor which is calculated from porosity using a form o...
void addClassDescription(const std::string &doc_string)
registerMooseObject("PorousFlowApp", PorousFlowPermeabilityKozenyCarmanFromVar)