usage: fl averages [-h] [--ihdf IHDF [IHDF ...]] [--regen] [--phases PHASE [PHASE ...]]
Calculates averages and integrals per phases. Phases are subsets of the gas on the grid, defined either by maxima and minima of certain quantities, or by an abundance, i.e. a weight by which all other quantities are multiplied. Currently, it calculates the following average
and integral quantities: ivolm, imass, adens, atemp, apres, avelm, ieint, iekin, iegrv, ieuve, ietot and ircmb, where leading characters i
and a
have a meaning of the integral or the average, respectively.
optional arguments:
argument | description |
---|---|
-h, --help | show this help message and exit |
--ihdf IHDF [IHDF ...] | Input HDF file(s). Default: all HDF5 files in the current directory |
--regen | If set, regenerate all records in the averages file. Default: keep existing records (identified by simulation time), records with new simulation time are added to the averages file |
--phases PHASES | List of phases for which the average values will be calculated. PHASES is a colon (: ) separated list of phases. Each phase is defined by a set of conditions separated by coma (, ). Each condition has a format <quan>@[min|max|abn][=<value>] . The first part <quan> is one of the grid quantities, or newly defined quantities (velm , ekin , egrv , etot , rcmb ). If the second part is min or max, the condition means that only grid cells with minimum or maximum value of a given quantity, respectively, are included to the phase. The value of the minimum or maximum has to be given after the equality sign. If the second part is abn, it means that a given quantity is assumed to be an abundance, and all calculated values are multiplied by it. Default phase does not impose any conditions, i.e. all the gas in the grid is included into this phase. |
Example 1:
fl averages --phases=""
will create a single phase with the default values. This is equivalent to omitting the --phase option.
Example 2:
fl averages --phases="temp@min=10,temp@max=30"
will create a phase including only gas with temperature between 10 and 30.
Example 3:
fl averages --phases=":temp@max=100:temp@min=100,temp@max=1e4"
will create three phases, one including the all gas, second including the gas with temperature below 100, and third including the gas with temperatures between 100 and 10 000.
Example 4:
fl averages --phases="ihp_@abn:iha_@abn:ih2_@abn"
will create three phases corresponding to ionized hydrogen, atomic hydrogen and molecular hydrogen.