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

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

#include <LineMaterialRankTwoScalarSampler.h>

Inheritance diagram for LineMaterialRankTwoScalarSampler:
[legend]

Public Member Functions

 LineMaterialRankTwoScalarSampler (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 RankTwoTensor material property to a scalar for output Call through to RankTwoScalarTools::getQuantity to access the full set of options for reducing the RankTwoTensor to a scalar quantity. More...
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Attributes

MooseEnum _scalar_type
 
const Point _point1
 
const Point _point2
 
Point _direction
 

Detailed Description

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

It provides access to the full set of options for reducing the RankTwoTensor to a scalar

Definition at line 26 of file LineMaterialRankTwoScalarSampler.h.

Constructor & Destructor Documentation

◆ LineMaterialRankTwoScalarSampler()

LineMaterialRankTwoScalarSampler::LineMaterialRankTwoScalarSampler ( const InputParameters &  parameters)

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

Parameters
parametersThe input parameters

Definition at line 35 of file LineMaterialRankTwoScalarSampler.C.

37  : LineMaterialSamplerBase<RankTwoTensor>(parameters),
38  _scalar_type(getParam<MooseEnum>("scalar_type")),
39  _point1(parameters.get<Point>("point1")),
40  _point2(parameters.get<Point>("point2")),
41  _direction(parameters.get<Point>("direction") / parameters.get<Point>("direction").norm())
42 {
43 }

Member Function Documentation

◆ getScalarFromProperty()

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

Reduce the RankTwoTensor material property to a scalar for output Call through to RankTwoScalarTools::getQuantity to access the full set of options for reducing the RankTwoTensor to a scalar quantity.

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 46 of file LineMaterialRankTwoScalarSampler.C.

48 {
50  property, _scalar_type, _point1, _point2, curr_point, _direction);
51 }

◆ validParams()

InputParameters LineMaterialRankTwoScalarSampler::validParams ( )
static

Definition at line 18 of file LineMaterialRankTwoScalarSampler.C.

19 {
20  InputParameters params = LineMaterialSamplerBase<Real>::validParams();
21  params.addClassDescription("Compute a scalar property of a RankTwoTensor");
22  params.addParam<MooseEnum>(
23  "scalar_type", RankTwoScalarTools::scalarOptions(), "A scalar to output");
24  params.addParam<Point>(
25  "point1",
26  Point(0, 0, 0),
27  "Start point for axis used to calculate some cylindrical material tensor quantities");
28  params.addParam<Point>("point2",
29  Point(0, 1, 0),
30  "End point for axis used to calculate some material tensor quantities");
31  params.addParam<Point>("direction", Point(0, 0, 1), "Direction vector");
32  return params;
33 }

Member Data Documentation

◆ _direction

Point LineMaterialRankTwoScalarSampler::_direction
protected

Definition at line 53 of file LineMaterialRankTwoScalarSampler.h.

Referenced by getScalarFromProperty().

◆ _point1

const Point LineMaterialRankTwoScalarSampler::_point1
protected

Definition at line 51 of file LineMaterialRankTwoScalarSampler.h.

Referenced by getScalarFromProperty().

◆ _point2

const Point LineMaterialRankTwoScalarSampler::_point2
protected

Definition at line 52 of file LineMaterialRankTwoScalarSampler.h.

Referenced by getScalarFromProperty().

◆ _scalar_type

MooseEnum LineMaterialRankTwoScalarSampler::_scalar_type
protected

Definition at line 49 of file LineMaterialRankTwoScalarSampler.h.

Referenced by getScalarFromProperty().


The documentation for this class was generated from the following files:
LineMaterialRankTwoScalarSampler::_scalar_type
MooseEnum _scalar_type
Definition: LineMaterialRankTwoScalarSampler.h:49
RankTwoScalarTools::getQuantity
T getQuantity(const RankTwoTensorTempl< T > &tensor, const MooseEnum &scalar_type, const Point &point1, const Point &point2, const Point &curr_point, Point &direction)
Definition: RankTwoScalarTools.h:420
LineMaterialRankTwoScalarSampler::_direction
Point _direction
Definition: LineMaterialRankTwoScalarSampler.h:53
validParams
InputParameters validParams()
LineMaterialRankTwoScalarSampler::_point2
const Point _point2
Definition: LineMaterialRankTwoScalarSampler.h:52
LineMaterialRankTwoScalarSampler::_point1
const Point _point1
Definition: LineMaterialRankTwoScalarSampler.h:51
RankTwoScalarTools::scalarOptions
MooseEnum scalarOptions()
Definition: RankTwoScalarTools.C:16