www.mooseframework.org
solid_mechanics
src
vectorpostprocessors
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
10
#include "
LineMaterialSymmTensorSampler.h
"
11
12
registerMooseObject
(
"SolidMechanicsApp"
,
LineMaterialSymmTensorSampler
);
13
14
template
<>
15
InputParameters
16
validParams<LineMaterialSymmTensorSampler>
()
17
{
18
InputParameters params = validParams<LineMaterialSamplerBase<Real>>();
19
params +=
validParams<MaterialTensorCalculator>
();
20
return
params;
21
}
22
23
LineMaterialSymmTensorSampler::LineMaterialSymmTensorSampler
(
const
InputParameters & parameters)
24
: LineMaterialSamplerBase<
SymmTensor
>(parameters),
MaterialTensorCalculator
(parameters)
25
{
26
}
27
28
Real
29
LineMaterialSymmTensorSampler::getScalarFromProperty
(
const
SymmTensor
& property,
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 ¶meters)
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
Generated on Sat Jan 25 2020 12:04:43 for www.mooseframework.org by
1.8.16