Field3D.compute_chemical_timescale
Last updated
Last updated
Computes the chemical timescale for the field, useful in Partially Stirred Reactor (PaSR) modeling.
This method calculates the chemical timescale for the field using different modes. The available modes are 'SFR' (Slowest Fastest Reaction), 'FFR' (Fastest Fastest Reaction), and 'Ch' (Chomiak timescale). The computation is valid only for filtered fields, and it leverages reaction rates and species molar concentrations.
mode
(str, optional): The mode of timescale computation. Valid options are 'SFR', 'FFR', and 'Ch'. Default is 'SFR'.
verbose
(bool, optional): If True, prints detailed information during the computation. Default is False.
ValueError
: If the field is not a filtered field or if the length of species and reaction rates lists do not match the number of species.
AttributeError
: If the required attributes 'fuel' and 'ox' are not defined when mode is 'Ch'.
Validation
Checks if mode
is valid and if the field is filtered.
Ensures species and reaction rates lists match the number of species.
Mode: 'SFR' or 'FFR'
Collects paths to reaction rates and species concentrations.
Computes the timescales (\tau_c^{SFR}) and (\tau_c^{FFR}).
Saves the computed timescales to files.
Mode: 'Ch'
Validates the presence of 'fuel' and 'ox' attributes.
Computes the Chomiak timescale.
Saves the computed timescale to a file.
None