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

Coupled auxiliary value. More...

#include <XFEMCutPlaneAux.h>

Inheritance diagram for XFEMCutPlaneAux:
[legend]

Public Member Functions

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

Protected Member Functions

virtual Real computeValue ()
 

Private Attributes

Xfem::XFEM_CUTPLANE_QUANTITY _quantity
 
MooseSharedPointer< XFEM_xfem
 
unsigned int _plane_id
 

Detailed Description

Coupled auxiliary value.

Definition at line 17 of file XFEMCutPlaneAux.h.

Constructor & Destructor Documentation

XFEMCutPlaneAux::XFEMCutPlaneAux ( const InputParameters &  parameters)

Definition at line 24 of file XFEMCutPlaneAux.C.

25  : AuxKernel(parameters),
26  _quantity(Xfem::XFEM_CUTPLANE_QUANTITY(int(getParam<MooseEnum>("quantity")))),
27  _plane_id(getParam<unsigned int>("plane_id"))
28 {
29  FEProblemBase * fe_problem = dynamic_cast<FEProblemBase *>(&_subproblem);
30  if (fe_problem == NULL)
31  mooseError("Problem casting _subproblem to FEProblemBase in XFEMCutPlaneAux");
32  _xfem = MooseSharedNamespace::dynamic_pointer_cast<XFEM>(fe_problem->getXFEM());
33  if (_xfem == NULL)
34  mooseError("Problem casting to XFEM in XFEMCutPlaneAux");
35  if (isNodal())
36  mooseError("XFEMCutPlaneAux can only be run on an element variable");
37 }
MooseSharedPointer< XFEM > _xfem
This is the XFEM class.
Definition: XFEM.h:60
XFEM_CUTPLANE_QUANTITY
Definition: XFEM.h:26
Xfem::XFEM_CUTPLANE_QUANTITY _quantity
unsigned int _plane_id
virtual XFEMCutPlaneAux::~XFEMCutPlaneAux ( )
inlinevirtual

Definition at line 22 of file XFEMCutPlaneAux.h.

22 {}

Member Function Documentation

Real XFEMCutPlaneAux::computeValue ( )
protectedvirtual

Definition at line 40 of file XFEMCutPlaneAux.C.

Referenced by ~XFEMCutPlaneAux().

41 {
42  Real value = _xfem->getCutPlane(_current_elem, _quantity, _plane_id);
43 
44  return value;
45 }
MooseSharedPointer< XFEM > _xfem
Xfem::XFEM_CUTPLANE_QUANTITY _quantity
unsigned int _plane_id

Member Data Documentation

unsigned int XFEMCutPlaneAux::_plane_id
private

Definition at line 30 of file XFEMCutPlaneAux.h.

Referenced by computeValue().

Xfem::XFEM_CUTPLANE_QUANTITY XFEMCutPlaneAux::_quantity
private

Definition at line 28 of file XFEMCutPlaneAux.h.

Referenced by computeValue().

MooseSharedPointer<XFEM> XFEMCutPlaneAux::_xfem
private

Definition at line 29 of file XFEMCutPlaneAux.h.

Referenced by computeValue(), and XFEMCutPlaneAux().


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