CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

binary writeFormat and timePrecision and writePrecision

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By GerhardHolzinger

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2016, 04:38
Default binary writeFormat and timePrecision and writePrecision
  #1
New Member
 
Vilma62
Join Date: Nov 2014
Posts: 9
Rep Power: 11
Vilma62 is on a distinguished road
If I set writeFormat to binary, are there any meaning of timePrecision and writePrecision?

Thanks.
Vilma62 is offline   Reply With Quote

Old   June 3, 2019, 07:02
Default
  #2
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
I know this is an old question, but I had the same doubt so I'm giving an answer here:

from https://cfd.direct/openfoam/user-guide/v6-controlDict/



I would say that when you use binary output the writePrecision value will be ignored (I also tested that, the md5sums of both output files remain the same).


However, the timePrecision is not affected by the choice of binary output because timePrecision only affects the directory names.
louisgag is offline   Reply With Quote

Old   June 3, 2019, 09:07
Default
  #3
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
writePrecision still has some meaning when using binary as writeFormat.

I have observed that run-time post-processing data, e.g. data extracted by functionObjects, always gets written in ascii format.
louisgag likes this.
GerhardHolzinger 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



All times are GMT -4. The time now is 11:27.