cfaverage may be used to average the values in two or more existing common flow (.cfl) files, and write the averaged values to a new .cfl file. The maximum number of files that can be averaged is 256, and the maximum number of zones in a file is 512. All the files must have the same reference conditions.
Input to cfaverage 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. | ||||||||||||||
AVERAGE FILE file1.cfl AVERAGE FILE file2.cfl ... | The input .cfl files to be averaged. The maximum number of files that can be averaged is 256. | ||||||||||||||
OUTPUT fileave.cfl | The name of the output .cfl file containing the averaged values (or summmed values, in ACCUMULATE mode). | ||||||||||||||
AMODE {DEFAULT|ACCUMULATE|FINALIZE} | |||||||||||||||
The averaging mode.
The options are:
| |||||||||||||||
RMS | Compute a root mean square average instead of a simple average. | ||||||||||||||
AFILE filebase.cfl | A "base" .cfl file for use with RMS averaging. Values in this file will be subtracted from those in each input file during the averaging process, like a standard deviation. |
Example
The following input file for cfaverage, named cfave3.inp, will average the values in the files case1.cfl, case2.cfl, and case3.cfl, and write the averaged values into the new file caseave3.cfl.
/ Files to be averaged / AVERAGE FILE case1.cfl AVERAGE FILE case2.cfl AVERAGE FILE case3.cfl / / File containing averaged values / OUTPUT caseave.cfl
The terminal session is shown below. Lines in a slanted font are typed by the user.
% cfaverage ***** cfaverage ***** Select the desired version from the following list. 0) END 1) cfaverage Single program automatically selected. Omit the .inp extension! Enter cfaverage INPUT FILE ............. (<CR>=cfaverage.inp) : cfave3 cfaverage - Version 1.8 (last changed 2009/05/01 23:18: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. * **************************************************************************** INF: AVERAGING ZONE 1 FROM FILE case1.cfl INF: AVERAGING ZONE 1 FROM FILE case2.cfl INF: AVERAGING ZONE 1 FROM FILE case3.cfl INF: AVERAGING ZONE 2 FROM FILE case1.cfl INF: AVERAGING ZONE 2 FROM FILE case2.cfl INF: AVERAGING ZONE 2 FROM FILE case3.cfl INF: AVERAGING ZONE 3 FROM FILE case1.cfl INF: AVERAGING ZONE 3 FROM FILE case2.cfl INF: AVERAGING ZONE 3 FROM FILE case3.cfl
Last updated 22 May 2009