~ubuntu-branches/ubuntu/precise/code-saturne/precise

« back to all changes in this revision

Viewing changes to include/pprt/ppthch.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-24 00:00:08 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20111124000008-2vo99e38267942q5
Tags: 2.1.0-3
Install a missing file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
!-------------------------------------------------------------------------------
2
 
 
3
 
!     This file is part of the Code_Saturne Kernel, element of the
4
 
!     Code_Saturne CFD tool.
5
 
 
6
 
!     Copyright (C) 1998-2009 EDF S.A., France
7
 
 
8
 
!     contact: saturne-support@edf.fr
9
 
 
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.
14
 
 
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.
19
 
 
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
25
 
 
26
 
!-------------------------------------------------------------------------------
27
 
 
28
 
!                             ppthch.h
29
 
 
30
 
!===============================================================================
31
 
 
32
 
!            INCLUDE THERMOCHIMIE POUR LA PHYSIQUE PARTICULIERE
33
 
 
34
 
!-------------------------------------------------------------------------------
35
 
 
36
 
 
37
 
 
38
 
!--> CONSTANTES THERMOCHIMIE
39
 
 
40
 
!       RR           --> Constante des gaz parfaits en J/mol/K
41
 
!       TREFTH       --> Temperature de reference (K)
42
 
!       VOLMOL       --> Volume molaire dans les conditions NTP
43
 
!                        T = 0 C et P = 1 atm
44
 
 
45
 
double precision rr
46
 
double precision trefth, prefth, volmol
47
 
parameter ( rr     = 8.31434d0      ,                             &
48
 
            trefth = 25.d0 + tkelvi ,                             &
49
 
            prefth = 1.01325d5      ,                             &
50
 
            volmol = 22.41d-3       )
51
 
 
52
 
!--> DONNEES
53
 
 
54
 
!       NRGAZ        --> Nb de reactions globales en phase gaz
55
 
!       NRGAZM       --> Nb maximal de reactions globales en phase gaz
56
 
!       NATO         --> Nb d especes atomiques (C,H,..)
57
 
!       NATOM        --> Nb maximal d especes atomiques (C,H,..)
58
 
!       NGAZE        --> Nb de constituants gazeux elementaires
59
 
!       NGAZEM       --> Nb maximal de constituants gazeux elementaires
60
 
!       NGAZG        --> Nb d especes globales (ex:Fuel,Oxyd,Prod1,Prod2)
61
 
!       NGAZGM       --> Nb maximal d especes globales
62
 
!       NPO          --> Nb de points de tabulation
63
 
!       NPOT         --> Nb maximal de points de tabulation
64
 
!       TH           --> Temperature en Kelvin
65
 
!       EHGAZG(G,IT) --> Enthalpie massique (J/kg) de l espece globale
66
 
!                        no G a la temperature T(IT)
67
 
!       WMOLG(G)     --> Masse molaire de l espece globale
68
 
!       EHGAZE(G)    --> Enthalpie massique (J/kg) constituant gazeux
69
 
!                        elementaire no E a la temperature T(IT)
70
 
!       WMOLE(G)     --> Masse molaire du constituant gazeux elementaire
71
 
!       WMOLAT(E)    --> Masse molaire des atomes (C,H,..)
72
 
!       IATC, IATH   --> Pointeur dans WMOLEL pour les ecpeces
73
 
!       IATO, IATN, IATS       elementaires (C,H,..)
74
 
!       FS(R)        --> Taux de melange pour la reaction gloable R
75
 
!       STOEG(G,R)   --> Stoechio en especes globales des reactions
76
 
!                        pour l espece no G et pour la reaction no R
77
 
!       CKABSG(G)    --> Coefficient d'absorption des especes globales
78
 
!       CKABS1       --> Coefficient d'absorption du melange gazeux
79
 
!                        (en CP)
80
 
!       DIFTL0       --> Diffusivite dynamique en kg/(m s)
81
 
 
82
 
integer    ngazgm, ngazem, npot, natom, nrgazm
83
 
parameter( ngazgm = 25 , ngazem = 20 ,                            &
84
 
           npot  = 500 , natom  = 5   , nrgazm = 1 )
85
 
integer    iatc, iath, iato, iatn , iats
86
 
parameter( iatc = 1, iath = 2, iato = 3, iatn = 4 , iats = 5 )
87
 
 
88
 
integer           npo, ngaze, ngazg, nato, nrgaz
89
 
common / tchppi / npo, ngaze, ngazg, nato, nrgaz
90
 
 
91
 
double precision  th(npot),                                       &
92
 
                  ehgaze(ngazem,npot), ehgazg(ngazgm,npot),       &
93
 
                  wmole(ngazem), wmolg(ngazgm), wmolat(natom),    &
94
 
                  stoeg(ngazgm,nrgazm), fs(nrgazm),               &
95
 
                  ckabsg(ngazgm), ckabs1,                         &
96
 
                  diftl0, xco2, xh2o
97
 
! ..v.7..1....v    ....2....v....3....v....4....v....5....v....6....v....7.I
98
 
common / tchppr / th, ehgaze, ehgazg, wmole, wmolg, wmolat,       &
99
 
                  stoeg, fs, ckabsg, ckabs1, diftl0, xco2, xh2o
100
 
 
101