www.mooseframework.org
LineMaterialSymmTensorSampler.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<LineMaterialSamplerBase<Real>>();
16  return params;
17 }
18 
20  : LineMaterialSamplerBase<SymmTensor>(parameters), MaterialTensorCalculator(parameters)
21 {
22 }
23 
24 Real
26  const Point & curr_point)
27 {
28  RealVectorValue direction;
29  return getTensorQuantity(property, curr_point, direction);
30 }
InputParameters validParams< MaterialTensorCalculator >()
Real getTensorQuantity(const SymmTensor &tensor, const Point &curr_point, RealVectorValue &direction)
InputParameters validParams< LineMaterialSymmTensorSampler >()
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...
LineMaterialSymmTensorSampler(const InputParameters &parameters)
Class constructor Sets up variables for output based on the properties to be output.