|August 13, 2013, 07:53||
Binary vs Ascii
Join Date: Oct 2012
Posts: 2,209Rep Power: 19
whats the usage differences and advantages of each one?
I have tested that Binary run takes 1/4 space of Ascii run but its a bit slower(I'm not sure,only it looks in terminal) than Ascii and I read somewhere that Binary is more accurate than Ascii.
are my conclusions true or not?
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
|August 15, 2013, 12:48||
Join Date: May 2013
Posts: 32Rep Power: 5
In general, binary is faster for read/write since the computer does not have to convert to a human-readable format. However, there are advantages (and disadvantages) to each.
For example, say you have a large (fine mesh) simulation where you plan on outputting hundreds or thousands of timesteps. In this case, binary would be better because writing many data points and many timesteps can be done relatively instantaneously (compared to converting and writing thousands of ASCII files).
Alternatively, if you have a small case and you're outputting relatively few timesteps, you can use ASCII without any significant performance hit and you can even open up the timestep files in a text editor to peruse them.
- for large meshes, file size can be significant
- can view/modify the files in text editor
- no problem for smaller cases and/or writing few timesteps
- smaller file sizes
- fast write of data
- cannot view/modify in text editor
- good for large cases and/or writing many timesteps
Just a note: you can switch between the two write methods on the fly by modifying the controlDict entry while your case is running.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Binary or Ascii?||dancfd||OpenFOAM Running, Solving & CFD||2||May 6, 2013 21:26|
|Converting Binary to Ascii..||vishwa||OpenFOAM||1||February 25, 2010 16:07|
|binary heavier than ascii||Schag||OpenFOAM||2||July 22, 2009 08:38|
|Error to re-open fluent case file||J.Gimbun||FLUENT||0||April 27, 2006 08:42|
|Sliding mesh error||Karl Kevala||FLUENT||4||February 21, 2001 16:52|