CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

How to read OpenFOAM's result in binary format?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 22, 2021, 22:58
Default How to read OpenFOAM's result in binary format?
  #1
Member
 
Haoran Zhou
Join Date: Nov 2019
Posts: 51
Rep Power: 7
Stan Zhou is on a distinguished road
Hi all,
Since in most cases, saving simulation results in binary format can save a lot of space. So I wonder how to read the results (for example 'p'), which are stored in binary format? Or is there a way (such as functions) to see how the results are stored in binary files?

Thanks in advance!
Stan Zhou is offline   Reply With Quote

Old   August 25, 2021, 08:16
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 747
Rep Power: 14
Tobermory will become famous soon enough
There is a python parser that can read binary files:

https://github.com/xu-xianghua/ofpp

I used it a year of so back, but can't remember too many details.
Stan Zhou likes this.
Tobermory is offline   Reply With Quote

Old   August 26, 2021, 00:17
Default
  #3
Member
 
Haoran Zhou
Join Date: Nov 2019
Posts: 51
Rep Power: 7
Stan Zhou is on a distinguished road
Thanks for you help! I'll check it out at once.
By the way, is there any Fortran parser which can be adopted?
Stan Zhou is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse OpenFoam polyMesh in binary stream format Daniel1966 OpenFOAM Programming & Development 6 May 9, 2024 03:06
[OpenFOAM] Using ASCII rather than binary VTK format because floatScalar and/or label are .... quarkz ParaView 0 November 22, 2017 21:58
Error in solution using "Grid Interface" agustinvo FLUENT 4 January 20, 2015 13:03
how to export data into binary format? zxj160 OpenFOAM Programming & Development 2 October 21, 2012 18:42
Smallest binary file format to save large data Zonexo Main CFD Forum 2 June 2, 2008 21:25


All times are GMT -4. The time now is 22:57.