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

How to compress results files so that paraview can still read them

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 19, 2011, 14:50
Default How to compress results files so that paraview can still read them
  #1
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
Hello,

I have a run that generated about 2GB of data. Is there a way for me to compress the result files, but so that paraview can still open them for display

Thanks,

Mirko
mirko is offline   Reply With Quote

Old   January 19, 2011, 16:17
Default
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 386
Rep Power: 15
deepsterblue will become famous soon enough
foamFormatConvert should do it for you. Just change the writeCompression entry in system/controlDict to 'compressed'. It seems to be hard-wired for ascii, but a simple switch to IOstream::BINARY should do the trick for binary output.

I think the PV3FoamReader can handle binary/compressed formats (or is that only in Takuya's native/parallel version? Can't remember).
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   January 20, 2011, 12:07
Default
  #3
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
Quote:
Originally Posted by deepsterblue View Post
foamFormatConvert should do it for you. Just change the writeCompression entry in system/controlDict to 'compressed'. It seems to be hard-wired for ascii, but a simple switch to IOstream::BINARY should do the trick for binary output.

I think the PV3FoamReader can handle binary/compressed formats (or is that only in Takuya's native/parallel version? Can't remember).
Thank you.

Since I did not see this mentioned anywhere explicitly:

for chtMultiRegionFoam, I had to specify the -region argument in order for the fields in XYZ/region/U|T|rho|... to be processed.

Mirko
mirko 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
ParaView 3.6.1 & 3.7.0: Can't view STL files johannes OpenFOAM Paraview & paraFoam 2 December 3, 2009 15:07
how I can read two model files? moh CD-adapco 3 May 23, 2006 22:31
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51
attaching transient results files houman CFX 5 June 25, 2004 07:42
how to read some message from phi files pangpang Phoenics 3 December 19, 2001 06:05


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