20 MooseEnum quantity(
"origin_x origin_y origin_z normal_x normal_y normal_z");
22 "quantity", quantity,
"The quantity to be extracted. Choices: " + quantity.
getRawNames());
23 params.
addParam<
unsigned int>(
"plane_id", 0,
"The index of the cut plane");
25 "Computes the normal and origin of a cutting plane for each partial element.");
31 _quantity(
Xfem::XFEM_CUTPLANE_QUANTITY(
int(getParam<
MooseEnum>(
"quantity")))),
32 _plane_id(getParam<unsigned
int>(
"plane_id"))
35 if (fe_problem ==
nullptr)
36 mooseError(
"Problem casting _subproblem to FEProblemBase in XFEMCutPlaneAux");
37 _xfem = MooseSharedNamespace::dynamic_pointer_cast<XFEM>(fe_problem->
getXFEM());
39 mooseError(
"Problem casting to XFEM in XFEMCutPlaneAux");
41 mooseError(
"XFEMCutPlaneAux can only be run on an element variable");
registerMooseObject("XFEMApp", XFEMCutPlaneAux)
void ErrorVector unsigned int
const Elem *const & _current_elem
static InputParameters validParams()
std::shared_ptr< XFEMInterface > getXFEM()
void mooseError(Args &&... args) const
std::string getRawNames() const
virtual const OutputTools< ComputeValueType >::VariableValue & value()
Xfem::XFEM_CUTPLANE_QUANTITY _quantity
XFEMCutPlaneAux(const InputParameters ¶meters)
virtual Real computeValue()
std::shared_ptr< XFEM > _xfem
static InputParameters validParams()