www.mooseframework.org
PorousFlowPermeabilityBase.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<PorousFlowMaterialVectorBase>();
15  params.addClassDescription("Base class for material permeability");
16  params.set<bool>("at_nodes") = false;
17  return params;
18 }
19 
20 PorousFlowPermeabilityBase::PorousFlowPermeabilityBase(const InputParameters & parameters)
21  : PorousFlowMaterialVectorBase(parameters),
22  _permeability_qp(declareProperty<RealTensorValue>("PorousFlow_permeability_qp")),
23  _dpermeability_qp_dvar(
24  declareProperty<std::vector<RealTensorValue>>("dPorousFlow_permeability_qp_dvar")),
25  _dpermeability_qp_dgradvar(declareProperty<std::vector<std::vector<RealTensorValue>>>(
26  "dPorousFlow_permeability_qp_dgradvar"))
27 {
28  if (_nodal_material == true)
29  mooseError("PorousFlowPermeability classes are only defined for at_nodes = false");
30 }
InputParameters validParams< PorousFlowMaterialVectorBase >()
Base class for all PorousFlow vector materials.
PorousFlowPermeabilityBase(const InputParameters &parameters)
InputParameters validParams< PorousFlowPermeabilityBase >()