www.mooseframework.org
PorousFlowPermeabilityConst.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 
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<PorousFlowPermeabilityBase>();
19  params.addRequiredParam<RealTensorValue>(
20  "permeability",
21  "The permeability tensor (usually in m^2), which is assumed constant for this material");
22  params.addClassDescription(
23  "This Material calculates the permeability tensor assuming it is constant");
24  return params;
25 }
26 
28  : PorousFlowPermeabilityBase(parameters),
29  _input_permeability(getParam<RealTensorValue>("permeability"))
30 {
31 }
32 
33 void
35 {
37  _dpermeability_qp_dvar[_qp].assign(_num_var, RealTensorValue());
38  _dpermeability_qp_dgradvar[_qp].resize(LIBMESH_DIM);
39  for (unsigned i = 0; i < LIBMESH_DIM; ++i)
40  _dpermeability_qp_dgradvar[_qp][i].assign(_num_var, RealTensorValue());
41 }
PorousFlowPermeabilityConst(const InputParameters &parameters)
MaterialProperty< std::vector< std::vector< RealTensorValue > > > & _dpermeability_qp_dgradvar
d(quadpoint permeability)/d(grad(PorousFlow variable))
Base class Material designed to provide the permeability tensor.
registerMooseObject("PorousFlowApp", PorousFlowPermeabilityConst)
InputParameters validParams< PorousFlowPermeabilityConst >()
const unsigned int _num_var
Number of PorousFlow variables.
MaterialProperty< std::vector< RealTensorValue > > & _dpermeability_qp_dvar
d(quadpoint permeability)/d(PorousFlow variable)
Material designed to provide a constant permeability tensor.
MaterialProperty< RealTensorValue > & _permeability_qp
Quadpoint permeability.
InputParameters validParams< PorousFlowPermeabilityBase >()
const RealTensorValue _input_permeability
Constant value of permeability tensor.