SCMQuadCoreMeshGenerator

Places square-lattice subchannel assembly meshes on a rectangular core lattice. Each assembly keeps its own subdomains and boundaries; assemblies are not connected.

Overview

This mesh generator places square-lattice subchannel assemblies on a rectangular core lattice and merges them into one mesh. The assemblies are not connected: there are no inter-assembly gaps and no crossflow between assemblies. It is the square-lattice counterpart of SCMTriCoreMeshGenerator.

Each entry of "inputs" is an SCMQuadAssemblyMeshGenerator or an SCMQuadDuctMeshGenerator for a 1D subchannel core mesh, or an SCMQuadVisualizationAssemblyMeshGenerator for a 3D visualization core mesh. In a 3D visualization assembly mesh, each subchannel and pin is meshed in 3D with prism elements. Such a mesh is used only to visualize results: the SCM solution is computed on the 1D mesh and copied onto the 3D mesh with SCMSolutionTransfer, as in the single-assembly example examples/MultiApp/fuel_assembly.i. A 3D visualization core built with the same pattern and pitch as a 1D core places each 3D assembly over the 1D assembly with the same index.

Each assembly is generated centered at the origin and is translated so that its center lies on its lattice position. The inputs may differ in size, including nx and ny, as long as no two placed assemblies overlap. The outer duct of an assembly is wide and high, where is the subchannel pitch and the side_gap, whether or not an SCMQuadDuctMeshGenerator builds a duct mesh for it, so the check applies equally to assemblies with and without a duct mesh. Two ducts overlap when their center offset is shorter than the sum of their half widths in and shorter than the sum of their half heights in ; ducts that exactly touch are allowed. Every pair of placed assemblies is checked, so an assembly does not have to fit inside its "assembly_pitch" by "assembly_pitch" lattice cell: a wide assembly may extend into a neighboring cell that is empty or holds a narrower assembly, as long as no two ducts overlap.

"pattern" uses the row syntax of PatternedCartesianMeshGenerator: each entry is an index into "inputs", and -1 marks an empty position. The lattice may have any number of rows and columns, but all rows must have the same length. The first row is placed at , the entries of a row are placed from to , and the lattice is centered on the origin. Neighboring positions are "assembly_pitch" apart in and in .

Placed assemblies are numbered in pattern order, skipping empty positions. Every subdomain and boundary of assembly receives a new id and has _k appended to its name, for example subchannel_0, fuel_pins_0, inlet_0, and outlet_0. Every element of assembly also stores in the assembly_id extra element integer.

Because the subdomains are renamed, the auxiliary variables that SCM adds automatically on the subchannel and fuel_pins subdomains (see SCMAuxVariables) are not defined on a core mesh. Variables restricted to subdomains must list the renamed subdomains.

warningwarning

Each subchannel assembly and duct mesh generator stores the subchannel connectivity in a single mesh object, so the subchannel solvers cannot use the core mesh yet. A core of those inputs can only be generated with --mesh-only. A 3D visualization core has no such restriction.

Example Input File Syntax

[QuadSubChannelMesh]
  [big]
    type = SCMQuadAssemblyMeshGenerator
    nx = 4
    ny = 3
    pin_diameter = 0.1
  []
  [big_duct]
    type = SCMQuadDuctMeshGenerator
    input = big
    nx = 4
    ny = 3
  []
  [small]
    type = SCMQuadAssemblyMeshGenerator
    nx = 3
    ny = 2
    pin_diameter = 0.1
  []
  [small_duct]
    type = SCMQuadDuctMeshGenerator
    input = small
    nx = 3
    ny = 2
  []
  [core]
    type = SCMQuadCoreMeshGenerator
    inputs = 'big_duct small_duct'
    # Ducts only need to not overlap. Every duct here fits in a 0.5 m square, so any pitch of at
    # least 0.5 m works for any pattern; this pattern first overlaps below 0.425 m.
    assembly_pitch = 0.6
    pattern = '0 1  0;
               1 0 -1'
  []
[]
(modules/subchannel/test/tests/mesh/quad_core/core.i)

Input Parameters

  • assembly_pitchCenter-to-center distance between neighboring assembly positions [m]

    C++ Type:Real

    Unit:(no unit assumed)

    Range:assembly_pitch>0

    Controllable:No

    Description:Center-to-center distance between neighboring assembly positions [m]

  • inputsThe SCMQuadAssemblyMeshGenerator, SCMQuadDuctMeshGenerator, or SCMQuadVisualizationAssemblyMeshGenerator meshes that can be placed in the core

    C++ Type:std::vector<MeshGeneratorName>

    Controllable:No

    Description:The SCMQuadAssemblyMeshGenerator, SCMQuadDuctMeshGenerator, or SCMQuadVisualizationAssemblyMeshGenerator meshes that can be placed in the core

  • patternRectangular core pattern of indices into 'inputs', using the row syntax of PatternedCartesianMeshGenerator; -1 marks an empty position. All rows must have the same length. The first row is placed at +y and the entries of a row are placed from -x to +x.

    C++ Type:std::vector<std::vector<int>>

    Controllable:No

    Description:Rectangular core pattern of indices into 'inputs', using the row syntax of PatternedCartesianMeshGenerator; -1 marks an empty position. All rows must have the same length. The first row is placed at +y and the entries of a row are placed from -x to +x.

Required Parameters

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Set the enabled status of the MooseObject.

  • save_with_nameKeep the mesh from this mesh generator in memory with the name specified

    C++ Type:std::string

    Controllable:No

    Description:Keep the mesh from this mesh generator in memory with the name specified

Advanced Parameters

  • nemesisFalseWhether or not to output the mesh file in the nemesisformat (only if output = true)

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Whether or not to output the mesh file in the nemesisformat (only if output = true)

  • outputFalseWhether or not to output the mesh file after generating the mesh

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Whether or not to output the mesh file after generating the mesh

  • 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)

Debugging Parameters

Input Files