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.
Merge pull request idaholab#29530 from miaoyinb/flexPatternEEID
Add Auto EEID Assignment in FlexiblePatternGenerator
- Loading branch information
Showing
8 changed files
with
354 additions
and
1 deletion.
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
125 changes: 125 additions & 0 deletions
125
modules/reactor/test/tests/meshgenerators/flexible_pattern_generator/fp_eeid.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,125 @@ | ||
[Mesh] | ||
[accg_1] | ||
type = AdvancedConcentricCircleGenerator | ||
num_sectors = 9 | ||
ring_radii = '2' | ||
ring_intervals = '1' | ||
ring_block_ids = '10' | ||
ring_block_names = 'accg_1' | ||
create_outward_interface_boundaries = false | ||
[] | ||
[accg_2] | ||
type = AdvancedConcentricCircleGenerator | ||
num_sectors = 9 | ||
ring_radii = '2' | ||
ring_intervals = '1' | ||
ring_block_ids = '20' | ||
ring_block_names = 'accg_2' | ||
create_outward_interface_boundaries = false | ||
[] | ||
[accg_3] | ||
type = AdvancedConcentricCircleGenerator | ||
num_sectors = 9 | ||
ring_radii = '2' | ||
ring_intervals = '1' | ||
ring_block_ids = '30' | ||
ring_block_names = 'accg_3' | ||
create_outward_interface_boundaries = false | ||
[] | ||
[fpg] | ||
type = FlexiblePatternGenerator | ||
inputs = 'accg_1 accg_2 accg_3' | ||
boundary_type = HEXAGON | ||
boundary_size = ${fparse 12.0*sqrt(3.0)} | ||
boundary_sectors = 10 | ||
|
||
extra_positions = '0.0 6.0 0.0 | ||
0.0 -6.0 0.0 | ||
0.0 0.0 0.0' | ||
extra_positions_mg_indices = '0 1 2' | ||
|
||
desired_area = 1.0 | ||
[] | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[AuxVariables] | ||
[pin_id] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
[] | ||
[] | ||
|
||
[AuxKernels] | ||
[pin_id] | ||
type = ExtraElementIDAux | ||
extra_id_name = pin_id | ||
variable = pin_id | ||
[] | ||
[] | ||
|
||
[Postprocessors] | ||
[accg_1_pin_id_avg] | ||
type = ElementAverageValue | ||
variable = pin_id | ||
block = 10 | ||
[] | ||
[accg_2_pin_id_avg] | ||
type = ElementAverageValue | ||
variable = pin_id | ||
block = 20 | ||
[] | ||
[accg_3_pin_id_avg] | ||
type = ElementAverageValue | ||
variable = pin_id | ||
block = 30 | ||
[] | ||
[accg_1_pin_id_max] | ||
type = ElementExtremeValue | ||
variable = pin_id | ||
block = 10 | ||
[] | ||
[accg_2_pin_id_max] | ||
type = ElementExtremeValue | ||
variable = pin_id | ||
block = 20 | ||
[] | ||
[accg_3_pin_id_max] | ||
type = ElementExtremeValue | ||
variable = pin_id | ||
block = 30 | ||
[] | ||
[accg_1_pin_id_min] | ||
type = ElementExtremeValue | ||
variable = pin_id | ||
block = 10 | ||
value_type = min | ||
[] | ||
[accg_2_pin_id_min] | ||
type = ElementExtremeValue | ||
variable = pin_id | ||
block = 20 | ||
value_type = min | ||
[] | ||
[accg_3_pin_id_min] | ||
type = ElementExtremeValue | ||
variable = pin_id | ||
block = 30 | ||
value_type = min | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 1 | ||
[] | ||
|
||
[Outputs] | ||
[csv] | ||
type = CSV | ||
execute_on = FINAL | ||
[] | ||
[] |
104 changes: 104 additions & 0 deletions
104
modules/reactor/test/tests/meshgenerators/flexible_pattern_generator/fp_eeid_pattern.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,104 @@ | ||
[Mesh] | ||
[accg_1] | ||
type = AdvancedConcentricCircleGenerator | ||
num_sectors = 9 | ||
ring_radii = '2' | ||
ring_intervals = '1' | ||
ring_block_ids = '10' | ||
ring_block_names = 'accg_1' | ||
create_outward_interface_boundaries = false | ||
[] | ||
[accg_2] | ||
type = AdvancedConcentricCircleGenerator | ||
num_sectors = 9 | ||
ring_radii = '2' | ||
ring_intervals = '1' | ||
ring_block_ids = '20' | ||
ring_block_names = 'accg_2' | ||
create_outward_interface_boundaries = false | ||
[] | ||
[fpg] | ||
type = FlexiblePatternGenerator | ||
inputs = 'accg_1 accg_2' | ||
boundary_type = HEXAGON | ||
boundary_size = ${fparse 12.0*sqrt(3.0)} | ||
boundary_sectors = 10 | ||
|
||
extra_positions = '0.0 6.0 0.0 | ||
0.0 -6.0 0.0 | ||
0.0 0.0 0.0' | ||
extra_positions_mg_indices = '0 1 0' | ||
|
||
pattern_id_name = pattern_id | ||
pattern_id_shift = 20 | ||
|
||
desired_area = 1.0 | ||
[] | ||
[] | ||
|
||
[Problem] | ||
solve = false | ||
[] | ||
|
||
[AuxVariables] | ||
[pattern_id] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
[] | ||
[] | ||
|
||
[AuxKernels] | ||
[pin_id] | ||
type = ExtraElementIDAux | ||
extra_id_name = pattern_id | ||
variable = pattern_id | ||
[] | ||
[] | ||
|
||
[Postprocessors] | ||
[accg_1_pin_id_avg] | ||
type = ElementAverageValue | ||
variable = pattern_id | ||
block = 10 | ||
[] | ||
[accg_1_pin_id_max] | ||
type = ElementExtremeValue | ||
variable = pattern_id | ||
block = 10 | ||
[] | ||
[accg_1_pin_id_min] | ||
type = ElementExtremeValue | ||
variable = pattern_id | ||
block = 10 | ||
value_type = min | ||
[] | ||
[accg_2_pin_id_avg] | ||
type = ElementAverageValue | ||
variable = pattern_id | ||
block = 20 | ||
[] | ||
[accg_2_pin_id_max] | ||
type = ElementExtremeValue | ||
variable = pattern_id | ||
block = 20 | ||
[] | ||
[accg_2_pin_id_min] | ||
type = ElementExtremeValue | ||
variable = pattern_id | ||
block = 20 | ||
value_type = min | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
num_steps = 1 | ||
[] | ||
|
||
[Outputs] | ||
[csv] | ||
type = CSV | ||
execute_on = FINAL | ||
file_base = 'fp_eeid_pattern' | ||
[] | ||
[] |
2 changes: 2 additions & 0 deletions
2
modules/reactor/test/tests/meshgenerators/flexible_pattern_generator/gold/fp_eeid_cell.csv
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,2 @@ | ||
time,accg_1_pin_id_avg,accg_1_pin_id_max,accg_1_pin_id_min,accg_2_pin_id_avg,accg_2_pin_id_max,accg_2_pin_id_min,accg_3_pin_id_avg,accg_3_pin_id_max,accg_3_pin_id_min | ||
1,1,1,1,2,2,2,3,3,3 |
2 changes: 2 additions & 0 deletions
2
...les/reactor/test/tests/meshgenerators/flexible_pattern_generator/gold/fp_eeid_pattern.csv
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,2 @@ | ||
time,accg_1_pin_id_avg,accg_1_pin_id_max,accg_1_pin_id_min,accg_2_pin_id_avg,accg_2_pin_id_max,accg_2_pin_id_min | ||
1,20,20,20,21,21,21 |
Oops, something went wrong.