Skip to content

Commit

Permalink
Set correct dimension in FancyExtruderGenerator (idaholab#16902)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Schunert authored and jain651 committed Apr 19, 2021
1 parent c219a48 commit 5f986af
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions framework/src/meshgenerators/FancyExtruderGenerator.C
Expand Up @@ -133,6 +133,7 @@ FancyExtruderGenerator::generate()
// Original license is LGPL so it can be used here.

auto mesh = buildMeshBaseObject();
mesh->set_mesh_dimension(_input->mesh_dimension() + 1);

std::unique_ptr<MeshBase> input = std::move(_input);

Expand Down
@@ -0,0 +1,27 @@
[Mesh]
[file]
type = CartesianMeshGenerator
dim = 2
dx = '1 1 1 1'
dy = '1 1'
subdomain_id = '1 2 3 4
1 2 3 4'
[]

[extrude]
type = FancyExtruderGenerator
direction = '0 0 1'
heights = '1 1 1'
num_layers = '1 1 1'
input = file
[]

[add_side]
type = ParsedGenerateSideset
combinatorial_geometry = '2 > 1'
new_sideset_name = new_s
included_subdomain_ids = 1
included_neighbor_ids = 2
input = extrude
[]
[]
Binary file not shown.
11 changes: 11 additions & 0 deletions test/tests/meshgenerators/fancy_extruder_generator/tests
Expand Up @@ -17,4 +17,15 @@
issues = '#15944 #15936 #15823'
design = 'FancyExtruderGenerator.md'
[]
[extruder_then_parsed_gen_sideset]
type = 'Exodiff'
input = fancy_extruder_then_parsed_gen_sideset.i
cli_args = '--mesh-only'
exodiff = 'fancy_extruder_then_parsed_gen_sideset_in.e'
recover = false

requirement = 'The system shall be able to use the result from FancyExtruderGenerator in subsequent mesh generators'
design = 'FancyExtruderGenerator.md'
issues = '#16902'
[]
[]

0 comments on commit 5f986af

Please sign in to comment.