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_physprop2 &
29
!===============================================================================
33
! CALCUL DES PROPRIETES PHYSIQUES DE LA PHASE DISPERSEE
37
! FRACTION MASSIQUE DE LIQUIDE
38
! ET CLIPPING EVENTUELS
41
! ET CLIPPING EVENTUELS
44
!__________________.____._____.________________________________________________.
45
! name !type!mode ! role !
46
!__________________!____!_____!________________________________________________!
47
! ncelet ! i ! <-- ! number of extended (real + ghost) cells !
48
! ncel ! i ! <-- ! number of cells !
49
! rtp ! tr ! <-- ! variables de calcul au centre des !
50
! (ncelet,*) ! ! ! cellules (instant courant) !
51
! propce(ncelet, *)! ra ! <-- ! physical properties at cell centers !
52
!__________________!____!_____!________________________________________________!
54
! TYPE : E (ENTIER), R (REEL), A (ALPHANUMERIQUE), T (TABLEAU)
55
! L (LOGIQUE) .. ET TYPES COMPOSES (EX : TR TABLEAU REEL)
56
! MODE : <-- donnee, --> resultat, <-> Donnee modifiee
57
! --- tableau de travail
58
!===============================================================================
60
!===============================================================================
62
!===============================================================================
78
!===============================================================================
86
double precision rtp(ncelet,*) , propce(ncelet,*)
91
integer n1 , n2 , ipcdia , ipcro2 , icla
92
double precision xnp , d1s3
93
double precision rhofol , diam2m , diam2x
95
!===============================================================================
97
!===============================================================================
99
!===============================================================================
103
!===============================================================================
104
! 2. CALCUL POUR CHAQUE CLASSE
105
! DE LA MASSE VOLUMIQUE DU FOL
106
! DE LA FRACTION MASSIQUE DE FOL
107
! DU DIAMETRE DU COKE
108
!===============================================================================
117
ipcdia = ipproc(idiam2(icla))
118
ipcro2 = ipproc(irom2 (icla))
123
propce(iel,ipcro2) = rho0fl
125
! --- Calcul du diametre de la particule
127
yfol = rtp(iel,isca(iyfol(icla)))
128
xnp = rtp(iel,isca(ing (icla)))
129
if ( yfol .gt. epsifl .and. (xnp*yfol) .gt. 0.d0) then
131
propce(iel,ipcdia) = ( (yfol / propce(iel,ipcro2) ) &
132
/(pi/6.d0 * xnp) ) ** d1s3
134
if ( propce(iel,ipcdia) .gt. dinifl(icla) ) then
136
diam2x = max(diam2x,propce(iel,ipcdia))
137
propce(iel,ipcdia) = dinifl(icla)
140
if ( propce(iel,ipcdia) .lt. diniin(icla) ) then
142
diam2m = min(diam2m,propce(iel,ipcdia))
143
propce(iel,ipcdia) = diniin(icla)
147
propce(iel,ipcdia) = dinifl(icla)
152
if (irangp.ge.0) then
165
if ( n1 .gt. 0 ) then
166
write(nfecra,1001) icla, n1, diam2x
168
if ( n2 .gt. 0 ) then
169
write(nfecra,1002) icla, n2, diam2m
178
1001 format(/,1X,' CLIPPING EN MAX DU DIAMETRE CLASSE :',I2, &
179
/,10X,' Nombre de points : ',I8, &
180
/,10X,' Valeur Max : ',G15.7)
181
1002 format(/,1X,' CLIPPING EN MIN DU DIAMETRE CLASSE :',I2, &
182
/,10X,' Nombre de points : ',I8, &
183
/,10X,' Valeur Min : ',G15.7)