- inputThe mesh we want to modify
C++ Type:MeshGeneratorName
Controllable:No
Description:The mesh we want to modify
- interface_nameThe boundary name containing all broken element-element interfaces.
C++ Type:BoundaryName
Controllable:No
Description:The boundary name containing all broken element-element interfaces.
BreakMeshByElementGenerator
Break all element-element interfaces in the specified subdomains.
Overview
The BreakMeshByElementGenerator
is used to break all element-element interfaces in specified subdomains. All element-element interfaces are grouped into a boundary of user's choice.
Example input syntax
In this example input file, we break all element-element interfaces in subdomains 1 and 2.
[Mesh<<<{"href": "../../syntax/Mesh/index.html"}>>>]
[gmg]
type = GeneratedMeshGenerator<<<{"description": "Create a line, square, or cube mesh with uniformly spaced or biased elements.", "href": "GeneratedMeshGenerator.html"}>>>
dim<<<{"description": "The dimension of the mesh to be generated"}>>> = 2
xmax<<<{"description": "Upper X Coordinate of the generated mesh"}>>> = 2
ymax<<<{"description": "Upper Y Coordinate of the generated mesh"}>>> = 2
nx<<<{"description": "Number of elements in the X direction"}>>> = 4
ny<<<{"description": "Number of elements in the Y direction"}>>> = 4
[]
[add_subdomain_1]
type = SubdomainBoundingBoxGenerator<<<{"description": "Changes the subdomain ID of elements either (XOR) inside or outside the specified box to the specified ID.", "href": "SubdomainBoundingBoxGenerator.html"}>>>
input<<<{"description": "The mesh we want to modify"}>>> = gmg
block_id<<<{"description": "Subdomain id to set for inside/outside the bounding box"}>>> = 1
bottom_left<<<{"description": "The bottom left point (in x,y,z with spaces in-between)."}>>> = '1 0 0'
top_right<<<{"description": "The bottom left point (in x,y,z with spaces in-between)."}>>> = '2 1 0'
[]
[add_subdomain_2]
type = SubdomainBoundingBoxGenerator<<<{"description": "Changes the subdomain ID of elements either (XOR) inside or outside the specified box to the specified ID.", "href": "SubdomainBoundingBoxGenerator.html"}>>>
input<<<{"description": "The mesh we want to modify"}>>> = add_subdomain_1
block_id<<<{"description": "Subdomain id to set for inside/outside the bounding box"}>>> = 2
bottom_left<<<{"description": "The bottom left point (in x,y,z with spaces in-between)."}>>> = '1 1 0'
top_right<<<{"description": "The bottom left point (in x,y,z with spaces in-between)."}>>> = '2 2 0'
[]
[add_subdomain_3]
type = SubdomainBoundingBoxGenerator<<<{"description": "Changes the subdomain ID of elements either (XOR) inside or outside the specified box to the specified ID.", "href": "SubdomainBoundingBoxGenerator.html"}>>>
input<<<{"description": "The mesh we want to modify"}>>> = add_subdomain_2
block_id<<<{"description": "Subdomain id to set for inside/outside the bounding box"}>>> = 3
bottom_left<<<{"description": "The bottom left point (in x,y,z with spaces in-between)."}>>> = '0 1 0'
top_right<<<{"description": "The bottom left point (in x,y,z with spaces in-between)."}>>> = '1 2 0'
[]
[explode]
type = BreakMeshByElementGenerator<<<{"description": "Break all element-element interfaces in the specified subdomains.", "href": "BreakMeshByElementGenerator.html"}>>>
input<<<{"description": "The mesh we want to modify"}>>> = add_subdomain_3
subdomains<<<{"description": "The list of subdomain IDs to explode."}>>> = '1 2'
interface_name<<<{"description": "The boundary name containing all broken element-element interfaces."}>>> = czm
[]
[]
(moose/test/tests/meshgenerators/explode_mesh_generator/2D.i)Input Parameters
- subdomainsThe list of subdomain IDs to explode.
C++ Type:std::vector<unsigned short>
Controllable:No
Description:The list of subdomain IDs to explode.
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)