CartesianMeshGenerator

This CartesianMeshGenerator creates a non-uniform Cartesian mesh.

Description

The CartesianMeshGenerator object is the built-in mesh generation capable of creating lines, rectangles, and hexahedra ("boxes"). The mesh spacing can be non-uniform and each line/rectangle/hexahedron can be assigned a separate subdomain id. The mesh automatically creates side sets that are logically named and numbered as follows:

  • In 1D, left = 0, right = 1

  • In 2D, bottom = 0, right = 1, top = 2, left = 3

  • In 3D, back = 0, bottom = 1, right = 2, top = 3, left = 4, front = 5

The length, width, and height of each element, as well as their subdomain id can be set independently. Each linear subdivision in x, y, or z can be additionally subdivided into sub-elements.

Example Syntax

[MeshGenerators]
  [./cmg]
    type = CartesianMeshGenerator
    dim = 3
    dx = '1.5 2.4 0.1'
    dy = '1.3 0.9'
    dz = '0.4 0.5 0.6 0.7'
    ix = '2 1 1'
    iy = '2 3'
    iz = '1 1 1 1'
    subdomain_id = '0 1 1
                    2 2 2

                    3 4 4
                    5 5 5

                    0 1 1
                    2 2 2

                    3 4 4
                    5 5 5
                    '
  [../]
[]
(test/tests/meshgenerators/cartesian_mesh_generator/cartesian_mesh_3D.i)

Input Parameters

  • dxIntervals in the X direction

    C++ Type:std::vector

    Options:

    Description:Intervals in the X direction

Required Parameters

  • iyNumber of grids in all intervals in the Y direction (default to all one)

    C++ Type:std::vector

    Options:

    Description:Number of grids in all intervals in the Y direction (default to all one)

  • ixNumber of grids in all intervals in the X direction (default to all one)

    C++ Type:std::vector

    Options:

    Description:Number of grids in all intervals in the X direction (default to all one)

  • izNumber of grids in all intervals in the Z direction (default to all one)

    C++ Type:std::vector

    Options:

    Description:Number of grids in all intervals in the Z direction (default to all one)

  • dzIntervals in the Z direction (required when dim>2 otherwise ignored)

    C++ Type:std::vector

    Options:

    Description:Intervals in the Z direction (required when dim>2 otherwise ignored)

  • dyIntervals in the Y direction (required when dim>1 otherwise ignored)

    C++ Type:std::vector

    Options:

    Description:Intervals in the Y direction (required when dim>1 otherwise ignored)

  • subdomain_idBlock IDs (default to all zero)

    C++ Type:std::vector

    Options:

    Description:Block IDs (default to all zero)

Optional Parameters

  • dimThe dimension of the mesh to be generated

    C++ Type:MooseEnum

    Options:1 2 3

    Description:The dimension of the mesh to be generated

Main Parameters

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector

    Options:

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Options:

    Description:Set the enabled status of the MooseObject.

Advanced Parameters

Input Files