User talk:Ferrandm

From www.coria-cfd.fr
Revision as of 15:23, 25 June 2012 by Ferrandm (Talk | contribs) (Job)

Jump to: navigation, search

Hypotheses

The hypotheses to simplify the Navier-Stokes equations are :

  • The total energy balance according to Poinsot-Veynante is descreibed below, if  :

The term can be ignored with regard to , which is the heat release due to combustion.

This release can be defined by this 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.

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 which corresponds to the heat release due to combustion, .


  • The term is not used. Thanks to it we can define other forces like electromagnetical force or weight.
  • is either a fuel or a combustive source term.

if it is a fuel source term or if it is an oxidant source term.

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 flame of pre-mixture.

  • 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. Consequently as the gas is viscous, the compressible effects are not dominating. What involves that the bulk viscosity is useless.
  • 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 the creation of entropy is compensated with an entropy given up 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

     


Time discretization

A third order Runge-Kutta method is used. This one allows to improve the precision of time integration and the stability.

The equations used in H-Allegro are defined below :

is the matrix of gross conservative data at the ith step and at the time t.

is the same matrix as before at the time .

and are Np x Nvar matrix, with Np, number of points and Nvar, number of variables.

Parameters

Makefile

The makefile allows to compile routines and subroutines.

In order to compile, the command "make" will be typped in the terminal.

The default target of this file is "all : :".

The configuration of compilation can be modified :

  • FC indicates what is the used language. For instance : if the language is fortran90, it would be written FC = mpif90.
  • CCFLAGS and FFLAGS represent the options of compilation. If the used language is C, then the options would be indicated for the variable CCFLAGS, otherwise if the language is fortran90, then the options would be indicated for the variable FFLAGS.

For instance, FFLAGS = -O3 -ipo -p means that the used language is fortran90.

-p is an option of compilation. It is used in order to have gprof commande.

Since various computer can be used, the compilation have to be conditional. That is to say that several configurations of compilation are available in function of the computer.

The common files of the executable for calculation and the common files of the executable for postprocessing have to be defined.

For example : all : : Mezo3D df6_pospro

COMMON_OBJS += communs.o

COMMON_OBJS += lectus.o

Then Allegro files are compiled and then an executable is created.

Mezo3D : $(ALLEGRO_OBJS)

$(QUIET_LINK)$(FC) $(FFLAGS) -o $@ $(filter %.o,$ ˆ)

The same thing is done for the postprocessing files :

df6_pospro : $(POSTPRO_OBJS)

$(QUIET_LINK)$(FC) $(FFLAGS) -o $@ $(filter %.o,$ˆ)

An option named clean is available. This one allows to erase files with extensions .o, .mod, .d. The executable files, the solution files and the gmon.out files are also deleted.

It is possible to change this option if necessary .

Executable

Vtk_bin_write

Job

The job file is used if the calculation of the problem is made on a computer which is not local.

The extension of this file is .ll because it is a LoadLeveler file.

A job has to be created like this :

  • Working name : locating more easily the calculations.
@ job_name = $NAME-$dir 
  • Standard exit file :
@ output = \$(job_name).o\$(jobid)
  • Error exit file :
@ error = \$(job_name).e\$(jobid)
  • Working type :
@ job_type = MPICH
  • Total number of wanted processors :
@ total_tasks = $NP
  • Maximal elapsed time for the job :
@ wall_clock_limit = 30 :00 :00
  • Maximal memory by core : if an error occurs because of the number of processors, this limit can be raised.
@ data_limit = 550mb
  • Initial directory to send : this directory contains all the data for the calculation.
@ cri_initialdir = $PWD/$dir/IN
  • Final directory for the results :
@ cri_finaldir = $PWD/$dir/OUT.

Launch-run

Test case

Scaling

Profiling

Model of calculation

Time discretization

Spatial discretization