https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
15template <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
26template <bool is_ad>
29 : PorousFlowPermeabilityKozenyCarmanBaseTempl<is_ad>(parameters), _A(coupledValue("A"))
30{
31}
32
33template <bool is_ad>
34Real
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
void mooseError(Args &&... args)
registerMooseObject("PorousFlowApp", PorousFlowPermeabilityKozenyCarmanFromVar)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Base class for material designed to provide the permeability tensor which is calculated from porosity...
Material designed to provide the permeability tensor which is calculated from porosity using a form o...
Real computeA() const override
retrieve constant value for A computed in constructor