1
1
!-------------------------------------------------------------------------------
3
! This file is part of the Code_Saturne Kernel, element of the
4
! Code_Saturne CFD tool.
6
! Copyright (C) 1998-2009 EDF S.A., France
8
! contact: saturne-support@edf.fr
10
! The Code_Saturne Kernel is free software; you can redistribute it
11
! and/or modify it under the terms of the GNU General Public License
12
! as published by the Free Software Foundation; either version 2 of
13
! the License, or (at your option) any later version.
15
! The Code_Saturne Kernel is distributed in the hope that it will be
16
! useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17
! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
! GNU General Public License for more details.
20
! You should have received a copy of the GNU General Public License
21
! along with the Code_Saturne Kernel; if not, write to the
22
! Free Software Foundation, Inc.,
23
! 51 Franklin St, Fifth Floor,
24
! Boston, MA 02110-1301 USA
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.
26
21
!-------------------------------------------------------------------------------
32
27
!===============================================================================
36
! INIT DES OPTIONS DES VARIABLES POUR LE MODULE AEROREFRIGERANTS
37
! EN COMPLEMENT DE CE QUI A DEJA ETE FAIT DANS USINI1
31
! Initialize global settings for cooling towers module
32
! in addition to what has been done in usini1.
39
34
!-------------------------------------------------------------------------------
43
38
!__________________!____!_____!________________________________________________!
44
39
!__________________!____!_____!________________________________________________!
46
! TYPE : E (ENTIER), R (REEL), A (ALPHANUMERIQUE), T (TABLEAU)
47
! L (LOGIQUE) .. ET TYPES COMPOSES (EX : TR TABLEAU REEL)
48
! MODE : <-- donnee, --> resultat, <-> Donnee modifiee
49
! --- tableau de travail
41
! Type: i (integer), r (real), s (string), a (array), l (logical),
42
! and composite types (ex: ra real array)
43
! mode: <-- input, --> output, <-> modifies data, --- work array
44
!===============================================================================
46
!===============================================================================
48
!===============================================================================
50
62
!===============================================================================
54
!===============================================================================
56
!===============================================================================
70
!===============================================================================
74
integer iphas, ii, jj, isc, ipp
76
!===============================================================================
78
!===============================================================================
79
! 0. VERIFICATION ISCALT, ISCSTH
80
!===============================================================================
81
! L'utilisateur ne doit pas y avoir touche.
84
if(iscalt(iphas).ne.-1) then
85
write(nfecra,1000)iphas,iscalt(iphas)
68
integer ii, jj, isc, ipp
70
!===============================================================================
72
!===============================================================================
73
! 0. Check iscalt, iscsth
74
!===============================================================================
75
! The user should not have modified them.
78
write(nfecra,1000)iscalt
91
83
if(iscsth(iscapp(ii)).ne.-10) then
92
84
write(nfecra,1001)ii,iscapp(ii),iscapp(ii),iscsth(iscapp(ii))
99
91
!===============================================================================
100
! 1. VARIABLES TRANSPORTEES
92
! 1. Transported variables
101
93
!===============================================================================
103
95
iscsth(itemp4) = 1
104
96
iscsth(ihumid) = 0
107
iscalt(iphas) = itemp4
112
! --> Donnees physiques ou numeriques propres aux scalaires
103
! --> Physical or numerical properties specific to scalars
114
105
do isc = 1, nscapp
118
109
if (iscavr(jj).le.0) then
119
visls0(jj) = viscl0(iphsca(jj))
122
113
blencv(isca(jj)) = 1.d0
128
ipp = ipprtp(isca(itemp4))
129
NOMVAR(IPP) = 'Temperature'
134
ipp = ipprtp(isca(ihumid))
135
NOMVAR(IPP) = 'Humidite'
117
ipp = ipprtp(isca(itemp4))
118
nomvar(ipp) = 'Temperature'
123
ipp = ipprtp(isca(ihumid))
124
nomvar(ipp) = 'Humidity'
129
! Postprocessing output
142
133
!===============================================================================
143
! 2. ON DONNE LA MAIN A L'UTLISATEUR
134
! 2. Define user settings
144
135
!===============================================================================
163
154
'@ L''utilisateur ne doit pas la renseigner dans usini1, or ',/,&
164
155
'@ elle a ete affectee comme suit : ',/,&
165
'@ ISCALT(',I10 ,') = ',I10 ,/,&
156
'@ ISCALT = ',I10 ,/,&
167
158
'@ Le calcul ne sera pas execute. ',/,&