mdpa_convert_cells
Convert cell kinds in Kratos MDPA files: split quadrilaterals/hexahedra into triangles/tetrahedra or drop quadratic mid-edge nodes for solver-compatible meshes.
Instructions
Convert cell kinds. mode 'quad_to_tri' splits every quadrilateral element into 2 triangles (e.g. SmallDisplacementElement2D4N -> ...2D3N); 'hex_to_tet' splits hexahedra into 6 tetrahedra (Kuhn split, conforming for structured meshes with consistent node ordering) and the boundary quads into triangles matching the tet faces; 'quadratic_to_linear' drops the mid-edge/face nodes of quadratic cells (tri6->tri, quad8/9->quad, tet10->tet, hex20/27->hex, wedge15->prism, line3->line; ids and sub model parts unchanged, mid nodes kept as unused nodes). Sub model parts follow. element_name / condition_name override the derived new type names. Other cell kinds are left alone. Needed e.g. for the convection-diffusion solver, which requires simplices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| path | Yes | ||
| output | No | ||
| overwrite | No | ||
| element_name | No | ||
| condition_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||