cfview may be used to view (as text) the structure and contents of a common file, such as a common grid (.cgd) or common flow (.cfl) file. It arose out of a need to see the very guts of a common file without imposing any assumptions about "zones" or "boundaries", etc.
Input to cfview is specified through commands, described below. In the following list, | separates multiple choices, [] are delimiters surrounding optional entry(s), and {} are delimiters surrounding multiple entries when exactly one of them is required.
| FILE cfname | Open the common file cfname.
| |||
| {EXIT | BYE} | Exit cfview.
| |||
| STATUS | Display current node and list of subnodes and variables.
| |||
| NODE "node_name" | Select node node_name as current (quotes required).
| |||
| ROOT | Select root node as current node.
| |||
| BACK | Go back one node in the hierarchy.
| |||
| {DUMP | LIST} NODE | Print node header data.
| |||
| {DUMP | LIST} VARIABLE vname [START beg] [END end] [INCREMENT inc] | ||||
| Print data in variable vname in linear fashion,
starting at beg (default is 1), ending at end
(default is end of array), with increment inc
(default is 1).
| ||||
| TREE [OUTPUT outfile] | Print the structure of the common file, indicating the nodes and subnodes, and the variable names, sizes, and types. | |||