|
| 1 | ++++ |
| 2 | +date = "2020-01-17T5:56:57+01:00" |
| 3 | +title = "Extract Boundary" |
| 4 | +author = "Thomas Fischer" |
| 5 | + |
| 6 | +[menu] |
| 7 | + [menu.tools] |
| 8 | + parent = "meshing-submeshes" |
| 9 | ++++ |
| 10 | + |
| 11 | +## General |
| 12 | + |
| 13 | +The tool extracts either lines in case of a 2D bulk mesh as input or |
| 14 | +quads/triangles in case of a 3D bulk mesh as input. The input mesh can be given |
| 15 | +either in the vtu or msh format. Since the algorithm uses the element surface |
| 16 | +normals a correct node ordering of the element nodes is required. |
| 17 | + |
| 18 | +## Usage |
| 19 | + |
| 20 | +``` |
| 21 | +ExtractBoundary -i [<file name of input mesh>] [-o <file name of output mesh>] |
| 22 | + [--face-property-name <string>] |
| 23 | + [--element-property-name <string>] |
| 24 | + [--node-property-name <string>] |
| 25 | +``` |
| 26 | + |
| 27 | +The data arrays added to the boundary mesh by using the options |
| 28 | +`--face-property-name` (default value 'bulk_face_ids'), |
| 29 | +`--element-property-name` (default value 'bulk_element_ids'), |
| 30 | +and `--node-property-name` (default value 'bulk_node_ids') |
| 31 | +are used in other tools (for instance in |
| 32 | +[ComputeNodeAreasFromSurfaceMesh]({{< ref "compute-node-areas-from-surface-mesh" >}})) |
| 33 | +and are required for flux calculations during a simulation run of OpenGeoSys. |
| 34 | + |
| 35 | +## Examples |
| 36 | + |
| 37 | +# Extract the boundary from a quad mesh |
| 38 | + |
| 39 | +`ExtractBoundary -i square_1x1_quad.vtu -o square_1x1_quad_border.vtu` |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +In the figure above the square mesh consists of 16 cells/elements. The numbers |
| 44 | +in the cells are the cell IDs. The generated boundary grid consists of the |
| 45 | +somewhat thicker and colored line elements. |
| 46 | + |
| 47 | +# Extract the boundary from a tri mesh |
| 48 | + |
| 49 | +`ExtractBoundary -i square_1x1_tri.vtu -o square_1x1_tri_border.vtu` |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +In the figure above the square mesh consists of 32 triangle shaped cells. The |
| 54 | +numbers in the tri are the cell IDs. The generated boundary grid consists of the |
| 55 | +somewhat thicker and colored line elements. |
0 commit comments