15#include "libmesh/serial_mesh.h"
16#include "libmesh/mesh_tools.h"
24 "Mesh file for the XFEM geometric cut.",
25 "This parameter is deprecated in favor of reading in the cuttermesh from the mesh system "
26 "using 'mesh_generator_name'.");
27 params.
addParam<std::string>(
"mesh_generator_name",
28 "Mesh generator for the XFEM geometric cutter.");
38 std::string cutterMeshName = getParam<std::string>(
"mesh_generator_name");
44 MeshFileName cutterMeshName = getParam<MeshFileName>(
"mesh_file");
50 mooseError(
"Must specify 'mesh_generator_name' or 'mesh_file'. ");
54 mooseError(
"Not able to read in a cutter mesh.");
60 mooseAssert(
_cutter_mesh,
"MeshCutUserObjectBase::getCutterMesh _cutter_mesh is nullptr");
static InputParameters validParams()
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
static InputParameters validParams()
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.
MeshCutUserObjectBase(const InputParameters ¶meters)
MeshBase & getCutterMesh() const
Get a reference to the cutter mesh.
std::unique_ptr< libMesh::MeshBase > getSavedMesh(const std::string &name)
MeshGeneratorSystem & getMeshGeneratorSystem()
void mooseError(Args &&... args) const
bool isParamValid(const std::string &name) const
const Parallel::Communicator & _communicator