|
[Sponsors] |
June 16, 2010, 14:37 |
Compression of OpenFOAM files afterwards
|
#1 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17 |
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 |
|
June 16, 2010, 15:15 |
|
#2 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17 |
I found something what might help:
find -name "U" -type f -exec gzip {} \; Cheers |
|
June 17, 2010, 03:44 |
|
#3 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
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 |
|
June 17, 2010, 04:38 |
|
#4 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17 |
That a cool tool!
Cheers |
|
September 3, 2013, 07:43 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
September 3, 2013, 13:35 |
|
#6 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37 |
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 Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
September 3, 2013, 15:54 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
|
|
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 |