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

[OpenFOAM] OpenFOAM binary

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By mattijs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2006, 15:18
Default OpenFOAM binary
  #1
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
tj22 is on a distinguished road
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.
tj22 is offline   Reply With Quote

Old   June 29, 2006, 03:55
Default Hi Terry, just change wri
  #2
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17
hemph is on a distinguished road
Hi Terry,
just change

writeFormat ascii;
to
writeFormat binary;

in system/controlDict in any of the tutorials and you will get binary output.
hemph is offline   Reply With Quote

Old   June 29, 2006, 15:06
Default Thanks.
  #3
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
tj22 is on a distinguished road
Thanks.
tj22 is offline   Reply With Quote

Old   July 5, 2006, 13:59
Default Question: When I run the si
  #4
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
tj22 is on a distinguished road
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.
tj22 is offline   Reply With Quote

Old   July 5, 2006, 15:48
Default No, the files that get read (r
  #5
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   July 6, 2006, 11:10
Default Two questions: 1) "This is de
  #6
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
tj22 is on a distinguished road
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.
tj22 is offline   Reply With Quote

Old   July 6, 2006, 16:25
Default 1) header: the 'foamFile' part
  #7
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Old   July 7, 2006, 10:22
Default Hi! I always run in binary
  #8
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
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
maka is offline   Reply With Quote

Old   July 11, 2006, 13:22
Default "2) yes they are. Restart file
  #9
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
tj22 is on a distinguished road
"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
tj22 is offline   Reply With Quote

Old   July 11, 2006, 13:44
Default That is probably because they
  #10
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
That is probably because they were written from the FoamX GUI. This is an exception and ignores the controlDict setting.
mattijs is offline   Reply With Quote

Old   August 21, 2008, 04:02
Default Hi Maka, did you find a sim
  #11
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
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
braennstroem is offline   Reply With Quote

Old   August 21, 2008, 17:15
Default foamFormatConvert reads (some)
  #12
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
foamFormatConvert reads (some) files and writes them out in the specified (system/controlDict) format.
mattijs is offline   Reply With Quote

Old   August 22, 2008, 14:03
Default Thanks!
  #13
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
Thanks!
braennstroem 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Error in solution using "Grid Interface" agustinvo FLUENT 4 January 20, 2015 13:03


All times are GMT -4. The time now is 16:30.