|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 16 ![]() |
I am pretty sure I read that open foam support has a binary format. Is this the case? If so can someone provide me a binary dataset so I can add binary support to my reader?
Thanks. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 16 ![]() |
Hi Terry,
just change writeFormat ascii; to writeFormat binary; in system/controlDict in any of the tutorials and you will get binary output. |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 16 ![]() |
Thanks.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 16 ![]() |
Question:
When I run the simulation in binary mode the meshes are all binary including constant. The problem is it seems as if the time data that exists at 0 (I think this data seeds the simulation) is in ascii. Should this be so? Also is this always the case, do you always have ascii data at t=0? Thanks. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 25 ![]() |
No, the files that get read (restart files) can be either binary or ascii. This is decided from the header.
The restart files are quite often in the 0/ time directory (depending on what the controlDict says) Files that get written get done so according to the settings in the controlDict. |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Member
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 16 ![]() |
Two questions:
1) "This is decided from the header" What are you referring to by "header"? 2) Should the restart files be part of the visualization? Thanks. |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 25 ![]() |
1) header: the 'foamFile' part of the file. One of the keywords in there is ascii or binary.
2) yes they are. Restart files are no different from files written during the simulation. |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 17 ![]() |
Hi!
I always run in binary but some times I need to check some numbers inside the binary file. Is there a utility that can convert binary to ascii and reverse. Thanks, Maka |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 16 ![]() |
"2) yes they are. Restart files are no different from files written during the simulation."
except that the all seem to be ascii to me regardless of what is specified in the controlDict |
|
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 25 ![]() |
That is probably because they were written from the FoamX GUI. This is an exception and ignores the controlDict setting.
|
|
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 18 ![]() |
Hi Maka,
did you find a simple way to switch the format? One way could be to run one time step with a different format, but that's not very comfortable... Did you find a better way? Fabian |
|
![]() |
![]() |
![]() |
![]() |
#12 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 25 ![]() |
foamFormatConvert reads (some) files and writes them out in the specified (system/controlDict) format.
|
|
![]() |
![]() |
![]() |
![]() |
#13 |
Senior Member
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 18 ![]() |
Thanks!
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 2 | April 19, 2023 14:47 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
Parse OpenFoam polyMesh in binary stream format | Daniel1966 | OpenFOAM Programming & Development | 2 | September 24, 2020 09:12 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
Error in solution using "Grid Interface" | agustinvo | FLUENT | 4 | January 20, 2015 12:03 |