ENERF.CFG.DAT
From BAWiki
Basic Information
File-Type
enerf.cfg.dat
File-Form
FORMATTED
Version
2.x / April 2000
Description-Date
April 2000
Significance of the File
The file contains configuration data for the program ENERF. It defines the relation between synoptical input and output quantities by using calculation rules for them.
Intermediate results and results are stored in so called Calculationregisters (German: Rechenregister). They take up one scalar and synoptical size. At the definition of calculation rules a Calculationregister is computed from left to right! That means 2 + 2 * 3 = 12 ! Would you like to put an expression in brackets, you have to define another Calculationregister as an intermediate result for it. At the moment the operator addition, subtraction, multiplication, division and exponentiation is possible for data on the corresponding datapoints.
If one dimension of a vectorial input size is not present, this dimension will be ignored, e.g. for universal calculating the magnitude of a vector useful. Example: R1 = I(1)1 + I(2)1 + I(3)1 means, sum of the vector components x, y, z from Inputregister I1 is stored in the Calculationregister R1. Is there no z-component of the vector I1 in the input file, the intermediate result in R1 is olny the sum of x- and y-components.
IMPORTANT: Definitions of new output sizes with calculation rules must be conform with the informations in the configuration file for physical sizes ($PROGHOME/fortran/prg/cfg/phydef.cfg.rest.dat). Otherwise a data inconsistence may occur in further postprocessing programms! The corresponding reference sizes are gererated as well with this informations for the input/output sizes if necessary.
The program assume that the formulas defining a result are valid.
REMARK: The configuration is generated out of the standard directory of configuration files ($PROGHOME/fortran/prg/cfg/). You could however keep a configuration file in your working directory. If a configuration file exists in the local working directory, the configuration is generated out of it.
File-Contents (in Catchwords)
- Definition of input sizes I (physical codes)
- (termintate the list with the keyword ENDDATA)
- Definition of output sizes E (physical codes)
- (termintate the list with the keyword ENDDATA)
- Definition of constants C (values)
- (termintate the list with the keyword ENDDATA)
- Definition of calculation rules R (results / intermediate results)
- (e.g. R3 = I(1)1 + R1 * C1 - R2 ...)
- (termintate the list with the keyword ENDDATA)
- Definition of relations between output sizes E and Calculationregisters R (each relationship must be terminated by the
- keyword ENDREGISTER)
- (terminate the list with the keyword ENDDATA)
- Definition of constants with a special meaning to generate additional information if necessary
- (termintate the list with the keyword ENDDATA)
Programs using this Type of File
Example-File
please refer to $PROGHOME/fortran/prg/cfg/enerf.cfg.dat
back to: File Descriptions