www.mooseframework.org
LineMaterialSymmTensorSampler.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 
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<LineMaterialSamplerBase<Real>>();
20  return params;
21 }
22 
24  : LineMaterialSamplerBase<SymmTensor>(parameters), MaterialTensorCalculator(parameters)
25 {
26 }
27 
28 Real
30  const Point & curr_point)
31 {
32  RealVectorValue direction;
33  return getTensorQuantity(property, curr_point, direction);
34 }
LineMaterialSymmTensorSampler.h
MaterialTensorCalculator::getTensorQuantity
Real getTensorQuantity(const SymmTensor &tensor, const Point &curr_point, RealVectorValue &direction)
Definition: MaterialTensorCalculator.C:71
validParams< MaterialTensorCalculator >
InputParameters validParams< MaterialTensorCalculator >()
Definition: MaterialTensorCalculator.C:15
LineMaterialSymmTensorSampler
This class samples SymmTensor material properties for the integration points in all elements that are...
Definition: LineMaterialSymmTensorSampler.h:26
MaterialTensorCalculator
Definition: MaterialTensorCalculator.h:24
LineMaterialSymmTensorSampler::LineMaterialSymmTensorSampler
LineMaterialSymmTensorSampler(const InputParameters &parameters)
Class constructor Sets up variables for output based on the properties to be output.
Definition: LineMaterialSymmTensorSampler.C:23
registerMooseObject
registerMooseObject("SolidMechanicsApp", LineMaterialSymmTensorSampler)
SymmTensor
Definition: SymmTensor.h:21
validParams< LineMaterialSymmTensorSampler >
InputParameters validParams< LineMaterialSymmTensorSampler >()
Definition: LineMaterialSymmTensorSampler.C:16
LineMaterialSymmTensorSampler::getScalarFromProperty
virtual Real getScalarFromProperty(const SymmTensor &property, const Point &curr_point)
Reduce the material property to a scalar for output Call through to getTensorQuantity to access the f...
Definition: LineMaterialSymmTensorSampler.C:29