Permalink
Browse files

Merge pull request #12467 from leorachapuis/new_mesh_generator_branch

More work about the MeshGenerators
  • Loading branch information...
friedmud committed Nov 15, 2018
2 parents cadf49b + 4c72878 commit a341b904cc1383683d3923d17e302f36deccfab8
Showing with 14,828 additions and 83 deletions.
  1. +1 −1 framework/include/utils/MooseMeshUtils.h
  2. +34 −8 framework/src/meshgenerators/PatternedMeshGenerator.C
  3. +3 −2 framework/src/meshgenerators/SideSetsFromBoundingBoxGenerator.C
  4. +3 −2 framework/src/utils/MooseMeshUtils.C
  5. +113 −0 test/tests/meshgenerators/adapt/adapt_mg_test.i
  6. +103 −0 test/tests/meshgenerators/adapt/adapt_test_cycles_mg.i
  7. +117 −0 test/tests/meshgenerators/adapt/adapt_time_test_mg.i
  8. +132 −0 test/tests/meshgenerators/adapt/displaced_adapt_test_mg.i
  9. BIN test/tests/meshgenerators/adapt/gold/displaced_adapt_test_mg_displaced.e
  10. BIN test/tests/meshgenerators/adapt/gold/displaced_adapt_test_mg_displaced.e-s002
  11. BIN test/tests/meshgenerators/adapt/gold/displaced_adapt_test_mg_displaced.e-s003
  12. BIN test/tests/meshgenerators/adapt/gold/displaced_adapt_test_mg_out.e
  13. BIN test/tests/meshgenerators/adapt/gold/displaced_adapt_test_mg_out.e-s002
  14. BIN test/tests/meshgenerators/adapt/gold/initial_adaptivity_mg_test_out.e
  15. BIN test/tests/meshgenerators/adapt/gold/interval_mg_out.e
  16. BIN test/tests/meshgenerators/adapt/gold/interval_mg_out.e-s002
  17. BIN test/tests/meshgenerators/adapt/gold/out.e
  18. BIN test/tests/meshgenerators/adapt/gold/out.e-s002
  19. BIN test/tests/meshgenerators/adapt/gold/out_cycles.e
  20. BIN test/tests/meshgenerators/adapt/gold/out_cycles.e-s002
  21. BIN test/tests/meshgenerators/adapt/gold/out_time.e
  22. BIN test/tests/meshgenerators/adapt/gold/out_time.e-s002
  23. BIN test/tests/meshgenerators/adapt/gold/out_time.e-s003
  24. BIN test/tests/meshgenerators/adapt/gold/patch_out.e
  25. +85 −0 test/tests/meshgenerators/adapt/initial_adaptivity_mg_test.i
  26. +114 −0 test/tests/meshgenerators/adapt/interval_mg.i
  27. +115 −0 test/tests/meshgenerators/adapt/patch_recovery_test_mg.i
  28. +116 −0 test/tests/meshgenerators/adapt_weight/adapt_weight_mg.i
  29. BIN test/tests/meshgenerators/adapt_weight/gold/out.e
  30. BIN test/tests/meshgenerators/adapt_weight/gold/out.e-s002
  31. +47 −8 test/tests/meshgenerators/block_deletion_generator/block_deletion_test1.i
  32. +91 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test10.i
  33. +120 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test11.i
  34. +70 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test12.i
  35. +73 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test2.i
  36. +70 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test3.i
  37. +73 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test4.i
  38. +78 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test5.i
  39. +87 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test6.i
  40. +77 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test7.i
  41. +77 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test8.i
  42. +70 −0 test/tests/meshgenerators/block_deletion_generator/block_deletion_test9.i
  43. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test10_out.e
  44. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test11_out.e
  45. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test12_out.e
  46. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test1_out.e
  47. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test2_out.e
  48. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test3_out.e
  49. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test4_out.e
  50. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test5_out.e
  51. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test6_out.e
  52. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test7_out.e
  53. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test8_out.e
  54. BIN test/tests/meshgenerators/block_deletion_generator/gold/block_deletion_test9_out.e
  55. +1 −2 test/tests/meshgenerators/block_deletion_generator/tests
  56. +50 −0 test/tests/meshgenerators/break_boundary_on_subdomain/break_bottom_interface_on_subdomain.i
  57. BIN test/tests/meshgenerators/break_boundary_on_subdomain/gold/break_bottom_interface_on_subdomain_in.e
  58. BIN test/tests/meshgenerators/break_boundary_on_subdomain/gold/break_boundary_on_subdomain_in.e
  59. +12 −0 test/tests/meshgenerators/break_boundary_on_subdomain/tests
  60. +21 −0 test/tests/meshgenerators/break_mesh_by_block_generator/break_mesh_2DJunction_polycrystal.i
  61. +21 −0 test/tests/meshgenerators/break_mesh_by_block_generator/break_mesh_3D_polycrystal.i
  62. +21 −0 test/tests/meshgenerators/break_mesh_by_block_generator/break_mesh_3D_splittrue.i
  63. BIN test/tests/meshgenerators/break_mesh_by_block_generator/gold/break_mesh_2DJunction_polycrystal_in.e
  64. BIN test/tests/meshgenerators/break_mesh_by_block_generator/gold/break_mesh_3D_polycrystal_in.e
  65. BIN test/tests/meshgenerators/break_mesh_by_block_generator/gold/break_mesh_3D_splittrue_in.e
  66. +977 −0 test/tests/meshgenerators/break_mesh_by_block_generator/poly.msh
  67. +2,392 −0 test/tests/meshgenerators/break_mesh_by_block_generator/poly2.msh
  68. +61 −1 test/tests/meshgenerators/break_mesh_by_block_generator/tests
  69. +94 −0 test/tests/meshgenerators/centroid_partitioner/centroid_partitioner_mg.i
  70. BIN test/tests/meshgenerators/centroid_partitioner/gold/out.e
  71. +50 −0 test/tests/meshgenerators/checkpoint/checkpoint_split.i
  72. +16 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/2/header.cpa
  73. +632 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/2/split-2-0.cpa
  74. +632 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/2/split-2-1.cpa
  75. +16 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/4/header.cpa
  76. +395 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/4/split-4-0.cpa
  77. +413 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/4/split-4-1.cpa
  78. +413 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/4/split-4-2.cpa
  79. +374 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/4/split-4-3.cpa
  80. +16 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/header.cpa
  81. +278 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/split-8-0.cpa
  82. +251 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/split-8-1.cpa
  83. +230 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/split-8-2.cpa
  84. +317 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/split-8-3.cpa
  85. +317 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/split-8-4.cpa
  86. +230 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/split-8-5.cpa
  87. +278 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/split-8-6.cpa
  88. +230 −0 test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpa/8/split-8-7.cpa
  89. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/2/header.cpr
  90. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/2/split-2-0.cpr
  91. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/2/split-2-1.cpr
  92. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/4/header.cpr
  93. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/4/split-4-0.cpr
  94. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/4/split-4-1.cpr
  95. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/4/split-4-2.cpr
  96. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/4/split-4-3.cpr
  97. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/header.cpr
  98. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/split-8-0.cpr
  99. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/split-8-1.cpr
  100. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/split-8-2.cpr
  101. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/split-8-3.cpr
  102. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/split-8-4.cpr
  103. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/split-8-5.cpr
  104. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/split-8-6.cpr
  105. BIN test/tests/meshgenerators/checkpoint/checkpoint_split_in.cpr/8/split-8-7.cpr
  106. BIN test/tests/meshgenerators/checkpoint/gold/checkpoint_split_mg_out.e
  107. BIN test/tests/meshgenerators/checkpoint/gold/test_2.e
  108. BIN test/tests/meshgenerators/checkpoint/gold/test_2a.e
  109. BIN test/tests/meshgenerators/checkpoint/gold/test_4.e
  110. BIN test/tests/meshgenerators/checkpoint/gold/test_4a.e
  111. BIN test/tests/meshgenerators/checkpoint/gold/test_8.e
  112. BIN test/tests/meshgenerators/checkpoint/gold/test_8a.e
  113. +92 −0 test/tests/meshgenerators/checkpoint/tests
  114. +52 −0 test/tests/meshgenerators/concentric_circle_mesh_generator/concentric_circle_mesh2.i
  115. BIN test/tests/meshgenerators/concentric_circle_mesh_generator/gold/concentric_circle_mesh2_out.e
  116. +65 −0 test/tests/meshgenerators/generate_bounding_box_nodeset/boundingbox_nodeset_inside.i
  117. +66 −0 test/tests/meshgenerators/generate_bounding_box_nodeset/boundingbox_nodeset_outside.i
  118. BIN test/tests/meshgenerators/generate_bounding_box_nodeset/gold/boundingbox_nodeset_inside_in.e
  119. BIN test/tests/meshgenerators/generate_bounding_box_nodeset/gold/boundingbox_nodeset_inside_out.e
  120. BIN test/tests/meshgenerators/generate_bounding_box_nodeset/gold/boundingbox_nodeset_outside_in.e
  121. BIN test/tests/meshgenerators/generate_bounding_box_nodeset/gold/boundingbox_nodeset_outside_out.e
  122. +23 −0 test/tests/meshgenerators/generate_bounding_box_nodeset/tests
  123. BIN test/tests/meshgenerators/generate_element_subdomain_id/gold/out_quad_subdomain_id.e
  124. BIN test/tests/meshgenerators/generate_element_subdomain_id/gold/quad_with_elementid_subdomainid_in.e
  125. BIN test/tests/meshgenerators/generate_element_subdomain_id/gold/quad_with_elementid_subdomainid_out.e
  126. BIN test/tests/meshgenerators/generate_element_subdomain_id/gold/tri_with_subdomainid_in.e
  127. BIN test/tests/meshgenerators/generate_element_subdomain_id/gold/tri_with_subdomainid_out.e
  128. +70 −0 test/tests/meshgenerators/generate_element_subdomain_id/quad_with_elementid_subdomainid.i
  129. +71 −0 test/tests/meshgenerators/generate_element_subdomain_id/quad_with_subdomainid.i
  130. +34 −0 test/tests/meshgenerators/generate_element_subdomain_id/tests
  131. +70 −0 test/tests/meshgenerators/generate_element_subdomain_id/tri_with_subdomainid.i
  132. +71 −0 test/tests/meshgenerators/generate_extra_nodeset/generate_extra_nodeset.i
  133. +72 −0 test/tests/meshgenerators/generate_extra_nodeset/generate_extra_nodeset_coord.i
  134. BIN test/tests/meshgenerators/generate_extra_nodeset/gold/generate_extra_nodeset_coord_in.e
  135. BIN test/tests/meshgenerators/generate_extra_nodeset/gold/generate_extra_nodeset_in.e
  136. BIN test/tests/meshgenerators/generate_extra_nodeset/gold/out.e
  137. BIN test/tests/meshgenerators/generate_extra_nodeset/gold/out_coord.e
  138. BIN test/tests/meshgenerators/generate_extra_nodeset/square.e
  139. +23 −0 test/tests/meshgenerators/generate_extra_nodeset/tests
  140. +38 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/error_boundary_number.i
  141. +66 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/error_no_elements_in_bounding_box.i
  142. +67 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/error_no_nodes_found.i
  143. +57 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/error_no_side_sets_found.i
  144. +71 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/generate_sidesets_bounding_box.i
  145. BIN test/tests/meshgenerators/generate_sidesets_bounding_box/gold/generate_sidesets_bounding_box_in.e
  146. BIN test/tests/meshgenerators/generate_sidesets_bounding_box/gold/generate_sidesets_bounding_box_out.e
  147. BIN test/tests/meshgenerators/generate_sidesets_bounding_box/gold/multiple_boundary_ids_3d_out.e
  148. BIN test/tests/meshgenerators/generate_sidesets_bounding_box/gold/multiple_boundary_ids_out.e
  149. BIN test/tests/meshgenerators/generate_sidesets_bounding_box/gold/overlapping_sidesets_out.e
  150. +70 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/multiple_boundary_ids.i
  151. +101 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/multiple_boundary_ids_3d.i
  152. +88 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/overlapping_sidesets.i
  153. +62 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/overlapping_sidesets_not_found.i
  154. +74 −0 test/tests/meshgenerators/generate_sidesets_bounding_box/tests
  155. BIN test/tests/meshgenerators/generate_sidesets_by_normals/gold/less_simple_in.e
  156. BIN test/tests/meshgenerators/generate_sidesets_by_normals/gold/simple_in.e
  157. +19 −0 test/tests/meshgenerators/generate_sidesets_by_normals/less_simple.i
  158. +19 −0 test/tests/meshgenerators/generate_sidesets_by_normals/simple.i
  159. +13 −0 test/tests/meshgenerators/generate_sidesets_by_normals/tests
  160. +63 −0 test/tests/meshgenerators/generate_subdomain_id/generate_subdomain_id.i
  161. BIN test/tests/meshgenerators/generate_subdomain_id/gold/generate_subdomain_id_in.e
  162. BIN test/tests/meshgenerators/generate_subdomain_id/gold/generate_subdomain_id_out.e
  163. +12 −0 test/tests/meshgenerators/generate_subdomain_id/tests
  164. +10 −0 test/tests/meshgenerators/gmsh/gmsh_test.i
  165. BIN test/tests/meshgenerators/gmsh/gold/gmsh_test_in.e
  166. +44 −0 test/tests/meshgenerators/gmsh/sample.msh
  167. +13 −0 test/tests/meshgenerators/gmsh/tests
  168. +51 −0 test/tests/meshgenerators/gmsh_bcs/gmsh_bcs.i
  169. BIN test/tests/meshgenerators/gmsh_bcs/gold/gmsh_bcs_out.e
  170. +437 −0 test/tests/meshgenerators/gmsh_bcs/plate_hole.msh
  171. +11 −0 test/tests/meshgenerators/gmsh_bcs/tests
  172. BIN test/tests/meshgenerators/high_order_elements/gold/high_order_elems_out.e
  173. BIN test/tests/meshgenerators/high_order_elements/gold/high_order_elems_quad4_refine_out.e
  174. +53 −0 test/tests/meshgenerators/high_order_elements/high_order_elems.i
  175. +13 −0 test/tests/meshgenerators/high_order_elements/tests
  176. BIN test/tests/meshgenerators/image_subdomain_generator/gold/image_subdomain_2d_out.e
  177. BIN test/tests/meshgenerators/image_subdomain_generator/gold/image_subdomain_3d_out.e
  178. +15 −0 test/tests/meshgenerators/image_subdomain_generator/image_subdomain_2d.i
  179. +15 −0 test/tests/meshgenerators/image_subdomain_generator/image_subdomain_3d.i
  180. +2 −6 test/tests/meshgenerators/image_subdomain_generator/tests
  181. BIN test/tests/meshgenerators/lower_d_block_generator/gold/lower_d_block_generator_out.e
  182. +51 −0 test/tests/meshgenerators/lower_d_block_generator/lower_d_block_generator.i
  183. +1 −2 test/tests/meshgenerators/lower_d_block_generator/tests
  184. BIN test/tests/meshgenerators/mesh_extruder_generator/chimney_quad.e
  185. +60 −0 test/tests/meshgenerators/mesh_extruder_generator/extrude_angle.i
  186. +60 −0 test/tests/meshgenerators/mesh_extruder_generator/extrude_quad.i
  187. +36 −0 test/tests/meshgenerators/mesh_extruder_generator/extrude_remap_layer1.i
  188. +64 −0 test/tests/meshgenerators/mesh_extruder_generator/extrude_remap_layer2.i
  189. +0 −25 test/tests/meshgenerators/mesh_extruder_generator/extruder_generator.i
  190. +66 −0 test/tests/meshgenerators/mesh_extruder_generator/gen_extrude.i
  191. BIN test/tests/meshgenerators/mesh_extruder_generator/gold/extrude_remap_layer1_out.e
  192. BIN test/tests/meshgenerators/mesh_extruder_generator/gold/extrude_remap_layer2_out.e
  193. BIN test/tests/meshgenerators/mesh_extruder_generator/gold/out_gen.e
  194. BIN test/tests/meshgenerators/mesh_extruder_generator/gold/out_quad.e
  195. BIN test/tests/meshgenerators/mesh_extruder_generator/gold/out_quad_angle.e
  196. BIN test/tests/meshgenerators/mesh_extruder_generator/multiblock.e
  197. +46 −3 test/tests/meshgenerators/mesh_extruder_generator/tests
  198. BIN test/tests/meshgenerators/mesh_side_set_generator/gold/mesh_side_set_generator_out.e
  199. +44 −0 test/tests/meshgenerators/mesh_side_set_generator/mesh_side_set_generator.i
  200. +1 −2 test/tests/meshgenerators/mesh_side_set_generator/tests
  201. BIN test/tests/meshgenerators/mixed_dim/1d_2d-2.e
  202. BIN test/tests/meshgenerators/mixed_dim/1d_2d.e
  203. +67 −0 test/tests/meshgenerators/mixed_dim/1d_2d.i
  204. +74 −0 test/tests/meshgenerators/mixed_dim/1d_2d_w_matl.i
  205. BIN test/tests/meshgenerators/mixed_dim/1d_3d.e
  206. +67 −0 test/tests/meshgenerators/mixed_dim/1d_3d.i
  207. BIN test/tests/meshgenerators/mixed_dim/gold/1d_2d_w_matl_out.e
  208. BIN test/tests/meshgenerators/mixed_dim/gold/1d_3d_out.e
  209. BIN test/tests/meshgenerators/mixed_dim/gold/out.e
  210. +34 −0 test/tests/meshgenerators/mixed_dim/tests
  211. BIN test/tests/meshgenerators/patterned_mesh_generator/gold/patterned_mesh_generator_in.e
  212. BIN test/tests/meshgenerators/patterned_mesh_generator/gold/patterned_mesh_generator_out.e
  213. +55 −5 test/tests/meshgenerators/patterned_mesh_generator/patterned_mesh_generator.i
  214. +1 −2 test/tests/meshgenerators/patterned_mesh_generator/tests
  215. BIN test/tests/meshgenerators/rename_block_generator/gold/rename_block1_out.e
  216. BIN test/tests/meshgenerators/rename_block_generator/gold/rename_block2_out.e
  217. +36 −0 test/tests/meshgenerators/rename_block_generator/rename_block1.i
  218. +144 −0 test/tests/meshgenerators/rename_block_generator/rename_block2.i
  219. +12 −2 test/tests/meshgenerators/rename_block_generator/tests
  220. +28 −0 test/tests/meshgenerators/sideset_around_subdomain_generator/around.i
  221. +42 −0 test/tests/meshgenerators/sideset_around_subdomain_generator/around_multi_created_subdomain.i
  222. BIN test/tests/meshgenerators/sideset_around_subdomain_generator/gold/around_in.e
  223. BIN .../tests/meshgenerators/sideset_around_subdomain_generator/gold/around_multi_created_subdomain_in.e
  224. +24 −0 test/tests/meshgenerators/sideset_around_subdomain_generator/tests
  225. +22 −0 test/tests/meshgenerators/sidesets_between_subdomains_generator/between.i
  226. BIN test/tests/meshgenerators/sidesets_between_subdomains_generator/gold/between_in.e
  227. +12 −0 test/tests/meshgenerators/sidesets_between_subdomains_generator/tests
  228. BIN test/tests/meshgenerators/sidesets_between_subdomains_generator/twoblocks.e
  229. +66 −0 test/tests/meshgenerators/sidesets_bounding_box_generator/error_no_elements_in_bounding_box.i
  230. +67 −0 test/tests/meshgenerators/sidesets_bounding_box_generator/error_no_nodes_found.i
  231. +57 −0 test/tests/meshgenerators/sidesets_bounding_box_generator/error_no_side_sets_found.i
  232. BIN test/tests/meshgenerators/sidesets_bounding_box_generator/gold/multiple_boundary_ids_3d_out.e
  233. BIN test/tests/meshgenerators/sidesets_bounding_box_generator/gold/multiple_boundary_ids_out.e
  234. BIN test/tests/meshgenerators/sidesets_bounding_box_generator/gold/overlapping_sidesets_out.e
  235. +70 −0 test/tests/meshgenerators/sidesets_bounding_box_generator/multiple_boundary_ids.i
  236. +101 −0 test/tests/meshgenerators/sidesets_bounding_box_generator/multiple_boundary_ids_3d.i
  237. +88 −0 test/tests/meshgenerators/sidesets_bounding_box_generator/overlapping_sidesets.i
  238. +62 −0 test/tests/meshgenerators/sidesets_bounding_box_generator/overlapping_sidesets_not_found.i
  239. +62 −0 test/tests/meshgenerators/sidesets_bounding_box_generator/tests
  240. BIN test/tests/meshgenerators/sidesets_from_normals_generator/gold/sidesets_cylinder_normals_fixed_out.e
  241. BIN test/tests/meshgenerators/sidesets_from_normals_generator/gold/sidesets_cylinder_normals_out.e
  242. +37 −1 test/tests/meshgenerators/sidesets_from_normals_generator/sidesets_cylinder_normals.i
  243. +61 −0 test/tests/meshgenerators/sidesets_from_normals_generator/sidesets_cylinder_normals_fixed.i
  244. +12 −2 test/tests/meshgenerators/sidesets_from_normals_generator/tests
  245. +37 −1 test/tests/meshgenerators/sidesets_from_points_generator/sidesets_from_points.i
  246. BIN test/tests/meshgenerators/stitched_mesh_generator/gold/stitched_mesh_generator2_out.e
  247. +68 −0 test/tests/meshgenerators/stitched_mesh_generator/stitched_mesh_generator2.i
  248. +11 −0 test/tests/meshgenerators/stitched_mesh_generator/tests
  249. BIN ...hgenerators/subdomain_bounding_box_generator/gold/oriented_subdomain_bounding_box_generator_out.e
  250. BIN ...eshgenerators/subdomain_bounding_box_generator/gold/subdomain_bounding_box_generator_inside_out.e
  251. BIN ...shgenerators/subdomain_bounding_box_generator/gold/subdomain_bounding_box_generator_outside_out.e
  252. +16 −0 ...tests/meshgenerators/subdomain_bounding_box_generator/oriented_subdomain_bounding_box_generator.i
  253. +58 −1 test/tests/meshgenerators/subdomain_bounding_box_generator/subdomain_bounding_box_generator_inside.i
  254. +58 −1 .../tests/meshgenerators/subdomain_bounding_box_generator/subdomain_bounding_box_generator_outside.i
  255. +13 −4 test/tests/meshgenerators/subdomain_bounding_box_generator/tests
  256. BIN test/tests/meshgenerators/transform_generator/gold/rotate_and_scale_out.e
  257. +36 −0 test/tests/meshgenerators/transform_generator/rotate_and_scale.i
  258. +1 −2 test/tests/meshgenerators/transform_generator/tests
@@ -19,7 +19,7 @@
namespace MooseMeshUtils
{
// Changes the old ID to new ID in the mesh given in parameters
void changeBoundaryId(const libMesh::MeshBase & mesh,
void changeBoundaryId(MeshBase & mesh,
const libMesh::boundary_id_type old_id,
const libMesh::boundary_id_type new_id,
bool delete_prev);
@@ -32,6 +32,9 @@ validParams<PatternedMeshGenerator>()
params.addRangeCheckedParam<Real>(
"z_width", 0, "z_width>=0", "The tile width in the z direction");
// Boundaries : user has to provide id or name for each boundary
// If an id is provided, any provided name for this particular boundary will be ignored.
// x boundary names
params.addParam<BoundaryName>("left_boundary", "left", "name of the left (x) boundary");
params.addParam<BoundaryName>("right_boundary", "right", "name of the right (x) boundary");
@@ -40,6 +43,14 @@ validParams<PatternedMeshGenerator>()
params.addParam<BoundaryName>("top_boundary", "top", "name of the top (y) boundary");
params.addParam<BoundaryName>("bottom_boundary", "bottom", "name of the bottom (y) boundary");
// x boundary ids
params.addParam<boundary_id_type>("left_boundary_id", "id of the left (x) boundary");
params.addParam<boundary_id_type>("right_boundary_id", "id of the right (x) boundary");
// y boundary ids
params.addParam<boundary_id_type>("top_boundary_id", "name of the top (y) boundary");
params.addParam<boundary_id_type>("bottom_boundary_id", "name of the bottom (y) boundary");
params.addRequiredParam<std::vector<std::vector<unsigned int>>>(
"pattern", "A double-indexed array starting with the upper-left corner");
@@ -57,10 +68,6 @@ PatternedMeshGenerator::PatternedMeshGenerator(const InputParameters & parameter
_y_width(getParam<Real>("y_width")),
_z_width(getParam<Real>("z_width"))
{
// The PatternedMesh class only works with ReplicatedMesh
// Must find the equivalent : this is for MooseMesh derived objects
// errorIfDistributedMesh("PatternedMesh");
_mesh_ptrs.reserve(_input_names.size());
for (auto i = beginIndex(_input_names); i < _input_names.size(); ++i)
_mesh_ptrs.push_back(&getMeshByName(_input_names[i]));
@@ -69,10 +76,10 @@ PatternedMeshGenerator::PatternedMeshGenerator(const InputParameters & parameter
std::unique_ptr<MeshBase>
PatternedMeshGenerator::generate()
{
// Reserve spaces for the other meshes (no need to store the first one another time)
// Reserve spaces for all the meshes
_meshes.reserve(_input_names.size());
// Read in all of the other meshes
// Read in all of the meshes
for (auto i = beginIndex(_input_names); i < _input_names.size(); ++i)
{
_meshes.push_back(dynamic_pointer_cast<ReplicatedMesh>(*_mesh_ptrs[i]));
@@ -81,8 +88,7 @@ PatternedMeshGenerator::generate()
// Data structure that holds each row
_row_meshes.resize(_pattern.size());
// const BoundaryInfo & boundary_info = mesh.get_boundary_info();
// Trying to get the boundaries by name
boundary_id_type left =
_meshes[0]->get_boundary_info().get_id_by_name(getParam<BoundaryName>("left_boundary"));
boundary_id_type right =
@@ -92,6 +98,26 @@ PatternedMeshGenerator::generate()
boundary_id_type bottom =
_meshes[0]->get_boundary_info().get_id_by_name(getParam<BoundaryName>("bottom_boundary"));
// For each boundary, check if the user provided an id
if (isParamValid("left_boundary_id"))
left = getParam<boundary_id_type>("left_boundary_id");
if (isParamValid("right_boundary_id"))
right = getParam<boundary_id_type>("right_boundary_id");
if (isParamValid("top_boundary_id"))
top = getParam<boundary_id_type>("top_boundary_id");
if (isParamValid("bottom_boundary_id"))
bottom = getParam<boundary_id_type>("bottom_boundary_id");
// Check if all the boundaries have been initialized
if (left == -123)
mooseError("The left boundary has not been initialized properly.");
if (right == -123)
mooseError("The right boundary has not been initialized properly.");
if (top == -123)
mooseError("The top boundary has not been initialized properly.");
if (bottom == -123)
mooseError("The bottom boundary has not been initialized properly.");
// Build each row mesh
for (auto i = beginIndex(_pattern); i < _pattern.size(); ++i)
for (auto j = beginIndex(_pattern[i]); j < _pattern[i].size(); ++j)
@@ -66,8 +66,8 @@ SideSetsFromBoundingBoxGenerator::SideSetsFromBoundingBoxGenerator(
parameters.get<RealVectorValue>("top_right")),
_boundary_id_overlap(parameters.get<bool>("boundary_id_overlap"))
{
if (typeid(_input).name() == typeid(DistributedMesh).name())
mooseError("GenerateAllSideSetsByNormals only works with ReplicatedMesh.");
if (dynamic_pointer_cast<DistributedMesh>(_input) != nullptr)
mooseError("SideSetsFromBoundingBox only works with ReplicatedMesh.");
}
std::unique_ptr<MeshBase>
@@ -77,6 +77,7 @@ SideSetsFromBoundingBoxGenerator::generate()
// Get a reference to our BoundaryInfo object for later use
BoundaryInfo & boundary_info = mesh->get_boundary_info();
boundary_info.build_node_list_from_side_list();
bool found_element = false;
bool found_side_sets = false;
@@ -13,17 +13,18 @@
#include "libmesh/elem.h"
#include "libmesh/boundary_info.h"
#include "libmesh/replicated_mesh.h"
#include "libmesh/mesh_base.h"
namespace MooseMeshUtils
{
void
changeBoundaryId(const libMesh::MeshBase & mesh,
changeBoundaryId(MeshBase & mesh,
const libMesh::boundary_id_type old_id,
const libMesh::boundary_id_type new_id,
bool delete_prev)
{
// Get a reference to our BoundaryInfo object, we will use it several times below...
libMesh::BoundaryInfo boundary_info = mesh.get_boundary_info();
libMesh::BoundaryInfo & boundary_info = mesh.get_boundary_info();
// Container to catch ids passed back from BoundaryInfo
std::vector<libMesh::boundary_id_type> old_ids;
@@ -0,0 +1,113 @@
[MeshGenerators]
[./fmg]
type = FileMeshGenerator
file = square.e
[]
[]
[Mesh]
type = MeshGeneratorMesh
[]
[Variables]
active = 'u v'
[./u]
order = FIRST
family = LAGRANGE
[../]
[./v]
order = FIRST
family = LAGRANGE
[../]
[]
[Kernels]
active = 'udiff uconv uie vdiff vconv vie'
[./udiff]
type = Diffusion
variable = u
[../]
[./uconv]
type = Convection
variable = u
velocity = '10 1 0'
[../]
[./uie]
type = TimeDerivative
variable = u
[../]
[./vdiff]
type = Diffusion
variable = v
[../]
[./vconv]
type = Convection
variable = v
velocity = '-10 1 0'
[../]
[./vie]
type = TimeDerivative
variable = v
[../]
[]
[BCs]
active = 'uleft uright vleft vright'
[./uleft]
type = DirichletBC
variable = u
boundary = 1
value = 0
[../]
[./uright]
type = DirichletBC
variable = u
boundary = 2
value = 1
[../]
[./vleft]
type = DirichletBC
variable = v
boundary = 1
value = 1
[../]
[./vright]
type = DirichletBC
variable = v
boundary = 2
value = 0
[../]
[]
[Executioner]
type = Transient
solve_type = 'PJFNK'
start_time = 0.0
num_steps = 2
dt = .1
[./Adaptivity]
refine_fraction = 0.2
coarsen_fraction = 0.3
max_h_level = 4
[../]
[]
[Outputs]
file_base = out
exodus = true
[]
@@ -0,0 +1,103 @@
[MeshGenerators]
[./fmg]
type = FileMeshGenerator
file = square.e
uniform_refine = 3
[]
[]
[Mesh]
type = MeshGeneratorMesh
[]
[Variables]
active = 'u v'
[./u]
order = FIRST
family = LAGRANGE
[../]
[./v]
order = FIRST
family = LAGRANGE
[../]
[]
[Kernels]
active = 'udiff uconv uie vdiff'
[./udiff]
type = Diffusion
variable = u
[../]
[./uconv]
type = Convection
variable = u
velocity = '20 1 0'
[../]
[./uie]
type = TimeDerivative
variable = u
[../]
[./vdiff]
type = Diffusion
variable = v
[../]
[]
[BCs]
active = 'uleft uright vleft vright'
[./uleft]
type = DirichletBC
variable = u
boundary = 1
value = 0
[../]
[./uright]
type = DirichletBC
variable = u
boundary = 2
value = 1
[../]
[./vleft]
type = DirichletBC
variable = v
boundary = 1
value = 1
[../]
[./vright]
type = DirichletBC
variable = v
boundary = 2
value = 0
[../]
[]
[Executioner]
type = Transient
solve_type = 'PJFNK'
start_time = 0.0
num_steps = 2
dt = .1
[./Adaptivity]
refine_fraction = 0.3
max_h_level = 7
cycles_per_step = 2
[../]
[]
[Outputs]
file_base = out_cycles
exodus = true
[]
Oops, something went wrong.

0 comments on commit a341b90

Please sign in to comment.