Generation of Flamelet Data#
Important
DOCUMENTATION IN PROGRESS
This page provides the documentation on the methods used for generating flamelet data with SU2 DataMiner.
Flamelet Calculations#
- ComputeFreeFlames(self, mix_status: float, T_ub: float, i_freeflame: int = 0)#
Generate adiabatic free-flamelet data for a specific mixture fraction or equivalence ratio and reactant temperature.
- Parameters:
mix_status (float) – Equivalence ratio or mixture fraction value.
T_ub (float) – Reactant temperature in Kelvin.
i_freeflame (int, optional) – Solution index, defaults to 0
- ComputeBurnerFlames(self, mix_status: float, m_dot: ndarray[float], T_burner: float = None)#
Generate burner-stabilized flamelet data for a specific mixture fraction or equivalence ratio and mass flux.
- Parameters:
mix_status (float) – Equivalence ratio or mixture fraction value.
m_dot (np.ndarray[float]) – Mass flux array (kg s^{-1} m^{-1})
- ComputeEquilibrium(self, mix_status: float, T_range: ndarray[float], burnt: bool = False)#
Generate chemical equilibrium data for a given mixture status and temperature range.
- Parameters:
mix_status (float) – Mixture fraction or equivalence ratio.
T_range (np.array[float]) – Reactant or product temperature range.
burnt (bool, optional) – Compute reaction product properties, defaults to False
- ComputeFlameletsOnMixStatus(self, mix_status: float)#
Generate flamelet data for a given mixture fraction or equivalence ratio.
- Parameters:
mix_status (float) – Mixture fraction or equivalence ratio value.
- Raises:
Exception – If mixture status value is below zero.
- ComputeFlamelets(self)#
Generate and store all flamelet data for the current settings.
- ComputeFlameletData(Config: Config_FGM, run_parallel: bool = False, N_processors: int = 2)#
Generate flamelet data according to Config_FGM settings either in serial or parallel.
- Parameters:
Config (Config_FGM) – Config_FGM class containing manifold and flamelet generation settings.
run_parallel (bool, optional) – Generate flamelet data in parallel, defaults to False
N_processors (int, optional) – Number of parallel jobs when generating flamelet data in parallel, defaults to 0
- Raises:
Exception – If number of processors is set to zero when running in parallel.
- ComputeBoundaryData(Config: Config_FGM, run_parallel: bool = False, N_processors: int = 2)#
Overwiting Configuration Settings#
- SetOutputDir(self, output_dir_new: str)#
Define the flamelet data output directory manually.
- Parameters:
output_dir_new (str) – Flamelet data output directory.
- Raises:
Exception – If provided directory doesn’t exist.
- SetTransportModel(self, transport_model: str)#
Overwrite the transport mechanism from the loaded configuration.
- Parameters:
transport_model (str) – Cantera transport model.
- SetReactionMechanism(self, reaction_mechanism: str)#
Define the reaction mechanism manually.
- Parameters:
reaction_mechanism (str) – name of the reaction mechanism.
- RunFreeFlames(self, input: bool = True)#
Include adiabatic free-flame data in the manifold.
- Parameters:
input (bool) – Generate adiabatic free-flame data.
- RunBurnerFlames(self, input: bool = True)#
Include burner-stabilized flame data in the manifold.
- Parameters:
input (bool) – Generate burner-stabilized flamelet data.
- RunEquilibrium(self, input: bool = True)#
Include chemical equilibrium data in the manifold.
- Parameters:
input (bool) – Generate chemical equilibrium data.
- RunMixtureFraction(self)#
Define the mixture status as mixture fraction instead of equivalence ratio.
- RunEquivalenceRatio(self)#
Define the mixture status as equivalence ratio instead of mixture fraction.
- SetFuelDefinition(self, fuel_species: list[str], fuel_weights: list[float])#
Manually define the fuel composition
- Parameters:
fuel_species (list[str]) – list of fuel species names.
fuel_weights (list[float]) – list of fuel molar fraction weights.
- Raises:
Exception – if no fuel species are provided.
Exception – if the number of species does not correspond to the number of weights.
- SetOxidizerDefinition(self, oxidizer_species: list[str], oxidizer_weights: list[float])#
Manually define the oxidizer composition
- Parameters:
oxidizer_species (list[str]) – list of oxidizer species names.
oxidizer_weights (list[float]) – list of oxidizer molar fraction weights.
- Raises:
Exception – if no oxidizer species are provided.
Exception – if the number of species does not correspond to the number of weights.