Télécharger cli113.eso

Retour à la liste

Numérotation des lignes :

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

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