20 "Test postprocessor for extracting the crack_tip_origin_direction_map from XFEM.");
29 if (fe_problem ==
nullptr)
30 mooseError(
"Problem casting _subproblem to FEProblemBase in TestCrackCounter");
31 _xfem = MooseSharedNamespace::dynamic_pointer_cast<
XFEM>(fe_problem->
getXFEM());
33 mooseError(
"Problem casting to XFEM in TestCrackCounter");
45 const std::map<const Elem *, std::vector<Point>> & crack_origins_map =
46 _xfem->getCrackTipOriginMap();
std::shared_ptr< XFEM > _xfem
virtual Real getValue() const override
Get number of Cracks.
static InputParameters validParams()
static InputParameters validParams()
virtual void execute() override
Calculates the number of Cracks.
TestCrackCounter(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::shared_ptr< XFEMInterface > getXFEM()
void mooseError(Args &&... args) const
registerMooseObject("XFEMTestApp", TestCrackCounter)
virtual void initialize() override
Initialize the number of Cracks.
unsigned int _number_of_cracks
Variable used to write out the number of Cracks.