Télécharger cli152.eso

Retour à la liste

Numérotation des lignes :

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

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