Télécharger cli172.eso

Retour à la liste

Numérotation des lignes :

  1. C CLI172 SOURCE PV 16/11/17 21:58:39 9180
  2. SUBROUTINE CLI172(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 : CLI172
  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, MPLIM.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,ICHLIM,ICEL,NFAC,IFAC,MELRES,IJACO
  58. & ,NGF,NGC,NLF,NLC,NLCB
  59. & ,ILIINC,ILIINP,IJAC
  60. & ,MP, NBEL, NBME, NBSOUS, NKID, NKMT, NMATRI, NP, NRIGE
  61. REAL*8 VOLU,SURF,GAMC,CNX,CNY,GM1
  62. & ,RC,UXC,UYC
  63. & ,PC,PSRF,RHOUF,P,RHO,UN
  64. & ,DECIDP,DUNDPC,DUXDPC,DUYDPC
  65. & ,DRORO,DROUX,DROUY,DROP
  66. & ,DUXRO,DUXUX,DUXUY,DUXP
  67. & ,DUYRO,DUYUX,DUYUY,DUYP
  68. & ,DPRO,DPUX,DPUY,DPP
  69. & ,COEF1,COEF2,COEF3,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=-1*MPNORM.VPOCHA(NLF,1)
  227. CNY=-1*MPNORM.VPOCHA(NLF,2)
  228. C Variables au centre
  229. GAMC=MPGAMC.VPOCHA(NLC,1)
  230. GM1=GAMC-1.0D0
  231. PC=MPPC.VPOCHA(NLC,1)
  232. RC=MPRC.VPOCHA(NLC,1)
  233. UXC=MPVC.VPOCHA(NLC,1)
  234. UYC=MPVC.VPOCHA(NLC,2)
  235. C Variables à la face
  236. RHOUF=MPLIM.VPOCHA(NLCB,1)
  237. PSRF=MPLIM.VPOCHA(NLCB,2)
  238. C
  239. C******* Variables à l'interface
  240. C
  241. P=PC
  242. RHO=P/PSRF
  243. UN=RHOUF/RHO
  244. C
  245. C******* Derivative with respect to PC
  246. C
  247. DUNDPC=-1*RHOUF/(RHO*RHO*PSRF)
  248. DUXDPC=CNX*DUNDPC
  249. DUYDPC=CNY*DUNDPC
  250. DECIDP=UN*DUNDPC
  251. C
  252. C******* Jacobian with respect to primitive variables
  253. C
  254. COEF=SURF/VOLU
  255. DRORO=0.0D0
  256. DROUX=0.0D0
  257. DROUY=0.0D0
  258. DROP=0.0D0
  259. C
  260. DPRO=0.0D0
  261. DPUX=0.0D0
  262. DPUY=0.0D0
  263. DPP=(RHOUF*DECIDP)*COEF
  264. C
  265. DUXRO=0.0D0
  266. DUXUX=0.0D0
  267. DUXUY=0.0D0
  268. DUXP =(RHOUF*DUXDPC+CNX)*COEF
  269. C
  270. DUYRO=0.0D0
  271. DUYUX=0.0D0
  272. DUYUY=0.0D0
  273. DUYP =(RHOUF*DUYDPC+CNY)*COEF
  274. C
  275. C******* Jacobian with respect to conservative variables
  276. C
  277. IF(IJAC.EQ.1)THEN
  278.  
  279. COEF1=-1.0D0*UXC/RC
  280. COEF2=-1.0D0*UYC/RC
  281. COEF3=0.5D0*GM1*((UXC*UXC)+(UYC*UYC))
  282. C
  283. RR.AM(IFAC,1,1)=DRORO+(DROUX*COEF1)+(DROUY*COEF2)+(DROP
  284. $ *COEF3)
  285. RUX.AM(IFAC,1,1)=(DROUX/RC)-((UXC*GM1)*DROP)
  286. RUY.AM(IFAC,1,1)=(DROUY/RC)-((UYC*GM1)*DROP)
  287. RRET.AM(IFAC,1,1)=GM1*DROP
  288. C
  289. UXR.AM(IFAC,1,1)=DUXRO+(DUXUX*COEF1)+(DUXUY*COEF2)+(DUXP
  290. $ *COEF3)
  291. UXUX.AM(IFAC,1,1)=(DUXUX/RC)-((UXC*GM1)*DUXP)
  292. UXUY.AM(IFAC,1,1)=(DUXUY/RC)-((UYC*GM1)*DUXP)
  293. UXRET.AM(IFAC,1,1)=GM1*DUXP
  294. C
  295. UYR.AM(IFAC,1,1)=DUYRO+(DUYUX*COEF1)+(DUYUY*COEF2)+(DUYP
  296. $ *COEF3)
  297. UYUX.AM(IFAC,1,1)=(DUYUX/RC)-((UXC*GM1)*DUYP)
  298. UYUY.AM(IFAC,1,1)=(DUYUY/RC)-((UYC*GM1)*DUYP)
  299. UYRET.AM(IFAC,1,1)=GM1*DUYP
  300. C
  301. RETR.AM(IFAC,1,1)=DPRO+(DPUX*COEF1)+(DPUY*COEF2)+(DPP
  302. $ *COEF3)
  303. RETUX.AM(IFAC,1,1)=(DPUX/RC)-((UXC*GM1)*DPP)
  304. RETUY.AM(IFAC,1,1)=(DPUY/RC)-((UYC*GM1)*DPP)
  305. RETRET.AM(IFAC,1,1)=GM1*DPP
  306. C
  307. ELSEIF(IJAC.EQ.2)THEN
  308. RR.AM(IFAC,1,1)=DRORO
  309. RUX.AM(IFAC,1,1)=DROUX
  310. RUY.AM(IFAC,1,1)=DROUY
  311. RRET.AM(IFAC,1,1)=DROP
  312. C
  313. UXR.AM(IFAC,1,1)=DUXRO
  314. UXUX.AM(IFAC,1,1)=DUXUX
  315. UXUY.AM(IFAC,1,1)=DUXUY
  316. UXRET.AM(IFAC,1,1)=DUXP
  317. C
  318. UYR.AM(IFAC,1,1)=DUYRO
  319. UYUX.AM(IFAC,1,1)=DUYUX
  320. UYUY.AM(IFAC,1,1)=DUYUY
  321. UYRET.AM(IFAC,1,1)=DUYP
  322. C
  323. RETR.AM(IFAC,1,1)=DPRO
  324. RETUX.AM(IFAC,1,1)=DPUX
  325. RETUY.AM(IFAC,1,1)=DPUY
  326. RETRET.AM(IFAC,1,1)=DPP
  327. ENDIF
  328. ENDDO
  329. C
  330. SEGDES MELEFC
  331. C
  332. SEGSUP MLEMC
  333. SEGSUP MLEMCB
  334. SEGSUP MLEMF
  335. C
  336. SEGDES MPNORM
  337. SEGDES MPVOL
  338. SEGDES MPSURF
  339. SEGDES MPRC
  340. SEGDES MPPC
  341. SEGDES MPVC
  342. SEGDES MPGAMC
  343. SEGDES MPLIM
  344. C
  345. SEGDES RR , RUX , RUY , RRET ,
  346. & UXR , UXUX , UXUY , UXRET ,
  347. & UYR , UYUX , UYUY , UYRET ,
  348. & RETR , RETUX , RETUY , RETRET
  349. C
  350. 9999 CONTINUE
  351. RETURN
  352. END
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  

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