https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LineMaterialRankTwoSampler.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
38Real
40 const Point & /*curr_point*/)
41{
42 return RankTwoScalarTools::component(property, _i, _j);
43}
registerMooseObject("SolidMechanicsApp", LineMaterialRankTwoSampler)
void ErrorVector unsigned int
void addRequiredRangeCheckedParam(const std::string &name, const std::string &parsed_function, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
This class samples components of RankTwoTensor material properties for the integration points in all ...
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...
static InputParameters validParams()
LineMaterialRankTwoSampler(const InputParameters &parameters)
Class constructor Sets up variables for output based on the properties to be output.
static InputParameters validParams()
T component(const RankTwoTensorTempl< T > &r2tensor, unsigned int i, unsigned int j)