BlockToMeshConverterGenerator

Converts one or more blocks (subdomains) from a mesh into a stand-alone mesh with a single block in it.

Overview

The BlockToMeshConverterGenerator moves one (or more) blocks from a mesh to form a new mesh object. This does not erase/delete the blocks from the original mesh. The new mesh has only one block (unnamed with ID 0)

commentnote

No sidesets are preserved in or added to the new mesh (neither are any element/node unique id's or ids in general, regardless of what options are set).

Visual Example

In the input below, six selected blocks are extracted from the input 3D mesh in the first figure. The final mesh is shown in the second figure.

[Mesh]
  inactive = 'refine'
  [file]
    type = FileMeshGenerator
    file = 3dmultiblock.e
  []
  [blockToMesh]
    type = BlockToMeshConverterGenerator
    input = file
    target_blocks = "1 12 2 3 5 6"
  []
  [refine]
    type = RefineBlockGenerator
    input = file
    block = '12'
    refinement = '1'
  []
[]
(../moose/test/tests/meshgenerators/block_to_mesh_converter_generator/conv_multiblock.i)

A 3d object with multiple, multi-colored blocks

A subset of blocks have been made into a new mesh

Input Parameters

  • inputThe mesh we want to modify

    C++ Type:MeshGeneratorName

    Controllable:No

    Description:The mesh we want to modify

  • target_blocksThe (list of) blocks (or 'subdomains') we wish to have moved to a new mesh (by name, not ID)

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

    Controllable:No

    Description:The (list of) blocks (or 'subdomains') we wish to have moved to a new mesh (by name, not ID)

Required 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