www.mooseframework.org
LineMaterialRankTwoSampler.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 #include "RankTwoScalarTools.h"
12 
14 
17 {
19  params.addClassDescription("Access a component of a RankTwoTensor");
20  params.addRequiredRangeCheckedParam<unsigned int>(
21  "index_i",
22  "index_i >= 0 & index_i <= 2",
23  "The index i of ij for the tensor to output (0, 1, 2)");
24  params.addRequiredRangeCheckedParam<unsigned int>(
25  "index_j",
26  "index_j >= 0 & index_j <= 2",
27  "The index j of ij for the tensor to output (0, 1, 2)");
28  return params;
29 }
30 
33  _i(getParam<unsigned int>("index_i")),
34  _j(getParam<unsigned int>("index_j"))
35 {
36 }
37 
38 Real
40  const Point & /*curr_point*/)
41 {
42  return RankTwoScalarTools::component(property, _i, _j);
43 }
void addRequiredRangeCheckedParam(const std::string &name, const std::string &parsed_function, const std::string &doc_string)
LineMaterialRankTwoSampler(const InputParameters &parameters)
Class constructor Sets up variables for output based on the properties to be output.
static InputParameters validParams()
virtual Real getScalarFromProperty(const RankTwoTensor &property, const Point &curr_point)
Reduce the material property to a scalar for output Call through to RankTwoScalarTools::component() t...
This class samples components of RankTwoTensor material properties for the integration points in all ...
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("SolidMechanicsApp", LineMaterialRankTwoSampler)
void addClassDescription(const std::string &doc_string)
T component(const RankTwoTensorTempl< T > &r2tensor, unsigned int i, unsigned int j)
void ErrorVector unsigned int