forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TRANSLATE_CENTER_ORIGIN and TRANSLATE_MIN_ORIGIN to TransformGene…
…rator refs idaholab#16927
- Loading branch information
1 parent
72dd96f
commit 28c1dbb
Showing
11 changed files
with
123 additions
and
24 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
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
Binary file removed
BIN
-34.9 KB
test/tests/meshgenerators/transform_generator/gold/rotate_and_scale_out.e
Binary file not shown.
Binary file added
BIN
+2.8 KB
test/tests/meshgenerators/transform_generator/gold/translate_center_origin_in.e
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.79 KB
test/tests/meshgenerators/transform_generator/gold/translate_min_origin_in.e
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,38 @@ | ||
[Tests] | ||
[./transform_generator_test] | ||
design = 'meshgenerators/TransformGenerator.md' | ||
issues = '#11640 #16927' | ||
|
||
[rotate_and_scale] | ||
type = 'Exodiff' | ||
input = 'rotate_and_scale.i' | ||
exodiff = 'rotate_and_scale_out.e' | ||
exodiff = 'rotate_and_scale_in.e' | ||
requirement = "The system shall include the ability to rotate and scale a finite element mesh." | ||
design = 'meshgenerators/TransformGenerator.md' | ||
issues = '#11640' | ||
mesh_mode = 'REPLICATED' | ||
recover = false | ||
[../] | ||
cli_args = '--mesh-only' | ||
[] | ||
|
||
[translate] | ||
requirement = "The system shall include the ability to translate a finite element mesh in a manner that" | ||
|
||
[user_set] | ||
type = 'Exodiff' | ||
input = 'translate.i' | ||
exodiff = 'translate_in.e' | ||
cli_args = '--mesh-only' | ||
detail = 'is defined by the user,' | ||
[] | ||
[center_origin] | ||
type = 'Exodiff' | ||
input = 'translate_center_origin.i' | ||
exodiff = 'translate_center_origin_in.e' | ||
cli_args = '--mesh-only' | ||
detail = 'places the center of the mesh at the origin, or' | ||
[] | ||
[min_origin] | ||
type = 'Exodiff' | ||
input = 'translate_min_origin.i' | ||
exodiff = 'translate_min_origin_in.e' | ||
cli_args = '--mesh-only' | ||
detail = 'places the minimum of the mesh at the origin.' | ||
[] | ||
[] | ||
[] |
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,15 @@ | ||
[Mesh] | ||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 2 | ||
ny = 2 | ||
[] | ||
|
||
[translate] | ||
type = TransformGenerator | ||
input = gmg | ||
transform = translate | ||
# vector_value = '1 2 0' | ||
[] | ||
[] |
14 changes: 14 additions & 0 deletions
14
test/tests/meshgenerators/transform_generator/translate_center_origin.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,14 @@ | ||
[Mesh] | ||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 2 | ||
ny = 2 | ||
[] | ||
|
||
[translate] | ||
type = TransformGenerator | ||
input = gmg | ||
transform = translate_center_origin | ||
[] | ||
[] |
18 changes: 18 additions & 0 deletions
18
test/tests/meshgenerators/transform_generator/translate_min_origin.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,18 @@ | ||
[Mesh] | ||
[gmg] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 2 | ||
ny = 2 | ||
xmin = 1 | ||
xmax = 2 | ||
ymin = 3 | ||
ymax = 4 | ||
[] | ||
|
||
[translate] | ||
type = TransformGenerator | ||
input = gmg | ||
transform = translate_min_origin | ||
[] | ||
[] |