polyfoammesh.commercial.exporter
Mesh Conversion & Export Factory — output formats for every major CFD solver.
Supported formats (keys of EXPORT_FORMAT_REGISTRY — the registry is the
single source of truth, and every key has a matching _export_* handler):
OpenFOAM (native polyMesh)
CGNS (.cgns)
VTU (ParaView)
Abaqus (.inp)
SU2 (.su2)
GMSH (.msh)
STL (surface)
Classes
|
|
Multi-format mesh export factory. |
- class polyfoammesh.commercial.exporter.ExportResult(success=False, format='', output_path='', cell_count=0, file_size_bytes=0, wall_time_s=0.0, error='')[source]
Bases:
object- Parameters:
- class polyfoammesh.commercial.exporter.MeshExporter[source]
Bases:
objectMulti-format mesh export factory.
Usage:
exporter = MeshExporter() result = exporter.export(case_dir, fmt="cgns", output_path="mesh.cgns") print(f"Exported: {result.file_size_bytes} bytes")