CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Compression of OpenFOAM files afterwards

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 2 Post By ngj
  • 3 Post By ngj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2010, 14:37
Default Compression of OpenFOAM files afterwards
  #1
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17
idrama is on a distinguished road
Hey Foamers!

I have ran several cases, but I have forgotten to let the files compress via controDict. How can I compress the files afterwards?

Cheers in advance
idrama is offline   Reply With Quote

Old   June 16, 2010, 15:15
Default
  #2
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17
idrama is on a distinguished road
I found something what might help:

find -name "U" -type f -exec gzip {} \;

Cheers
idrama is offline   Reply With Quote

Old   June 17, 2010, 03:44
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Claus

Try the utility "foamFormatConvert". It reads the current settings in the controlDict and apply those to all file in all time directories.

Best regards,

Niels
ngj is offline   Reply With Quote

Old   June 17, 2010, 04:38
Default
  #4
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17
idrama is on a distinguished road
That a cool tool!

Cheers
idrama is offline   Reply With Quote

Old   September 3, 2013, 07:43
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
Hi Niels
I changed
writeFormat binary;//ascii;//
and used foamFormatConvert in parallel form,but when open any file its still in ascii format.
__________________
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.
immortality is offline   Reply With Quote

Old   September 3, 2013, 13:35
Default
  #6
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Ehsan,

I suppose that you do something wrong, because it is working with me. Are you executing the correct command for parallel?

Try the following:

Code:
nProcs=`find ./ -maxdepth 1 -name "processor*" -type d | wc -l`; mpirun -np $nProcs foamFormatConvert -parallel
Kind regards

Niels
su_junwei, elvis and wyldckat like this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   September 3, 2013, 15:54
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
thanks,resolved!
__________________
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.
immortality 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
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 13:39
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 16:46.