Skip navigation links
(Wind-US Documentation Home Page) (Wind-US User's Guide) (GMAN User's Guide) (MADCAP User's Guide) (CFPOST User's Guide) (Wind-US Utilities) (Common File User's Guide) (Wind-US Installation Guide) (Wind-US Developer's Reference) (Guidelines Documents)

(adf_revert) (cfaverage) (cfbeta) (cfcnvt) (cfcombine) (cflistnum) (cfpart) (cfreorder) (cfreset_iter) (cfspart) (cfsplit) (decompose) (fpro) (gpro) (jormak) (mpigetnzone) (recombine) (resplt.pl) (thplt) (tmptrn) (USintrpltQ) (windpar) ... (all utilities)

cfreorder

cfreorder may be used to re-order and/or delete zones in a common grid (.cgd) or common flow (.cfl) file.

Input to cfreorder is specified in a keyword input file, with the three-letter extension .inp. Lines in the input file starting with a "/" are comments. The following keywords and parameters may be specified.

    CHECK   Checks the input file for errors without performing any operations.

FILE file The .cgd or .cfl file containing zones to be reordered and/or deleted. The output is written to the same file name, overwriting the original file.

REORDER ZONE nzone1 TO nzone2
Zone number nzone1 in the original grid will be renumbered as nzone2. You may also specify a range of zones whose numbers are to be shifted. (See the example below). All zones not specified will keep the same number.

DELETE ZONE nzone Zone number nzone in the original grid will be deleted. nzone may also specify a range of zones to be deleted. A zone being deleted may not appear as nzone1 in a REORDER keyword line. Zones will be automatically reordered to account for the deleted zones. Disk space used by the deleted zones is not automatically recovered. To recover this space, use cfcnvt and select the "Compress a Common File" menu option.

Example

The following input file for cfreorder, named reorder.inp, will switch numbers for zones 1 and 3, renumber the original zone 30 as zone 4, renumber the original zones 4-29 as zones 5-30, and delete zones 31-40.

   / Input/output grid file
   /
   FILE testa.cgd
   /
   / Renumber zones
   /
   REORDER ZONE 1    TO ZONE 3
   REORDER ZONE 3    TO ZONE 1
   REORDER ZONE 30   TO ZONE 4
   REORDER ZONE 4-29 TO ZONE 5-30
   DELETE ZONE 31-40

The terminal session is shown below. Lines in a slanted font are typed by the user.

   % cfreorder
   
                                ***** cfreorder *****
   
             Select the desired version from the following list.
   
   0) END
   1) cfreorder
   
   Single program automatically selected.
   
   Omit the .inp extension!
   Enter cfreorder INPUT FILE ............. (<CR>=cfreorder.inp) : reorder
    cfreorder - Version 1.8 (last changed 2007/02/13 23:41:36)
    ****************************************************************************
    * Warning: This software contains technical data whose export is           *
    * restricted by the Arms Export Control Act (Title 22, U.S.C., Sec 2751,   *
    * et seq.) or Executive Order 12470. Violation of these export-control     *
    * laws is subject to severe criminal penalties. Dissemination of this      *
    * software is controlled under DoD Directive 5230.25 and AFI 61-204.       *
    ****************************************************************************
     RENAMING ZONE   1 TO ZONE   3
     RENAMING ZONE   2 TO ZONE   2
     RENAMING ZONE   3 TO ZONE   1
     RENAMING ZONE   4 TO ZONE   5
     RENAMING ZONE   5 TO ZONE   6
     ...
     RENAMING ZONE  30 TO ZONE   4
     DELETING ZONE   31
     DELETING ZONE   32
     ...
     RENAMING BOUNDARIES OF ZONE   1
     RENAMING BOUNDARIES OF ZONE   2
     RENAMING BOUNDARIES OF ZONE   3
     ...
     To recover space of deleted zones use CFCNVT.


Last updated 23 July 2007