mesh_import
Convert mesh files from formats like gmsh, VTK, MED, Abaqus, Nastran, or XDMF into Kratos .mdpa, mapping cells to elements and conditions.
Instructions
Convert a mesh file of another format (gmsh .msh, VTK .vtk/.vtu, MED, Abaqus .inp, Nastran, XDMF, ... anything meshio reads) into a Kratos .mdpa. The highest-dimension cells become elements, the next lower dimension conditions; named physical groups / cell sets become sub model parts (a 'domain' part with everything is added). Linear and quadratic line, triangle, quad, tetra, hexahedron, wedge and pyramid cells are converted, plus the cubic line4 / triangle10 / quad16 (other cubic and higher Lagrange cells are rejected). 15-node wedges and 13-node pyramids cannot be represented by meshio itself and are refused on export (see mesh_export linearize_unsupported). element_name / condition_name set the Kratos types (defaults are generic Element2D3N ... SurfaceCondition3D4N, fine for thermal or fluid solvers that replace elements; give e.g. SmallDisplacementElement2D3N for structural cases). file_format forces meshio's reader when the extension is ambiguous.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| source | Yes | ||
| overwrite | No | ||
| file_format | No | ||
| property_id | No | ||
| element_name | No | ||
| condition_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||