www.mooseframework.org
MaterialTensorIntegral.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 #include "RankTwoScalarTools.h"
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<ElementIntegralPostprocessor>();
16  params.addRequiredParam<MaterialPropertyName>("rank_two_tensor",
17  "The rank two material tensor name");
18  params.addRequiredRangeCheckedParam<unsigned int>(
19  "index_i",
20  "index_i >= 0 & index_i <= 2",
21  "The index i of ij for the tensor to output (0, 1, 2)");
22  params.addRequiredRangeCheckedParam<unsigned int>(
23  "index_j",
24  "index_j >= 0 & index_j <= 2",
25  "The index j of ij for the tensor to output (0, 1, 2)");
26  params.set<bool>("use_displaced_mesh") = true;
27  return params;
28 }
29 
30 MaterialTensorIntegral::MaterialTensorIntegral(const InputParameters & parameters)
31  : ElementIntegralPostprocessor(parameters),
32  _tensor(getMaterialProperty<RankTwoTensor>("rank_two_tensor")),
33  _i(getParam<unsigned int>("index_i")),
34  _j(getParam<unsigned int>("index_j"))
35 {
36 }
37 
38 Real
40 {
42 }
const MaterialProperty< RankTwoTensor > & _tensor
Real component(const RankTwoTensor &r2tensor, unsigned int i, unsigned int j)
InputParameters validParams< MaterialTensorIntegral >()
MaterialTensorIntegral(const InputParameters &parameters)