[Fluent Inc. Logo] return to home search
next up previous contents index

4.1.5 Reading and Writing Compressed Files



Reading Compressed Files


You can use the Select File dialog box to read files compressed using compress or gzip. If you select a compressed file with a .Z extension, FLUENT automatically invokes zcat to import the file. If you select a compressed file with a .gz extension, the solver invokes gunzip to import the file.

For example, if you select a file named flow.msh.gz, the solver reports the following message indicating that the result of the gunzip is imported into FLUENT via an operating system pipe.

Reading "| gunzip -c flow.msh.gz"...

You can also type in the filename without any suffix (e.g., if you are not sure whether or not the file is compressed). First, the solver attempts to open a file with the input name. If it cannot find a file with that name, it attempts to locate files with default suffixes and extensions appended to the name.

For example, if you enter the name file-name, the solver traverses the following list until it finds an existing file:

where suffix is a common extension to the file, such as .cas or .msh. The solver reports an error if it fails to find an existing file with one of these names.

figure   

For Windows systems, only files that were compressed with gzip (i.e., files with a .gz extension) can be read. Files that were compressed with compress cannot be read into FLUENT on a Windows machine.

figure   

Do not read a compressed ray file; FLUENT cannot access the ray tracing information properly from a compressed ray file.



Writing Compressed Files


You can use the Select File dialog box to write a compressed file by appending a .Z or .gz extension onto the file name.

For example, if you enter flow.gz as the name for a case file, the solver reports the following message:

Writing "| gzip -cfv > flow.cas.gz"...

The status message indicates that the case file information is being piped into the gzip command, and that the output of the compression command is being redirected to the file with the specified name. In this particular example, the .cas extension is added automatically.

figure   

For Windows systems, compression can be performed only with gzip. That is, you can write a compressed file by appending .gz to the name, but appending .Z does not compress the file.

figure   

Do not write a compressed ray file; FLUENT cannot access the ray tracing information properly from a compressed ray file.


next up previous contents index Previous: 4.1.4 Recent File List
Up: 4.1 Shortcuts for Reading
Next: 4.1.6 Tilde Expansion (UNIX
© Fluent Inc. 2006-09-20