Difference between revisions of "User talk:Bossenne"
(→Work in progress, come back later ! =)-- Partie publique) |
(→Partie privée -- User's manual) |
||
Line 223: | Line 223: | ||
== Scalability Test == | == Scalability Test == | ||
− | =<center>Partie privée -- User's manual </b></center>= | + | =<center><b>Partie privée -- User's manual </b></center>= |
== Spatial discretization == | == Spatial discretization == | ||
Line 281: | Line 281: | ||
** Diff1 differentiates and changes the grid from the scalar one to a momentum component one, | ** Diff1 differentiates and changes the grid from the scalar one to a momentum component one, | ||
** Diff2 differentiates and changes a momentum component grid to the scalar one. | ** Diff2 differentiates and changes a momentum component grid to the scalar one. | ||
+ | |||
+ | == Parameters == | ||
+ | |||
+ | === fort.10 - Executable file === |
Revision as of 13:54, 25 June 2012
Work in progress, come back later ! -- Partie publique
Motivation
H-Allegro is a parallel, high accuracy, compressible, reactive, direct Navier Stokes solver (DNS). It is the MPI-parrallelized evolution of the former code ALLEGRO. From ALLEGRO, H-Allegro has mainly been developed by the PARALGO company, and two PhD students: Eric Albin and Marianne Sjostrand.
Equations and Hypotheses
Equations
Hypotheses
The hypotheses to simplify the Navier-Stokes equations are :
- The total energy balance according to Poinsot-Veynante is described below, if :
The term can be ignored with regard to , which is the heat release due to combustion.
This release can be defined by these equations : , where is the specific heat of reaction, is the standard enthalpy of formation and is the reaction rate.
is the power produced by volume forces on species k, considered as non-existent since there are no volume forces.
is the heat source term which is null here since there is no electric spark, laser or radiative flux.
is the mass fraction of the species k.
The tensor is composed of the tensor of constraints and the tensor of pressure :
Thanks to these hypotheses, the total energy balance becomes :
.
With corresponding to the heat release due to combustion, .
- The term is not used. It usually defines other forces like electromagnetical forces or weight.
- is either a fuel or a combustive source term.
if it is a fuel source term or if it is the oxidant one.
and are respectively the molar mass of fuel and oxidant.
- can be determined by the Arrhenius law :
- The heat flows due to mass fraction gradients and the species molecular distribution due to temperature gradients are neglicted (cf : Soret and Dufour).
- The termal conductivity, is given by :
Where is the Prandtl number :
This number compares the momemtum distribution with the heat distribution.
- The Lewis number for the species k, , is :
Where is the species diffusion.
We will consider the Lewis number egals to 1 in order to simplify the physics of the pre-mixture flame.
- The Schmidt number, , is :
- From the relation of these last three numbers, we can deduct that :
and
Therefore, the diffusion coefficient can be defined as :
- We use the Law of Fick which is a simplified diffusion law :
is the flux of particles density.
C is the particles density.
Thus the diffusion coefficients of the various species are characterized by the number of Lewis.
- We consider that the gas is a perfect, viscous, reagent and diatomic gas. As a consequence of the viscosity, the compressible effects are not dominating, which involves that the bulk viscosity is neglicted.
- The gas is reagent thus the mixture of various species is not isothermal, they must be individually followed. It implies that the calorific capacities depend on the temperature and on the composition.
- For a diatomic gas, the calorific capacities can be defined as follows :
- The gas respects the law of perfect gases :
- The combustion is an irreversible transformation whose creation of entropy is compensated with an entropy given by the system to the outside, because of a thermal transfer, thus we can consider that the transformation is isentropic. Consequently, the law of Laplace for the thermodynamics is applicable :
- According to the power law, the dynamic viscosity depends only on the temperature :
- The tensor of the constraints, by respecting the hypothesis of a Newtonian fluid, is :
The Kronecker symbol, , egals 1 if i=j, 0 else.
- The acoustic Reynolds number is defined such as :
c is the speed of sound : 340 m., L is the characteristic length and is the kinematic viscosity of air : 1.45e-5 m²..
Closure equations
Models
- Mixing : constant Schmidt number
- Chemistry : one step Arrhenius' law
- Viscosity : power law
Numerics
- Spatial : 6th-order finite difference scheme
- Temporal : 3rd order explicit time integration (Runge-Kutta3)
- Chemical :
- One step chemistry based on an Arrhenius' law
- partially premixed gas
- Boundary conditions : the 3D-NSCBC processing, applied in a referential attached to the local streamlines.
Data Structures
- 1D, 2D, 3D structured solver
- Optimized non-blocking MPI communications
- Homogeneous mesh refinement
- VTK post-treatment possible
- Binary files
- Unformatted Fortran90 format data files
Software Engineering
- Fortran90 with modules
- Keyword-based input file
Gallery
Performances
Scalability Test
Partie privée -- User's manual
Spatial discretization
Grid arrangements
H-Allegro uses a hybrid-colocated-staggered grid which allows a good accuracy and robustness of the code, while having an unambiguous definition of the boundary conditions.
For example, in 2D and for a rectangular structured grid, there are 4 grids, namely :
- a cell-centered grid, S, dedicated to the scalars , and
- different face-centered grids corresponding to momentum (or vector) components. In this case, 2 grids exist : for and for .
- a grid dedicated to the boundary conditions and that minimises the number of interpolations.
Finite differences
The finite differences method was discovered by Taylor Brook. Adapted by Lagrange to the resolution of differential equations, it makes it possible to interpolate or differentiate a discrete function, with a chosen accuracy.
is the step.
Actually, the accuracy of the scheme depends on the Stencil, which means it depends on the number of points taken into account in order to calculate the differential. A Stencil of 2 means that 2 points of each side are considered.
Taking into account the chosen numerical scheme and a symmetrical Stencil, the differential of a function at the point n is written :
avec et
N : value of the Stencil. : balancing ratio, giving more importance to the points near the considered one.
Formulae for the hybrid-colocated-staggered scheme :
- First point
- General case :
Interpolation and differentiation operations
In order to calculate the various variable, the code uses interpolations and differentiations. Multidimensional arrangements are considered as combinations of monodimensional arrangements, which means that operators defined in 1D will be also used in 3D to do inerpolation and differentiation operations.
- The interpolation is specially used in order to change the grid (for example, needing the value of the scalar to obtain the value of a component). There are 2 interpolations possible :
- changing from the scalar grid to a momentum component (or ) one, using the subroutine Interp1,
- changing from a momentum component (or ) grid to the scalar one, using the subroutine Interp2.
- The differentiation is used to differentiate, but it also changes the grid.
- Diff1 differentiates and changes the grid from the scalar one to a momentum component one,
- Diff2 differentiates and changes a momentum component grid to the scalar one.