Fluent enables you to read and write compressed files. Use the Select File dialog box to read or write the files that have been compressed using compress or gzip.
If you select a compressed file with a .z extension, Fluent will automatically invoke zcat to import the file. If you select a compressed file with a .gz extension, Fluent will invoke gunzip to import the file. For example, if you select a file named flow.msh.gz, the following message will be reported, indicating that the result of the gunzip is imported into Fluent via an operating system pipe.
Reading "\" | gunzip -c \"Z:\flow.msh.gz\"\""...
When reading a compressed file using the text interface, you only need to enter the file name. Fluent first looks for a file to open using just 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, it traverses the following list until it finds an existing file to open:
file-name
file-name.gz
file-name.z
file-name.suffix
file-name.suffix.gz
file-name.suffix.z
where suffix is a common extension to the file, such as .cas or .msh. Fluent reports an error if it fails to find an existing file with one of these names.
Note: For Windows systems, only files that were compressed with gzip (that is, files with a .gz extension) can be read. Files that were compressed using compress cannot be read into Fluent on a Windows machine.
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 are prompted for a file name and you enter a file name with a .gz extension, a compressed file will be written. For example, if you enter flow.gz as the name for a mesh file, Fluent reports the following message:
Writing "| gzip -cfv > Z:\flow.msh.gz"...
The status message indicates that the mesh 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 .msh extension was added automatically.
Note: 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.