Télécharger prija1.eso

Retour à la liste

Numérotation des lignes :

prija1
  1. C PRIJA1 SOURCE CB215821 20/11/25 13:36:49 10792
  2. SUBROUTINE PRIJA1(MELEMC,MLMCON,MLMPRI,IRN,IVN,IPN,IGAMN,IJACO)
  3. C
  4. C************************************************************************
  5. C
  6. C PROJET : CASTEM 2000
  7. C
  8. C NOM : PRIJA1
  9. C
  10. C DESCRIPTION : Voir PRIJAC
  11. C Cas deux dimensions, gaz "calorically perfect"
  12. C
  13. C LANGAGE : FORTRAN 77 + ESOPE 2000 (avec estensions CISI)
  14. C
  15. C AUTEUR : A. BECCANTINI, DM2S/SFME/LTMF
  16. C
  17. C************************************************************************
  18. C
  19. C ENTREES
  20. C
  21. C MELEMC : SPG des CHPOINTs
  22. C
  23. C MLMPRI : liste des inconnues primitives (P,v,T)
  24. C
  25. C MLMCON : liste des inconnues conservatives (rho, rhov, rhoet)
  26. C
  27. C IRN : CHPOINT CENTRE contenant la densité
  28. C
  29. C IVN : CHPOINT CENTRE contenant la vitesse
  30. C
  31. C IPN : CHPOINT CENTRE contenant la pression
  32. C
  33. C IGAM : CHPOINT CENTRE contenant le gamma
  34. C
  35. C SORTIES
  36. C
  37. C IJACO : pointeur de la MATRIK jacobienne
  38. C
  39. C************************************************************************
  40. C
  41. C HISTORIQUE (Anomalies et modifications éventuelles)
  42. C
  43. C HISTORIQUE : crée le 29.05.02
  44. C
  45. C************************************************************************
  46. C
  47. C
  48. C N.B.: On suppose qu'on a déjà controllé RO, P > 0
  49. C GAMMA \in (1,3)
  50. C Si non il faut le faire!!!
  51. C
  52. C************************************************************************
  53. C
  54. C
  55. C**** Variables de COOPTIO
  56. C
  57. C INTEGER IPLLB, IERPER, IERMAX, IERR, INTERR
  58. C & ,IOTER, IOLEC, IOIMP, IOCAR, IOACQ
  59. C & ,IOPER, IOSGB, IOGRA, IOSAU, IORES
  60. C & ,IECHO, IIMPI, IOSPI
  61. C & ,IDIM
  62. C & ,MCOORD
  63. C & ,IFOMOD, NIFOUR, IFOUR, NSDPGE, IONIVE
  64. C & ,NGMAXY, IZROSF, ISOTYP, IOSCR,LTEXLU
  65. C & ,NORINC,NORVAL,NORIND,NORVAD
  66. C & ,NUCROU, IPSAUV, IFICLE, IPREFI
  67. C
  68. IMPLICIT INTEGER(I-N)
  69. INTEGER IRN, IVN, IPN, IGAMN, IJACO, IGEOM, ICEN
  70. & , MP, NP, NBEL, NBME, NBSOUS
  71. & , NRIGE, NMATRI, NKID, NKMT
  72. C
  73. REAL*8 RHO,UX, UY, GAMMA
  74. CHARACTER*8 TYPE
  75. C
  76. C**** LES INCLUDES
  77. C
  78.  
  79. -INC PPARAM
  80. -INC CCOPTIO
  81. -INC SMCHPOI
  82. -INC SMELEME
  83. -INC SMLMOTS
  84. -INC SMLENTI
  85. POINTEUR MPVN.MPOVAL, MPRN.MPOVAL, MPGAM.MPOVAL
  86. POINTEUR MELEMC.MELEME
  87. POINTEUR RR.IZAFM, RUX.IZAFM, RUY.IZAFM, RP.IZAFM,
  88. & RUXR.IZAFM, RUXUX.IZAFM, RUXUY.IZAFM, RUXP.IZAFM,
  89. & RUYR.IZAFM, RUYUX.IZAFM, RUYUY.IZAFM, RUYP.IZAFM,
  90. & RETR.IZAFM, RETUX.IZAFM, RETUY.IZAFM, RETP.IZAFM
  91. POINTEUR MLMPRI.MLMOTS, MLMCON.MLMOTS
  92. C
  93. CALL LICHT(IVN,MPVN,TYPE,IGEOM)
  94. CALL LICHT(IRN,MPRN,TYPE,IGEOM)
  95. CALL LICHT(IGAMN,MPGAM,TYPE,IGEOM)
  96. C
  97. C SEGACT MPVN*MOD
  98. C SEGACT MPPN*MOD
  99. C SEGACT MPRN*MOD
  100. C
  101. C**** Maillage des inconnues primales = Maillage des inconnues primales
  102. C = MELEMC
  103. C
  104. C
  105. NRIGE = 7
  106. NMATRI = 1
  107. NKID = 9
  108. NKMT = 7
  109. C
  110. SEGINI MATRIK
  111. IJACO = MATRIK
  112. MATRIK.IRIGEL(1,1) = MELEMC
  113. MATRIK.IRIGEL(2,1) = MELEMC
  114. C
  115. C**** Matrice non symetrique
  116. C
  117. MATRIK.IRIGEL(7,1) = 2
  118. C
  119. NBME = 16
  120. NBSOUS = 1
  121. SEGINI IMATRI
  122. MATRIK.IRIGEL(4,1) = IMATRI
  123. C
  124. SEGACT MLMPRI
  125. IMATRI.LISPRI(1) = MLMPRI.MOTS(1)
  126. IMATRI.LISPRI(2) = MLMPRI.MOTS(2)
  127. IMATRI.LISPRI(3) = MLMPRI.MOTS(3)
  128. IMATRI.LISPRI(4) = MLMPRI.MOTS(4)
  129. IMATRI.LISPRI(5) = MLMPRI.MOTS(1)
  130. IMATRI.LISPRI(6) = MLMPRI.MOTS(2)
  131. IMATRI.LISPRI(7) = MLMPRI.MOTS(3)
  132. IMATRI.LISPRI(8) = MLMPRI.MOTS(4)
  133. IMATRI.LISPRI(9) = MLMPRI.MOTS(1)
  134. IMATRI.LISPRI(10) = MLMPRI.MOTS(2)
  135. IMATRI.LISPRI(11) = MLMPRI.MOTS(3)
  136. IMATRI.LISPRI(12) = MLMPRI.MOTS(4)
  137. IMATRI.LISPRI(13) = MLMPRI.MOTS(1)
  138. IMATRI.LISPRI(14) = MLMPRI.MOTS(2)
  139. IMATRI.LISPRI(15) = MLMPRI.MOTS(3)
  140. IMATRI.LISPRI(16) = MLMPRI.MOTS(4)
  141. SEGDES MLMPRI
  142. C
  143. SEGACT MLMCON
  144. IMATRI.LISDUA(1) = MLMCON.MOTS(1)
  145. IMATRI.LISDUA(2) = MLMCON.MOTS(1)
  146. IMATRI.LISDUA(3) = MLMCON.MOTS(1)
  147. IMATRI.LISDUA(4) = MLMCON.MOTS(1)
  148. IMATRI.LISDUA(5) = MLMCON.MOTS(2)
  149. IMATRI.LISDUA(6) = MLMCON.MOTS(2)
  150. IMATRI.LISDUA(7) = MLMCON.MOTS(2)
  151. IMATRI.LISDUA(8) = MLMCON.MOTS(2)
  152. IMATRI.LISDUA(9) = MLMCON.MOTS(3)
  153. IMATRI.LISDUA(10) = MLMCON.MOTS(3)
  154. IMATRI.LISDUA(11) = MLMCON.MOTS(3)
  155. IMATRI.LISDUA(12) = MLMCON.MOTS(3)
  156. IMATRI.LISDUA(13) = MLMCON.MOTS(4)
  157. IMATRI.LISDUA(14) = MLMCON.MOTS(4)
  158. IMATRI.LISDUA(15) = MLMCON.MOTS(4)
  159. IMATRI.LISDUA(16) = MLMCON.MOTS(4)
  160. SEGDES MLMCON
  161. C
  162. SEGACT MELEMC
  163. NBEL = MELEMC.NUM(/2)
  164. SEGDES MELEMC
  165. NBSOUS = 1
  166. NP = 1
  167. MP = 1
  168. SEGINI RR , RUX , RUY , RP ,
  169. & RUXR , RUXUX , RUXUY , RUXP ,
  170. & RUYR , RUYUX , RUYUY , RUYP ,
  171. & RETR , RETUX , RETUY , RETP
  172. C
  173. C**** Duale = IMATRI.LISDUA(1) = 'RN'
  174. C Primale = IMATRI.LISPRI(4) = 'P'
  175. C -> IMATRI.LIZAFM(1,4) = RP
  176. C
  177. IMATRI.LIZAFM(1,1) = RR
  178. IMATRI.LIZAFM(1,2) = RUX
  179. IMATRI.LIZAFM(1,3) = RUY
  180. IMATRI.LIZAFM(1,4) = RP
  181. IMATRI.LIZAFM(1,5) = RUXR
  182. IMATRI.LIZAFM(1,6) = RUXUX
  183. IMATRI.LIZAFM(1,7) = RUXUY
  184. IMATRI.LIZAFM(1,8) = RUXP
  185. IMATRI.LIZAFM(1,9) = RUYR
  186. IMATRI.LIZAFM(1,10) = RUYUX
  187. IMATRI.LIZAFM(1,11) = RUYUY
  188. IMATRI.LIZAFM(1,12) = RUYP
  189. IMATRI.LIZAFM(1,13) = RETR
  190. IMATRI.LIZAFM(1,14) = RETUX
  191. IMATRI.LIZAFM(1,15) = RETUY
  192. IMATRI.LIZAFM(1,16) = RETP
  193. C
  194. DO ICEN = 1, NBEL, 1
  195. RHO=MPRN.VPOCHA(ICEN,1)
  196. UX=MPVN.VPOCHA(ICEN,1)
  197. UY=MPVN.VPOCHA(ICEN,2)
  198. GAMMA=MPGAM.VPOCHA(ICEN,1)
  199. C
  200. C********AB.AM(IFAC,IPRIM,IDUAL)
  201. C A = nom de l'inconnu duale (Ro,rUX,rUY,RET)
  202. C B = nom de l'inconnu primale (Ro,UX,UY,P)
  203. C
  204. C******* Dual RN
  205. C
  206. RR.AM(ICEN,1,1) = 1.0D0
  207. RUX.AM(ICEN,1,1) = 0.0D0
  208. RUY.AM(ICEN,1,1) = 0.0D0
  209. RP.AM(ICEN,1,1) = 0.0D0
  210. C
  211. C******* Dual RUXN
  212. C
  213. RUXR.AM(ICEN,1,1) = UX
  214. RUXUX.AM(ICEN,1,1) = RHO
  215. RUXUY.AM(ICEN,1,1) = 0.0D0
  216. RUXP.AM(ICEN,1,1) = 0.0D0
  217. C
  218. C******* Dual RUYN
  219. C
  220. RUYR.AM(ICEN,1,1) = UY
  221. RUYUX.AM(ICEN,1,1) = 0.0D0
  222. RUYUY.AM(ICEN,1,1) = RHO
  223. RUYP.AM(ICEN,1,1) = 0.0D0
  224. C
  225. C********Dual RETN
  226. C
  227. RETR.AM(ICEN,1,1) = 0.5D0*((UX*UX)+(UY*UY))
  228. RETUX.AM(ICEN,1,1) = RHO*UX
  229. RETUY.AM(ICEN,1,1) = RHO*UY
  230. RETP.AM(ICEN,1,1) = 1.0D0/(GAMMA - 1.0D0)
  231. C
  232. ENDDO
  233. C
  234. SEGDES MPVN
  235. SEGDES MPRN
  236. SEGDES MPGAM
  237. C
  238. SEGDES MATRIK
  239. SEGDES IMATRI
  240. C
  241. SEGDES RR , RUX , RUY , RP ,
  242. & RUXR , RUXUX , RUXUY , RUXP ,
  243. & RUYR , RUYUX , RUYUY , RUYP ,
  244. & RETR , RETUX , RETUY , RETP
  245. C
  246. RETURN
  247. END
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  

© Cast3M 2003 - Tous droits réservés.
Mentions légales