www.mooseframework.org
Public Types | Public Member Functions | Protected Attributes | List of all members
LineMaterialSymmTensorSampler Class Reference

This class samples SymmTensor material properties for the integration points in all elements that are intersected by a user-defined line. More...

#include <LineMaterialSymmTensorSampler.h>

Inheritance diagram for LineMaterialSymmTensorSampler:
[legend]

Public Types

enum  QUANTITY_ENUM {
  COMPONENT, VONMISES, EFFECTIVESTRAIN, HYDROSTATIC,
  DIRECTION, HOOP, RADIAL, AXIAL,
  MAXPRINCIPAL, MEDPRINCIPAL, MINPRINCIPAL, FIRSTINVARIANT,
  SECONDINVARIANT, THIRDINVARIANT, TRIAXIALITY, VOLUMETRICSTRAIN
}
 

Public Member Functions

 LineMaterialSymmTensorSampler (const InputParameters &parameters)
 Class constructor Sets up variables for output based on the properties to be output. More...
 
virtual ~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 full set of options for reducing the SymmTensor to a scalar quantity. More...
 
Real getTensorQuantity (const SymmTensor &tensor, const Point &curr_point, RealVectorValue &direction)
 

Protected Attributes

const int _index
 
MooseEnum _quantity_moose_enum
 
QUANTITY_ENUM _quantity
 
const Point _p1
 
const Point _p2
 
const Point _direction
 

Detailed Description

This class samples SymmTensor material properties for the integration points in all elements that are intersected by a user-defined line.

It provides access to the full set of options for reducing the SymmTensor to a scalar.

Definition at line 26 of file LineMaterialSymmTensorSampler.h.

Member Enumeration Documentation

◆ QUANTITY_ENUM

Enumerator
COMPONENT 
VONMISES 
EFFECTIVESTRAIN 
HYDROSTATIC 
DIRECTION 
HOOP 
RADIAL 
AXIAL 
MAXPRINCIPAL 
MEDPRINCIPAL 
MINPRINCIPAL 
FIRSTINVARIANT 
SECONDINVARIANT 
THIRDINVARIANT 
TRIAXIALITY 
VOLUMETRICSTRAIN 

Definition at line 27 of file MaterialTensorCalculator.h.

28  {
29  COMPONENT,
30  VONMISES,
33  DIRECTION,
34  HOOP,
35  RADIAL,
36  AXIAL,
45  };

Constructor & Destructor Documentation

◆ LineMaterialSymmTensorSampler()

LineMaterialSymmTensorSampler::LineMaterialSymmTensorSampler ( const InputParameters &  parameters)

Class constructor Sets up variables for output based on the properties to be output.

Parameters
parametersThe input parameters

Definition at line 23 of file LineMaterialSymmTensorSampler.C.

24  : LineMaterialSamplerBase<SymmTensor>(parameters), MaterialTensorCalculator(parameters)
25 {
26 }

◆ ~LineMaterialSymmTensorSampler()

virtual LineMaterialSymmTensorSampler::~LineMaterialSymmTensorSampler ( )
inlinevirtual

Definition at line 37 of file LineMaterialSymmTensorSampler.h.

37 {}

Member Function Documentation

◆ getScalarFromProperty()

Real LineMaterialSymmTensorSampler::getScalarFromProperty ( const SymmTensor property,
const Point &  curr_point 
)
virtual

Reduce the material property to a scalar for output Call through to getTensorQuantity to access the full set of options for reducing the SymmTensor to a scalar quantity.

Parameters
propertyThe material property
curr_pointThe point corresponding to this material property
Returns
A scalar value from this material property to be output

Definition at line 29 of file LineMaterialSymmTensorSampler.C.

31 {
32  RealVectorValue direction;
33  return getTensorQuantity(property, curr_point, direction);
34 }

◆ getTensorQuantity()

Real MaterialTensorCalculator::getTensorQuantity ( const SymmTensor tensor,
const Point &  curr_point,
RealVectorValue &  direction 
)
inherited

Definition at line 71 of file MaterialTensorCalculator.C.

74 {
75  direction.zero();
76  Real value = 0.0;
77 
78  switch (_quantity)
79  {
80  case 0:
81  value = MaterialTensorCalculatorTools::component(tensor, _index, direction);
82  break;
83 
84  case 1:
86  break;
87 
88  case 2:
90  break;
91 
92  case 3:
94  break;
95 
96  case 4:
98  break;
99 
100  case 5:
101  value = MaterialTensorCalculatorTools::hoopStress(tensor, _p1, _p2, curr_point, direction);
102  break;
103 
104  case 6:
105  value = MaterialTensorCalculatorTools::radialStress(tensor, _p1, _p2, curr_point, direction);
106  break;
107 
108  case 7:
109  value = MaterialTensorCalculatorTools::axialStress(tensor, _p1, _p2, direction);
110  break;
111 
112  case 8:
113  value = MaterialTensorCalculatorTools::maxPrincipal(tensor, direction);
114  break;
115 
116  case 9:
117  value = MaterialTensorCalculatorTools::midPrincipal(tensor, direction);
118  break;
119 
120  case 10:
121  value = MaterialTensorCalculatorTools::minPrincipal(tensor, direction);
122  break;
123 
124  case 11:
126  break;
127 
128  case 12:
130  break;
131 
132  case 13:
134  break;
135 
136  case 14:
138  break;
139 
140  case 15:
142  break;
143 
144  default:
145  mooseError("Unknown quantity in MaterialTensorAux: " +
146  _quantity_moose_enum.operator std::string());
147  }
148  return value;
149 }

Referenced by MaterialTensorIntegralSM::computeQpIntegral(), MaterialTensorAux::computeValue(), XFEMMaterialTensorMarkerUserObject::doesElementCrack(), and getScalarFromProperty().

Member Data Documentation

◆ _direction

const Point MaterialTensorCalculator::_direction
protectedinherited

◆ _index

const int MaterialTensorCalculator::_index
protectedinherited

◆ _p1

const Point MaterialTensorCalculator::_p1
protectedinherited

◆ _p2

const Point MaterialTensorCalculator::_p2
protectedinherited

◆ _quantity

QUANTITY_ENUM MaterialTensorCalculator::_quantity
protectedinherited

◆ _quantity_moose_enum

MooseEnum MaterialTensorCalculator::_quantity_moose_enum
protectedinherited

The documentation for this class was generated from the following files:
MaterialTensorCalculatorTools::hoopStress
Real hoopStress(const SymmTensor &symm_stress, const Point &point1, const Point &point2, const Point &curr_point, RealVectorValue &direction)
Definition: MaterialTensorCalculatorTools.C:200
MaterialTensorCalculatorTools::midPrincipal
Real midPrincipal(const SymmTensor &symm_tensor, RealVectorValue &direction)
Definition: MaterialTensorCalculatorTools.C:129
MaterialTensorCalculator::HYDROSTATIC
Definition: MaterialTensorCalculator.h:32
MaterialTensorCalculator::_p2
const Point _p2
Definition: MaterialTensorCalculator.h:57
MaterialTensorCalculator::getTensorQuantity
Real getTensorQuantity(const SymmTensor &tensor, const Point &curr_point, RealVectorValue &direction)
Definition: MaterialTensorCalculator.C:71
MaterialTensorCalculatorTools::hydrostatic
Real hydrostatic(const SymmTensor &symm_tensor)
Definition: MaterialTensorCalculatorTools.C:64
MaterialTensorCalculatorTools::effectiveStrain
Real effectiveStrain(const SymmTensor &symm_strain)
Definition: MaterialTensorCalculatorTools.C:58
MaterialTensorCalculatorTools::vonMisesStress
Real vonMisesStress(const SymmTensor &symm_stress)
Definition: MaterialTensorCalculatorTools.C:47
MaterialTensorCalculatorTools::maxPrincipal
Real maxPrincipal(const SymmTensor &symm_tensor, RealVectorValue &direction)
Definition: MaterialTensorCalculatorTools.C:122
MaterialTensorCalculatorTools::thirdInvariant
Real thirdInvariant(const SymmTensor &symm_tensor)
Definition: MaterialTensorCalculatorTools.C:108
MaterialTensorCalculatorTools::firstInvariant
Real firstInvariant(const SymmTensor &symm_tensor)
Definition: MaterialTensorCalculatorTools.C:92
MaterialTensorCalculator::THIRDINVARIANT
Definition: MaterialTensorCalculator.h:42
MaterialTensorCalculator::EFFECTIVESTRAIN
Definition: MaterialTensorCalculator.h:31
MaterialTensorCalculatorTools::volumetricStrain
Real volumetricStrain(const SymmTensor &symm_strain)
Definition: MaterialTensorCalculatorTools.C:70
MaterialTensorCalculatorTools::directionValueTensor
Real directionValueTensor(const SymmTensor &symm_tensor, const RealVectorValue &input_direction)
Definition: MaterialTensorCalculatorTools.C:269
MaterialTensorCalculator::MEDPRINCIPAL
Definition: MaterialTensorCalculator.h:38
MaterialTensorCalculatorTools::radialStress
Real radialStress(const SymmTensor &symm_stress, const Point &point1, const Point &point2, const Point &curr_point, RealVectorValue &direction)
Definition: MaterialTensorCalculatorTools.C:227
MaterialTensorCalculator::HOOP
Definition: MaterialTensorCalculator.h:34
MaterialTensorCalculator::VOLUMETRICSTRAIN
Definition: MaterialTensorCalculator.h:44
MaterialTensorCalculator::AXIAL
Definition: MaterialTensorCalculator.h:36
MaterialTensorCalculator::MaterialTensorCalculator
MaterialTensorCalculator(const InputParameters &parameters)
Definition: MaterialTensorCalculator.C:39
MaterialTensorCalculatorTools::triaxialityStress
Real triaxialityStress(const SymmTensor &symm_stress)
Definition: MaterialTensorCalculatorTools.C:281
MaterialTensorCalculator::TRIAXIALITY
Definition: MaterialTensorCalculator.h:43
MaterialTensorCalculatorTools::secondInvariant
Real secondInvariant(const SymmTensor &symm_tensor)
Definition: MaterialTensorCalculatorTools.C:98
MaterialTensorCalculator::_index
const int _index
Definition: MaterialTensorCalculator.h:52
MaterialTensorCalculatorTools::component
Real component(const SymmTensor &symm_tensor, unsigned int index)
Definition: MaterialTensorCalculatorTools.C:16
MaterialTensorCalculator::FIRSTINVARIANT
Definition: MaterialTensorCalculator.h:40
MaterialTensorCalculator::MAXPRINCIPAL
Definition: MaterialTensorCalculator.h:37
MaterialTensorCalculator::COMPONENT
Definition: MaterialTensorCalculator.h:29
MaterialTensorCalculator::_quantity
QUANTITY_ENUM _quantity
Definition: MaterialTensorCalculator.h:54
MaterialTensorCalculator::RADIAL
Definition: MaterialTensorCalculator.h:35
MaterialTensorCalculator::_p1
const Point _p1
Definition: MaterialTensorCalculator.h:56
MaterialTensorCalculator::VONMISES
Definition: MaterialTensorCalculator.h:30
MaterialTensorCalculator::MINPRINCIPAL
Definition: MaterialTensorCalculator.h:39
MaterialTensorCalculator::_quantity_moose_enum
MooseEnum _quantity_moose_enum
Definition: MaterialTensorCalculator.h:53
MaterialTensorCalculator::DIRECTION
Definition: MaterialTensorCalculator.h:33
MaterialTensorCalculator::_direction
const Point _direction
Definition: MaterialTensorCalculator.h:58
MaterialTensorCalculator::SECONDINVARIANT
Definition: MaterialTensorCalculator.h:41
MaterialTensorCalculatorTools::minPrincipal
Real minPrincipal(const SymmTensor &symm_tensor, RealVectorValue &direction)
Definition: MaterialTensorCalculatorTools.C:136
MaterialTensorCalculatorTools::axialStress
Real axialStress(const SymmTensor &symm_stress, const Point &point1, const Point &point2, RealVectorValue &direction)
Definition: MaterialTensorCalculatorTools.C:180