Difference between revisions of "Step 4"

From CFD Benchmark
Jump to: navigation, search
(Created page with "= Description of Step 4 = In this last benchmark, Step 3 is repeated while now activating chemical reactions from the start. To this aim, the kinetic scheme of Boivin et al.~...")
 
Line 40: Line 40:
  
  
= Aside suggestions  
+
= Aside suggestions =
  
 
Should we prove that it is the case for our codes? It could be done easily, for each mesh, on a small number of iterations, say simulate 0.1ms with 2 or 3 different timesteps. This could also be done for Step 2 and 3 actually
 
Should we prove that it is the case for our codes? It could be done easily, for each mesh, on a small number of iterations, say simulate 0.1ms with 2 or 3 different timesteps. This could also be done for Step 2 and 3 actually

Revision as of 15:19, 27 July 2020

Description of Step 4

In this last benchmark, Step 3 is repeated while now activating chemical reactions from the start. To this aim, the kinetic scheme of Boivin et al.~\cite{Boivin2011} involving 9 species and 12 reversible reactions should be used in order to enable direct comparisons. Figure~\ref{fig:profiles_3-D_nonreacting} shows the initial profiles for temperature, heat release, mass fractions of H$_2$ and of O$_2$ (????). As it can be observed from this figure, the species profiles are now different along the fuel/oxidizer interface compared to those in the non-reacting case (Step 3), shown in Fig.~\ref{fig:profiles_3-D_nonreacting}. Now, the local species concentration corresponds to the equilibrium values obtained after initializing composition with Eqs.~\ref{eq:YF} and ~\ref{eq:YOx} at initial temperature $T_0=300$ K and atmospheric pressure; in this manner, the initial conditions already mimic a real flame front, with local composition and temperature in agreement with each other.

Again, periodic boundary conditions are used in each direction. There is thus no net fluxes of mass, momentum or energy in any direction: the simulation domain can thus be considered to be closed. As a consequence, and contrary to Step 3, the thermodynamic pressure evolves in time during the present simulation because of the heat released by the chemical reactions and of the resulting dilatation. To enable meaningful comparisons, it is necessary to take into account this effect in the energy or temperature equation: \begin{eqnarray} \frac{\partial T}{\partial t}+ u_j \frac{\partial T}{\partial x_j} &=& \frac{1}{\rho C_p}\left[\frac{dP_0}{dt}+\frac{\partial }{\partial x_j} \left(\lambda \frac{\partial T}{\partial x_j} \right) -\frac{\partial T}{\partial x_j} \sum_{k=1}^{N_s} \rho C_{p,k} Y_k \theta_{k,j} -\sum_{k=1}^{N_s} h_k \dot{\omega}_k\right]\, \label{eq:temp_energy}. \end{eqnarray} All symbols used in this equation are defined below. Usually, most simulations of low-Mach flow conditions assume thate the thermodynamic pressure $P_0$ does not vary in time in case of open boundaries, considering that $P_0$ corresponds to the surrounding (usually atmospheric) pressure; therefore, $dP_0/dt$ vanishes in Eq.~(\ref{eq:temp_energy}). On the other hand, for a closed computational domain -- as assumed here --, $P_0$ may change in time due to dilatation and must be evaluated at each timestep as follows~\cite{Motheau2016}:

\begin{eqnarray} P_0 = \frac{M_0 \, \mathrm{R}}{\int_\Omega \left( T \sum_{k=1}^{N_s} Y_k/W_k \right)^{-1} dV}\, \label{eq:thermod_p0}. \end{eqnarray}

This equation is obtained by integrating the equation of state for perfect gases on the whole computational domain while assuming that the total mass is fixed and that the thermodynamic pressure is homogeneous inside the domain. In Eqs.~(\ref{eq:temp_energy}) and (\ref{eq:thermod_p0}), $\rho$, $u_j$, $T$, $Y_k$, $W_k$, $N_s$, $C_{p,k}$, $h_k$, $\theta_{k,j}$ and $\mathrm{R}$ are the density of the gas mixture, $j$-th component of flow velocity, gas temperature, $k$-th species mass fraction, $k$-th species molecular weight, number of species, $k$-th species specific heat capacity at constant pressure, $k$-th species enthalpy, $j$-th component of the species molecular diffusion velocity for each species $k$, and ideal gas constant, respectively. Finally, if the system is closed, the total mass $M_0$ of the mixture inside the computational domain $\Omega$ can be computed as: \begin{eqnarray} M_0 = \int_\Omega \rho \, dV\,. \end{eqnarray} or an additional ODE on mass can be integrated if some mass fluxes are present at boundaries. All other physical and numerical parameters are identical for Step 3 and Step 4, the only difference between the two benchmarks being the activation of the reaction terms. As in Step 3, the simulation should be performed for a physical time of at least $t=0.5 \; \mathrm{ms} = 2 \tau_\mathrm{ref}$ and can be continued up to $t=2.5 \; \mathrm{ms} = 10 \tau_\mathrm{ref}$ for a full comparison with the data available on the benchmark repository~\cite{TGV-coria-cfd}.

Because of the various time-integration techniques used in each code it is difficult to give recommendations regarding the timestep here. For example, DINO being fully explicit, it is always limited by the Fourier Condition and thus uses small timesteps. On the other hand, YALES2 can treat diffusion implicitly and thus uses convective timestep as a limiter. Nek5000 has no operator splitting and uses implicit schemes: its timestep constraints are again different. In all cases, the chemical source terms are treated by a stiff integrator which is the only solution to deal with the extremly small timescales present in flames. The conservative values CFL=0.3 and Fo=0.2 that were proposed in Step 3 can be used as a first attempt. In any case, it is recommended to check that the timestep is small enough to not influence the final result.


Aside suggestions

Should we prove that it is the case for our codes? It could be done easily, for each mesh, on a small number of iterations, say simulate 0.1ms with 2 or 3 different timesteps. This could also be done for Step 2 and 3 actually


References

TBD