1
!-------------------------------------------------------------------------------
3
! This file is part of Code_Saturne, a general-purpose CFD tool.
5
! Copyright (C) 1998-2011 EDF S.A.
7
! This program is free software; you can redistribute it and/or modify it under
8
! the terms of the GNU General Public License as published by the Free Software
9
! Foundation; either version 2 of the License, or (at your option) any later
12
! This program is distributed in the hope that it will be useful, but WITHOUT
13
! ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
! FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17
! You should have received a copy of the GNU General Public License along with
18
! this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
19
! Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
!-------------------------------------------------------------------------------
23
subroutine cs_fuel_varpos
24
!========================
25
!===============================================================================
29
! INIT DES POSITIONS DES VARIABLES TRANSPORTEES POUR
32
!-------------------------------------------------------------------------------
34
!__________________.____._____.________________________________________________.
35
! name !type!mode ! role !
36
!__________________!____!_____!________________________________________________!
37
!__________________!____!_____!________________________________________________!
39
! TYPE : E (ENTIER), R (REEL), A (ALPHANUMERIQUE), T (TABLEAU)
40
! L (LOGIQUE) .. ET TYPES COMPOSES (EX : TR TABLEAU REEL)
41
! MODE : <-- donnee, --> resultat, <-> Donnee modifiee
42
! --- tableau de travail
43
!===============================================================================
45
!===============================================================================
47
!===============================================================================
64
!===============================================================================
70
!===============================================================================
71
! 1. DEFINITION DES POINTEURS
72
!===============================================================================
74
! ---> Variables propres a la suspension gaz - particules
79
! ---> Variables propres a la phase dispersee
83
ing(icla) = iscapp(is)
85
iyfol(icla) = iscapp(is)
87
ih2(icla) = iscapp(is)
90
! ---> Variables propres a la phase gaz
95
if ( noxyd .ge. 2 ) then
100
if ( noxyd .ge. 3 ) then
104
! combustion heterogene
111
if ( ieqco2 .ge. 1 ) then
115
! Transport du NOx : HCN, NOx et Hox
116
if ( ieqnox .eq. 1 ) then
125
!===============================================================================
126
! 2. PROPRIETES PHYSIQUES
127
! A RENSEIGNER OBLIGATOIREMENT (sinon pb dans varpos)
128
! - PROPRES AUX SCALAIRES : IVISLS, ISCAVR
129
! Rq : pas de variance associee a un scalaire dans notre cas
130
! - PROPRES A LA SUSPENSION : ICP
131
!===============================================================================
135
if ( iscavr(iscapp(isc)) .le. 0 ) then
137
! ---- Viscosite dynamique de reference relative au scalaire
139
ivisls(iscapp(isc)) = 0
145
! ---- Bien que l on soit en enthalpie on conserve un CP constant