www.mooseframework.org
PorousFlowPermeabilityConst.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<PorousFlowPermeabilityBase>();
15  params.addRequiredParam<RealTensorValue>(
16  "permeability",
17  "The permeability tensor (usually in m^2), which is assumed constant for this material");
18  params.addClassDescription(
19  "This Material calculates the permeability tensor assuming it is constant");
20  return params;
21 }
22 
24  : PorousFlowPermeabilityBase(parameters),
25  _input_permeability(getParam<RealTensorValue>("permeability"))
26 {
27 }
28 
29 void
31 {
33  _dpermeability_qp_dvar[_qp].assign(_num_var, RealTensorValue());
34  _dpermeability_qp_dgradvar[_qp].resize(LIBMESH_DIM);
35  for (unsigned i = 0; i < LIBMESH_DIM; ++i)
36  _dpermeability_qp_dgradvar[_qp][i].assign(_num_var, RealTensorValue());
37 }
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.
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)
MaterialProperty< RealTensorValue > & _permeability_qp
quadpoint permeability
InputParameters validParams< PorousFlowPermeabilityBase >()
const RealTensorValue _input_permeability
constant value of permeability tensor