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

std::shared_ptr< XFEM_xfem
 

Detailed Description

Coupled auxiliary value.

Definition at line 20 of file XFEMVolFracAux.h.

Constructor & Destructor Documentation

◆ XFEMVolFracAux()

XFEMVolFracAux::XFEMVolFracAux ( const InputParameters &  parameters)

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

Definition at line 24 of file XFEMVolFracAux.C.

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

◆ ~XFEMVolFracAux()

virtual XFEMVolFracAux::~XFEMVolFracAux ( )
inlinevirtual

Definition at line 29 of file XFEMVolFracAux.h.

29 {}

Member Function Documentation

◆ computeValue()

Real XFEMVolFracAux::computeValue ( )
protectedvirtual

Definition at line 37 of file XFEMVolFracAux.C.

38 {
39  return _xfem->getPhysicalVolumeFraction(_current_elem);
40 }
std::shared_ptr< XFEM > _xfem

Member Data Documentation

◆ _xfem

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

Definition at line 35 of file XFEMVolFracAux.h.

Referenced by computeValue(), and XFEMVolFracAux().


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