www.mooseframework.org
XFEMRankTwoTensorMarkerUserObject.h
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 #pragma once
11 
13 #include "RankTwoTensorForward.h"
14 
16 {
17 public:
19 
22 
23 protected:
26 
29 
31  const Point _point1;
32  const Point _point2;
33 
36 
38  bool _average;
39 
43 
44  virtual bool doesElementCrack(RealVectorValue & direction) override;
45 };
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
Determine whether the current element should be cut by a new crack.
XFEMRankTwoTensorMarkerUserObject(const InputParameters &parameters)
MooseEnum _scalar_type
The type of scalar to be extracted from the tensor.
OutputTools< Real >::VariableValue VariableValue
const InputParameters & parameters() const
const MooseArray< Real > & _JxW
Transformed Jacobian weights.
bool _average
Whether to average the value for all quadrature points in an element.