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
 
std::shared_ptr< XFEM_xfem
 
unsigned int _plane_id
 

Detailed Description

Coupled auxiliary value.

Definition at line 19 of file XFEMCutPlaneAux.h.

Constructor & Destructor Documentation

◆ XFEMCutPlaneAux()

XFEMCutPlaneAux::XFEMCutPlaneAux ( const InputParameters &  parameters)

Definition at line 28 of file XFEMCutPlaneAux.C.

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

◆ ~XFEMCutPlaneAux()

virtual XFEMCutPlaneAux::~XFEMCutPlaneAux ( )
inlinevirtual

Definition at line 24 of file XFEMCutPlaneAux.h.

24 {}

Member Function Documentation

◆ computeValue()

Real XFEMCutPlaneAux::computeValue ( )
protectedvirtual

Definition at line 44 of file XFEMCutPlaneAux.C.

45 {
46  Real value = _xfem->getCutPlane(_current_elem, _quantity, _plane_id);
47 
48  return value;
49 }
std::shared_ptr< XFEM > _xfem
Xfem::XFEM_CUTPLANE_QUANTITY _quantity
unsigned int _plane_id

Member Data Documentation

◆ _plane_id

unsigned int XFEMCutPlaneAux::_plane_id
private

Definition at line 32 of file XFEMCutPlaneAux.h.

Referenced by computeValue().

◆ _quantity

Xfem::XFEM_CUTPLANE_QUANTITY XFEMCutPlaneAux::_quantity
private

Definition at line 30 of file XFEMCutPlaneAux.h.

Referenced by computeValue().

◆ _xfem

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

Definition at line 31 of file XFEMCutPlaneAux.h.

Referenced by computeValue(), and XFEMCutPlaneAux().


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