Section author: Evert Bunschoten
Tabulation methods for FGM applications#
This page documents the tabulation methods for FGM applications in SU2 DataMiner. The FGM table generator class is derived from the base table generator class from which it inherets most of its functionalities. FGM tables can be 2D or 3D, depending on the controlling variables specified in the SU2 DataMiner configuration. The extra functionalities of the FGM table generator with respect to the base class are gradient-based refinement, and additional refinement near chemical equilibrium conditions.
A tutorial which demonstrates the functionalities of the FGM table generator for a methane-air application can be found here. A tutorial for hydrogen-based tabulation will come in a later update.
The number of table dimensions and the controlling variables are retrieved from the SU2 DataMiner configuration upon initialization.
Gradient-based refinement#
Thermochemical state variables such as source terms can have very high gradients with respect to the progress variable. In order to accurately evaluate such quantities with the table, the resolution should scale with the local magnitude of the gradients rather than being based on the values of thermochemical state variables. The following function can be used to scale the local mesh resolution based on the local value of gradients of specified quantities.
The refinement factor \(r\) applied at an arbitrary location in the table \(X^*\) based on the gradient of quantity \(j\) is evaluated as
in which \(f_j\) is the value of the coefficient supplied by the function argument. The refinement factor therefore scales linearly with the gradient of quantity \(j\), normalized by the global maximum value of the gradient \(\max \|\nabla \Psi_j\|\). The gradients are approximated with central finite-differences
where the step size \(\delta\) is currently hard-coded to a value of 1e-2.
Important
Evaluating the gradients with finite-differences is computationally costly. Adding a gradient-based refinement will therefore significantly increase the computational cost of table generation.
Extra refinement around chemical equilibrium#
For the initialization of premixed flames in SU2 FGM simulations, it is very important that the total enthalpy can be accurately retrieved through inverse regression. Additional refinement can be imposed at the sections of the table where the mixture is in chemical equilibrium using the following function:
Here, the local grid refinement factor is calculated with the following function
where \(c^*\) is the local, scaled value of the progress variable, \(c^*_R\) the value of the progress variable for stable, premixed reactants, \(c^*_P\) that of equilibrated reaction products, and \(m\) an additional margin whithin which the refinement is applied.