read#

Mesh.read(file_name, append=False, cad_reader_route=None)#

Read or import files of different formats based on file extensions.

This method supports reading and importing these file formats:

  • Reading PyPrimeMesh’s native PMDAT files

  • Importing various types of CAD files

  • Importing Fluent Meshing’s MSH files

  • Importing Fluent’s CAS files

  • Importing MAPDL’s CDB files

Parameters:
file_namestr

Path to the file to read or import.

appendbool, optional
Whether to append to the file. The default is False, in which case

the file is overwritten.

cad_reader_routeprime.CadReaderRoute, optional

Route of the CAD reader. The default is None.

Examples using Mesh.read#

Convert data when importing and exporting mesh and CAD formats

Convert data when importing and exporting mesh and CAD formats

Mesh a mixing elbow for a flow analysis

Mesh a mixing elbow for a flow analysis

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

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

Wrap a toy car for a flow analysis

Wrap a toy car for a flow analysis

Mesh a PCB for structural thermal analysis

Mesh a PCB for structural thermal 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 saddle bracket for a structural analysis

Mesh a saddle bracket for a structural analysis

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

Create a contact patch for wrapping between a wheel and ground interface

Create a contact patch for wrapping between a wheel and ground interface

Add a new example

Add a new example