www.mooseframework.org
DarcyMaterial.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 
8 #include "DarcyMaterial.h"
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<Material>();
15  params.addRequiredParam<RealTensorValue>("mat_permeability",
16  "The permeability tensor (usually in m^2).");
17  params.addClassDescription("Material that holds the permeability tensor used in Darcy flow");
18  return params;
19 }
20 
21 DarcyMaterial::DarcyMaterial(const InputParameters & parameters)
22  : Material(parameters),
23  _material_perm(getParam<RealTensorValue>("mat_permeability")),
24  _permeability(declareProperty<RealTensorValue>("permeability"))
25 {
26 }
27 
28 void
30 {
32 }
InputParameters validParams< DarcyMaterial >()
Definition: DarcyMaterial.C:12
DarcyMaterial(const InputParameters &parameters)
Definition: DarcyMaterial.C:21
virtual void computeQpProperties()
Definition: DarcyMaterial.C:29
MaterialProperty< RealTensorValue > & _permeability
the Material property that this Material provides
Definition: DarcyMaterial.h:34
RealTensorValue _material_perm
permeability as entered by the user
Definition: DarcyMaterial.h:31