www.mooseframework.org
XFEMRankTwoTensorMarkerUserObject.h
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 
8 #ifndef XFEMRANKTWOTENSORMARKERUSEROBJECT_H
9 #define XFEMRANKTWOTENSORMARKERUSEROBJECT_H
10 
11 #include "XFEMMarkerUserObject.h"
12 
14 class RankTwoTensor;
15 
16 template <>
18 
20 {
21 public:
22  XFEMRankTwoTensorMarkerUserObject(const InputParameters & parameters);
24 
25 protected:
27  const MaterialProperty<RankTwoTensor> & _tensor;
28 
30  MooseEnum _scalar_type;
31 
33  const Point _point1;
34  const Point _point2;
35 
37  const VariableValue & _threshold;
38 
40  bool _average;
41 
43  const MooseArray<Real> & _JxW;
44  const MooseArray<Real> & _coord;
45 
46  virtual bool doesElementCrack(RealVectorValue & direction) override;
47 };
48 
49 #endif // XFEMRANKTWOTENSORMARKERUSEROBJECT_H
const MaterialProperty< RankTwoTensor > & _tensor
The tensor from which the scalar quantity used as a marking criterion is extracted.
const Point _point1
Points used to define an axis of rotation for some scalar quantities.
const VariableValue & _threshold
Threshold value of the scalar.
virtual bool doesElementCrack(RealVectorValue &direction) override
XFEMRankTwoTensorMarkerUserObject(const InputParameters &parameters)
MooseEnum _scalar_type
The type of scalar to be extracted from the tensor.
Coupled auxiliary value.
InputParameters validParams< XFEMRankTwoTensorMarkerUserObject >()
const MooseArray< Real > & _JxW
Transformed Jacobian weights.
bool _average
Whether to average the value for all quadrature points in an element.