CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Phoenics (https://www.cfd-online.com/Forums/phoenics/)
-   -   How to uncompress PHI file (https://www.cfd-online.com/Forums/phoenics/51404-how-uncompress-phi-file.html)

Hu April 22, 2002 09:34

How to uncompress PHI file
 
Could anyone tell me how to uncompress the PHI file that has been compressed by runcmp.bat. There is no help document regarding how to uncompress PHI file (which has been renamed as CPHI) in CHAM website. I tried to use runcmp.bat again but it requires a parameter to perform uncompressingt task, otherwise it would only do compressing. Please help.

Jeremy Wu April 24, 2002 10:32

Re: How to uncompress PHI file
 
There is an input file called q1cmp where you can specify uncompress or compress. Which PHOENICS version are you using ?

Hu April 24, 2002 13:02

Re: How to uncompress PHI file
 
Thank you, Jeremy. I am using PHOENICS 3.2 (non-recompilable) and 3.4 (recompilable). The problem is what should I do to the q1cmp? Is it just simply to add a line "uncompress" or "compress"? Is there any parameters I have to add? It seems 'q1cmp' is generated automatically be 'runcmp.bat' because it cannot be found if not using it.

Jeremy Wu April 25, 2002 04:52

Re: How to uncompress PHI file
 
I will send you a q1cmp file where you can see that there is '*' sign in front of compress (or uncompress) The '*' sign is used to de-activate the command. If you want to uncompress CPHI, then put an '*' sign in front of compress, and remove the '*' sign from the uncompress line.

Hu April 25, 2002 20:21

Re: How to uncompress PHI file
 
Many thanks for your help! May I ask one more question? What is the unit of the csize (kb? Mb?) I have seen there is a statement 'csize=1000', does it mean the maximum compressed phi file is 1000kb? What are the special cases of csize=1.2 and csize=1.44?

Cheers.

Jeremy Wu April 26, 2002 05:35

Re: How to uncompress PHI file
 
As descrived in the q1cmp file, the unit of csize is Kb. However, if you specify 1.44 or 1.2, then the program will take it 1440kb or 1200kb as there are statements in the code something like:

if(csize.eq.1.44) then

maxk=1440

elseif(csize.eq.1.2)

maxk=1200

endif


Ramesh Avvari October 10, 2002 06:18

Re: How to uncompress PHI file
 
Hello... dont complicate things to compress the phi file... it can be simply done by changing the option to yes \ no in compress = ? in cham.ini file... open file, open cham.ini file and just type no for compress = ?/ thats all... u will get phi in numerical ascii format in uncompressed file. but the file size will be big.

Ramesh Avvari


All times are GMT -4. The time now is 08:41.