PatchMeshGenerator

Overview

This MeshGenerator object allows the user to create 2D or 3D patch meshes. The 2D patch mesh has one interior element and four exterior elements, and the 3D patch test has one interior element and six exterior elements. Each element in a patch mesh has a unique shape. See MacNeal and Harder (1985) for details on these meshes.

The resulting mesh has sidesets named left, right, top, and bottom, and if a 3D mesh, sidesets named front and back.

Input Parameters

  • dim2The dimension of the mesh to be generated. Patch meshes are only valid in 2 or 3 dimensions.

    Default:2

    C++ Type:MooseEnum

    Options:2, 3

    Controllable:No

    Description:The dimension of the mesh to be generated. Patch meshes are only valid in 2 or 3 dimensions.

  • elem_typeQUAD4The type of element from libMesh to generate (default: linear element for requested dimension)

    Default:QUAD4

    C++ Type:MooseEnum

    Options:QUAD4, QUAD8, HEX8, HEX20

    Controllable:No

    Description:The type of element from libMesh to generate (default: linear element for requested dimension)

  • x_length0.24Length of the domain in the x direction.

    Default:0.24

    C++ Type:double

    Controllable:No

    Description:Length of the domain in the x direction.

  • x_offset0Offset of the Cartesian origin in the x direction.

    Default:0

    C++ Type:double

    Controllable:No

    Description:Offset of the Cartesian origin in the x direction.

  • y_length0.12Length of the domain in the y direction.

    Default:0.12

    C++ Type:double

    Controllable:No

    Description:Length of the domain in the y direction.

  • y_offset0Offset of the Cartesian origin in the y direction.

    Default:0

    C++ Type:double

    Controllable:No

    Description:Offset of the Cartesian origin in the y direction.

  • z_length0Length of the domain in the z direction.

    Default:0

    C++ Type:double

    Controllable:No

    Description:Length of the domain in the z direction.

  • z_offset0Offset of the Cartesian origin in the z direction.

    Default:0

    C++ Type:double

    Controllable:No

    Description:Offset of the Cartesian origin in the z direction.

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: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

References

  1. Richard H. MacNeal and Robert L. Harder. A proposed standard set of problems to test finite element accuracy. Finite Elements in Analysis and Design, 1:3–20, 1985.[BibTeX]