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

#include <XFEMMarkerAux.h>

Inheritance diagram for XFEMMarkerAux:
[legend]

Public Member Functions

 XFEMMarkerAux (const InputParameters &parameters)
 
virtual ~XFEMMarkerAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Private Attributes

std::shared_ptr< XFEM_xfem
 

Detailed Description

Definition at line 17 of file XFEMMarkerAux.h.

Constructor & Destructor Documentation

◆ XFEMMarkerAux()

XFEMMarkerAux::XFEMMarkerAux ( const InputParameters &  parameters)

Definition at line 24 of file XFEMMarkerAux.C.

24  : AuxKernel(parameters)
25 {
26  FEProblemBase * fe_problem = dynamic_cast<FEProblemBase *>(&_subproblem);
27  if (fe_problem == NULL)
28  mooseError("Problem casting _subproblem to FEProblemBase in XFEMMarkerAux");
29  _xfem = MooseSharedNamespace::dynamic_pointer_cast<XFEM>(fe_problem->getXFEM());
30  if (_xfem == nullptr)
31  mooseError("Problem casting to XFEM in XFEMMarkerAux");
32  if (isNodal())
33  mooseError("XFEMMarkerAux can only be run on an element variable");
34 }
This is the XFEM class.
Definition: XFEM.h:62
std::shared_ptr< XFEM > _xfem
Definition: XFEMMarkerAux.h:28

◆ ~XFEMMarkerAux()

virtual XFEMMarkerAux::~XFEMMarkerAux ( )
inlinevirtual

Definition at line 22 of file XFEMMarkerAux.h.

22 {}

Member Function Documentation

◆ computeValue()

Real XFEMMarkerAux::computeValue ( )
protectedvirtual

Definition at line 37 of file XFEMMarkerAux.C.

38 {
39  bool isCTE = _xfem->isElemAtCrackTip(_current_elem);
40  Real value = 0.0;
41  if (isCTE)
42  {
43  value = 1.0;
44  }
45 
46  return value;
47 }
std::shared_ptr< XFEM > _xfem
Definition: XFEMMarkerAux.h:28

Member Data Documentation

◆ _xfem

std::shared_ptr<XFEM> XFEMMarkerAux::_xfem
private

Definition at line 28 of file XFEMMarkerAux.h.

Referenced by computeValue(), and XFEMMarkerAux().


The documentation for this class was generated from the following files: