Télécharger cli113.eso

Retour à la liste

Numérotation des lignes :

cli113
  1. C CLI113 SOURCE OF166741 24/12/13 21:15:11 12097
  2. SUBROUTINE CLI113(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 : CLI113
  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.  
  48. INTEGER MELEMF,MELEMC,MELECB,INORM,ICHPVO,ICHPSU, IROC,IVITC,IPC
  49. & ,IGAMC,ICHLIM,ICEL,NFAC,IFAC,MELRES,IJACO
  50. & ,NGF,NGC,NLF,NLC,NLCB
  51. & ,ILIINC,ILIINP,IJAC
  52. & ,MP, NBEL, NBME, NBSOUS, NKID, NKMT, NMATRI, NP, NRIGE
  53. REAL*8 VOLU,SURF,RC,PC,UXC,UYC,GAMC,CNX,CNY,CTX,CTY
  54. & ,CNZ,CTZ,CT1X,CT1Y,CT1Z,UZC,UZF,UT1F,UT1,UZ
  55. & ,DUZDG1,DFMZG1,DG1DUZ,DROUZ,DUXUZ,DUYUZ,DPUZ
  56. & ,DUZRO,DUZUX,DUZUY,DUZUZ,DUZP
  57. & ,RF,PF,UXF,UYF
  58. & ,UNC,UNF,UTF,SF,ASONC,ASONF,ASON
  59. * & ,UTC,SC
  60. & ,GM1,USGM1,DSGM1,G1,G3,ASON2,S,UT,UN,RHO,P,UX,UY
  61. & ,DUNDG1,DASDG1,DRHDG1,DPDG1,DUXDG1,DUYDG1
  62. * & ,CELL,EPS,CACCA
  63. & ,DFRDG1,DFMXG1,DFMYG1,DFEDG1
  64. & ,DG1DR,DG1DP,DG1DUX,DG1DUY,COEF
  65. & ,DRORO,DROUX,DROUY,DROP
  66. & ,DUXRO,DUXUX,DUXUY,DUXP
  67. & ,DUYRO,DUYUX,DUYUY,DUYP
  68. & ,DPRO,DPUX,DPUY,DPP
  69. & ,COEF1,COEF2,COEF3,COEF4
  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 = 25
  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(5)
  148. C
  149. IMATRI.LISPRI(6) = MLMOTS.MOTS(1)
  150. IMATRI.LISPRI(7) = MLMOTS.MOTS(2)
  151. IMATRI.LISPRI(8) = MLMOTS.MOTS(3)
  152. IMATRI.LISPRI(9) = MLMOTS.MOTS(4)
  153. IMATRI.LISPRI(10) = MLMOTS.MOTS(5)
  154. C
  155. IMATRI.LISPRI(11) = MLMOTS.MOTS(1)
  156. IMATRI.LISPRI(12) = MLMOTS.MOTS(2)
  157. IMATRI.LISPRI(13) = MLMOTS.MOTS(3)
  158. IMATRI.LISPRI(14) = MLMOTS.MOTS(4)
  159. IMATRI.LISPRI(15) = MLMOTS.MOTS(5)
  160. C
  161. IMATRI.LISPRI(16) = MLMOTS.MOTS(1)
  162. IMATRI.LISPRI(17) = MLMOTS.MOTS(2)
  163. IMATRI.LISPRI(18) = MLMOTS.MOTS(3)
  164. IMATRI.LISPRI(19) = MLMOTS.MOTS(4)
  165. IMATRI.LISPRI(20) = MLMOTS.MOTS(5)
  166. C
  167. IMATRI.LISPRI(21) = MLMOTS.MOTS(1)
  168. IMATRI.LISPRI(22) = MLMOTS.MOTS(2)
  169. IMATRI.LISPRI(23) = MLMOTS.MOTS(3)
  170. IMATRI.LISPRI(24) = MLMOTS.MOTS(4)
  171. IMATRI.LISPRI(25) = MLMOTS.MOTS(5)
  172. C
  173. SEGDES MLMOTS
  174. MLMOTS=ILIINC
  175. SEGACT MLMOTS
  176. C
  177. IMATRI.LISDUA(1) = MLMOTS.MOTS(1)
  178. IMATRI.LISDUA(2) = MLMOTS.MOTS(1)
  179. IMATRI.LISDUA(3) = MLMOTS.MOTS(1)
  180. IMATRI.LISDUA(4) = MLMOTS.MOTS(1)
  181. IMATRI.LISDUA(5) = MLMOTS.MOTS(1)
  182. C
  183. IMATRI.LISDUA(6) = MLMOTS.MOTS(2)
  184. IMATRI.LISDUA(7) = MLMOTS.MOTS(2)
  185. IMATRI.LISDUA(8) = MLMOTS.MOTS(2)
  186. IMATRI.LISDUA(9) = MLMOTS.MOTS(2)
  187. IMATRI.LISDUA(10) = MLMOTS.MOTS(2)
  188. C
  189. IMATRI.LISDUA(11) = MLMOTS.MOTS(3)
  190. IMATRI.LISDUA(12) = MLMOTS.MOTS(3)
  191. IMATRI.LISDUA(13) = MLMOTS.MOTS(3)
  192. IMATRI.LISDUA(14) = MLMOTS.MOTS(3)
  193. IMATRI.LISDUA(15) = MLMOTS.MOTS(3)
  194. C
  195. IMATRI.LISDUA(16) = MLMOTS.MOTS(4)
  196. IMATRI.LISDUA(17) = MLMOTS.MOTS(4)
  197. IMATRI.LISDUA(18) = MLMOTS.MOTS(4)
  198. IMATRI.LISDUA(19) = MLMOTS.MOTS(4)
  199. IMATRI.LISDUA(20) = MLMOTS.MOTS(4)
  200. C
  201. IMATRI.LISDUA(21) = MLMOTS.MOTS(5)
  202. IMATRI.LISDUA(22) = MLMOTS.MOTS(5)
  203. IMATRI.LISDUA(23) = MLMOTS.MOTS(5)
  204. IMATRI.LISDUA(24) = MLMOTS.MOTS(5)
  205. IMATRI.LISDUA(25) = MLMOTS.MOTS(5)
  206. C
  207. SEGDES MLMOTS
  208. NBEL = NFAC
  209. NBSOUS = 1
  210. NP = 1
  211. MP = 1
  212. SEGINI RR , RUX , RUY , RUZ ,RRET ,
  213. & UXR , UXUX , UXUY , UXUZ ,UXRET ,
  214. & UYR , UYUX , UYUY , UYUZ , UYRET ,
  215. & UZR , UZUX , UZUY , UZUZ , UZRET ,
  216. & RETR , RETUX , RETUY, RETUZ , RETRET
  217. C
  218. C**** Duale = IMATRI.LISDUA(1) = 'RN'
  219. C Primale = IMATRI.LISPRI(1) = 'RN'
  220. C -> IMATRI.LIZAFM(1,1) = RR
  221. C
  222. IMATRI.LIZAFM(1,1) = RR
  223. IMATRI.LIZAFM(1,2) = RUX
  224. IMATRI.LIZAFM(1,3) = RUY
  225. IMATRI.LIZAFM(1,4) = RUZ
  226. IMATRI.LIZAFM(1,5) = RRET
  227. C
  228. IMATRI.LIZAFM(1,6) = UXR
  229. IMATRI.LIZAFM(1,7) = UXUX
  230. IMATRI.LIZAFM(1,8) = UXUY
  231. IMATRI.LIZAFM(1,9) = UXUZ
  232. IMATRI.LIZAFM(1,10) = UXRET
  233. C
  234. IMATRI.LIZAFM(1,11) = UYR
  235. IMATRI.LIZAFM(1,12) = UYUX
  236. IMATRI.LIZAFM(1,13) = UYUY
  237. IMATRI.LIZAFM(1,14) = UYUZ
  238. IMATRI.LIZAFM(1,15) = UYRET
  239. C
  240. IMATRI.LIZAFM(1,16) = UZR
  241. IMATRI.LIZAFM(1,17) = UZUX
  242. IMATRI.LIZAFM(1,18) = UZUY
  243. IMATRI.LIZAFM(1,19) = UZUZ
  244. IMATRI.LIZAFM(1,20) = UZRET
  245. C
  246. IMATRI.LIZAFM(1,21) = RETR
  247. IMATRI.LIZAFM(1,22) = RETUX
  248. IMATRI.LIZAFM(1,23) = RETUY
  249. IMATRI.LIZAFM(1,24) = RETUZ
  250. IMATRI.LIZAFM(1,25) = RETRET
  251. C
  252. SEGDES MATRIK
  253. SEGDES IMATRI
  254. C
  255. C**** Fin definition MATRIK
  256. C
  257. DO IFAC=1,NFAC,1
  258. NGF=MELEFC.NUM(1,IFAC)
  259. NGC=MELEFC.NUM(2,IFAC)
  260. NLF=MLEMF.LECT(NGF)
  261. NLC=MLEMC.LECT(NGC)
  262. NLCB=MLEMCB.LECT(NGF)
  263. VOLU=MPVOL.VPOCHA(NLC,1)
  264. SURF=MPSURF.VPOCHA(NLF,1)
  265. C In CASTEM les normales sont sortantes
  266. CNX=-1*MPNORM.VPOCHA(NLF,1)
  267. CNY=-1*MPNORM.VPOCHA(NLF,2)
  268. CNZ=-1*MPNORM.VPOCHA(NLF,3)
  269. CTX=-1*MPNORM.VPOCHA(NLF,4)
  270. CTY=-1*MPNORM.VPOCHA(NLF,5)
  271. CTZ=-1*MPNORM.VPOCHA(NLF,6)
  272. CT1X=-1*MPNORM.VPOCHA(NLF,7)
  273. CT1Y=-1*MPNORM.VPOCHA(NLF,8)
  274. CT1Z=-1*MPNORM.VPOCHA(NLF,9)
  275. C Variables au centre
  276. RC=MPRC.VPOCHA(NLC,1)
  277. PC=MPPC.VPOCHA(NLC,1)
  278. UXC=MPVC.VPOCHA(NLC,1)
  279. UYC=MPVC.VPOCHA(NLC,2)
  280. UZC=MPVC.VPOCHA(NLC,3)
  281. GAMC=MPGAMC.VPOCHA(NLC,1)
  282. C Variables à la face
  283. RF=MPLIM.VPOCHA(NLCB,1)
  284. UXF=MPLIM.VPOCHA(NLCB,2)
  285. UYF=MPLIM.VPOCHA(NLCB,3)
  286. UZF=MPLIM.VPOCHA(NLCB,4)
  287. PF=MPLIM.VPOCHA(NLCB,IDIM+2)
  288. C
  289. C******* On calcule UN, UT ASON, S
  290. C
  291. UNC=(UXC*CNX)+(UYC*CNY)+(UZC*CNZ)
  292. * UTC=(UXC*CTX)+(UYC*CTY)
  293. UNF=(UXF*CNX)+(UYF*CNY)+(UZF*CNZ)
  294. UTF=(UXF*CTX)+(UYF*CTY)+(UZF*CTZ)
  295. UT1F=(UXF*CT1X)+(UYF*CT1Y)+(UZF*CT1Z)
  296. C
  297. ASONC=(GAMC*PC/RC)**0.5D0
  298. ASONF=(GAMC*PF/RF)**0.5D0
  299. C
  300. * SC=PC/(RC**GAMC)
  301. SF=PF/(RF**GAMC)
  302. C
  303. C******* Densite, vitesse, pression sur le bord
  304. C
  305. GM1=(GAMC-1.0D0)
  306. USGM1=1.0D0/GM1
  307. DSGM1=2.0D0*USGM1
  308. G1=UNC-(DSGM1*ASONC)
  309. G3=UNF+(DSGM1*ASONF)
  310. UN=0.5D0*(G1+G3)
  311. ASON=(0.5D0*(G3-G1))
  312. ASON=ASON/DSGM1
  313. ASON2=ASON*ASON
  314. S=SF
  315. UT=UTF
  316. UT1=UT1F
  317. RHO=ASON2/(GAMC*S)
  318. RHO=RHO**USGM1
  319. P=RHO*ASON2/GAMC
  320. UX=(UN*CNX)+(UT*CTX)+(UT1*CT1X)
  321. UY=(UN*CNY)+(UT*CTY)+(UT1*CT1Y)
  322. UZ=(UN*CNZ)+(UT*CTZ)+(UT1*CT1Z)
  323. C
  324. C******* Derivatives
  325. C
  326. DUNDG1=0.5D0
  327. DASDG1=-0.5D0/DSGM1
  328. DRHDG1=GAMC*S
  329. DRHDG1=1.0D0/DRHDG1
  330. DRHDG1=DRHDG1**USGM1
  331. DRHDG1=DRHDG1*DSGM1
  332. DRHDG1=DRHDG1*(ASON**((3.0D0-GAMC)/(GAMC-1.0D0)))
  333. DRHDG1=DRHDG1*DASDG1
  334. DPDG1=((ASON2/GAMC)*DRHDG1)+(((2*ASON*RHO)/GAMC)*DASDG1)
  335. CC
  336. CC******* Test
  337. CC
  338. C DFEDG1=(DUNDG1*GAMC*USGM1*P) + (UN*GAMC*USGM1*DPDG1) +
  339. C & (0.5D0*DRHDG1*UN*((UN*UN)+(UT*UT))) +
  340. C & (0.5D0*RHO*DUNDG1*((UN*UN)+(UT*UT))) +
  341. C & (RHO*UN*UN*DUNDG1)
  342. C CACCA=UN*GAMC*USGM1*P + 0.5D0*RHO*UN*(UN*UN+UT*UT)
  343. C EPS=1.0D-6
  344. C G1=G1*(1+EPS)
  345. C CELL=UN
  346. C UN=0.5D0*(G1+G3)
  347. C write(*,*) DUNDG1, ((UN - CELL)/(EPS*G1))
  348. C CELL=ASON
  349. C ASON=(0.5D0*(G3-G1))
  350. C ASON=ASON/DSGM1
  351. C write(*,*) DASDG1, ((ASON - CELL)/(EPS*G1))
  352. C ASON2=ASON*ASON
  353. C S=SF
  354. C UT=UTF
  355. C CELL=RHO
  356. C RHO=ASON2/(GAMC*S)
  357. C RHO=RHO**USGM1
  358. C write(*,*) DRHDG1, ((RHO - CELL)/(EPS*G1))
  359. C CELL=P
  360. C P=RHO*ASON2/GAMC
  361. C write(*,*) DPDG1, ((P - CELL)/(EPS*G1))
  362. C CELL=CACCA
  363. C CACCA=UN*GAMC*USGM1*P + 0.5D0*RHO*UN*(UN*UN+UT*UT)
  364. C write(*,*) DFEDG1, ((CACCA - CELL)/(EPS*G1))
  365. CC
  366. CC************************************************************
  367. CC
  368. DUXDG1=DUNDG1*CNX
  369. DUYDG1=DUNDG1*CNY
  370. DUZDG1=DUNDG1*CNZ
  371. C
  372. DFRDG1=(DRHDG1*UN)+(RHO*DUNDG1)
  373. DFMXG1=(DRHDG1*UN*UX)+(RHO*DUNDG1*UX)+
  374. & (RHO*UN*DUXDG1)+(DPDG1*CNX)
  375. DFMYG1=(DRHDG1*UN*UY)+(RHO*DUNDG1*UY)+
  376. & (RHO*UN*DUYDG1)+(DPDG1*CNY)
  377. DFMZG1=(DRHDG1*UN*UZ)+(RHO*DUNDG1*UZ)+
  378. & (RHO*UN*DUZDG1)+(DPDG1*CNZ)
  379. DFEDG1=(DUNDG1*GAMC*USGM1*P) + (UN*GAMC*USGM1*DPDG1) +
  380. & (0.5D0*DRHDG1*UN*((UN*UN)+(UT*UT)+(UT1*UT1))) +
  381. & (0.5D0*RHO*DUNDG1*((UN*UN)+(UT*UT)+(UT1*UT1))) +
  382. & (RHO*UN*UN*DUNDG1)
  383. C
  384. C******* Jacobian with respect to primitive variables
  385. C
  386. DG1DR=USGM1*ASONC/RC
  387. DG1DP=-1.0D0*USGM1*ASONC/PC
  388. DG1DUX=CNX
  389. DG1DUY=CNY
  390. DG1DUZ=CNZ
  391. C
  392. COEF=SURF/VOLU
  393. C
  394. DRORO=DFRDG1*DG1DR*COEF
  395. DROUX=DFRDG1*DG1DUX*COEF
  396. DROUY=DFRDG1*DG1DUY*COEF
  397. DROUZ=DFRDG1*DG1DUZ*COEF
  398. DROP=DFRDG1*DG1DP*COEF
  399. C
  400. DUXRO=DFMXG1*DG1DR*COEF
  401. DUXUX=DFMXG1*DG1DUX*COEF
  402. DUXUY=DFMXG1*DG1DUY*COEF
  403. DUXUZ=DFMXG1*DG1DUZ*COEF
  404. DUXP=DFMXG1*DG1DP*COEF
  405. C
  406. DUYRO=DFMYG1*DG1DR*COEF
  407. DUYUX=DFMYG1*DG1DUX*COEF
  408. DUYUY=DFMYG1*DG1DUY*COEF
  409. DUYUZ=DFMYG1*DG1DUZ*COEF
  410. DUYP=DFMYG1*DG1DP*COEF
  411. C
  412. DUZRO=DFMZG1*DG1DR*COEF
  413. DUZUX=DFMZG1*DG1DUX*COEF
  414. DUZUY=DFMZG1*DG1DUY*COEF
  415. DUZUZ=DFMZG1*DG1DUZ*COEF
  416. DUZP=DFMZG1*DG1DP*COEF
  417. C
  418. DPRO=DFEDG1*DG1DR*COEF
  419. DPUX=DFEDG1*DG1DUX*COEF
  420. DPUY=DFEDG1*DG1DUY*COEF
  421. DPUZ=DFEDG1*DG1DUZ*COEF
  422. DPP=DFEDG1*DG1DP*COEF
  423. C
  424. C******* Jacobian with respect to conservative variables
  425. C
  426. IF(IJAC.EQ.1)THEN
  427. C
  428. COEF1=-1.0D0*UXC/RC
  429. COEF2=-1.0D0*UYC/RC
  430. COEF3=-1.0D0*UZC/RC
  431. COEF4=0.5D0*GM1*((UXC*UXC)+(UYC*UYC)+(UZC*UZC))
  432. C
  433. RR.AM(IFAC,1,1)=DRORO+(DROUX*COEF1)+(DROUY*COEF2)+(DROUZ
  434. $ *COEF3)+(DROP*COEF4)
  435. RUX.AM(IFAC,1,1)=(DROUX/RC)-((UXC*GM1)*DROP)
  436. RUY.AM(IFAC,1,1)=(DROUY/RC)-((UYC*GM1)*DROP)
  437. RUZ.AM(IFAC,1,1)=(DROUZ/RC)-((UZC*GM1)*DROP)
  438. RRET.AM(IFAC,1,1)=GM1*DROP
  439. C
  440. UXR.AM(IFAC,1,1)=DUXRO+(DUXUX*COEF1)+(DUXUY*COEF2)+(DUXUZ
  441. $ *COEF3)+(DUXP*COEF4)
  442. UXUX.AM(IFAC,1,1)=(DUXUX/RC)-((UXC*GM1)*DUXP)
  443. UXUY.AM(IFAC,1,1)=(DUXUY/RC)-((UYC*GM1)*DUXP)
  444. UXUZ.AM(IFAC,1,1)=(DUXUZ/RC)-((UZC*GM1)*DUXP)
  445. UXRET.AM(IFAC,1,1)=GM1*DUXP
  446. C
  447. UYR.AM(IFAC,1,1)=DUYRO+(DUYUX*COEF1)+(DUYUY*COEF2)+(DUYUZ
  448. $ *COEF3)+(DUYP*COEF4)
  449. UYUX.AM(IFAC,1,1)=(DUYUX/RC)-((UXC*GM1)*DUYP)
  450. UYUY.AM(IFAC,1,1)=(DUYUY/RC)-((UYC*GM1)*DUYP)
  451. UYUZ.AM(IFAC,1,1)=(DUYUZ/RC)-((UZC*GM1)*DUYP)
  452. UYRET.AM(IFAC,1,1)=GM1*DUYP
  453. C
  454. UZR.AM(IFAC,1,1)=DUZRO+(DUZUX*COEF1)+(DUZUY*COEF2)+(DUZUZ
  455. $ *COEF3)+(DUZP*COEF4)
  456. UZUX.AM(IFAC,1,1)=(DUZUX/RC)-((UXC*GM1)*DUZP)
  457. UZUY.AM(IFAC,1,1)=(DUZUY/RC)-((UYC*GM1)*DUZP)
  458. UZUZ.AM(IFAC,1,1)=(DUZUZ/RC)-((UZC*GM1)*DUZP)
  459. UZRET.AM(IFAC,1,1)=GM1*DUZP
  460. C
  461. RETR.AM(IFAC,1,1)=DPRO+(DPUX*COEF1)+(DPUY*COEF2)+(DPUZ
  462. $ *COEF3)+(DPP*COEF4)
  463. RETUX.AM(IFAC,1,1)=(DPUX/RC)-((UXC*GM1)*DPP)
  464. RETUY.AM(IFAC,1,1)=(DPUY/RC)-((UYC*GM1)*DPP)
  465. RETUZ.AM(IFAC,1,1)=(DPUZ/RC)-((UZC*GM1)*DPP)
  466. RETRET.AM(IFAC,1,1)=GM1*DPP
  467. C
  468. ELSEIF(IJAC.EQ.2)THEN
  469. RR.AM(IFAC,1,1)=DRORO
  470. RUX.AM(IFAC,1,1)=DROUX
  471. RUY.AM(IFAC,1,1)=DROUY
  472. RUZ.AM(IFAC,1,1)=DROUZ
  473. RRET.AM(IFAC,1,1)=DROP
  474. C
  475. UXR.AM(IFAC,1,1)=DUXRO
  476. UXUX.AM(IFAC,1,1)=DUXUX
  477. UXUY.AM(IFAC,1,1)=DUXUY
  478. UXUZ.AM(IFAC,1,1)=DUXUZ
  479. UXRET.AM(IFAC,1,1)=DUXP
  480. C
  481. UYR.AM(IFAC,1,1)=DUYRO
  482. UYUX.AM(IFAC,1,1)=DUYUX
  483. UYUY.AM(IFAC,1,1)=DUYUY
  484. UYUZ.AM(IFAC,1,1)=DUYUZ
  485. UYRET.AM(IFAC,1,1)=DUYP
  486. C
  487. UZR.AM(IFAC,1,1)=DUZRO
  488. UZUX.AM(IFAC,1,1)=DUZUX
  489. UZUY.AM(IFAC,1,1)=DUZUY
  490. UZUZ.AM(IFAC,1,1)=DUZUZ
  491. UZRET.AM(IFAC,1,1)=DUZP
  492. C
  493. RETR.AM(IFAC,1,1)=DPRO
  494. RETUX.AM(IFAC,1,1)=DPUX
  495. RETUY.AM(IFAC,1,1)=DPUY
  496. RETUZ.AM(IFAC,1,1)=DPUZ
  497. RETRET.AM(IFAC,1,1)=DPP
  498. ENDIF
  499.  
  500. ENDDO
  501. C
  502. SEGDES MELEFC
  503. C
  504. SEGSUP MLEMC
  505. SEGSUP MLEMCB
  506. SEGSUP MLEMF
  507. C
  508. SEGDES MPNORM
  509. SEGDES MPVOL
  510. SEGDES MPSURF
  511. SEGDES MPRC
  512. SEGDES MPPC
  513. SEGDES MPVC
  514. SEGDES MPGAMC
  515. SEGDES MPLIM
  516. C
  517. SEGDES RR , RUX , RUY , RUZ ,RRET ,
  518. & UXR , UXUX , UXUY , UXUZ ,UXRET ,
  519. & UYR , UYUX , UYUY , UYUZ , UYRET ,
  520. & UZR , UZUX , UZUY , UZUZ , UZRET ,
  521. & RETR , RETUX , RETUY, RETUZ , RETRET
  522. C
  523. 9999 CONTINUE
  524. RETURN
  525. END
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  

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