- extra_id_nameThe extra ID name in the mesh
C++ Type:std::vector<ExtraElementIDName>
Controllable:No
Description:The extra ID name in the mesh
- variableThe name of the variable that this object applies to
C++ Type:AuxVariableName
Unit:(no unit assumed)
Controllable:No
Description:The name of the variable that this object applies to
ExtraElementIDAux
Description
This auxiliary kernel copies element integers into an auxiliary variable by setting the variable value on quadrature points of any element with the extra element integer ID of the element. Elements which do not have the extra element ID requested by "extra_id_name" will be evaluated as -1.0 in this auxiliary kernel for better visualization and for consistent handling between 32-bits and 64-bits integer types.
Input Parameters
- blockThe list of blocks (ids or names) that this object will be applied
C++ Type:std::vector<SubdomainName>
Controllable:No
Description:The list of blocks (ids or names) that this object will be applied
- boundaryThe list of boundaries (ids or names) from the mesh where this object applies
C++ Type:std::vector<BoundaryName>
Controllable:No
Description:The list of boundaries (ids or names) from the mesh where this object applies
- check_boundary_restrictedTrueWhether to check for multiple element sides on the boundary in the case of a boundary restricted, element aux variable. Setting this to false will allow contribution to a single element's elemental value(s) from multiple boundary sides on the same element (example: when the restricted boundary exists on two or more sides of an element, such as at a corner of a mesh
Default:True
C++ Type:bool
Controllable:No
Description:Whether to check for multiple element sides on the boundary in the case of a boundary restricted, element aux variable. Setting this to false will allow contribution to a single element's elemental value(s) from multiple boundary sides on the same element (example: when the restricted boundary exists on two or more sides of an element, such as at a corner of a mesh
- execute_onLINEAR TIMESTEP_ENDThe list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.
Default:LINEAR TIMESTEP_END
C++ Type:ExecFlagEnum
Options:XFEM_MARK, FORWARD, ADJOINT, HOMOGENEOUS_FORWARD, ADJOINT_TIMESTEP_BEGIN, ADJOINT_TIMESTEP_END, NONE, INITIAL, LINEAR, LINEAR_CONVERGENCE, NONLINEAR, NONLINEAR_CONVERGENCE, POSTCHECK, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, MULTIAPP_FIXED_POINT_CONVERGENCE, FINAL, CUSTOM, PRE_DISPLACE
Controllable:No
Description:The list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.
Optional Parameters
- control_tagsAdds user-defined labels for accessing object parameters via control logic.
C++ Type:std::vector<std::string>
Controllable:No
Description:Adds user-defined labels for accessing object parameters via control logic.
- enableTrueSet the enabled status of the MooseObject.
Default:True
C++ Type:bool
Controllable:Yes
Description:Set the enabled status of the MooseObject.
- seed0The seed for the master random number generator
Default:0
C++ Type:unsigned int
Controllable:No
Description:The seed for the master random number generator
- use_displaced_meshFalseWhether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.
Default:False
C++ Type:bool
Controllable:No
Description:Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.
Advanced Parameters
- prop_getter_suffixAn optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.
C++ Type:MaterialPropertyName
Unit:(no unit assumed)
Controllable:No
Description:An optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.
- use_interpolated_stateFalseFor the old and older state use projected material properties interpolated at the quadrature points. To set up projection use the ProjectedStatefulMaterialStorageAction.
Default:False
C++ Type:bool
Controllable:No
Description:For the old and older state use projected material properties interpolated at the quadrature points. To set up projection use the ProjectedStatefulMaterialStorageAction.
Material Property Retrieval Parameters
Input Files
- (modules/reactor/test/tests/meshgenerators/coarse_mesh_extra_element_id_generator/coarse_elem_extra_elem_id.i)
- (test/tests/meshgenerators/unique_extra_id_mesh_generator/unique_id_block_restricted.i)
- (modules/reactor/test/tests/meshgenerators/coarse_mesh_extra_element_id_generator/coarse_elem_id.i)
- (modules/reactor/test/tests/meshgenerators/flexible_pattern_generator/fp_eeid.i)
- (modules/reactor/test/tests/meshgenerators/reporting_id/cartesian_id/patterned_cartesian_core_reporting_id.i)
- (modules/reactor/test/tests/meshgenerators/revolve_generator/ei_swap.i)
- (test/tests/meshgenerators/advanced_extruder_generator/advanced_extruder_with_element_extra_integer_swap.i)
- (test/tests/meshgenerators/unique_extra_id_mesh_generator/unique_id.i)
- (modules/reactor/test/tests/meshgenerators/tri_pin_hex_assemby_generator/tri_pin.i)
- (modules/reactor/test/tests/meshgenerators/reporting_id/hexagonal_id/core_reporting_id_exclude.i)
- (test/tests/vectorpostprocessors/element_id_counters/interface_element_counter.i)
- (modules/reactor/test/tests/meshgenerators/polygon_concentric_circle_mesh_generator/pin_reporting_id.i)
- (test/tests/meshgenerators/plane_id_mesh_generator/plane_id_pin3d.i)
- (modules/reactor/test/tests/meshgenerators/extra_element_id_copy_generator/copy_elem_id_test.i)
- (modules/reactor/test/tests/meshgenerators/reporting_id/cartesian_id/patterned_cartesian_assembly_reporting_multi_id.i)
- (modules/reactor/test/tests/meshgenerators/coarse_mesh_extra_element_id_generator/coarse_elem_restrict_subdomain.i)
- (test/tests/auxkernels/extra_element_id_aux/extra_element_integer_aux.i)
- (modules/reactor/test/tests/meshgenerators/subdomain_extra_element_id_generator/subdomain_elem_ids_test.i)
- (modules/reactor/test/tests/meshgenerators/core_mesh_generator/core_periphery_prmg.i)
- (modules/reactor/test/tests/functions/multi_control_drum_function/multi_cd.i)
- (modules/reactor/test/tests/meshgenerators/core_mesh_generator/core_periphery_ptmg_vol.i)
- (modules/reactor/test/tests/meshgenerators/reporting_id/cartesian_id/assembly_reporting_id.i)
- (modules/reactor/test/tests/meshgenerators/reporting_id/cartesian_id/patterned_cartesian_assembly_reporting_id.i)
- (test/tests/meshgenerators/plane_id_mesh_generator/plane_id_grid2d.i)
- (test/tests/meshgenerators/file_mesh_generator/exodus_file_mesh_with_id.i)
- (modules/reactor/test/tests/meshgenerators/flexible_pattern_generator/fp_eeid_pattern.i)
- (test/tests/meshgenerators/unique_extra_id_mesh_generator/unique_id_cut.i)
- (test/tests/meshgenerators/subdomain_bounding_box_generator/bounding_box_integers.i)
- (modules/reactor/test/tests/meshgenerators/coarse_mesh_extra_element_id_generator/coarse_elem_subdomain_id.i)
extra_id_name
C++ Type:std::vector<ExtraElementIDName>
Controllable:No
Description:The extra ID name in the mesh
(modules/reactor/test/tests/meshgenerators/coarse_mesh_extra_element_id_generator/coarse_elem_extra_elem_id.i)
[Mesh]
[gmg]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 8
ymin = 0
ymax = 8
nx = 8
ny = 8
[]
[coarse_mesh]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 8
ymin = 0
ymax = 8
nx = 3
ny = 3
subdomain_ids = '0 1 2
3 3 3
4 4 4'
[]
[add_id]
type = SubdomainExtraElementIDGenerator
input = coarse_mesh
subdomains = '0 1 2 3 4'
extra_element_id_names = 'test_id'
extra_element_ids = '4 3 2 1 0'
[]
[coarse_id]
type = CoarseMeshExtraElementIDGenerator
input = gmg
coarse_mesh = add_id
extra_element_id_name = coarse_elem_id
coarse_mesh_extra_element_id = test_id
enforce_mesh_embedding = false
[]
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[AuxVariables]
[coarse_elem_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[coarse_elem_id]
type = ExtraElementIDAux
variable = coarse_elem_id
extra_id_name = coarse_elem_id
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]
(test/tests/meshgenerators/unique_extra_id_mesh_generator/unique_id_block_restricted.i)
[Mesh]
[fmg]
type = FileMeshGenerator
file = unique_id.e
exodus_extra_element_integers = 'id1 id0'
[]
[assign_block_id]
type = SubdomainBoundingBoxGenerator
input = fmg
bottom_left = '0 -2 0'
top_right = '2 0 0'
block_id = 1
[]
[parse_id]
type = UniqueExtraIDMeshGenerator
input = assign_block_id
id_name = 'id1 id0'
new_id_name = 'parsed_id'
restricted_subdomains = 1
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[parsed_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[aux_parsed_id]
type = ExtraElementIDAux
variable = parsed_id
extra_id_name = parsed_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(modules/reactor/test/tests/meshgenerators/coarse_mesh_extra_element_id_generator/coarse_elem_id.i)
[Mesh]
[gmg]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 8
ymin = 0
ymax = 8
nx = 8
ny = 8
[]
[coarse_mesh]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 8
ymin = 0
ymax = 8
nx = 3
ny = 3
[]
[coarse_id]
type = CoarseMeshExtraElementIDGenerator
input = gmg
coarse_mesh = coarse_mesh
extra_element_id_name = coarse_elem_id
enforce_mesh_embedding = false
[]
# need this to ensure consistent numbering of the coarse mesh when using a distributed mesh
allow_renumbering = false
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[AuxVariables]
[coarse_elem_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[coarse_elem_id]
type = ExtraElementIDAux
variable = coarse_elem_id
extra_id_name = coarse_elem_id
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]
(modules/reactor/test/tests/meshgenerators/flexible_pattern_generator/fp_eeid.i)
[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
[]
[]
(modules/reactor/test/tests/meshgenerators/reporting_id/cartesian_id/patterned_cartesian_core_reporting_id.i)
[Mesh]
[pin1]
type = PolygonConcentricCircleMeshGenerator
num_sides = 4
num_sectors_per_side = '2 2 2 2'
background_intervals = 1
ring_radii ='0.4 0.5'
ring_intervals = '1 1'
polygon_size = 0.63
flat_side_up = true
[]
[pin2]
type = PolygonConcentricCircleMeshGenerator
num_sides = 4
num_sectors_per_side = '2 2 2 2'
background_intervals = 1
ring_radii ='0.4 0.5'
ring_intervals = '1 1'
polygon_size = 0.63
flat_side_up = true
[]
[assembly1]
type = PatternedCartesianMeshGenerator
inputs = 'pin1 pin2'
pattern = ' 1 0 1 0;
0 1 0 1;
1 0 1 0;
0 1 0 1'
assign_type = 'cell'
id_name = 'pin_id'
pattern_boundary = 'none'
generate_core_metadata = false
[]
[assembly2]
type = PatternedCartesianMeshGenerator
inputs = 'pin1 pin2'
pattern = ' 0 1 1 0;
1 0 0 1;
1 0 0 1;
0 1 1 0'
assign_type = 'cell'
id_name = 'pin_id'
pattern_boundary = 'none'
generate_core_metadata = false
[]
[core]
type = PatternedCartesianMeshGenerator
inputs = 'assembly1 assembly2'
pattern = '0 1;
1 0'
assign_type = 'cell'
id_name = 'assembly_id'
pattern_boundary = 'none'
generate_core_metadata = true
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[pin_id]
family = MONOMIAL
order = CONSTANT
[]
[assembly_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_pin_id]
type = ExtraElementIDAux
variable = pin_id
extra_id_name = pin_id
[]
[set_assembly_id]
type = ExtraElementIDAux
variable = assembly_id
extra_id_name = assembly_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(modules/reactor/test/tests/meshgenerators/revolve_generator/ei_swap.i)
[Problem]
solve = false
[]
[Mesh]
# See fancy_extruder_with_boundary_swap.i for details about mesh_2d.e
[fmg]
type = FileMeshGenerator
file = mesh_2d.e
exodus_extra_element_integers = 'element_extra_integer_1 element_extra_integer_2'
[]
[rg]
type = RevolveGenerator
input = fmg
axis_point = '5.0 0.0 0.0'
axis_direction = '0.0 1.0 0.0'
nums_azimuthal_intervals = '2 4'
revolving_angles = '30 60'
elem_integer_names_to_swap = 'element_extra_integer_1 element_extra_integer_2'
elem_integers_swaps = '1 4 2 8;
2 7 |
1 8 2 4;
2 5'
[]
[]
[AuxVariables]
[element_extra_integer_1]
family = MONOMIAL
order = CONSTANT
[]
[element_extra_integer_2]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[element_extra_integer_1]
type = ExtraElementIDAux
variable = element_extra_integer_1
extra_id_name = element_extra_integer_1
execute_on = 'initial'
[]
[element_extra_integer_2]
type = ExtraElementIDAux
variable = element_extra_integer_2
extra_id_name = element_extra_integer_2
execute_on = 'initial'
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
execute_on = final
[]
(test/tests/meshgenerators/advanced_extruder_generator/advanced_extruder_with_element_extra_integer_swap.i)
[Problem]
solve = false
[]
[Mesh]
# See fancy_extruder_with_boundary_swap.i for details about mesh_2d.e
[fmg]
type = FileMeshGenerator
file = mesh_2d.e
exodus_extra_element_integers = 'element_extra_integer_1 element_extra_integer_2'
[]
[extrude]
type = AdvancedExtruderGenerator
input = fmg
heights = '1 2 3'
num_layers = '1 2 3'
direction = '0 0 1'
elem_integer_names_to_swap = 'element_extra_integer_1 element_extra_integer_2'
elem_integers_swaps = '1 4 2 8;
2 7;
1 6 |
1 8 2 4;
2 5;
1 6'
[]
[]
[AuxVariables]
[element_extra_integer_1]
family = MONOMIAL
order = CONSTANT
[]
[element_extra_integer_2]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[element_extra_integer_1]
type = ExtraElementIDAux
variable = element_extra_integer_1
extra_id_name = element_extra_integer_1
execute_on = 'initial'
[]
[element_extra_integer_2]
type = ExtraElementIDAux
variable = element_extra_integer_2
extra_id_name = element_extra_integer_2
execute_on = 'initial'
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
execute_on = final
[]
(test/tests/meshgenerators/unique_extra_id_mesh_generator/unique_id.i)
[Mesh]
[fmg]
type = FileMeshGenerator
file = unique_id.e
exodus_extra_element_integers = 'id1 id0'
[]
[parse_id]
type = UniqueExtraIDMeshGenerator
input = fmg
id_name = 'id1 id0'
new_id_name = 'parsed_id'
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[parsed_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[aux_parsed_id]
type = ExtraElementIDAux
variable = parsed_id
extra_id_name = parsed_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(modules/reactor/test/tests/meshgenerators/tri_pin_hex_assemby_generator/tri_pin.i)
[Mesh]
[assm_up]
type = TriPinHexAssemblyGenerator
ring_radii = '7 8;5 6; '
ring_intervals = '2 1;1 1; '
ring_block_ids = '200 400 600;700 800; '
background_block_ids = '30 40'
num_sectors_per_side = 6
background_intervals = 2
hexagon_size = ${fparse 40.0/sqrt(3.0)}
ring_offset = 0.6
external_boundary_id = 200
external_boundary_name = 'surface'
[]
[]
[Problem]
solve = false
[]
[Executioner]
type = Steady
[]
[AuxVariables]
[pin_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_pin_id]
type = ExtraElementIDAux
variable = pin_id
extra_id_name = pin_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(modules/reactor/test/tests/meshgenerators/reporting_id/hexagonal_id/core_reporting_id_exclude.i)
[Mesh]
[assembly]
type = SimpleHexagonGenerator
hexagon_size = 5.0
hexagon_size_style = 'apothem'
block_id = '1'
[]
[dummy]
type = SimpleHexagonGenerator
hexagon_size = 5.0
hexagon_size_style = 'apothem'
block_id = '2'
[]
[core]
type = PatternedHexMeshGenerator
inputs = 'assembly dummy'
pattern_boundary = none
pattern = ' 1 0 1;
0 0 0 0;
1 0 0 0 1;
0 0 0 0;
1 0 1'
assign_type = 'cell'
id_name = 'assembly_id'
exclude_id = 'dummy'
[]
[del_dummy]
type = BlockDeletionGenerator
block = 2
input = core
new_boundary = core_out
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[assembly_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_assembly_id]
type = ExtraElementIDAux
variable = assembly_id
extra_id_name = assembly_id
[]
[]
[Outputs]
[out]
type = Exodus
execute_on = timestep_end
output_extra_element_ids = true
extra_element_ids_to_output = 'assembly_id'
[]
[]
(test/tests/vectorpostprocessors/element_id_counters/interface_element_counter.i)
[Mesh]
[gmg]
type = GeneratedMeshGenerator
dim = 2
nx = 10
ny = 10
xmax = 1
ymax = 1
extra_element_integers = foo_id
[]
[id0]
type = SubdomainBoundingBoxGenerator
input = gmg
bottom_left = '0 0 0'
block_id = 0
top_right = '1 1 0'
integer_name = foo_id
[]
[id1]
type = SubdomainBoundingBoxGenerator
input = id0
bottom_left = '0.4 0.4 0'
block_id = 1
top_right = '0.9 0.9 0'
integer_name = foo_id
[]
[id2]
type = SubdomainBoundingBoxGenerator
input = id1
bottom_left = '0.1 0.1 0'
block_id = 2
top_right = '0.6 0.6 0'
integer_name = foo_id
[]
[subdomain]
type = SubdomainBoundingBoxGenerator
input = id2
bottom_left = '0 0.6 0'
block_id = 1
top_right = '1 1 0'
[]
[side0to1]
type = SideSetsBetweenSubdomainsGenerator
input = subdomain
primary_block = 0
paired_block = 1
new_boundary = side0to1
[]
[]
[AuxVariables]
[foo_id_var]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[foo_id]
type = ExtraElementIDAux
variable = foo_id_var
extra_id_name = foo_id
[]
[]
[VectorPostprocessors]
[elem_counter]
type = InterfaceElementCounterWithID
boundary = side0to1
id_name = foo_id
[]
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[Executioner]
type = Steady
[]
[Outputs]
csv = true
execute_on = 'timestep_end'
[]
(modules/reactor/test/tests/meshgenerators/polygon_concentric_circle_mesh_generator/pin_reporting_id.i)
[Mesh]
[pin]
type = PolygonConcentricCircleMeshGenerator
num_sides = 4
num_sectors_per_side = '4 4 4 4'
background_intervals = 2
polygon_size = 0.63
polygon_size_style ='apothem'
ring_radii = '0.2 0.4 0.5'
ring_intervals = '2 2 1'
preserve_volumes = on
flat_side_up = true
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[reporting_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_id]
type = ExtraElementIDAux
variable = reporting_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(test/tests/meshgenerators/plane_id_mesh_generator/plane_id_pin3d.i)
[Mesh]
[pin2d]
type = ConcentricCircleMeshGenerator
num_sectors = 2
radii = '0.4 0.5'
rings = '1 1 1'
has_outer_square = on
pitch = 1.26
preserve_volumes = yes
smoothing_max_it = 3
[]
[pin3d]
type = AdvancedExtruderGenerator
input = 'pin2d'
heights = '5.0 5.0 5.0'
direction = '0 0 1'
num_layers = '2 2 2'
[]
[pin3d_id]
type = PlaneIDMeshGenerator
input = 'pin3d'
plane_coordinates = '0.0 5.0 10.0 15.0'
num_ids_per_plane = ' 1 2 1'
plane_axis = 'z'
id_name = 'plane_id'
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[plane_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_plane_id]
type = ExtraElementIDAux
variable = plane_id
extra_id_name = plane_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(modules/reactor/test/tests/meshgenerators/extra_element_id_copy_generator/copy_elem_id_test.i)
[Mesh]
[gmg]
type = GeneratedMeshGenerator
dim = 2
nx = 10
ny = 10
xmax = 1
ymax = 1
extra_element_integers = test_id
subdomain_ids = '0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0
0 0 2 0 0 0 0 0 0 0
0 0 0 3 0 0 0 0 0 0
0 0 0 0 4 0 0 0 0 0
0 0 0 0 0 5 0 0 0 0
0 0 0 0 0 0 6 0 0 0
0 0 0 0 0 0 0 7 0 0
0 0 0 0 0 0 0 0 8 0
0 0 0 0 0 0 0 0 0 9'
[]
[subdomains]
type = SubdomainBoundingBoxGenerator
input = gmg
bottom_left = '0 0 0'
block_id = 1
top_right = '0.9 0.9 0'
integer_name = test_id
[]
[another_subdomains]
type = SubdomainBoundingBoxGenerator
input = subdomains
bottom_left = '0 0 0'
block_id = 2
top_right = '0.9 0.9 0'
location = OUTSIDE
integer_name = test_id
[]
[copy_test_id]
type = ExtraElementIDCopyGenerator
input = another_subdomains
source_extra_element_id = test_id
target_extra_element_ids = 'test_id1 test_id2'
[]
[copy_test_id1]
type = ExtraElementIDCopyGenerator
input = copy_test_id
source_extra_element_id = subdomain_id
target_extra_element_ids = 'test_id3'
[]
[copy_test_id2]
type = ExtraElementIDCopyGenerator
input = copy_test_id1
source_extra_element_id = element_id
target_extra_element_ids = 'test_id4'
[]
# element id could be renumbered with distributed mesh
# causing exodiff on test_id4 variable, thus we turn off
# this flag, normal calculations are fine with element IDs
# being renumbered.
allow_renumbering = false
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[AuxVariables]
[test_id]
family = MONOMIAL
order = CONSTANT
[]
[test_id1]
family = MONOMIAL
order = CONSTANT
[]
[test_id2]
family = MONOMIAL
order = CONSTANT
[]
[test_id3]
family = MONOMIAL
order = CONSTANT
[]
[test_id4]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[test_id]
type = ExtraElementIDAux
variable = test_id
extra_id_name = test_id
[]
[test_id1]
type = ExtraElementIDAux
variable = test_id1
extra_id_name = test_id1
[]
[test_id2]
type = ExtraElementIDAux
variable = test_id2
extra_id_name = test_id2
[]
[test_id3]
type = ExtraElementIDAux
variable = test_id3
extra_id_name = test_id3
[]
[test_id4]
type = ExtraElementIDAux
variable = test_id4
extra_id_name = test_id4
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]
(modules/reactor/test/tests/meshgenerators/reporting_id/cartesian_id/patterned_cartesian_assembly_reporting_multi_id.i)
[Mesh]
[pin1]
type = PolygonConcentricCircleMeshGenerator
num_sides = 4
num_sectors_per_side = '2 2 2 2'
background_intervals = 1
ring_radii ='0.4 0.5'
ring_intervals = '1 1'
polygon_size = 0.63
flat_side_up = true
[]
[pin2]
type = PolygonConcentricCircleMeshGenerator
num_sides = 4
num_sectors_per_side = '2 2 2 2'
background_intervals = 1
ring_radii ='0.4 0.5'
ring_intervals = '1 1'
polygon_size = 0.63
flat_side_up = true
[]
[assembly]
type = PatternedCartesianMeshGenerator
inputs = 'pin1 pin2'
pattern = ' 1 0 1 0;
0 1 0 1;
1 0 1 0;
0 1 0 1'
assign_type = 'cell pattern manual manual'
id_name = 'pin_id pin_type_id manual_1_id manual_2_id'
id_pattern='0 0 1 1;
0 0 1 1;
2 2 3 3;
2 2 3 3|
1 1 1 1;
2 2 2 2;
3 3 3 3;
4 4 4 4'
pattern_boundary = 'none'
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[pin_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_pin_id]
type = ExtraElementIDAux
variable = pin_id
extra_id_name = pin_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(modules/reactor/test/tests/meshgenerators/coarse_mesh_extra_element_id_generator/coarse_elem_restrict_subdomain.i)
[Mesh]
[fine_mesh]
type = CartesianMeshGenerator
dim = 2
dx = '0.5 0.5'
dy = '0.5 0.5'
ix = '5 5'
iy = '5 5'
subdomain_id = '0 1
0 1'
[]
[coarse_mesh_x]
type = GeneratedMeshGenerator
dim = 2
nx = 1
ny = 10
[]
[coarse_mesh_y]
type = GeneratedMeshGenerator
dim = 2
nx = 10
ny = 1
[]
[assign1]
type = CoarseMeshExtraElementIDGenerator
input = fine_mesh
coarse_mesh = coarse_mesh_x
extra_element_id_name = 'coarse_elem_id'
subdomains = 0
[]
[assign2]
type = CoarseMeshExtraElementIDGenerator
input = assign1
coarse_mesh = coarse_mesh_y
extra_element_id_name = 'coarse_elem_id'
subdomains = 1
[]
allow_renumbering = false
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[AuxVariables]
[coarse_elem_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[coarse_elem_id]
type = ExtraElementIDAux
variable = coarse_elem_id
extra_id_name = coarse_elem_id
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]
(test/tests/auxkernels/extra_element_id_aux/extra_element_integer_aux.i)
[Mesh]
[gmg]
type = GeneratedMeshGenerator
dim = 2
nx = 10
ny = 10
xmax = 1
ymax = 1
extra_element_integers = test_id
[]
[subdomains]
type = SubdomainBoundingBoxGenerator
input = gmg
bottom_left = '0.1 0.1 0'
block_id = 1
top_right = '0.9 0.9 0'
integer_name = test_id
[]
[another_subdomains]
type = SubdomainBoundingBoxGenerator
input = subdomains
bottom_left = '0.9 0.9 0'
block_id = 2
top_right = '1 1 0'
integer_name = test_id
[]
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[AuxVariables]
[test_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[test_id]
type = ExtraElementIDAux
variable = test_id
extra_id_name = test_id
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]
(modules/reactor/test/tests/meshgenerators/subdomain_extra_element_id_generator/subdomain_elem_ids_test.i)
[Mesh]
[gmg]
type = CartesianMeshGenerator
dim = 2
dx = 1
ix = 10
dy = '0.2 0.2 0.2 0.2 0.2'
iy = '2 2 2 2 2'
subdomain_id = '0 1 2 3 4'
[]
[give_subdomain_name]
type = RenameBlockGenerator
input = gmg
old_block = '1 3'
new_block = 'sub1 sub3'
[]
[subdomain_ids]
type = SubdomainExtraElementIDGenerator
input = give_subdomain_name
subdomains = '0 sub1 2 sub3'
extra_element_id_names = 'test_id1 test_id2 test_id3'
extra_element_ids = '
1 3 5 4;
2 9 10 11;
0 8 1 2
'
default_extra_element_ids = '-1 0 0'
[]
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[AuxVariables]
[test_id1]
family = MONOMIAL
order = CONSTANT
[]
[test_id2]
family = MONOMIAL
order = CONSTANT
[]
[test_id3]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[test_id1]
type = ExtraElementIDAux
variable = test_id1
extra_id_name = test_id1
[]
[test_id2]
type = ExtraElementIDAux
variable = test_id2
extra_id_name = test_id2
[]
[test_id3]
type = ExtraElementIDAux
variable = test_id3
extra_id_name = test_id3
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]
(modules/reactor/test/tests/meshgenerators/core_mesh_generator/core_periphery_prmg.i)
[Mesh]
[rmp]
type = ReactorMeshParams
dim = 3
geom = "Hex"
assembly_pitch = 7.10315
axial_regions = '1.0'
axial_mesh_intervals = '1'
top_boundary_id = 201
bottom_boundary_id = 202
radial_boundary_id = 200
[]
[pin1]
type = PinMeshGenerator
reactor_params = rmp
pin_type = 1
pitch = 1.42063
num_sectors = 2
ring_radii = '0.2'
duct_halfpitch = '0.68'
mesh_intervals = '1 1 1'
region_ids='1 2 5'
quad_center_elements = true
[]
[pin2]
type = PinMeshGenerator
reactor_params = rmp
pin_type = 2
pitch = 1.42063
num_sectors = 2
mesh_intervals = '2'
region_ids='2'
quad_center_elements = true
[]
[pin3]
type = PinMeshGenerator
reactor_params = rmp
pin_type = 3
pitch = 1.42063
num_sectors = 2
ring_radii = '0.3818'
mesh_intervals = '1 1'
region_ids='3 4'
quad_center_elements = true
[]
[amg1]
type = AssemblyMeshGenerator
assembly_type = 1
background_intervals = 1
inputs = 'pin2'
pattern = '0 0;
0 0 0;
0 0'
background_region_id = 10
[]
[amg2]
type = AssemblyMeshGenerator
assembly_type = 2
background_intervals = 1
inputs = 'pin1 pin3'
pattern = '0 0;
0 1 0;
1 0'
background_region_id = 20
[]
[cmg]
type = CoreMeshGenerator
inputs = 'amg1 amg2 empty'
dummy_assembly_name = empty
pattern = '1 1;
1 0 1;
1 1'
extrude = false
mesh_periphery=true
periphery_generator=quad_ring
periphery_region_id=30
outer_circle_radius=15
periphery_num_layers=3
[]
[rotate90]
type = TransformGenerator
input = cmg
transform = ROTATE
vector_value = '0 0 90'
[]
[]
[AuxVariables]
[assembly_id]
family = MONOMIAL
order = CONSTANT
[]
[assembly_type_id]
family = MONOMIAL
order = CONSTANT
[]
[pin_id]
family = MONOMIAL
order = CONSTANT
[]
[pin_type_id]
family = MONOMIAL
order = CONSTANT
[]
[region_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[assembly_id]
type = ExtraElementIDAux
variable = assembly_id
extra_id_name = assembly_id
[]
[assembly_type_id]
type = ExtraElementIDAux
variable = assembly_type_id
extra_id_name = assembly_type_id
[]
[pin_id]
type = ExtraElementIDAux
variable = pin_id
extra_id_name = pin_id
[]
[pin_type_id]
type = ExtraElementIDAux
variable = pin_type_id
extra_id_name = pin_type_id
[]
[region_id]
type = ExtraElementIDAux
variable = region_id
extra_id_name = region_id
[]
[]
[Problem]
solve = false
[]
[Executioner]
type = Steady
[]
[Outputs]
[out]
type = Exodus
output_extra_element_ids = false
[]
file_base = core_periphery_prmg_in
[]
(modules/reactor/test/tests/functions/multi_control_drum_function/multi_cd.i)
[Problem]
solve = false
[]
[Mesh]
[hex_unit]
type = PolygonConcentricCircleMeshGenerator
num_sides = 6 # must be six to use hex pattern
num_sectors_per_side= '2 2 2 2 2 2'
background_intervals=1
polygon_size = 1
ring_radii = '0.9'
ring_intervals = '1'
[]
[patterned]
type = PatternedHexMeshGenerator
inputs = 'hex_unit'
pattern_boundary = hexagon
background_intervals = 1
hexagon_size = 3.5
pattern = '0 0;
0 0 0;
0 0'
[]
[cd_1]
type = HexagonConcentricCircleAdaptiveBoundaryMeshGenerator
inputs = 'patterned'
sides_to_adapt = '4'
num_sectors_per_side= '2 2 2 2 2 2'
hexagon_size = 3.5
background_intervals= 1
ring_radii = '2 3'
ring_intervals = '1 1'
block_id_shift = 5000
is_control_drum = true
[]
[cd_2]
type = HexagonConcentricCircleAdaptiveBoundaryMeshGenerator
inputs = 'patterned'
sides_to_adapt = '5'
num_sectors_per_side= '2 2 2 2 2 2'
hexagon_size = 3.5
background_intervals= 1
ring_radii = '2 3'
ring_intervals = '1 1'
block_id_shift = 5000
is_control_drum = true
[]
[cd_3]
type = HexagonConcentricCircleAdaptiveBoundaryMeshGenerator
inputs = 'patterned'
sides_to_adapt = '0'
num_sectors_per_side= '2 2 2 2 2 2'
hexagon_size = 3.5
background_intervals= 1
ring_radii = '2 3'
ring_intervals = '1 1'
block_id_shift = 5000
is_control_drum = true
[]
[cd_4]
type = HexagonConcentricCircleAdaptiveBoundaryMeshGenerator
inputs = 'patterned'
sides_to_adapt = '1'
num_sectors_per_side= '2 2 2 2 2 2'
hexagon_size = 3.5
background_intervals= 1
ring_radii = '2 3'
ring_intervals = '1 1'
block_id_shift = 5000
is_control_drum = true
[]
[cd_5]
type = HexagonConcentricCircleAdaptiveBoundaryMeshGenerator
inputs = 'patterned'
sides_to_adapt = '2'
num_sectors_per_side= '2 2 2 2 2 2'
hexagon_size = 3.5
background_intervals= 1
ring_radii = '2 3'
ring_intervals = '1 1'
block_id_shift = 5000
is_control_drum = true
[]
[cd_6]
type = HexagonConcentricCircleAdaptiveBoundaryMeshGenerator
inputs = 'patterned'
sides_to_adapt = '3'
num_sectors_per_side= '2 2 2 2 2 2'
hexagon_size = 3.5
background_intervals= 1
ring_radii = '2 3'
ring_intervals = '1 1'
block_id_shift = 5000
is_control_drum = true
[]
[core]
type = PatternedHexMeshGenerator
inputs = 'patterned cd_1 cd_2 cd_3 cd_4 cd_5 cd_6'
# 0 1 2 3 4 5 6
pattern_boundary = none
generate_core_metadata = true
generate_control_drum_positions_file = true
pattern = '1 6;
2 0 5;
3 4'
assign_control_drum_id = true
[]
[]
[AuxVariables]
[cd_param]
family = MONOMIAL
order = CONSTANT
block = 5002
[]
[cd_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[cd_param_assign]
type = FunctionAux
variable = cd_param
function = cd_param_func
execute_on = 'initial linear timestep_end'
[]
[set_cd_id]
type = ExtraElementIDAux
variable = cd_id
extra_id_name = control_drum_id
execute_on = 'initial timestep_end'
[]
[]
[Functions]
[cd_param_func]
type = MultiControlDrumFunction
mesh_generator = core
angular_speeds = '2 4 8 16 64 128'
start_angles = '0 0 0 0 0 0'
angle_ranges = '90 90 90 90 90 90'
[]
[]
[Executioner]
type = Transient
dt = 1
num_steps = 5
[]
[Outputs]
[default]
type = Exodus
[]
[]
(modules/reactor/test/tests/meshgenerators/core_mesh_generator/core_periphery_ptmg_vol.i)
[Mesh]
[rmp]
type = ReactorMeshParams
dim = 3
geom = "Hex"
assembly_pitch = 7.10315
axial_regions = '1.0'
axial_mesh_intervals = '1'
top_boundary_id = 201
bottom_boundary_id = 202
radial_boundary_id = 200
[]
[pin1]
type = PinMeshGenerator
reactor_params = rmp
pin_type = 1
pitch = 1.42063
num_sectors = 2
ring_radii = '0.2'
duct_halfpitch = '0.68'
mesh_intervals = '1 1 1'
region_ids='1 2 5'
quad_center_elements = true
[]
[pin2]
type = PinMeshGenerator
reactor_params = rmp
pin_type = 2
pitch = 1.42063
num_sectors = 2
mesh_intervals = '2'
region_ids='2'
quad_center_elements = true
[]
[pin3]
type = PinMeshGenerator
reactor_params = rmp
pin_type = 3
pitch = 1.42063
num_sectors = 2
ring_radii = '0.3818'
mesh_intervals = '1 1'
region_ids='3 4'
quad_center_elements = true
[]
[amg1]
type = AssemblyMeshGenerator
assembly_type = 1
background_intervals = 1
inputs = 'pin2'
pattern = '0 0;
0 0 0;
0 0'
background_region_id = 10
[]
[amg2]
type = AssemblyMeshGenerator
assembly_type = 2
background_intervals = 1
inputs = 'pin1 pin3'
pattern = '0 0;
0 1 0;
1 0'
background_region_id = 20
[]
[cmg]
type = CoreMeshGenerator
inputs = 'amg1 amg2 empty'
dummy_assembly_name = empty
pattern = '1 1;
1 0 1;
1 1'
extrude = false
mesh_periphery=true
periphery_generator=triangle
periphery_region_id=30
outer_circle_radius=15
outer_circle_num_segments=100
desired_area = 0.5
periphery_block_name=PERIPHERY_PTMG
[]
[rotate90]
type = TransformGenerator
input = cmg
transform = ROTATE
vector_value = '0 0 90'
[]
[]
[AuxVariables]
[assembly_id]
family = MONOMIAL
order = CONSTANT
[]
[assembly_type_id]
family = MONOMIAL
order = CONSTANT
[]
[pin_id]
family = MONOMIAL
order = CONSTANT
[]
[pin_type_id]
family = MONOMIAL
order = CONSTANT
[]
[region_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[assembly_id]
type = ExtraElementIDAux
variable = assembly_id
extra_id_name = assembly_id
[]
[assembly_type_id]
type = ExtraElementIDAux
variable = assembly_type_id
extra_id_name = assembly_type_id
[]
[pin_id]
type = ExtraElementIDAux
variable = pin_id
extra_id_name = pin_id
[]
[pin_type_id]
type = ExtraElementIDAux
variable = pin_type_id
extra_id_name = pin_type_id
[]
[region_id]
type = ExtraElementIDAux
variable = region_id
extra_id_name = region_id
[]
[]
[Postprocessors]
[periphery_area]
type = VolumePostprocessor
block = PERIPHERY_PTMG_TRI
[]
[]
[Problem]
solve = false
[]
[Executioner]
type = Steady
[]
[Outputs]
csv = true
file_base = core_periphery_ptmg_in
[]
(modules/reactor/test/tests/meshgenerators/reporting_id/cartesian_id/assembly_reporting_id.i)
[Mesh]
[pin1]
type = ConcentricCircleMeshGenerator
num_sectors = 2
radii = '0.4 0.5'
rings = '1 1 1'
has_outer_square = on
pitch = 1.26
preserve_volumes = yes
smoothing_max_it = 3
[]
[pin2]
type = ConcentricCircleMeshGenerator
num_sectors = 2
radii = '0.3 0.4'
rings = '1 1 1'
has_outer_square = on
pitch = 1.26
preserve_volumes = yes
smoothing_max_it = 3
[]
[assembly]
type = CartesianIDPatternedMeshGenerator
inputs = 'pin1 pin2'
pattern = ' 1 0 1 0;
0 1 0 1;
1 0 1 0;
0 1 0 1'
assign_type = 'cell'
id_name = 'pin_id'
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[pin_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_pin_id]
type = ExtraElementIDAux
variable = pin_id
extra_id_name = pin_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(modules/reactor/test/tests/meshgenerators/reporting_id/cartesian_id/patterned_cartesian_assembly_reporting_id.i)
[Mesh]
[pin1]
type = PolygonConcentricCircleMeshGenerator
num_sides = 4
num_sectors_per_side = '2 2 2 2'
background_intervals = 1
ring_radii ='0.4 0.5'
ring_intervals = '1 1'
polygon_size = 0.63
flat_side_up = true
[]
[pin2]
type = PolygonConcentricCircleMeshGenerator
num_sides = 4
num_sectors_per_side = '2 2 2 2'
background_intervals = 1
ring_radii ='0.4 0.5'
ring_intervals = '1 1'
polygon_size = 0.63
flat_side_up = true
[]
[assembly]
type = PatternedCartesianMeshGenerator
inputs = 'pin1 pin2'
pattern = ' 1 0 1 0;
0 1 0 1;
1 0 1 0;
0 1 0 1'
assign_type = 'cell'
id_name = 'pin_id'
pattern_boundary = 'none'
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[pin_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_pin_id]
type = ExtraElementIDAux
variable = pin_id
extra_id_name = pin_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(test/tests/meshgenerators/plane_id_mesh_generator/plane_id_grid2d.i)
[Mesh]
[grid]
type = CartesianMeshGenerator
dim = 2
dx = '5.0 10.0 '
ix = '1 4'
dy = '5.0 10.0 '
iy = '1 4'
[]
[plane_id_gen]
type = PlaneIDMeshGenerator
input = 'grid'
plane_coordinates = '0.0 5.0 15.0'
num_ids_per_plane = ' 1 2'
plane_axis = 'x'
id_name = 'plane_id'
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[plane_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_plane_id]
type = ExtraElementIDAux
variable = plane_id
extra_id_name = plane_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(test/tests/meshgenerators/file_mesh_generator/exodus_file_mesh_with_id.i)
[Mesh]
[material_id_mesh]
type = FileMeshGenerator
file = mesh_with_material_id.e
exodus_extra_element_integers = material_id
[]
[]
[AuxVariables]
[material_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[set_material_id]
type = ExtraElementIDAux
variable = material_id
extra_id_name = material_id
[]
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]
(modules/reactor/test/tests/meshgenerators/flexible_pattern_generator/fp_eeid_pattern.i)
[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'
[]
[]
(test/tests/meshgenerators/unique_extra_id_mesh_generator/unique_id_cut.i)
[Mesh]
[fmg]
type = FileMeshGenerator
file = unique_id_cut_in.e
exodus_extra_element_integers = 'id1 id0'
[]
[parse_id]
type = UniqueExtraIDMeshGenerator
input = fmg
id_name = 'id1 id0'
new_id_name = 'parsed_id'
[]
[deleter]
type = PlaneDeletionGenerator
point = '0 0 0'
normal = '1 1 0'
input = parse_id
new_boundary = new_side
[]
[]
[Executioner]
type = Steady
[]
[Problem]
solve = false
[]
[AuxVariables]
[parsed_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[aux_parsed_id]
type = ExtraElementIDAux
variable = parsed_id
extra_id_name = parsed_id
[]
[]
[Outputs]
exodus = true
execute_on = timestep_end
[]
(test/tests/meshgenerators/subdomain_bounding_box_generator/bounding_box_integers.i)
[Mesh]
[gmg]
type = GeneratedMeshGenerator
dim = 2
nx = 10
ny = 10
xmax = 1
ymax = 1
extra_element_integers = test_id
[]
[subdomains]
type = SubdomainBoundingBoxGenerator
input = gmg
bottom_left = '0 0 0'
block_id = 1
top_right = '0.9 0.9 0'
integer_name = test_id
[]
[another_subdomains]
type = SubdomainBoundingBoxGenerator
input = subdomains
bottom_left = '0 0 0'
block_id = 2
top_right = '0.9 0.9 0'
location = OUTSIDE
integer_name = test_id
[]
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[AuxVariables]
[test_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[test_id]
type = ExtraElementIDAux
variable = test_id
extra_id_name = test_id
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]
(modules/reactor/test/tests/meshgenerators/coarse_mesh_extra_element_id_generator/coarse_elem_subdomain_id.i)
[Mesh]
[gmg]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 8
ymin = 0
ymax = 8
nx = 8
ny = 8
[]
[coarse_mesh]
type = GeneratedMeshGenerator
dim = 2
xmin = 0
xmax = 8
ymin = 0
ymax = 8
nx = 3
ny = 3
subdomain_ids = '0 1 2
3 3 3
4 4 4'
[]
[coarse_id]
type = CoarseMeshExtraElementIDGenerator
input = gmg
coarse_mesh = coarse_mesh
extra_element_id_name = coarse_elem_id
coarse_mesh_extra_element_id = subdomain_id
enforce_mesh_embedding = false
[]
[]
[Problem]
kernel_coverage_check = false
solve = false
[]
[AuxVariables]
[coarse_elem_id]
family = MONOMIAL
order = CONSTANT
[]
[]
[AuxKernels]
[coarse_elem_id]
type = ExtraElementIDAux
variable = coarse_elem_id
extra_id_name = coarse_elem_id
[]
[]
[Executioner]
type = Steady
[]
[Outputs]
exodus = true
[]