www.mooseframework.org
CompositeMobilityTensor.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 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = CompositeTensorBase<RealTensorValue, Material>::validParams();
14  params.addClassDescription("Assemble a mobility tensor from multiple tensor contributions "
15  "weighted by material properties");
16  params.addRequiredParam<MaterialPropertyName>("M_name",
17  "Name of the mobility tensor property to generate");
18  return params;
19 }
20 
21 CompositeMobilityTensor::CompositeMobilityTensor(const InputParameters & parameters)
22  : CompositeTensorBase<RealTensorValue, Material>(parameters),
23  _M_name(getParam<MaterialPropertyName>("M_name")),
24  _M(declareProperty<RealTensorValue>(_M_name))
25 {
26  initializeDerivativeProperties(_M_name);
27 }
28 
29 void
31 {
32  computeQpTensorProperties(_M);
33 }
MaterialProperty< RealTensorValue > & _M
CompositeMobilityTensor(const InputParameters &parameters)
InputParameters validParams< CompositeMobilityTensor >()