Télécharger cli173.eso

Retour à la liste

Numérotation des lignes :

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

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