write#
- Mesh.write(file_name)#
Write or export files of different formats based on file extensions.
This method supports writing and exporting these file formats:
Writing PyPrimeMesh’s native PMDAT files
Exporting Fluent Meshing’s MSH files
Exporting Fluent’s CAS files
Exporting MAPDL’s CDB files.
Exporting STL files.
- Parameters:
- file_name
str
Path of the file to write or export.
- file_name
Examples using Mesh.write#

Convert data when importing and exporting mesh and CAD formats
Convert data when importing and exporting mesh and CAD formats

Mesh a pipe T-section for structural thermal and fluid flow analysis
Mesh a pipe T-section for structural thermal and fluid flow analysis

Morph a hexahedral mesh of a turbine blade to a new shape
Morph a hexahedral mesh of a turbine blade to a new shape

Mesh a generic F1 car rear wing for external aero simulation
Mesh a generic F1 car rear wing for external aero simulation

Mesh a generic PCB geometry with multiple hexa layers
Mesh a generic PCB geometry with multiple hexa layers