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

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

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By deepsterblue

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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: 403
Rep Power: 25
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).
Balzuka likes this.
__________________
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: 17
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


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
[General] Read multiple solution of a cgns file with paraview cbarmpar ParaView 15 December 7, 2017 05:09
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 11:52
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 UDS_rambler FLUENT 2 November 22, 2011 10:46
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 21:51


All times are GMT -4. The time now is 12:36.