CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] A "clean" solution to export binary ensight gold format from Fortran to Paraview?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2015, 04:46
Default A "clean" solution to export binary ensight gold format from Fortran to Paraview?
  #1
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
After a lot of trial and error and web searches, I finally managed to export data from a Fortran code in ensight gold format to Paraview.

However, I am not 100% satisfied with the solution and feel like I am missing something.
I ended up opening the geometry and value files with the form='binary' parameter. Additionally, I had to use "C Binary" instead of the obvious "Fortran Binary" in the geometry file header.
The thing is that form='binary' is not a Fortran standard and thus unsupported e.g. by gfortran.
Is there really no straightforward, compiler independent solution to do this?

Related question: ensight expects 4-Byte float values. Is it even possible to export 8-Byte floats with this file format?

This post might aswell fit into the ensight section. However, the ens_checker stated that everything was fine with my file format when using form='unformatted' and "Fortran Binary" in the geometry header.
Paraview on the other hand crashed throwing a segmentation fault while loading the case.

Edit:
Sometimes a fresh start after a sufficient amount of sleep helps...
Apparently, using form='unformatted' and access='stream' does the trick. Now I can even use "Fortran Binary" in the header of the geometry file and compile the code with gfortran.
flotus1 is offline   Reply With Quote

Old   June 23, 2015, 12:59
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
While this solves the issue for loading the case file in ParaView, the ens_checker on the other hand tries to handle the geometry as an ASCII file format and fails.
It just seems like the definitions for the binary ensight file format are different for Fortran and ParaView. Or at least non-standard Fortran (which is not supported by all compilers) is required to get the job done.
flotus1 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
Error in solution using "Grid Interface" agustinvo FLUENT 4 January 20, 2015 13:03
Ensight gold transient data reading error cfd_addict EnSight 7 December 19, 2012 14:44
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 01:52
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 13:58.