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

MooseSharedPointer< XFEM_xfem
 

Detailed Description

Definition at line 15 of file XFEMMarkerAux.h.

Constructor & Destructor Documentation

XFEMMarkerAux::XFEMMarkerAux ( const InputParameters &  parameters)

Definition at line 20 of file XFEMMarkerAux.C.

20  : AuxKernel(parameters)
21 {
22  FEProblemBase * fe_problem = dynamic_cast<FEProblemBase *>(&_subproblem);
23  if (fe_problem == NULL)
24  mooseError("Problem casting _subproblem to FEProblemBase in XFEMMarkerAux");
25  _xfem = MooseSharedNamespace::dynamic_pointer_cast<XFEM>(fe_problem->getXFEM());
26  if (_xfem == NULL)
27  mooseError("Problem casting to XFEM in XFEMMarkerAux");
28  if (isNodal())
29  mooseError("XFEMMarkerAux can only be run on an element variable");
30 }
This is the XFEM class.
Definition: XFEM.h:60
MooseSharedPointer< XFEM > _xfem
Definition: XFEMMarkerAux.h:26
virtual XFEMMarkerAux::~XFEMMarkerAux ( )
inlinevirtual

Definition at line 20 of file XFEMMarkerAux.h.

20 {}

Member Function Documentation

Real XFEMMarkerAux::computeValue ( )
protectedvirtual

Definition at line 33 of file XFEMMarkerAux.C.

Referenced by ~XFEMMarkerAux().

34 {
35  bool isCTE = _xfem->isElemAtCrackTip(_current_elem);
36  Real value = 0.0;
37  if (isCTE)
38  {
39  value = 1.0;
40  }
41 
42  return value;
43 }
MooseSharedPointer< XFEM > _xfem
Definition: XFEMMarkerAux.h:26

Member Data Documentation

MooseSharedPointer<XFEM> XFEMMarkerAux::_xfem
private

Definition at line 26 of file XFEMMarkerAux.h.

Referenced by computeValue(), and XFEMMarkerAux().


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