Télécharger cli142.eso

Retour à la liste

Numérotation des lignes :

  1. C CLI142 SOURCE PV 16/11/17 21:58:33 9180
  2. SUBROUTINE CLI142(MELEMF,MELEMC,MELECB,MELEFC,MELRES,INORM,ICHPVO,
  3. & ICHPSU,IROC,IVITC,IPC,IGAMC,ILIINC,ILIINP,IJAC,IJACO)
  4. C************************************************************************
  5. C
  6. C PROJET : CASTEM 2000
  7. C
  8. C NOM : CLI122
  9. C
  10. C DESCRIPTION : Subroutine appellée par CLIM11
  11. C
  12. C LANGAGE : FORTRAN 77 + ESOPE 2000 (avec estensions CISI)
  13. C
  14. C AUTEUR : A. BECCANTINI, DRN/DMT/SEMT/LTMF
  15. C
  16. C************************************************************************
  17. C
  18. C APPELES (Calcul) :
  19. C
  20. C************************************************************************
  21. C
  22. C HISTORIQUE (Anomalies et modifications éventuelles)
  23. C
  24. C HISTORIQUE :
  25. C
  26. C************************************************************************
  27. C
  28. IMPLICIT INTEGER(I-N)
  29. -INC CCOPTIO
  30. -INC SMLMOTS
  31. -INC SMELEME
  32. POINTEUR MELEFC.MELEME
  33. -INC SMLENTI
  34. POINTEUR MLEMC.MLENTI, MLEMCB.MLENTI,MLEMF.MLENTI
  35. -INC SMCHPOI
  36. POINTEUR MPNORM.MPOVAL, MPVOL.MPOVAL, MPSURF.MPOVAL, MPRC.MPOVAL,
  37. & MPVC.MPOVAL, MPPC.MPOVAL, MPGAMC.MPOVAL
  38. POINTEUR RR.IZAFM, RUX.IZAFM, RUY.IZAFM, RRET.IZAFM,
  39. & UXR.IZAFM, UXUX.IZAFM, UXUY.IZAFM, UXRET.IZAFM,
  40. & UYR.IZAFM, UYUX.IZAFM, UYUY.IZAFM, UYRET.IZAFM,
  41. & RETR.IZAFM, RETUX.IZAFM, RETUY.IZAFM, RETRET.IZAFM
  42. C
  43. C**** Variables de COOPTIO
  44. C
  45. C INTEGER IPLLB, IERPER, IERMAX, IERR, INTERR
  46. C & ,IOTER, IOLEC, IOIMP, IOCAR, IOACQ
  47. C & ,IOPER, IOSGB, IOGRA, IOSAU, IORES
  48. C & ,IECHO, IIMPI, IOSPI
  49. C & ,IDIM, IFICLE, IPREFI
  50. C & ,MCOORD
  51. C & ,IFOMOD, NIFOUR, IFOUR, NSDPGE, IONIVE
  52. C & ,NGMAXY, IZROSF, ISOTYP, IOSCR,LTEXLU
  53. C & ,NORINC,NORVAL,NORIND,NORVAD
  54. C & ,NUCROU, IPSAUV
  55. C
  56. INTEGER MELEMF,MELEMC,MELECB,INORM,ICHPVO,ICHPSU, IROC,IVITC,IPC
  57. & ,IGAMC,ICEL,NFAC,IFAC,MELRES,IJACO
  58. & ,NGF,NGC,NLF,NLC
  59. & ,ILIINC,ILIINP,IJAC
  60. & ,MP, NBEL, NBME, NBSOUS, NKID, NKMT, NMATRI, NP, NRIGE
  61. REAL*8 VOLU,SURF,RC,PC,UXC,UYC,GAMC,CNX,CNY
  62. & ,UNC
  63. & ,GM1,USGM1,COEF,ECIN,HIN
  64. & ,DRORO,DROUX,DROUY,DROP
  65. & ,DUXRO,DUXUX,DUXUY,DUXP
  66. & ,DUYRO,DUYUX,DUYUY,DUYP
  67. & ,DPRO,DPUX,DPUY,DPP
  68. & ,COEF1,COEF2,COEF3
  69. CHARACTER*(8) TYPE
  70. C
  71. C
  72. C**** KRIPAD pour la correspondance global/local
  73. C
  74. CALL KRIPAD(MELEMC,MLEMC)
  75. C SEGINI MLEMC
  76. CALL KRIPAD(MELECB,MLEMCB)
  77. C SEGINI MLEMCB
  78. CALL KRIPAD(MELEMF,MLEMF)
  79. C SEGINI MLEMF
  80. C
  81. C**** CHPOINTs de la table DOMAINE
  82. C
  83. CALL LICHT(INORM,MPNORM,TYPE,ICEL)
  84. CALL LICHT(ICHPVO,MPVOL,TYPE,ICEL)
  85. CALL LICHT(ICHPSU,MPSURF,TYPE,ICEL)
  86. C
  87. C**** LICHT active les MPOVALs en *MOD
  88. C
  89. C SEGACT MPNORM*MOD
  90. C SEGACT MPOVSU*MOD
  91. C SEGACT MPOVOL*MOD
  92. C
  93. C
  94. C**** CHPOINTs des variables
  95. C
  96. CALL LICHT(IROC,MPRC,TYPE,ICEL)
  97. CALL LICHT(IVITC,MPVC,TYPE,ICEL)
  98. CALL LICHT(IPC,MPPC,TYPE,ICEL)
  99. CALL LICHT(IGAMC,MPGAMC,TYPE,ICEL)
  100. C
  101. C SEGACT *MOD
  102. C SEGACT *MOD
  103. C SEGACT *MOD
  104. C SEGACT *MOD
  105. C SEGACT *MOD
  106. C
  107. C
  108. C**** Boucle sur le face pour le calcul des invariants de
  109. C Riemann et du flux
  110. C
  111. SEGACT MELEFC
  112. NFAC=MELEFC.NUM(/2)
  113. C
  114. C**** Objet MATRIK
  115. C
  116. NRIGE = 7
  117. NMATRI = 1
  118. NKID = 9
  119. NKMT = 7
  120. C
  121. SEGINI MATRIK
  122. IJACO = MATRIK
  123. MATRIK.IRIGEL(1,1) = MELRES
  124. MATRIK.IRIGEL(2,1) = MELRES
  125. C
  126. C**** Matrice non symetrique
  127. C
  128. MATRIK.IRIGEL(7,1) = 2
  129. C
  130. NBME = 16
  131. NBSOUS = 1
  132. SEGINI IMATRI
  133. IF(IJAC.EQ.1)THEN
  134. MLMOTS=ILIINC
  135. ELSEIF(IJAC.EQ.2)THEN
  136. MLMOTS=ILIINP
  137. ENDIF
  138. SEGACT MLMOTS
  139. MATRIK.IRIGEL(4,1) = IMATRI
  140. C
  141. IMATRI.LISPRI(1) = MLMOTS.MOTS(1)
  142. IMATRI.LISPRI(2) = MLMOTS.MOTS(2)
  143. IMATRI.LISPRI(3) = MLMOTS.MOTS(3)
  144. IMATRI.LISPRI(4) = MLMOTS.MOTS(4)
  145. IMATRI.LISPRI(5) = MLMOTS.MOTS(1)
  146. IMATRI.LISPRI(6) = MLMOTS.MOTS(2)
  147. IMATRI.LISPRI(7) = MLMOTS.MOTS(3)
  148. IMATRI.LISPRI(8) = MLMOTS.MOTS(4)
  149. IMATRI.LISPRI(9) = MLMOTS.MOTS(1)
  150. IMATRI.LISPRI(10) = MLMOTS.MOTS(2)
  151. IMATRI.LISPRI(11) = MLMOTS.MOTS(3)
  152. IMATRI.LISPRI(12) = MLMOTS.MOTS(4)
  153. IMATRI.LISPRI(13) = MLMOTS.MOTS(1)
  154. IMATRI.LISPRI(14) = MLMOTS.MOTS(2)
  155. IMATRI.LISPRI(15) = MLMOTS.MOTS(3)
  156. IMATRI.LISPRI(16) = MLMOTS.MOTS(4)
  157. C
  158. SEGDES MLMOTS
  159. MLMOTS=ILIINC
  160. SEGACT MLMOTS
  161. C
  162. IMATRI.LISDUA(1) = MLMOTS.MOTS(1)
  163. IMATRI.LISDUA(2) = MLMOTS.MOTS(1)
  164. IMATRI.LISDUA(3) = MLMOTS.MOTS(1)
  165. IMATRI.LISDUA(4) = MLMOTS.MOTS(1)
  166. IMATRI.LISDUA(5) = MLMOTS.MOTS(2)
  167. IMATRI.LISDUA(6) = MLMOTS.MOTS(2)
  168. IMATRI.LISDUA(7) = MLMOTS.MOTS(2)
  169. IMATRI.LISDUA(8) = MLMOTS.MOTS(2)
  170. IMATRI.LISDUA(9) = MLMOTS.MOTS(3)
  171. IMATRI.LISDUA(10) = MLMOTS.MOTS(3)
  172. IMATRI.LISDUA(11) = MLMOTS.MOTS(3)
  173. IMATRI.LISDUA(12) = MLMOTS.MOTS(3)
  174. IMATRI.LISDUA(13) = MLMOTS.MOTS(4)
  175. IMATRI.LISDUA(14) = MLMOTS.MOTS(4)
  176. IMATRI.LISDUA(15) = MLMOTS.MOTS(4)
  177. IMATRI.LISDUA(16) = MLMOTS.MOTS(4)
  178. C
  179. SEGDES MLMOTS
  180. NBEL = NFAC
  181. NBSOUS = 1
  182. NP = 1
  183. MP = 1
  184. SEGINI RR , RUX , RUY , RRET ,
  185. & UXR , UXUX , UXUY , UXRET ,
  186. & UYR , UYUX , UYUY , UYRET ,
  187. & RETR , RETUX , RETUY , RETRET
  188. C
  189. C**** Duale = IMATRI.LISDUA(1) = 'RN'
  190. C Primale = IMATRI.LISPRI(1) = 'RN'
  191. C -> IMATRI.LIZAFM(1,1) = RR
  192. C
  193. IMATRI.LIZAFM(1,1) = RR
  194. IMATRI.LIZAFM(1,2) = RUX
  195. IMATRI.LIZAFM(1,3) = RUY
  196. IMATRI.LIZAFM(1,4) = RRET
  197. IMATRI.LIZAFM(1,5) = UXR
  198. IMATRI.LIZAFM(1,6) = UXUX
  199. IMATRI.LIZAFM(1,7) = UXUY
  200. IMATRI.LIZAFM(1,8) = UXRET
  201. IMATRI.LIZAFM(1,9) = UYR
  202. IMATRI.LIZAFM(1,10) = UYUX
  203. IMATRI.LIZAFM(1,11) = UYUY
  204. IMATRI.LIZAFM(1,12) = UYRET
  205. IMATRI.LIZAFM(1,13) = RETR
  206. IMATRI.LIZAFM(1,14) = RETUX
  207. IMATRI.LIZAFM(1,15) = RETUY
  208. IMATRI.LIZAFM(1,16) = RETRET
  209. C
  210. SEGDES MATRIK
  211. SEGDES IMATRI
  212. C
  213. C**** Fin definition MATRIK
  214. C
  215. DO IFAC=1,NFAC,1
  216. NGF=MELEFC.NUM(1,IFAC)
  217. NGC=MELEFC.NUM(2,IFAC)
  218. NLF=MLEMF.LECT(NGF)
  219. NLC=MLEMC.LECT(NGC)
  220. VOLU=MPVOL.VPOCHA(NLC,1)
  221. SURF=MPSURF.VPOCHA(NLF,1)
  222. C In CASTEM les normales sont sortantes
  223. CNX=MPNORM.VPOCHA(NLF,1)
  224. CNY=MPNORM.VPOCHA(NLF,2)
  225. C Variables au centre
  226. RC=MPRC.VPOCHA(NLC,1)
  227. PC=MPPC.VPOCHA(NLC,1)
  228. UXC=MPVC.VPOCHA(NLC,1)
  229. UYC=MPVC.VPOCHA(NLC,2)
  230. GAMC=MPGAMC.VPOCHA(NLC,1)
  231. GM1=GAMC-1.0D0
  232. USGM1=1.0D0/GM1
  233. C
  234. C******* On calcule UN, UT
  235. C
  236. UNC=(UXC*CNX)+(UYC*CNY)
  237. C
  238. C******* Densite, vitesse, pression sur le bord
  239. C
  240. COEF=-1*SURF/VOLU
  241. C
  242. DRORO=UNC*COEF
  243. DROUX=(RC*CNX)*COEF
  244. DROUY=(RC*CNY)*COEF
  245. DROP=0.0D0
  246. C
  247. DUXRO=(UNC*UXC)*COEF
  248. DUXUX=((RC*CNX*UXC)+(RC*UNC))*COEF
  249. DUXUY=((RC*CNY*UXC))*COEF
  250. DUXP=CNX*COEF
  251. C
  252. DUYRO=(UNC*UYC)*COEF
  253. DUYUX=((RC*CNX*UYC))*COEF
  254. DUYUY=((RC*CNY*UYC)+(RC*UNC))*COEF
  255. DUYP=CNY*COEF
  256. C
  257. ECIN=0.5D0*((UXC*UXC)+(UYC*UYC))
  258. HIN=GAMC*USGM1*PC
  259. DPRO=(UNC*ECIN)*COEF
  260. DPUX=((CNX*HIN)+(RC*CNX*ECIN)+(RC*UNC*UXC))*COEF
  261. DPUY=((CNY*HIN)+(RC*CNY*ECIN)+(RC*UNC*UYC))*COEF
  262. DPP=(UNC*GAMC*USGM1)*COEF
  263. CC
  264. CC******* Jacobian with respect to conservative variables
  265. CC
  266. IF(IJAC.EQ.1)THEN
  267.  
  268. COEF1=-1.0D0*UXC/RC
  269. COEF2=-1.0D0*UYC/RC
  270. COEF3=0.5D0*GM1*((UXC*UXC)+(UYC*UYC))
  271. C
  272. RR.AM(IFAC,1,1)=DRORO+(DROUX*COEF1)+(DROUY*COEF2)+(DROP
  273. $ *COEF3)
  274. RUX.AM(IFAC,1,1)=(DROUX/RC)-((UXC*GM1)*DROP)
  275. RUY.AM(IFAC,1,1)=(DROUY/RC)-((UYC*GM1)*DROP)
  276. RRET.AM(IFAC,1,1)=GM1*DROP
  277. C
  278. UXR.AM(IFAC,1,1)=DUXRO+(DUXUX*COEF1)+(DUXUY*COEF2)+(DUXP
  279. $ *COEF3)
  280. UXUX.AM(IFAC,1,1)=(DUXUX/RC)-((UXC*GM1)*DUXP)
  281. UXUY.AM(IFAC,1,1)=(DUXUY/RC)-((UYC*GM1)*DUXP)
  282. UXRET.AM(IFAC,1,1)=GM1*DUXP
  283. C
  284. UYR.AM(IFAC,1,1)=DUYRO+(DUYUX*COEF1)+(DUYUY*COEF2)+(DUYP
  285. $ *COEF3)
  286. UYUX.AM(IFAC,1,1)=(DUYUX/RC)-((UXC*GM1)*DUYP)
  287. UYUY.AM(IFAC,1,1)=(DUYUY/RC)-((UYC*GM1)*DUYP)
  288. UYRET.AM(IFAC,1,1)=GM1*DUYP
  289. C
  290. RETR.AM(IFAC,1,1)=DPRO+(DPUX*COEF1)+(DPUY*COEF2)+(DPP
  291. $ *COEF3)
  292. RETUX.AM(IFAC,1,1)=(DPUX/RC)-((UXC*GM1)*DPP)
  293. RETUY.AM(IFAC,1,1)=(DPUY/RC)-((UYC*GM1)*DPP)
  294. RETRET.AM(IFAC,1,1)=GM1*DPP
  295. C
  296. ELSEIF(IJAC.EQ.2)THEN
  297. RR.AM(IFAC,1,1)=DRORO
  298. RUX.AM(IFAC,1,1)=DROUX
  299. RUY.AM(IFAC,1,1)=DROUY
  300. RRET.AM(IFAC,1,1)=DROP
  301. C
  302. UXR.AM(IFAC,1,1)=DUXRO
  303. UXUX.AM(IFAC,1,1)=DUXUX
  304. UXUY.AM(IFAC,1,1)=DUXUY
  305. UXRET.AM(IFAC,1,1)=DUXP
  306. C
  307. UYR.AM(IFAC,1,1)=DUYRO
  308. UYUX.AM(IFAC,1,1)=DUYUX
  309. UYUY.AM(IFAC,1,1)=DUYUY
  310. UYRET.AM(IFAC,1,1)=DUYP
  311. C
  312. RETR.AM(IFAC,1,1)=DPRO
  313. RETUX.AM(IFAC,1,1)=DPUX
  314. RETUY.AM(IFAC,1,1)=DPUY
  315. RETRET.AM(IFAC,1,1)=DPP
  316. ENDIF
  317. ENDDO
  318. C
  319. SEGDES MELEFC
  320. C
  321. SEGSUP MLEMC
  322. SEGSUP MLEMCB
  323. SEGSUP MLEMF
  324. C
  325. SEGDES MPNORM
  326. SEGDES MPVOL
  327. SEGDES MPSURF
  328. SEGDES MPRC
  329. SEGDES MPPC
  330. SEGDES MPVC
  331. SEGDES MPGAMC
  332. C
  333. SEGDES RR , RUX , RUY , RRET ,
  334. & UXR , UXUX , UXUY , UXRET ,
  335. & UYR , UYUX , UYUY , UYRET ,
  336. & RETR , RETUX , RETUY , RETRET
  337. C
  338. 9999 CONTINUE
  339. RETURN
  340. END
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  

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