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

Compression of OpenFOAM files afterwards

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

Like Tree3Likes
  • 3 Post By ngj

Reply
 
LinkBack Thread Tools 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: 8
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: 8
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: Rotterdam, The Netherlands
Posts: 1,593
Rep Power: 24
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: 8
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,186
Rep Power: 16
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: Rotterdam, The Netherlands
Posts: 1,593
Rep Power: 24
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,186
Rep Power: 16
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

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
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 14:39
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08: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 14:35.