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");
40 _cutter_mesh = mesh_generator_system.getSavedMesh(cutterMeshName);
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...
MeshBase & getCutterMesh() const
Get a reference to the cutter mesh.
static InputParameters validParams()
const Parallel::Communicator & _communicator
MeshCutUserObjectBase(const InputParameters ¶meters)
void mooseError(Args &&... args) const
bool isParamValid(const std::string &name) const
MeshGeneratorSystem & getMeshGeneratorSystem()
std::unique_ptr< MeshBase > _cutter_mesh
The xfem cutter mesh.