www.mooseframework.org
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...
 

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 24 of file LineMaterialRankTwoSampler.h.

Constructor & Destructor Documentation

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 28 of file LineMaterialRankTwoSampler.C.

29  : LineMaterialSamplerBase<RankTwoTensor>(parameters),
30  _i(getParam<unsigned int>("index_i")),
31  _j(getParam<unsigned int>("index_j"))
32 {
33 }

Member Function Documentation

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 36 of file LineMaterialRankTwoSampler.C.

38 {
39  return RankTwoScalarTools::component(property, _i, _j);
40 }
Real component(const RankTwoTensor &r2tensor, unsigned int i, unsigned int j)

Member Data Documentation

const unsigned int LineMaterialRankTwoSampler::_i

Definition at line 43 of file LineMaterialRankTwoSampler.h.

Referenced by getScalarFromProperty().

const unsigned int LineMaterialRankTwoSampler::_j

Definition at line 44 of file LineMaterialRankTwoSampler.h.

Referenced by getScalarFromProperty().


The documentation for this class was generated from the following files: