-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5634 from permcody/new_extruder
Adding new layer remapping capaiblity to MeshExtruder
- Loading branch information
Showing
8 changed files
with
227 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
test/tests/mesh_modifiers/mesh_extruder/extrude_remap_layer1.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[Mesh] | ||
type = FileMesh | ||
file = multiblock.e | ||
[] | ||
|
||
[MeshModifiers] | ||
[./extrude] | ||
type = MeshExtruder | ||
num_layers = 6 | ||
extrusion_vector = '0 0 2' | ||
bottom_sideset = 'new_bottom' | ||
top_sideset = 'new_top' | ||
|
||
# Remap layers | ||
existing_subdomains = '1 2 5' | ||
layers = '1 3 5' | ||
new_ids = '10 12 15 | ||
30 32 35 | ||
50 52 55' | ||
[../] | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
order = FIRST | ||
family = LAGRANGE | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./bottom] | ||
type = DirichletBC | ||
variable = u | ||
boundary = 'new_bottom' | ||
value = 0 | ||
[../] | ||
|
||
[./top] | ||
type = DirichletBC | ||
variable = u | ||
boundary = 'new_top' | ||
value = 1 | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
|
||
# Preconditioned JFNK (default) | ||
solve_type = 'PJFNK' | ||
[] | ||
|
||
[Outputs] | ||
output_initial = true | ||
exodus = true | ||
[] |
61 changes: 61 additions & 0 deletions
61
test/tests/mesh_modifiers/mesh_extruder/extrude_remap_layer2.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[Mesh] | ||
type = FileMesh | ||
file = multiblock.e | ||
[] | ||
|
||
[MeshModifiers] | ||
[./extrude] | ||
type = MeshExtruder | ||
num_layers = 6 | ||
extrusion_vector = '0 0 2' | ||
bottom_sideset = 'new_bottom' | ||
top_sideset = 'new_top' | ||
|
||
# Remap layers | ||
existing_subdomains = '1 2 5' | ||
layers = '1 3 5' | ||
new_ids = '10 12 15' # Repeat this remapping for each layer | ||
[../] | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
order = FIRST | ||
family = LAGRANGE | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = Diffusion | ||
variable = u | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./bottom] | ||
type = DirichletBC | ||
variable = u | ||
boundary = 'new_bottom' | ||
value = 0 | ||
[../] | ||
|
||
[./top] | ||
type = DirichletBC | ||
variable = u | ||
boundary = 'new_top' | ||
value = 1 | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Steady | ||
|
||
# Preconditioned JFNK (default) | ||
solve_type = 'PJFNK' | ||
[] | ||
|
||
[Outputs] | ||
output_initial = true | ||
exodus = true | ||
[] |
Binary file added
BIN
+45.8 KB
test/tests/mesh_modifiers/mesh_extruder/gold/extrude_remap_layer1_out.e
Binary file not shown.
Binary file added
BIN
+44.7 KB
test/tests/mesh_modifiers/mesh_extruder/gold/extrude_remap_layer2_out.e
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters