www.mooseframework.org
PorousFlowPorosityBase.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 Material for porosity");
16  return params;
17 }
18 
19 PorousFlowPorosityBase::PorousFlowPorosityBase(const InputParameters & parameters)
20  : PorousFlowMaterialVectorBase(parameters),
21  _porosity(_nodal_material ? declareProperty<Real>("PorousFlow_porosity_nodal")
22  : declareProperty<Real>("PorousFlow_porosity_qp")),
23  _dporosity_dvar(_nodal_material
24  ? declareProperty<std::vector<Real>>("dPorousFlow_porosity_nodal_dvar")
25  : declareProperty<std::vector<Real>>("dPorousFlow_porosity_qp_dvar")),
26  _dporosity_dgradvar(
27  _nodal_material
28  ? declareProperty<std::vector<RealGradient>>("dPorousFlow_porosity_nodal_dgradvar")
29  : declareProperty<std::vector<RealGradient>>("dPorousFlow_porosity_qp_dgradvar"))
30 {
31 }
PorousFlowPorosityBase(const InputParameters &parameters)
InputParameters validParams< PorousFlowPorosityBase >()
InputParameters validParams< PorousFlowMaterialVectorBase >()
Base class for all PorousFlow vector materials.