|
[Sponsors] |
[General] A "clean" solution to export binary ensight gold format from Fortran to Paraview? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 8, 2015, 04:46 |
A "clean" solution to export binary ensight gold format from Fortran to Paraview?
|
#1 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
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. |
|
June 23, 2015, 12:59 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49 |
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. |
|
|
|
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 |