- hexagon_sizeSize of the hexagon to be generated.
C++ Type:double
Controllable:No
Description:Size of the hexagon to be generated.
SimpleHexagonGenerator
This SimpleHexagonGenerator object is designed to generate a simple hexagonal mesh that only contains six simple azimuthal triangle slices.
Overview
This is a simple version of PolygonConcentricCircleMeshGenerator. By default ("element_type" as TRI
), this mesh generator creates a hexagon mesh with num_sectors_per_side
= {1, 1, 1, 1, 1, 1} (see Figure 1). The mesh also has only one single layer of background region. Namely, the hexagon mesh generated by SimpleHexagonGenerator
only contains six triangular elements. Optionally, the users can also generate an even simpler hexagon mesh that contains only two quadrilateral elements by setting "element_type" as QUAD
(see Figure 2). Additionally, this mesh generator also creates the same MeshMetaData
as PolygonConcentricCircleMeshGenerator
does so that the produced mesh can be used by PatternedHexMeshGenerator as inputs.

Figure 1: A schematic drawing showing a typical simple hexagonal mesh generated by this SimpleHexagonGenerator
object with "element_type" as TRI
.

Figure 2: A schematic drawing showing a typical simple hexagonal mesh generated by this SimpleHexagonGenerator
object with "element_type" as QUAD
.
Example Syntax
[shg]
type = SimpleHexagonGenerator
hexagon_size = 1.0
block_id = 100
block_name = hexagon
external_boundary_id = 300
external_boundary_name = 'external_side'
[]
(modules/reactor/test/tests/meshgenerators/simple_hexagon_generator/sim_hex.i)Input Parameters
- element_typeTRIWhether the simple hexagon mesh is made of TRI or QUAD elements.
Default:TRI
C++ Type:MooseEnum
Controllable:No
Description:Whether the simple hexagon mesh is made of TRI or QUAD elements.
- hexagon_size_styleapothemStyle in which the hexagon size is given (default: apothem i.e. half-pitch). Option: apothem radius
Default:apothem
C++ Type:MooseEnum
Controllable:No
Description:Style in which the hexagon size is given (default: apothem i.e. half-pitch). Option: apothem radius
- show_infoFalseWhether or not to show mesh info after generating the mesh (bounding box, element types, sidesets, nodesets, subdomains, etc)
Default:False
C++ Type:bool
Controllable:No
Description:Whether or not to show mesh info after generating the mesh (bounding box, element types, sidesets, nodesets, subdomains, etc)
Optional Parameters
- block_idOptional customized block id.
C++ Type:unsigned short
Controllable:No
Description:Optional customized block id.
- block_nameOptional customized block name.
C++ Type:SubdomainName
Controllable:No
Description:Optional customized block name.
- external_boundary_idOptional customized external boundary id.
C++ Type:short
Controllable:No
Description:Optional customized external boundary id.
- external_boundary_nameOptional customized external boundary name.
C++ Type:std::string
Controllable:No
Description:Optional customized external boundary name.
Customized Subdomain/Boundary 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:No
Description:Set the enabled status of the MooseObject.