Télécharger cli163.eso

Retour à la liste

Numérotation des lignes :

cli163
  1. C CLI163 SOURCE CB215821 20/11/25 13:20:15 10792
  2. SUBROUTINE CLI163(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 : CLI163
  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,RC,PC,UXC,UYC,GAMC,CNX,CNY,CTX,CTY
  67. & ,HTF,SF,UTF,RF,PF,UXF,UYF,GM1,USGM1
  68. & ,UNC,UNF,ECIN,PSRF,DPSRUN,DRDUN,DPDUN,DUNDUX,DUNDUY
  69. C & ,CACCA,EPS,CACCA1,CACCA2
  70. & ,VECG(5),VECD(5),NVEC(3),TVEC(3),TVEC2(3)
  71. & ,DFDUG(5,5),DFDUD(5,5)
  72. & ,DUXDUN,DUYDUN,COEF5,COEF
  73. & ,DRORO,DROUX,DROUY,DROP
  74. & ,DUXRO,DUXUX,DUXUY,DUXP
  75. & ,DUYRO,DUYUX,DUYUY,DUYP
  76. & ,DPRO,DPUX,DPUY,DPP
  77. & ,COEF1,COEF2,COEF3
  78. & ,CNZ,CTZ,CT2X,CT2Y,CT2Z,UZC,UT2F,UZF,DUZDUN,DUNDUZ
  79. & ,DROUZ,DPUZ,DUXUZ,DUYUZ
  80. & ,DUZRO,DUZUX,DUZUY,DUZUZ,DUZP,COEF4
  81. CHARACTER*(8) TYPE
  82. C
  83. C
  84. C**** KRIPAD pour la correspondance global/local
  85. C
  86. CALL KRIPAD(MELEMC,MLEMC)
  87. C SEGINI MLEMC
  88. CALL KRIPAD(MELECB,MLEMCB)
  89. C SEGINI MLEMCB
  90. CALL KRIPAD(MELEMF,MLEMF)
  91. C SEGINI MLEMF
  92. C
  93. C**** CHPOINTs de la table DOMAINE
  94. C
  95. CALL LICHT(INORM,MPNORM,TYPE,ICEL)
  96. CALL LICHT(ICHPVO,MPVOL,TYPE,ICEL)
  97. CALL LICHT(ICHPSU,MPSURF,TYPE,ICEL)
  98. C
  99. C**** LICHT active les MPOVALs en *MOD
  100. C
  101. C SEGACT MPNORM*MOD
  102. C SEGACT MPOVSU*MOD
  103. C SEGACT MPOVOL*MOD
  104. C
  105. C
  106. C**** CHPOINTs des variables
  107. C
  108. CALL LICHT(IROC,MPRC,TYPE,ICEL)
  109. CALL LICHT(IVITC,MPVC,TYPE,ICEL)
  110. CALL LICHT(IPC,MPPC,TYPE,ICEL)
  111. CALL LICHT(IGAMC,MPGAMC,TYPE,ICEL)
  112. CALL LICHT(ICHLIM,MPLIM,TYPE,ICEL)
  113. C
  114. C SEGACT *MOD
  115. C SEGACT *MOD
  116. C SEGACT *MOD
  117. C SEGACT *MOD
  118. C SEGACT *MOD
  119. C
  120. C
  121. C**** Boucle sur le face pour le calcul des invariants de
  122. C Riemann et du flux
  123. C
  124. SEGACT MELEFC
  125. NFAC=MELEFC.NUM(/2)
  126. C
  127. C**** Objet MATRIK
  128. C
  129. NRIGE = 7
  130. NMATRI = 1
  131. NKID = 9
  132. NKMT = 7
  133. C
  134. SEGINI MATRIK
  135. IJACO = MATRIK
  136. MATRIK.IRIGEL(1,1) = MELRES
  137. MATRIK.IRIGEL(2,1) = MELRES
  138. C
  139. C**** Matrice non symetrique
  140. C
  141. MATRIK.IRIGEL(7,1) = 2
  142. C
  143. NBME = 25
  144. NBSOUS = 1
  145. SEGINI IMATRI
  146. IF(IJAC.EQ.1)THEN
  147. MLMOTS=ILIINC
  148. ELSEIF(IJAC.EQ.2)THEN
  149. MLMOTS=ILIINP
  150. ENDIF
  151. SEGACT MLMOTS
  152. MATRIK.IRIGEL(4,1) = IMATRI
  153. C
  154. IMATRI.LISPRI(1) = MLMOTS.MOTS(1)
  155. IMATRI.LISPRI(2) = MLMOTS.MOTS(2)
  156. IMATRI.LISPRI(3) = MLMOTS.MOTS(3)
  157. IMATRI.LISPRI(4) = MLMOTS.MOTS(4)
  158. IMATRI.LISPRI(5) = MLMOTS.MOTS(5)
  159. C
  160. IMATRI.LISPRI(6) = MLMOTS.MOTS(1)
  161. IMATRI.LISPRI(7) = MLMOTS.MOTS(2)
  162. IMATRI.LISPRI(8) = MLMOTS.MOTS(3)
  163. IMATRI.LISPRI(9) = MLMOTS.MOTS(4)
  164. IMATRI.LISPRI(10) = MLMOTS.MOTS(5)
  165. C
  166. IMATRI.LISPRI(11) = MLMOTS.MOTS(1)
  167. IMATRI.LISPRI(12) = MLMOTS.MOTS(2)
  168. IMATRI.LISPRI(13) = MLMOTS.MOTS(3)
  169. IMATRI.LISPRI(14) = MLMOTS.MOTS(4)
  170. IMATRI.LISPRI(15) = MLMOTS.MOTS(5)
  171. C
  172. IMATRI.LISPRI(16) = MLMOTS.MOTS(1)
  173. IMATRI.LISPRI(17) = MLMOTS.MOTS(2)
  174. IMATRI.LISPRI(18) = MLMOTS.MOTS(3)
  175. IMATRI.LISPRI(19) = MLMOTS.MOTS(4)
  176. IMATRI.LISPRI(20) = MLMOTS.MOTS(5)
  177. C
  178. IMATRI.LISPRI(21) = MLMOTS.MOTS(1)
  179. IMATRI.LISPRI(22) = MLMOTS.MOTS(2)
  180. IMATRI.LISPRI(23) = MLMOTS.MOTS(3)
  181. IMATRI.LISPRI(24) = MLMOTS.MOTS(4)
  182. IMATRI.LISPRI(25) = MLMOTS.MOTS(5)
  183. C
  184. SEGDES MLMOTS
  185. MLMOTS=ILIINC
  186. SEGACT MLMOTS
  187. C
  188. C
  189. IMATRI.LISDUA(1) = MLMOTS.MOTS(1)
  190. IMATRI.LISDUA(2) = MLMOTS.MOTS(1)
  191. IMATRI.LISDUA(3) = MLMOTS.MOTS(1)
  192. IMATRI.LISDUA(4) = MLMOTS.MOTS(1)
  193. IMATRI.LISDUA(5) = MLMOTS.MOTS(1)
  194. C
  195. IMATRI.LISDUA(6) = MLMOTS.MOTS(2)
  196. IMATRI.LISDUA(7) = MLMOTS.MOTS(2)
  197. IMATRI.LISDUA(8) = MLMOTS.MOTS(2)
  198. IMATRI.LISDUA(9) = MLMOTS.MOTS(2)
  199. IMATRI.LISDUA(10) = MLMOTS.MOTS(2)
  200. C
  201. IMATRI.LISDUA(11) = MLMOTS.MOTS(3)
  202. IMATRI.LISDUA(12) = MLMOTS.MOTS(3)
  203. IMATRI.LISDUA(13) = MLMOTS.MOTS(3)
  204. IMATRI.LISDUA(14) = MLMOTS.MOTS(3)
  205. IMATRI.LISDUA(15) = MLMOTS.MOTS(3)
  206. C
  207. IMATRI.LISDUA(16) = MLMOTS.MOTS(4)
  208. IMATRI.LISDUA(17) = MLMOTS.MOTS(4)
  209. IMATRI.LISDUA(18) = MLMOTS.MOTS(4)
  210. IMATRI.LISDUA(19) = MLMOTS.MOTS(4)
  211. IMATRI.LISDUA(20) = MLMOTS.MOTS(4)
  212. C
  213. IMATRI.LISDUA(21) = MLMOTS.MOTS(5)
  214. IMATRI.LISDUA(22) = MLMOTS.MOTS(5)
  215. IMATRI.LISDUA(23) = MLMOTS.MOTS(5)
  216. IMATRI.LISDUA(24) = MLMOTS.MOTS(5)
  217. IMATRI.LISDUA(25) = MLMOTS.MOTS(5)
  218. C
  219. SEGDES MLMOTS
  220. NBEL = NFAC
  221. NBSOUS = 1
  222. NP = 1
  223. MP = 1
  224. SEGINI RR , RUX , RUY , RUZ ,RRET ,
  225. & UXR , UXUX , UXUY , UXUZ ,UXRET ,
  226. & UYR , UYUX , UYUY , UYUZ , UYRET ,
  227. & UZR , UZUX , UZUY , UZUZ , UZRET ,
  228. & RETR , RETUX , RETUY, RETUZ , RETRET
  229. C
  230. C**** Duale = IMATRI.LISDUA(1) = 'RN'
  231. C Primale = IMATRI.LISPRI(1) = 'RN'
  232. C -> IMATRI.LIZAFM(1,1) = RR
  233. C
  234. IMATRI.LIZAFM(1,1) = RR
  235. IMATRI.LIZAFM(1,2) = RUX
  236. IMATRI.LIZAFM(1,3) = RUY
  237. IMATRI.LIZAFM(1,4) = RUZ
  238. IMATRI.LIZAFM(1,5) = RRET
  239. C
  240. IMATRI.LIZAFM(1,6) = UXR
  241. IMATRI.LIZAFM(1,7) = UXUX
  242. IMATRI.LIZAFM(1,8) = UXUY
  243. IMATRI.LIZAFM(1,9) = UXUZ
  244. IMATRI.LIZAFM(1,10) = UXRET
  245. C
  246. IMATRI.LIZAFM(1,11) = UYR
  247. IMATRI.LIZAFM(1,12) = UYUX
  248. IMATRI.LIZAFM(1,13) = UYUY
  249. IMATRI.LIZAFM(1,14) = UYUZ
  250. IMATRI.LIZAFM(1,15) = UYRET
  251. C
  252. IMATRI.LIZAFM(1,16) = UZR
  253. IMATRI.LIZAFM(1,17) = UZUX
  254. IMATRI.LIZAFM(1,18) = UZUY
  255. IMATRI.LIZAFM(1,19) = UZUZ
  256. IMATRI.LIZAFM(1,20) = UZRET
  257. C
  258. IMATRI.LIZAFM(1,21) = RETR
  259. IMATRI.LIZAFM(1,22) = RETUX
  260. IMATRI.LIZAFM(1,23) = RETUY
  261. IMATRI.LIZAFM(1,24) = RETUZ
  262. IMATRI.LIZAFM(1,25) = RETRET
  263. C
  264. SEGDES MATRIK
  265. SEGDES IMATRI
  266. C
  267. C**** Fin definition MATRIK
  268. C
  269. DO IFAC=1,NFAC,1
  270. NGF=MELEFC.NUM(1,IFAC)
  271. NGC=MELEFC.NUM(2,IFAC)
  272. NLF=MLEMF.LECT(NGF)
  273. NLC=MLEMC.LECT(NGC)
  274. NLCB=MLEMCB.LECT(NGF)
  275. VOLU=MPVOL.VPOCHA(NLC,1)
  276. SURF=MPSURF.VPOCHA(NLF,1)
  277. C In CASTEM les normales sont sortantes
  278. CNX=-1*MPNORM.VPOCHA(NLF,1)
  279. CNY=-1*MPNORM.VPOCHA(NLF,2)
  280. CNZ=-1*MPNORM.VPOCHA(NLF,3)
  281. CTX=-1*MPNORM.VPOCHA(NLF,4)
  282. CTY=-1*MPNORM.VPOCHA(NLF,5)
  283. CTZ=-1*MPNORM.VPOCHA(NLF,6)
  284. CT2X=-1*MPNORM.VPOCHA(NLF,7)
  285. CT2Y=-1*MPNORM.VPOCHA(NLF,8)
  286. CT2Z=-1*MPNORM.VPOCHA(NLF,9)
  287. C Variables au centre
  288. RC=MPRC.VPOCHA(NLC,1)
  289. PC=MPPC.VPOCHA(NLC,1)
  290. UXC=MPVC.VPOCHA(NLC,1)
  291. UYC=MPVC.VPOCHA(NLC,2)
  292. UZC=MPVC.VPOCHA(NLC,3)
  293. GAMC=MPGAMC.VPOCHA(NLC,1)
  294. GM1=GAMC-1.0D0
  295. USGM1=1.0D0/GM1
  296. C Variables à la face
  297. HTF=MPLIM.VPOCHA(NLCB,1)
  298. SF=MPLIM.VPOCHA(NLCB,2)
  299. UTF=0.0D0
  300. UT2F=0.0D0
  301. C
  302. UNC=(UXC*CNX)+(UYC*CNY)+(UZC*CNZ)
  303. UNF=UNC
  304. C
  305. UXF=UNF*CNX+UTF*CTX+UT2F*CT2X
  306. UYF=UNF*CNY+UTF*CTY+UT2F*CT2Y
  307. UZF=UNF*CNZ+UTF*CTZ+UT2F*CT2Z
  308. C
  309. ECIN=0.5D0*((UXF*UXF)+(UYF*UYF)+(UZF*UZF))
  310. PSRF=(GM1/GAMC)*(HTF-ECIN)
  311. RF=PSRF/SF
  312. RF=RF**(1.0D0/GM1)
  313. PF=SF*(RF**GAMC)
  314. C
  315. C******* Derivative of PF/RF,PF,RF,UXF,UYF with respect to UN
  316. C
  317. DPSRUN=-1*(GM1/GAMC)*UNC
  318. DRDUN=USGM1*RF/PSRF*DPSRUN
  319. DPDUN=GAMC*PSRF*DRDUN
  320. DUXDUN=CNX
  321. DUYDUN=CNY
  322. DUZDUN=CNZ
  323. C
  324. DUNDUX=CNX
  325. DUNDUY=CNY
  326. DUNDUZ=CNZ
  327. C
  328. C******* Jacobian with respect to primitive variables
  329. C
  330. VECG(1)=RF
  331. VECG(2)=UXF
  332. VECG(3)=UYF
  333. VECG(4)=UZF
  334. VECG(5)=PF
  335. C
  336. VECD(1)=RC
  337. VECD(2)=UXC
  338. VECD(3)=UYC
  339. VECD(4)=UZC
  340. VECD(5)=PC
  341. C
  342. NVEC(1)=CNX
  343. NVEC(2)=CNY
  344. NVEC(3)=CNZ
  345. TVEC(1)=CTX
  346. TVEC(2)=CTY
  347. TVEC(3)=CTZ
  348. TVEC2(1)=CT2X
  349. TVEC2(2)=CT2Y
  350. TVEC2(3)=CT2Z
  351. C
  352. CALL CONJP4(DFDUG,DFDUD,VECG,VECD,NVEC,TVEC,TVEC2,GAMC)
  353. C
  354. COEF=SURF/VOLU
  355. DRORO=DFDUD(1,1)*COEF
  356. COEF5=(DFDUG(1,1)*DRDUN)+(DFDUG(1,2)*DUXDUN)+
  357. & (DFDUG(1,3)*DUYDUN)+(DFDUG(1,4)*DUZDUN)+
  358. & (DFDUG(1,5)*DPDUN)
  359. DROUX=(COEF5*DUNDUX+DFDUD(1,2))*COEF
  360. DROUY=(COEF5*DUNDUY+DFDUD(1,3))*COEF
  361. DROUZ=(COEF5*DUNDUZ+DFDUD(1,4))*COEF
  362. DROP=DFDUD(1,5)*COEF
  363. C
  364. DPRO=DFDUD(5,1)*COEF
  365. COEF5=(DFDUG(5,1)*DRDUN)+(DFDUG(5,2)*DUXDUN)+
  366. & (DFDUG(5,3)*DUYDUN)+(DFDUG(5,4)*DUZDUN)+
  367. & (DFDUG(5,5)*DPDUN)
  368. DPUX=(COEF5*DUNDUX+DFDUD(5,2))*COEF
  369. DPUY=(COEF5*DUNDUY+DFDUD(5,3))*COEF
  370. DPUZ=(COEF5*DUNDUZ+DFDUD(5,4))*COEF
  371. DPP=DFDUD(5,5)*COEF
  372. C
  373. DUXRO=DFDUD(2,1)*COEF
  374. COEF5=(DFDUG(2,1)*DRDUN)+(DFDUG(2,2)*DUXDUN)+
  375. & (DFDUG(2,3)*DUYDUN)+(DFDUG(2,4)*DUZDUN)+
  376. & (DFDUG(2,5)*DPDUN)
  377. DUXUX=(COEF5*DUNDUX+DFDUD(2,2))*COEF
  378. DUXUY=(COEF5*DUNDUY+DFDUD(2,3))*COEF
  379. DUXUZ=(COEF5*DUNDUZ+DFDUD(2,4))*COEF
  380. DUXP =DFDUD(2,5)*COEF
  381. C
  382. DUYRO=DFDUD(3,1)*COEF
  383. COEF5=(DFDUG(3,1)*DRDUN)+(DFDUG(3,2)*DUXDUN)+
  384. & (DFDUG(3,3)*DUYDUN)+(DFDUG(3,4)*DUZDUN)+
  385. & (DFDUG(3,5)*DPDUN)
  386. DUYUX=(COEF5*DUNDUX+DFDUD(3,2))*COEF
  387. DUYUY=(COEF5*DUNDUY+DFDUD(3,3))*COEF
  388. DUYUZ=(COEF5*DUNDUZ+DFDUD(3,4))*COEF
  389. DUYP =DFDUD(3,5)*COEF
  390. C
  391. DUZRO=DFDUD(4,1)*COEF
  392. COEF5=(DFDUG(4,1)*DRDUN)+(DFDUG(4,2)*DUXDUN)+
  393. & (DFDUG(4,3)*DUYDUN)+(DFDUG(4,4)*DUZDUN)+
  394. & (DFDUG(4,5)*DPDUN)
  395. DUZUX=(COEF5*DUNDUX+DFDUD(4,2))*COEF
  396. DUZUY=(COEF5*DUNDUY+DFDUD(4,3))*COEF
  397. DUZUZ=(COEF5*DUNDUZ+DFDUD(4,4))*COEF
  398. DUZP =DFDUD(4,5)*COEF
  399. C
  400. C
  401. C******* Jacobian with respect to conservative variables
  402. C
  403. IF(IJAC.EQ.1)THEN
  404. GM1=GAMC-1.0D0
  405. C
  406. COEF1=-1.0D0*UXC/RC
  407. COEF2=-1.0D0*UYC/RC
  408. COEF3=-1.0D0*UZC/RC
  409. COEF4=0.5D0*GM1*((UXC*UXC)+(UYC*UYC)+(UZC*UZC))
  410. C
  411. RR.AM(IFAC,1,1)=DRORO+(DROUX*COEF1)+(DROUY*COEF2)+(DROUZ
  412. $ *COEF3)+(DROP*COEF4)
  413. RUX.AM(IFAC,1,1)=(DROUX/RC)-((UXC*GM1)*DROP)
  414. RUY.AM(IFAC,1,1)=(DROUY/RC)-((UYC*GM1)*DROP)
  415. RUZ.AM(IFAC,1,1)=(DROUZ/RC)-((UZC*GM1)*DROP)
  416. RRET.AM(IFAC,1,1)=GM1*DROP
  417. C
  418. UXR.AM(IFAC,1,1)=DUXRO+(DUXUX*COEF1)+(DUXUY*COEF2)+(DUXUZ
  419. $ *COEF3)+(DUXP*COEF4)
  420. UXUX.AM(IFAC,1,1)=(DUXUX/RC)-((UXC*GM1)*DUXP)
  421. UXUY.AM(IFAC,1,1)=(DUXUY/RC)-((UYC*GM1)*DUXP)
  422. UXUZ.AM(IFAC,1,1)=(DUXUZ/RC)-((UZC*GM1)*DUXP)
  423. UXRET.AM(IFAC,1,1)=GM1*DUXP
  424. C
  425. UYR.AM(IFAC,1,1)=DUYRO+(DUYUX*COEF1)+(DUYUY*COEF2)+(DUYUZ
  426. $ *COEF3)+(DUYP*COEF4)
  427. UYUX.AM(IFAC,1,1)=(DUYUX/RC)-((UXC*GM1)*DUYP)
  428. UYUY.AM(IFAC,1,1)=(DUYUY/RC)-((UYC*GM1)*DUYP)
  429. UYUZ.AM(IFAC,1,1)=(DUYUZ/RC)-((UZC*GM1)*DUYP)
  430. UYRET.AM(IFAC,1,1)=GM1*DUYP
  431. C
  432. UZR.AM(IFAC,1,1)=DUZRO+(DUZUX*COEF1)+(DUZUY*COEF2)+(DUZUZ
  433. $ *COEF3)+(DUZP*COEF4)
  434. UZUX.AM(IFAC,1,1)=(DUZUX/RC)-((UXC*GM1)*DUZP)
  435. UZUY.AM(IFAC,1,1)=(DUZUY/RC)-((UYC*GM1)*DUZP)
  436. UZUZ.AM(IFAC,1,1)=(DUZUZ/RC)-((UZC*GM1)*DUZP)
  437. UZRET.AM(IFAC,1,1)=GM1*DUZP
  438. C
  439. RETR.AM(IFAC,1,1)=DPRO+(DPUX*COEF1)+(DPUY*COEF2)+(DPUZ
  440. $ *COEF3)+(DPP*COEF4)
  441. RETUX.AM(IFAC,1,1)=(DPUX/RC)-((UXC*GM1)*DPP)
  442. RETUY.AM(IFAC,1,1)=(DPUY/RC)-((UYC*GM1)*DPP)
  443. RETUZ.AM(IFAC,1,1)=(DPUZ/RC)-((UZC*GM1)*DPP)
  444. RETRET.AM(IFAC,1,1)=GM1*DPP
  445. C
  446. ELSEIF(IJAC.EQ.2)THEN
  447. RR.AM(IFAC,1,1)=DRORO
  448. RUX.AM(IFAC,1,1)=DROUX
  449. RUY.AM(IFAC,1,1)=DROUY
  450. RUZ.AM(IFAC,1,1)=DROUZ
  451. RRET.AM(IFAC,1,1)=DROP
  452. C
  453. UXR.AM(IFAC,1,1)=DUXRO
  454. UXUX.AM(IFAC,1,1)=DUXUX
  455. UXUY.AM(IFAC,1,1)=DUXUY
  456. UXUZ.AM(IFAC,1,1)=DUXUZ
  457. UXRET.AM(IFAC,1,1)=DUXP
  458. C
  459. UYR.AM(IFAC,1,1)=DUYRO
  460. UYUX.AM(IFAC,1,1)=DUYUX
  461. UYUY.AM(IFAC,1,1)=DUYUY
  462. UYUZ.AM(IFAC,1,1)=DUYUZ
  463. UYRET.AM(IFAC,1,1)=DUYP
  464. C
  465. UZR.AM(IFAC,1,1)=DUZRO
  466. UZUX.AM(IFAC,1,1)=DUZUX
  467. UZUY.AM(IFAC,1,1)=DUZUY
  468. UZUZ.AM(IFAC,1,1)=DUZUZ
  469. UZRET.AM(IFAC,1,1)=DUZP
  470. C
  471. RETR.AM(IFAC,1,1)=DPRO
  472. RETUX.AM(IFAC,1,1)=DPUX
  473. RETUY.AM(IFAC,1,1)=DPUY
  474. RETUZ.AM(IFAC,1,1)=DPUZ
  475. RETRET.AM(IFAC,1,1)=DPP
  476. ENDIF
  477. ENDDO
  478. C
  479. SEGDES MELEFC
  480. C
  481. SEGSUP MLEMC
  482. SEGSUP MLEMCB
  483. SEGSUP MLEMF
  484. C
  485. SEGDES MPNORM
  486. SEGDES MPVOL
  487. SEGDES MPSURF
  488. SEGDES MPRC
  489. SEGDES MPPC
  490. SEGDES MPVC
  491. SEGDES MPGAMC
  492. SEGDES MPLIM
  493. C
  494. SEGDES RR , RUX , RUY , RUZ ,RRET ,
  495. & UXR , UXUX , UXUY , UXUZ ,UXRET ,
  496. & UYR , UYUX , UYUY , UYUZ , UYRET ,
  497. & UZR , UZUX , UZUY , UZUZ , UZRET ,
  498. & RETR , RETUX , RETUY, RETUZ , RETRET
  499. C
  500. 9999 CONTINUE
  501. RETURN
  502. END
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  

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