Télécharger cli142.eso

Retour à la liste

Numérotation des lignes :

cli142
  1. C CLI142 SOURCE CB215821 20/11/25 13:20:06 10792
  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 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
  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,ICEL,NFAC,IFAC,MELRES,IJACO
  59. & ,NGF,NGC,NLF,NLC
  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
  63. & ,UNC
  64. & ,GM1,USGM1,COEF,ECIN,HIN
  65. & ,DRORO,DROUX,DROUY,DROP
  66. & ,DUXRO,DUXUX,DUXUY,DUXP
  67. & ,DUYRO,DUYUX,DUYUY,DUYP
  68. & ,DPRO,DPUX,DPUY,DPP
  69. & ,COEF1,COEF2,COEF3
  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. C
  102. C SEGACT *MOD
  103. C SEGACT *MOD
  104. C SEGACT *MOD
  105. C SEGACT *MOD
  106. C SEGACT *MOD
  107. C
  108. C
  109. C**** Boucle sur le face pour le calcul des invariants de
  110. C Riemann et du flux
  111. C
  112. SEGACT MELEFC
  113. NFAC=MELEFC.NUM(/2)
  114. C
  115. C**** Objet MATRIK
  116. C
  117. NRIGE = 7
  118. NMATRI = 1
  119. NKID = 9
  120. NKMT = 7
  121. C
  122. SEGINI MATRIK
  123. IJACO = MATRIK
  124. MATRIK.IRIGEL(1,1) = MELRES
  125. MATRIK.IRIGEL(2,1) = MELRES
  126. C
  127. C**** Matrice non symetrique
  128. C
  129. MATRIK.IRIGEL(7,1) = 2
  130. C
  131. NBME = 16
  132. NBSOUS = 1
  133. SEGINI IMATRI
  134. IF(IJAC.EQ.1)THEN
  135. MLMOTS=ILIINC
  136. ELSEIF(IJAC.EQ.2)THEN
  137. MLMOTS=ILIINP
  138. ENDIF
  139. SEGACT MLMOTS
  140. MATRIK.IRIGEL(4,1) = IMATRI
  141. C
  142. IMATRI.LISPRI(1) = MLMOTS.MOTS(1)
  143. IMATRI.LISPRI(2) = MLMOTS.MOTS(2)
  144. IMATRI.LISPRI(3) = MLMOTS.MOTS(3)
  145. IMATRI.LISPRI(4) = MLMOTS.MOTS(4)
  146. IMATRI.LISPRI(5) = MLMOTS.MOTS(1)
  147. IMATRI.LISPRI(6) = MLMOTS.MOTS(2)
  148. IMATRI.LISPRI(7) = MLMOTS.MOTS(3)
  149. IMATRI.LISPRI(8) = MLMOTS.MOTS(4)
  150. IMATRI.LISPRI(9) = MLMOTS.MOTS(1)
  151. IMATRI.LISPRI(10) = MLMOTS.MOTS(2)
  152. IMATRI.LISPRI(11) = MLMOTS.MOTS(3)
  153. IMATRI.LISPRI(12) = MLMOTS.MOTS(4)
  154. IMATRI.LISPRI(13) = MLMOTS.MOTS(1)
  155. IMATRI.LISPRI(14) = MLMOTS.MOTS(2)
  156. IMATRI.LISPRI(15) = MLMOTS.MOTS(3)
  157. IMATRI.LISPRI(16) = MLMOTS.MOTS(4)
  158. C
  159. SEGDES MLMOTS
  160. MLMOTS=ILIINC
  161. SEGACT MLMOTS
  162. C
  163. IMATRI.LISDUA(1) = MLMOTS.MOTS(1)
  164. IMATRI.LISDUA(2) = MLMOTS.MOTS(1)
  165. IMATRI.LISDUA(3) = MLMOTS.MOTS(1)
  166. IMATRI.LISDUA(4) = MLMOTS.MOTS(1)
  167. IMATRI.LISDUA(5) = MLMOTS.MOTS(2)
  168. IMATRI.LISDUA(6) = MLMOTS.MOTS(2)
  169. IMATRI.LISDUA(7) = MLMOTS.MOTS(2)
  170. IMATRI.LISDUA(8) = MLMOTS.MOTS(2)
  171. IMATRI.LISDUA(9) = MLMOTS.MOTS(3)
  172. IMATRI.LISDUA(10) = MLMOTS.MOTS(3)
  173. IMATRI.LISDUA(11) = MLMOTS.MOTS(3)
  174. IMATRI.LISDUA(12) = MLMOTS.MOTS(3)
  175. IMATRI.LISDUA(13) = MLMOTS.MOTS(4)
  176. IMATRI.LISDUA(14) = MLMOTS.MOTS(4)
  177. IMATRI.LISDUA(15) = MLMOTS.MOTS(4)
  178. IMATRI.LISDUA(16) = MLMOTS.MOTS(4)
  179. C
  180. SEGDES MLMOTS
  181. NBEL = NFAC
  182. NBSOUS = 1
  183. NP = 1
  184. MP = 1
  185. SEGINI RR , RUX , RUY , RRET ,
  186. & UXR , UXUX , UXUY , UXRET ,
  187. & UYR , UYUX , UYUY , UYRET ,
  188. & RETR , RETUX , RETUY , RETRET
  189. C
  190. C**** Duale = IMATRI.LISDUA(1) = 'RN'
  191. C Primale = IMATRI.LISPRI(1) = 'RN'
  192. C -> IMATRI.LIZAFM(1,1) = RR
  193. C
  194. IMATRI.LIZAFM(1,1) = RR
  195. IMATRI.LIZAFM(1,2) = RUX
  196. IMATRI.LIZAFM(1,3) = RUY
  197. IMATRI.LIZAFM(1,4) = RRET
  198. IMATRI.LIZAFM(1,5) = UXR
  199. IMATRI.LIZAFM(1,6) = UXUX
  200. IMATRI.LIZAFM(1,7) = UXUY
  201. IMATRI.LIZAFM(1,8) = UXRET
  202. IMATRI.LIZAFM(1,9) = UYR
  203. IMATRI.LIZAFM(1,10) = UYUX
  204. IMATRI.LIZAFM(1,11) = UYUY
  205. IMATRI.LIZAFM(1,12) = UYRET
  206. IMATRI.LIZAFM(1,13) = RETR
  207. IMATRI.LIZAFM(1,14) = RETUX
  208. IMATRI.LIZAFM(1,15) = RETUY
  209. IMATRI.LIZAFM(1,16) = RETRET
  210. C
  211. SEGDES MATRIK
  212. SEGDES IMATRI
  213. C
  214. C**** Fin definition MATRIK
  215. C
  216. DO IFAC=1,NFAC,1
  217. NGF=MELEFC.NUM(1,IFAC)
  218. NGC=MELEFC.NUM(2,IFAC)
  219. NLF=MLEMF.LECT(NGF)
  220. NLC=MLEMC.LECT(NGC)
  221. VOLU=MPVOL.VPOCHA(NLC,1)
  222. SURF=MPSURF.VPOCHA(NLF,1)
  223. C In CASTEM les normales sont sortantes
  224. CNX=MPNORM.VPOCHA(NLF,1)
  225. CNY=MPNORM.VPOCHA(NLF,2)
  226. C Variables au centre
  227. RC=MPRC.VPOCHA(NLC,1)
  228. PC=MPPC.VPOCHA(NLC,1)
  229. UXC=MPVC.VPOCHA(NLC,1)
  230. UYC=MPVC.VPOCHA(NLC,2)
  231. GAMC=MPGAMC.VPOCHA(NLC,1)
  232. GM1=GAMC-1.0D0
  233. USGM1=1.0D0/GM1
  234. C
  235. C******* On calcule UN, UT
  236. C
  237. UNC=(UXC*CNX)+(UYC*CNY)
  238. C
  239. C******* Densite, vitesse, pression sur le bord
  240. C
  241. COEF=-1*SURF/VOLU
  242. C
  243. DRORO=UNC*COEF
  244. DROUX=(RC*CNX)*COEF
  245. DROUY=(RC*CNY)*COEF
  246. DROP=0.0D0
  247. C
  248. DUXRO=(UNC*UXC)*COEF
  249. DUXUX=((RC*CNX*UXC)+(RC*UNC))*COEF
  250. DUXUY=((RC*CNY*UXC))*COEF
  251. DUXP=CNX*COEF
  252. C
  253. DUYRO=(UNC*UYC)*COEF
  254. DUYUX=((RC*CNX*UYC))*COEF
  255. DUYUY=((RC*CNY*UYC)+(RC*UNC))*COEF
  256. DUYP=CNY*COEF
  257. C
  258. ECIN=0.5D0*((UXC*UXC)+(UYC*UYC))
  259. HIN=GAMC*USGM1*PC
  260. DPRO=(UNC*ECIN)*COEF
  261. DPUX=((CNX*HIN)+(RC*CNX*ECIN)+(RC*UNC*UXC))*COEF
  262. DPUY=((CNY*HIN)+(RC*CNY*ECIN)+(RC*UNC*UYC))*COEF
  263. DPP=(UNC*GAMC*USGM1)*COEF
  264. CC
  265. CC******* Jacobian with respect to conservative variables
  266. CC
  267. IF(IJAC.EQ.1)THEN
  268.  
  269. COEF1=-1.0D0*UXC/RC
  270. COEF2=-1.0D0*UYC/RC
  271. COEF3=0.5D0*GM1*((UXC*UXC)+(UYC*UYC))
  272. C
  273. RR.AM(IFAC,1,1)=DRORO+(DROUX*COEF1)+(DROUY*COEF2)+(DROP
  274. $ *COEF3)
  275. RUX.AM(IFAC,1,1)=(DROUX/RC)-((UXC*GM1)*DROP)
  276. RUY.AM(IFAC,1,1)=(DROUY/RC)-((UYC*GM1)*DROP)
  277. RRET.AM(IFAC,1,1)=GM1*DROP
  278. C
  279. UXR.AM(IFAC,1,1)=DUXRO+(DUXUX*COEF1)+(DUXUY*COEF2)+(DUXP
  280. $ *COEF3)
  281. UXUX.AM(IFAC,1,1)=(DUXUX/RC)-((UXC*GM1)*DUXP)
  282. UXUY.AM(IFAC,1,1)=(DUXUY/RC)-((UYC*GM1)*DUXP)
  283. UXRET.AM(IFAC,1,1)=GM1*DUXP
  284. C
  285. UYR.AM(IFAC,1,1)=DUYRO+(DUYUX*COEF1)+(DUYUY*COEF2)+(DUYP
  286. $ *COEF3)
  287. UYUX.AM(IFAC,1,1)=(DUYUX/RC)-((UXC*GM1)*DUYP)
  288. UYUY.AM(IFAC,1,1)=(DUYUY/RC)-((UYC*GM1)*DUYP)
  289. UYRET.AM(IFAC,1,1)=GM1*DUYP
  290. C
  291. RETR.AM(IFAC,1,1)=DPRO+(DPUX*COEF1)+(DPUY*COEF2)+(DPP
  292. $ *COEF3)
  293. RETUX.AM(IFAC,1,1)=(DPUX/RC)-((UXC*GM1)*DPP)
  294. RETUY.AM(IFAC,1,1)=(DPUY/RC)-((UYC*GM1)*DPP)
  295. RETRET.AM(IFAC,1,1)=GM1*DPP
  296. C
  297. ELSEIF(IJAC.EQ.2)THEN
  298. RR.AM(IFAC,1,1)=DRORO
  299. RUX.AM(IFAC,1,1)=DROUX
  300. RUY.AM(IFAC,1,1)=DROUY
  301. RRET.AM(IFAC,1,1)=DROP
  302. C
  303. UXR.AM(IFAC,1,1)=DUXRO
  304. UXUX.AM(IFAC,1,1)=DUXUX
  305. UXUY.AM(IFAC,1,1)=DUXUY
  306. UXRET.AM(IFAC,1,1)=DUXP
  307. C
  308. UYR.AM(IFAC,1,1)=DUYRO
  309. UYUX.AM(IFAC,1,1)=DUYUX
  310. UYUY.AM(IFAC,1,1)=DUYUY
  311. UYRET.AM(IFAC,1,1)=DUYP
  312. C
  313. RETR.AM(IFAC,1,1)=DPRO
  314. RETUX.AM(IFAC,1,1)=DPUX
  315. RETUY.AM(IFAC,1,1)=DPUY
  316. RETRET.AM(IFAC,1,1)=DPP
  317. ENDIF
  318. ENDDO
  319. C
  320. SEGDES MELEFC
  321. C
  322. SEGSUP MLEMC
  323. SEGSUP MLEMCB
  324. SEGSUP MLEMF
  325. C
  326. SEGDES MPNORM
  327. SEGDES MPVOL
  328. SEGDES MPSURF
  329. SEGDES MPRC
  330. SEGDES MPPC
  331. SEGDES MPVC
  332. SEGDES MPGAMC
  333. C
  334. SEGDES RR , RUX , RUY , RRET ,
  335. & UXR , UXUX , UXUY , UXRET ,
  336. & UYR , UYUX , UYUY , UYRET ,
  337. & RETR , RETUX , RETUY , RETRET
  338. C
  339. 9999 CONTINUE
  340. RETURN
  341. END
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  

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