CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

OpenFOAM binary

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2006, 14:18
Default I am pretty sure I read that o
  #1
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 7
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, 02:55
Default Hi Terry, just change wri
  #2
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 7
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, 14:06
Default Thanks.
  #3
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 7
tj22 is on a distinguished road
Thanks.
tj22 is offline   Reply With Quote

Old   July 5, 2006, 12:59
Default Question: When I run the si
  #4
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 7
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, 14:48
Default No, the files that get read (r
  #5
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
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, 10:10
Default Two questions: 1) "This is de
  #6
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 7
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, 15:25
Default 1) header: the 'foamFile' part
  #7
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
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, 09:22
Default Hi! I always run in binary
  #8
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 8
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, 12:22
Default "2) yes they are. Restart file
  #9
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 7
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, 12:44
Default That is probably because they
  #10
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
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, 03:02
Default Hi Maka, did you find a sim
  #11
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 9
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, 16:15
Default foamFormatConvert reads (some)
  #12
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 15
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, 13:03
Default Thanks!
  #13
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 9
braennstroem is on a distinguished road
Thanks!
braennstroem is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binary Diffusion Tuniv FLUENT 0 June 11, 2007 10:09
Binary in Fortran Gerrit Main CFD Forum 6 September 8, 2006 04:26
Binary vtk data problem oevermann OpenFOAM Paraview & paraFoam 3 October 16, 2005 09:53
Binary scalar properties Julie Polyakh CD-adapco 0 May 20, 2003 11:21
binary diffusion coefficient kevin-change FLUENT 2 October 1, 2002 06:02


All times are GMT -4. The time now is 17:43.