www.mooseframework.org
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
MaterialTensorIntegral Class Reference

This postprocessor computes an element integral of a component of a material tensor as specified by the user-supplied indices. More...

#include <MaterialTensorIntegral.h>

Inheritance diagram for MaterialTensorIntegral:
[legend]

Public Member Functions

 MaterialTensorIntegral (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

virtual Real computeQpIntegral ()
 

Private Attributes

const MaterialProperty< RankTwoTensor > & _tensor
 
const unsigned int _i
 
const unsigned int _j
 

Detailed Description

This postprocessor computes an element integral of a component of a material tensor as specified by the user-supplied indices.

Definition at line 25 of file MaterialTensorIntegral.h.

Constructor & Destructor Documentation

◆ MaterialTensorIntegral()

MaterialTensorIntegral::MaterialTensorIntegral ( const InputParameters &  parameters)

Definition at line 38 of file MaterialTensorIntegral.C.

39  : ElementIntegralPostprocessor(parameters),
40  _tensor(getMaterialProperty<RankTwoTensor>("rank_two_tensor")),
41  _i(getParam<unsigned int>("index_i")),
42  _j(getParam<unsigned int>("index_j"))
43 {
44 }

Member Function Documentation

◆ computeQpIntegral()

Real MaterialTensorIntegral::computeQpIntegral ( )
protectedvirtual

Definition at line 47 of file MaterialTensorIntegral.C.

48 {
50 }

◆ validParams()

InputParameters MaterialTensorIntegral::validParams ( )
static

Definition at line 18 of file MaterialTensorIntegral.C.

19 {
20  InputParameters params = ElementIntegralPostprocessor::validParams();
21  params.addClassDescription("This postprocessor computes an element integral of "
22  "a component of a material tensor as specified by "
23  "the user-supplied indices");
24  params.addRequiredParam<MaterialPropertyName>("rank_two_tensor",
25  "The rank two material tensor name");
26  params.addRequiredRangeCheckedParam<unsigned int>(
27  "index_i",
28  "index_i >= 0 & index_i <= 2",
29  "The index i of ij for the tensor to output (0, 1, 2)");
30  params.addRequiredRangeCheckedParam<unsigned int>(
31  "index_j",
32  "index_j >= 0 & index_j <= 2",
33  "The index j of ij for the tensor to output (0, 1, 2)");
34  params.set<bool>("use_displaced_mesh") = true;
35  return params;
36 }

Member Data Documentation

◆ _i

const unsigned int MaterialTensorIntegral::_i
private

Definition at line 37 of file MaterialTensorIntegral.h.

Referenced by computeQpIntegral().

◆ _j

const unsigned int MaterialTensorIntegral::_j
private

Definition at line 38 of file MaterialTensorIntegral.h.

Referenced by computeQpIntegral().

◆ _tensor

const MaterialProperty<RankTwoTensor>& MaterialTensorIntegral::_tensor
private

Definition at line 36 of file MaterialTensorIntegral.h.

Referenced by computeQpIntegral().


The documentation for this class was generated from the following files:
MaterialTensorIntegral::_j
const unsigned int _j
Definition: MaterialTensorIntegral.h:38
validParams
InputParameters validParams()
RankTwoScalarTools::component
T component(const RankTwoTensorTempl< T > &r2tensor, unsigned int i, unsigned int j)
Definition: RankTwoScalarTools.h:31
MaterialTensorIntegral::_i
const unsigned int _i
Definition: MaterialTensorIntegral.h:37
MaterialTensorIntegral::_tensor
const MaterialProperty< RankTwoTensor > & _tensor
Definition: MaterialTensorIntegral.h:36