www.mooseframework.org
PorousFlowPermeabilityBase.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 
11 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<PorousFlowMaterialVectorBase>();
17  params.addClassDescription("Base class for material permeability");
18  params.addPrivateParam<std::string>("pf_material_type", "permeability");
19  params.set<bool>("at_nodes") = false;
20  return params;
21 }
22 
23 PorousFlowPermeabilityBase::PorousFlowPermeabilityBase(const InputParameters & parameters)
24  : PorousFlowMaterialVectorBase(parameters),
25  _permeability_qp(declareProperty<RealTensorValue>("PorousFlow_permeability_qp")),
26  _dpermeability_qp_dvar(
27  declareProperty<std::vector<RealTensorValue>>("dPorousFlow_permeability_qp_dvar")),
28  _dpermeability_qp_dgradvar(declareProperty<std::vector<std::vector<RealTensorValue>>>(
29  "dPorousFlow_permeability_qp_dgradvar"))
30 {
31  if (_nodal_material == true)
32  mooseError("PorousFlowPermeability classes are only defined for at_nodes = false");
33 }
InputParameters validParams< PorousFlowMaterialVectorBase >()
Base class for all PorousFlow vector materials.
PorousFlowPermeabilityBase(const InputParameters &parameters)
InputParameters validParams< PorousFlowPermeabilityBase >()