56 const char param_file[] =
"param_file.petsc";
61 PetscBool flg = PETSC_FALSE;
63 if (flg == PETSC_TRUE)
83 auto add_last_twenty = [&]() {
89 ->addToDatabaseBitRefLevelByType(MBTET, mask,
BitRefLevel().set());
93 auto add_first_four = [&]() {
96 for (
int ll = 0; ll != 5; ++ll)
99 ->addToDatabaseBitRefLevelByType(MBTET, mask,
BitRefLevel().set());
108 ->writeEntitiesAllBitLevelsByType(
BitRefLevel().set(), MBTET,
109 "all_start.vtk",
"VTK",
"");
121 CHKERR moab.create_meshset(MESHSET_SET, meshset);
122 CHKERR moab.add_entities(meshset, ents);
123 CHKERR moab.write_file(
"ents_not_in_database_to_delete.vtk",
"VTK",
"",
125 CHKERR moab.delete_entities(&meshset, 1);
128 CHKERR moab.get_entities_by_type(0, MBENTITYSET, meshsets,
false);
129 for (
auto m : meshsets)
130 CHKERR moab.remove_entities(
m, ents);
131 CHKERR moab.delete_entities(ents);
134 cp.crackAccelerationFactor,
"cutting_surface.vtk",
QUIET,
143 CHKERR cp.getInterface<
CPMeshCut>()->copySurface(
"cutting_surface.vtk");
145 CHKERR moab.get_entities_by_type(0, MBTET, vol,
false);
153 CHKERR moab.write_mesh(
"cut_mesh_out.h5m");
156 cp.mapBitLevel[
"mesh_cut"],
BitRefLevel().set(), MBTET,
157 "out_level0.vtk",
"VTK",
"");
159 cp.mapBitLevel[
"spatial_domain"],
BitRefLevel().set(), MBTET,
160 "out_level1_tets.vtk",
"VTK",
"");
162 cp.mapBitLevel[
"spatial_domain"],
BitRefLevel().set(), MBPRISM,
163 "out_level1_prisms.vtk",
"VTK",
"");