Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 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 : 12 : #include "XFEMMaterialStateMarkerBase.h" 13 : #include "RankTwoTensorForward.h" 14 : 15 : class XFEMRankTwoTensorMarkerUserObject : public XFEMMaterialStateMarkerBase 16 : { 17 : public: 18 : static InputParameters validParams(); 19 : 20 : XFEMRankTwoTensorMarkerUserObject(const InputParameters & parameters); 21 18 : virtual ~XFEMRankTwoTensorMarkerUserObject() {} 22 : 23 : protected: 24 : /// The tensor from which the scalar quantity used as a marking criterion is extracted 25 : const MaterialProperty<RankTwoTensor> & _tensor; 26 : 27 : /// The type of scalar to be extracted from the tensor 28 : MooseEnum _scalar_type; 29 : 30 : /// Points used to define an axis of rotation for some scalar quantities 31 : const Point _point1; 32 : const Point _point2; 33 : 34 : /// Threshold value of the scalar 35 : const VariableValue & _threshold; 36 : 37 : /// Whether to average the value for all quadrature points in an element 38 : bool _average; 39 : 40 : /// Transformed Jacobian weights 41 : const MooseArray<Real> & _JxW; 42 : const MooseArray<Real> & _coord; 43 : 44 : virtual bool doesElementCrack(RealVectorValue & direction) override; 45 : };