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

This class samples components of RankTwoTensor material properties for the integration points in all elements that are intersected by a user-defined line. More...

#include <LineMaterialRankTwoSampler.h>

Inheritance diagram for LineMaterialRankTwoSampler:
[legend]

Public Member Functions

 LineMaterialRankTwoSampler (const InputParameters &parameters)
 Class constructor Sets up variables for output based on the properties to be output. More...
 
virtual Real getScalarFromProperty (const RankTwoTensor &property, const Point &curr_point)
 Reduce the material property to a scalar for output Call through to RankTwoScalarTools::component() to access the components. More...
 

Static Public Member Functions

static InputParameters validParams ()
 

Public Attributes

const unsigned int _i
 
const unsigned int _j
 

Detailed Description

This class samples components of RankTwoTensor material properties for the integration points in all elements that are intersected by a user-defined line.

Definition at line 25 of file LineMaterialRankTwoSampler.h.

Constructor & Destructor Documentation

◆ LineMaterialRankTwoSampler()

LineMaterialRankTwoSampler::LineMaterialRankTwoSampler ( const InputParameters &  parameters)

Class constructor Sets up variables for output based on the properties to be output.

Parameters
parametersThe input parameters

Definition at line 33 of file LineMaterialRankTwoSampler.C.

34  : LineMaterialSamplerBase<RankTwoTensor>(parameters),
35  _i(getParam<unsigned int>("index_i")),
36  _j(getParam<unsigned int>("index_j"))
37 {
38 }

Member Function Documentation

◆ getScalarFromProperty()

Real LineMaterialRankTwoSampler::getScalarFromProperty ( const RankTwoTensor property,
const Point &  curr_point 
)
virtual

Reduce the material property to a scalar for output Call through to RankTwoScalarTools::component() to access the components.

Parameters
propertyThe material property
curr_pointThe point corresponding to this material property
Returns
A scalar value from this material property to be output

Definition at line 41 of file LineMaterialRankTwoSampler.C.

43 {
44  return RankTwoScalarTools::component(property, _i, _j);
45 }

◆ validParams()

InputParameters LineMaterialRankTwoSampler::validParams ( )
static

Definition at line 18 of file LineMaterialRankTwoSampler.C.

19 {
20  InputParameters params = LineMaterialSamplerBase<Real>::validParams();
21  params.addClassDescription("Access a component of a RankTwoTensor");
22  params.addRequiredRangeCheckedParam<unsigned int>(
23  "index_i",
24  "index_i >= 0 & index_i <= 2",
25  "The index i of ij for the tensor to output (0, 1, 2)");
26  params.addRequiredRangeCheckedParam<unsigned int>(
27  "index_j",
28  "index_j >= 0 & index_j <= 2",
29  "The index j of ij for the tensor to output (0, 1, 2)");
30  return params;
31 }

Member Data Documentation

◆ _i

const unsigned int LineMaterialRankTwoSampler::_i

Definition at line 46 of file LineMaterialRankTwoSampler.h.

Referenced by getScalarFromProperty().

◆ _j

const unsigned int LineMaterialRankTwoSampler::_j

Definition at line 47 of file LineMaterialRankTwoSampler.h.

Referenced by getScalarFromProperty().


The documentation for this class was generated from the following files:
LineMaterialRankTwoSampler::_j
const unsigned int _j
Definition: LineMaterialRankTwoSampler.h:47
LineMaterialRankTwoSampler::_i
const unsigned int _i
Definition: LineMaterialRankTwoSampler.h:46
validParams
InputParameters validParams()
RankTwoScalarTools::component
T component(const RankTwoTensorTempl< T > &r2tensor, unsigned int i, unsigned int j)
Definition: RankTwoScalarTools.h:31