Télécharger prija2.eso

Retour à la liste

Numérotation des lignes :

  1. C PRIJA2 SOURCE PV 16/11/17 22:01:09 9180
  2. SUBROUTINE PRIJA2(MELEMC,MLMCON,MLMPRI,IRN,IVN,IPN,IGAMN,IJACO)
  3. C
  4. C************************************************************************
  5. C
  6. C PROJET : CASTEM 2000
  7. C
  8. C NOM : PRIJA2
  9. C
  10. C DESCRIPTION : Voir PRIJA1
  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, UZ, GAMMA
  74. CHARACTER*8 TYPE
  75. C
  76. C**** LES INCLUDES
  77. C
  78. -INC CCOPTIO
  79. -INC SMCHPOI
  80. -INC SMELEME
  81. -INC SMLMOTS
  82. -INC SMLENTI
  83. POINTEUR MPVN.MPOVAL, MPRN.MPOVAL, MPGAM.MPOVAL
  84. POINTEUR MELEMC.MELEME
  85. POINTEUR RR.IZAFM, RUX.IZAFM, RUY.IZAFM, RUZ.IZAFM, RP.IZAFM,
  86. & UXR.IZAFM, UXUX.IZAFM, UXUY.IZAFM, UXUZ.IZAFM,
  87. & UXP.IZAFM,
  88. & UYR.IZAFM, UYUX.IZAFM, UYUY.IZAFM, UYUZ.IZAFM,
  89. & UYP.IZAFM,
  90. & UZR.IZAFM, UZUX.IZAFM, UZUY.IZAFM, UZUZ.IZAFM,
  91. & UZP.IZAFM,
  92. & RETR.IZAFM, RETUX.IZAFM, RETUY.IZAFM, RETUZ.IZAFM,
  93. & RETP.IZAFM
  94. POINTEUR MLMPRI.MLMOTS, MLMCON.MLMOTS
  95. C
  96. CALL LICHT(IVN,MPVN,TYPE,IGEOM)
  97. CALL LICHT(IRN,MPRN,TYPE,IGEOM)
  98. CALL LICHT(IGAMN,MPGAM,TYPE,IGEOM)
  99. C
  100. C SEGACT MPVN*MOD
  101. C SEGACT MPPN*MOD
  102. C SEGACT MPRN*MOD
  103. C
  104. C**** Maillage des inconnues primales = Maillage des inconnues primales
  105. C = MELEMC
  106. C
  107. C
  108. NRIGE = 7
  109. NMATRI = 1
  110. NKID = 9
  111. NKMT = 7
  112. C
  113. SEGINI MATRIK
  114. IJACO = MATRIK
  115. MATRIK.IRIGEL(1,1) = MELEMC
  116. MATRIK.IRIGEL(2,1) = MELEMC
  117. C
  118. C**** Matrice non symetrique
  119. C
  120. MATRIK.IRIGEL(7,1) = 2
  121. C
  122. NBME = 25
  123. NBSOUS = 1
  124. SEGINI IMATRI
  125. MATRIK.IRIGEL(4,1) = IMATRI
  126. C
  127. SEGACT MLMPRI
  128. C-----------------------------------------------
  129. IMATRI.LISPRI(1) = MLMPRI.MOTS(1)
  130. IMATRI.LISPRI(2) = MLMPRI.MOTS(2)
  131. IMATRI.LISPRI(3) = MLMPRI.MOTS(3)
  132. IMATRI.LISPRI(4) = MLMPRI.MOTS(4)
  133. IMATRI.LISPRI(5) = MLMPRI.MOTS(5)
  134. C-----------------------------------------------
  135. IMATRI.LISPRI(6) = MLMPRI.MOTS(1)
  136. IMATRI.LISPRI(7) = MLMPRI.MOTS(2)
  137. IMATRI.LISPRI(8) = MLMPRI.MOTS(3)
  138. IMATRI.LISPRI(9) = MLMPRI.MOTS(4)
  139. IMATRI.LISPRI(10) = MLMPRI.MOTS(5)
  140. C-----------------------------------------------
  141. IMATRI.LISPRI(11) = MLMPRI.MOTS(1)
  142. IMATRI.LISPRI(12) = MLMPRI.MOTS(2)
  143. IMATRI.LISPRI(13) = MLMPRI.MOTS(3)
  144. IMATRI.LISPRI(14) = MLMPRI.MOTS(4)
  145. IMATRI.LISPRI(15) = MLMPRI.MOTS(5)
  146. C-----------------------------------------------
  147. IMATRI.LISPRI(16) = MLMPRI.MOTS(1)
  148. IMATRI.LISPRI(17) = MLMPRI.MOTS(2)
  149. IMATRI.LISPRI(18) = MLMPRI.MOTS(3)
  150. IMATRI.LISPRI(19) = MLMPRI.MOTS(4)
  151. IMATRI.LISPRI(20) = MLMPRI.MOTS(5)
  152. C-----------------------------------------------
  153. IMATRI.LISPRI(21) = MLMPRI.MOTS(1)
  154. IMATRI.LISPRI(22) = MLMPRI.MOTS(2)
  155. IMATRI.LISPRI(23) = MLMPRI.MOTS(3)
  156. IMATRI.LISPRI(24) = MLMPRI.MOTS(4)
  157. IMATRI.LISPRI(25) = MLMPRI.MOTS(5)
  158. C-----------------------------------------------
  159. SEGDES MLMPRI
  160. C
  161. SEGACT MLMCON
  162. C-----------------------------------------------
  163. IMATRI.LISDUA(1) = MLMCON.MOTS(1)
  164. IMATRI.LISDUA(2) = MLMCON.MOTS(1)
  165. IMATRI.LISDUA(3) = MLMCON.MOTS(1)
  166. IMATRI.LISDUA(4) = MLMCON.MOTS(1)
  167. IMATRI.LISDUA(5) = MLMCON.MOTS(1)
  168. C-----------------------------------------------
  169. IMATRI.LISDUA(6) = MLMCON.MOTS(2)
  170. IMATRI.LISDUA(7) = MLMCON.MOTS(2)
  171. IMATRI.LISDUA(8) = MLMCON.MOTS(2)
  172. IMATRI.LISDUA(9) = MLMCON.MOTS(2)
  173. IMATRI.LISDUA(10) = MLMCON.MOTS(2)
  174. C-----------------------------------------------
  175. IMATRI.LISDUA(11) = MLMCON.MOTS(3)
  176. IMATRI.LISDUA(12) = MLMCON.MOTS(3)
  177. IMATRI.LISDUA(13) = MLMCON.MOTS(3)
  178. IMATRI.LISDUA(14) = MLMCON.MOTS(3)
  179. IMATRI.LISDUA(15) = MLMCON.MOTS(3)
  180. C-----------------------------------------------
  181. IMATRI.LISDUA(16) = MLMCON.MOTS(4)
  182. IMATRI.LISDUA(17) = MLMCON.MOTS(4)
  183. IMATRI.LISDUA(18) = MLMCON.MOTS(4)
  184. IMATRI.LISDUA(19) = MLMCON.MOTS(4)
  185. IMATRI.LISDUA(20) = MLMCON.MOTS(4)
  186. C-----------------------------------------------
  187. IMATRI.LISDUA(21) = MLMCON.MOTS(5)
  188. IMATRI.LISDUA(22) = MLMCON.MOTS(5)
  189. IMATRI.LISDUA(23) = MLMCON.MOTS(5)
  190. IMATRI.LISDUA(24) = MLMCON.MOTS(5)
  191. IMATRI.LISDUA(25) = MLMCON.MOTS(5)
  192. C-----------------------------------------------
  193. SEGDES MLMCON
  194. C
  195. SEGACT MELEMC
  196. NBEL = MELEMC.NUM(/2)
  197. SEGDES MELEMC
  198. NBSOUS = 1
  199. NP = 1
  200. MP = 1
  201. SEGINI RR , RUX , RUY , RUZ, RP ,
  202. & UXR , UXUX , UXUY , UXUZ, UXP ,
  203. & UYR , UYUX , UYUY , UYUZ, UYP ,
  204. & UZR , UZUX , UZUY , UZUZ, UZP ,
  205. & RETR , RETUX , RETUY , RETUZ, RETP
  206. C
  207. C**** Duale = IMATRI.LISDUA(1) = 'RN'
  208. C Primale = IMATRI.LISPRI(4) = 'P'
  209. C -> IMATRI.LIZAFM(1,4) = RP
  210. C
  211. C-----------------------------------------------
  212. IMATRI.LIZAFM(1,1) = RR
  213. IMATRI.LIZAFM(1,2) = RUX
  214. IMATRI.LIZAFM(1,3) = RUY
  215. IMATRI.LIZAFM(1,4) = RUZ
  216. IMATRI.LIZAFM(1,5) = RP
  217. C-----------------------------------------------
  218. IMATRI.LIZAFM(1,6) = UXR
  219. IMATRI.LIZAFM(1,7) = UXUX
  220. IMATRI.LIZAFM(1,8) = UXUY
  221. IMATRI.LIZAFM(1,9) = UXUZ
  222. IMATRI.LIZAFM(1,10) = UXP
  223. C-----------------------------------------------
  224. IMATRI.LIZAFM(1,11) = UYR
  225. IMATRI.LIZAFM(1,12) = UYUX
  226. IMATRI.LIZAFM(1,13) = UYUY
  227. IMATRI.LIZAFM(1,14) = UYUZ
  228. IMATRI.LIZAFM(1,15) = UYP
  229. C------------------------------------------------
  230. IMATRI.LIZAFM(1,16) = UZR
  231. IMATRI.LIZAFM(1,17) = UZUX
  232. IMATRI.LIZAFM(1,18) = UZUY
  233. IMATRI.LIZAFM(1,19) = UZUZ
  234. IMATRI.LIZAFM(1,20) = UZP
  235. C-----------------------------------------------
  236. IMATRI.LIZAFM(1,21) = RETR
  237. IMATRI.LIZAFM(1,22) = RETUX
  238. IMATRI.LIZAFM(1,23) = RETUY
  239. IMATRI.LIZAFM(1,24) = RETUZ
  240. IMATRI.LIZAFM(1,25) = RETP
  241. C-----------------------------------------------
  242. C
  243. DO ICEN = 1, NBEL, 1
  244. RHO=MPRN.VPOCHA(ICEN,1)
  245. UX=MPVN.VPOCHA(ICEN,1)
  246. UY=MPVN.VPOCHA(ICEN,2)
  247. UZ=MPVN.VPOCHA(ICEN,3)
  248. GAMMA=MPGAM.VPOCHA(ICEN,1)
  249. C
  250. C********AB.AM(IFAC,IPRIM,IDUAL)
  251. C A = nom de l'inconnu duale (Ro,rUX,rUY,RET)
  252. C B = nom de l'inconnu primale (Ro,UX,UY,P)
  253. C
  254. C******* Dual RN
  255. C
  256. RR.AM(ICEN,1,1) = 1.0D0
  257. RUX.AM(ICEN,1,1) = 0.0D0
  258. RUY.AM(ICEN,1,1) = 0.0D0
  259. RUZ.AM(ICEN,1,1) = 0.0D0
  260. RP.AM(ICEN,1,1) = 0.0D0
  261. C
  262. C******* Dual RUXN
  263. C
  264. UXR.AM(ICEN,1,1) = UX
  265. UXUX.AM(ICEN,1,1) = RHO
  266. UXUY.AM(ICEN,1,1) = 0.0D0
  267. UXUZ.AM(ICEN,1,1) = 0.0D0
  268. UXP.AM(ICEN,1,1) = 0.0D0
  269. C
  270. C******* Dual RUYN
  271. C
  272. UYR.AM(ICEN,1,1) = UY
  273. UYUX.AM(ICEN,1,1) = 0.0D0
  274. UYUY.AM(ICEN,1,1) = RHO
  275. UYUZ.AM(ICEN,1,1) = 0.0D0
  276. UYP.AM(ICEN,1,1) = 0.0D0
  277. C
  278. C******* Dual RUZN
  279. C
  280. UZR.AM(ICEN,1,1) = UZ
  281. UZUX.AM(ICEN,1,1) = 0.0D0
  282. UZUY.AM(ICEN,1,1) = 0.0D0
  283. UZUZ.AM(ICEN,1,1) = RHO
  284. UZP.AM(ICEN,1,1) = 0.0D0
  285. C
  286. C********Dual RETN
  287. C
  288. RETR.AM(ICEN,1,1) = 0.5D0*((UX*UX)+(UY*UY)+(UZ*UZ))
  289. RETUX.AM(ICEN,1,1) = RHO*UX
  290. RETUY.AM(ICEN,1,1) = RHO*UY
  291. RETUZ.AM(ICEN,1,1) = RHO*UZ
  292. RETP.AM(ICEN,1,1) = 1.0D0/(GAMMA - 1.0D0)
  293. C
  294. ENDDO
  295. C
  296. SEGDES MPVN
  297. SEGDES MPRN
  298. SEGDES MPGAM
  299. C
  300. SEGDES MATRIK
  301. SEGDES IMATRI
  302. C
  303. SEGINI RR , RUX , RUY , RUZ, RP ,
  304. & UXR , UXUX , UXUY , UXUZ, UXP ,
  305. & UYR , UYUX , UYUY , UYUZ, UYP ,
  306. & UZR , UZUX , UZUY , UZUZ, UZP ,
  307. & RETR , RETUX , RETUY , RETUZ, RETP
  308. C
  309. RETURN
  310. END
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  

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