The cfsubset utility is now obsolete and no longer being maintained.
cfsubset may be used to remove specified grid points from a structured common grid (.cgd) or common flow (.cfl) file. This may be useful, for example, in removing densely-packed grid points from a grid developed for a fully-viscous problem, for use in an inviscid calculation or a calculation using wall functions.
If cfsubset is used with .cgd files containing zones with holes, the output .cgd file will not have a complete fringe boundary. GMAN should be used to fix the new file.
Input to cfsubset 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_in | The input .cgd or .cfl file, containing zones
with points to be removed.
| |||
OUTPUT file_out | The output common file, with the "less dense" zones.
If the file is a .cgd file, coupling data is also generated
and included in the output file.
| |||
SUBSET ZONE nzone I irange J jrange K krange | ||||
The SUBSET keyword tells cfsubset which points
to keep from the original file.
The parameter nzone is a zone number, or zone number range.
Any zones not specified will be copied as is into the output file.
The irange, jrange, and krange parameters specify the points to keep in zone(s) nzone. These parameters are each a series of single numbers, or ranges of numbers separated by a "-". In ranges, no white space is allowed between the numbers and the "-", and an optional increment may be specified by using a ";" to separate it from the second range number. Note that when an increment is specified, no checking is done to assure that the endpoint is included in the resulting grid. The special values "ALL" and "LAST" may be used as appropriate. |
Example 1
Suppose we have the simple three-zone two-dimensional configuration shown below, with grid sizes 17 × 6, 33 × 11, and 17 × 11 in zones 1, 2, and 3, respectively.
The following input file for cfsubset, named cfsubset1.inp will:
/ Input grid file / FILE testa.cgd / / Output grid file / OUTPUT testb.cgd / / Define zone subsets / SUBSET ZONE 2 I 1-17;2 18-LAST J 1-LAST;2 K ALL SUBSET ZONE 3 I 1 5 8-LAST J ALL K ALL
The terminal session is shown below. Lines in a slanted font are typed by the user.
% cfsubset ***** cfsubset ***** Select the desired version from the following list. 0) END 1) cfsubset Single program automatically selected. Omit the .inp extension! Enter cfsubset INPUT FILE ............. (<CR>=cfsubset.inp) : cfsubset1 cfsubset - Version 1.7 (last changed 2007/02/14 00:34:38) **************************************************************************** * 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. * **************************************************************************** SUBSETTING ZONE 1 SUBSETTING ZONE 2 SUBSETTING ZONE 3 SUBSETTING BOUNDARIES OF ZONE 1 SUBSETTING BOUNDARIES OF ZONE 2 SUBSETTING BOUNDARIES OF ZONE 3 RESETTING FACTORS COUPLED TO ZONE 1 RESETTING FACTORS COUPLED TO ZONE 2 RESETTING FACTORS COUPLED TO ZONE 3
The resulting grid is shown below. After running cfsubset, the grid sizes are 17 × 6, 25 × 6, and 12 × 11 in zones 1, 2, and 3, respectively.
Example 2
The following input file for cfsubset will:
/ Input grid file / FILE testc.cgd / / Output grid file / OUTPUT testd.cgd / / Define zone subsets / SUBSET ZONE 1 I ALL J 1 17-LAST;2 K 1 21-LAST SUBSET ZONE 3-22 I ALL J 1 17-LAST K 1 21-LAST;3
Last updated 26 Aug 2015