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

Coupled auxiliary value. More...

#include <XFEMVolFracAux.h>

Inheritance diagram for XFEMVolFracAux:
[legend]

Public Member Functions

 XFEMVolFracAux (const InputParameters &parameters)
 Factory constructor, takes parameters so that all derived classes can be built using the same constructor. More...
 
virtual ~XFEMVolFracAux ()
 

Protected Member Functions

virtual Real computeValue ()
 

Private Attributes

MooseSharedPointer< XFEM_xfem
 

Detailed Description

Coupled auxiliary value.

Definition at line 18 of file XFEMVolFracAux.h.

Constructor & Destructor Documentation

XFEMVolFracAux::XFEMVolFracAux ( const InputParameters &  parameters)

Factory constructor, takes parameters so that all derived classes can be built using the same constructor.

Definition at line 20 of file XFEMVolFracAux.C.

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

Definition at line 27 of file XFEMVolFracAux.h.

27 {}

Member Function Documentation

Real XFEMVolFracAux::computeValue ( )
protectedvirtual

Definition at line 33 of file XFEMVolFracAux.C.

Referenced by ~XFEMVolFracAux().

34 {
35  return _xfem->getPhysicalVolumeFraction(_current_elem);
36 }
MooseSharedPointer< XFEM > _xfem

Member Data Documentation

MooseSharedPointer<XFEM> XFEMVolFracAux::_xfem
private

Definition at line 33 of file XFEMVolFracAux.h.

Referenced by computeValue(), and XFEMVolFracAux().


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