Skip to content

Fluent CFF reader for Python — inspect, extract, and export mesh and simulation data for CAE and ML workflows.

License

Notifications You must be signed in to change notification settings

RezaNajian/FluentCFFReader

Repository files navigation

FluentCFFReader

Overview

This repository contains a Fluent CFF (HDF5) reader implemented for the inspection, extraction, and export of mesh and results data from Ansys Fluent .cas.h5 and .dat.h5 files, which can then be used for visualization or machine learning workflows.

  • A demo based on the Ansys Static Mixer tutorial is provided as a Jupyter Notebook: FluentCFFReader_Demo.ipynb.

  • A built-in memory and time logging utility (activated via VERBOSE = 1) records detailed runtime statistics, i.e., memory usage and execution time across all major functions.

  • Performance Note:
    The parser is highly optimized for large-scale industrial CFD models and has been extensively tested on complex cases containing millions of degrees of freedom.


Features

  • Mesh Inspection

    • Inspect mesh structure, surfaces, and volumetric zones.
    • Retrieve volumetric point clouds.
    • Extract boundary faces by name or boundary condition type.
  • Results Inspection

    • Explore all available physical fields in .dat.h5 files.
    • List cell-centered and face-centered field variables.
  • Export Capabilities

    • Export boundary surfaces as .vtp files.
    • Export volume meshes as .vtu files.
    • Export face and cell field data as .vtp and .vtu files respectively.

Note: Some exported .vtu files contain polyhedral cells generated by PyVista.
Due to known issues in the released versions of ParaView, these files may not display correctly.
It is recommended to use the current development (nightly) version of ParaView for proper visualization of all volume meshes and cell data:
ParaView Nightly Builds


Installation

pip install -r requirements.txt

About

Fluent CFF reader for Python — inspect, extract, and export mesh and simulation data for CAE and ML workflows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published