ElementGenerator

Generates individual elements given a list of nodal positions.

Overview

This MeshGenerator object allows the user to create a single element (it is possible to create a simple mesh by adding elements one by one).

The user has to provide the positions of the nodes for their element, as well as the type of element they want (QUAD4, TRI3,...) and the element node connectivity.

commentnote

The reader is referred to the libmesh documentation and doxygen for the conventions on node connectivity in a type of element to create a well formed, positive-volume, non self-intersecting, element.

Further ElementGenerator Documentation

Input Parameters

  • elem_typeThe type of element from libMesh to generate

    C++ Type:MooseEnum

    Options:EDGE, EDGE2, EDGE3, EDGE4, QUAD, QUAD4, QUAD8, QUAD9, TRI, TRI3, TRI6, TRI7, HEX, HEX8, HEX20, HEX27, TET, TET4, TET10, TET14, PRISM, PRISM6, PRISM15, PRISM18, PYRAMID, PYRAMID5, PYRAMID13, PYRAMID14, C0POLYGON, C0POLYHEDRON

    Controllable:No

    Description:The type of element from libMesh to generate

  • nodal_positionsThe x,y,z positions of the nodes

    C++ Type:std::vector<libMesh::Point>

    Controllable:No

    Description:The x,y,z positions of the nodes

Required Parameters

  • create_sidesetsFalseCreate separate sidesets for each side. The side index is used as the boundary ID for each sideset.

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Create separate sidesets for each side. The side index is used as the boundary ID for each sideset.

  • element_connectivityList of nodes to use for each element.

    C++ Type:std::vector<unsigned long>

    Controllable:No

    Description:List of nodes to use for each element.

  • inputOptional input mesh to add the elements to

    C++ Type:MeshGeneratorName

    Controllable:No

    Description:Optional input mesh to add the elements to

  • polygon_faces_connectivityList of nodes to use for each face of the polygon faces of the polyhedron. Only use this parameter for a polyhedron 'elem_type'

    C++ Type:std::vector<std::vector<unsigned long>>

    Controllable:No

    Description:List of nodes to use for each face of the polygon faces of the polyhedron. Only use this parameter for a polyhedron 'elem_type'

  • subdomain_id0Subdomain id

    Default:0

    C++ Type:unsigned short

    Controllable:No

    Description:Subdomain id

  • subdomain_nameSubdomain name

    C++ Type:SubdomainName

    Controllable:No

    Description:Subdomain name

Optional 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