14#include "libmesh/mesh_modification.h"
15#include "libmesh/unstructured_mesh.h"
24 params.
addRequiredParam<MeshGeneratorName>(
"input",
"Input mesh to convert to all-simplex mesh");
36std::unique_ptr<MeshBase>
40 std::unique_ptr<UnstructuredMesh>
mesh =
41 dynamic_pointer_cast<UnstructuredMesh>(std::move(
_input_ptr));
46 if (!
mesh->is_prepared())
47 mesh->prepare_for_use();
49 MeshTools::Modification::all_tri(*
mesh);
registerMooseObject("MooseApp", ElementsToSimplicesConverter)
Takes a mesh with a mix of element types, and subdivides elements as needed to produce a mesh of the ...
std::unique_ptr< MeshBase > & _input_ptr
Input mesh defining the original mixed mesh.
static InputParameters validParams()
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
ElementsToSimplicesConverter(const InputParameters ¶meters)
MeshGenerators are objects that can modify or add to an existing mesh.
static InputParameters validParams()