cmaxta
C CMAXTA SOURCE PV 17/12/08 21:16:00 9660 & NELMAT,NWA,NCHAIN) C MAXTRA SOURCE AM 00/12/13 21:38:27 4045 * SUBROUTINE MAXTRA(WRK0,WRK1,WRK5,WR12,WTRAV,IB,IGAU,NBGMAT, * & NELMAT,NPINT,NWA,NSTRS,NCHAIN,CMATE,MFR) * * MODELE DE MAXWELL : RECUPERATION DES INFORMATIONS * IMPLICIT INTEGER(I-N) IMPLICIT REAL*8(A-H,O-Z) * -INC PPARAM -INC CCOPTIO -INC SMEVOLL -INC SMLREEL -INC CCHAMP -INC DECHE * * SEGMENT WR12 REAL*8 EM0(2,NWA(1)),EM1(2,NWA(2)),EM2(2,NWA(3)) REAL*8 EM3(2,NWA(4)),EM4(2,NWA(5)),EM5(2,NWA(6)) REAL*8 EM6(2,NWA(7)),EM7(2,NWA(8)),EM8(2,NWA(9)) REAL*8 SM0(NSTRS),SM1(NSTRS),SM2(NSTRS),SM3(NSTRS) REAL*8 SM4(NSTRS),SM5(NSTRS),SM6(NSTRS),SM7(NSTRS) REAL*8 SM8(NSTRS) ENDSEGMENT * DIMENSION NWA(9),IPX(9),IPY(9) * ncxmat=xmat(/1) DO JC=1,9 NWA(JC)=0 IPX(JC)=0 IPY(JC)=0 END DO * ******* Cas d'une formulation isotrope IF(CMATE.EQ.'ISOTROPE') THEN * em0 MEVOLL=NINT(XMAT(3)) SEGACT MEVOLL KEVOLL=IEVOLL(1) SEGACT KEVOLL MLREEL=IPROGX IPX(1)=IPROGX IPY(1)=IPROGY SEGACT MLREEL SEGDES KEVOLL*NOMOD SEGDES MEVOLL*NOMOD * * em1 a em4 * KED=4 DO JC=2,5 MEVOLL=NINT(XMAT(KED)) KED=KED+2 SEGACT MEVOLL KEVOLL=IEVOLL(1) SEGACT KEVOLL MLREEL=IPROGX IPX(JC)=IPROGX IPY(JC)=IPROGY SEGACT MLREEL SEGDES KEVOLL*NOMOD SEGDES MEVOLL*NOMOD END DO * NCHAIN=5 JED=0 IF(IFOUR.EQ.-2) JED=1 KED=15+JED DO JC=6,9 MEVOLL=NINT(XMAT(KED)) KED= KED+2 IF(MEVOLL.GT.0) THEN SEGACT MEVOLL KEVOLL=IEVOLL(1) SEGACT KEVOLL MLREEL=IPROGX IPX(JC)=IPROGX IPY(JC)=IPROGY SEGACT MLREEL NCHAIN=NCHAIN+1 SEGDES KEVOLL*NOMOD SEGDES MEVOLL*NOMOD ENDIF END DO * ******* Cas d'une formulation unidirectionnelle ELSE IF(CMATE.EQ.'UNIDIREC') THEN * JED=0 IF(IFOUR.EQ.2) JED=4 * em0 MEVOLL=NINT(XMAT(4+JED)) SEGACT MEVOLL KEVOLL=IEVOLL(1) SEGACT KEVOLL MLREEL=IPROGX IPX(1)=IPROGX IPY(1)=IPROGY SEGACT MLREEL SEGDES KEVOLL*NOMOD SEGDES MEVOLL*NOMOD * * em1 a em4 * KED=5+JED DO JC=2,5 MEVOLL=NINT(XMAT(KED)) KED=KED+2 SEGACT MEVOLL KEVOLL=IEVOLL(1) SEGACT KEVOLL MLREEL=IPROGX IPX(JC)=IPROGX IPY(JC)=IPROGY SEGACT MLREEL SEGDES KEVOLL*NOMOD SEGDES MEVOLL*NOMOD END DO * NCHAIN=5 JED=0 IF(IFOUR.EQ.-2) JED=1 IF(IFOUR.EQ. 2) JED=4 KED=15+JED DO JC=6,9 MEVOLL=NINT(XMAT(KED)) KED=KED+2 IF(MEVOLL.GT.0) THEN SEGACT MEVOLL KEVOLL=IEVOLL(1) SEGACT KEVOLL MLREEL=IPROGX IPX(JC)=IPROGX IPY(JC)=IPROGY SEGACT MLREEL NCHAIN=NCHAIN+1 SEGDES KEVOLL*NOMOD SEGDES MEVOLL*NOMOD ENDIF END DO ENDIF * * creation du segment de travail * IF (WR12 .EQ. 0) THEN SEGINI,WR12 ELSE IF (EM0(/1).NE.2 .OR. EM0(/2).NE.NWA(1) .OR. & EM1(/2).NE.NWA(2) .OR. EM2(/2).NE.NWA(3) .OR. & EM3(/2).NE.NWA(4) .OR. EM4(/2).NE.NWA(5) .OR. & EM5(/2).NE.NWA(6) .OR. EM5(/2).NE.NWA(7) .OR. & EM7(/2).NE.NWA(8) .OR. EM8(/2).NE.NWA(9) .OR. & SM0(/1).NE. NSTRS) THEN SEGADJ,WR12 ENDIF ENDIF * * recuperation des proprietes materielles * et des variables internes * D'abord les composantes obligatoires * DO JC=1,5 MLREEL=IPX(JC) MLREE1=IPY(JC) SEGACT MLREE1 MLREE2=NINT(VAR0(JC+1)) SEGACT MLREE2 IF(JC.EQ.1) THEN DO JD=1,NWA(1) END DO DO JD=1,NSTRS END DO ELSE IF(JC.EQ.2) THEN DO JD=1,NWA(2) END DO DO JD=1,NSTRS END DO ELSE IF(JC.EQ.3) THEN DO JD=1,NWA(3) END DO DO JD=1,NSTRS END DO ELSE IF(JC.EQ.4) THEN DO JD=1,NWA(4) END DO DO JD=1,NSTRS END DO ELSE IF(JC.EQ.5) THEN DO JD=1,NWA(5) END DO DO JD=1,NSTRS END DO ENDIF END DO * * traitement des composantes facultatives * DO JC=6,9 IF(IPX(JC).NE.0) THEN MLREEL=IPX(JC) MLREE1=IPY(JC) SEGACT MLREE1 MLREE2=NINT(VAR0(JC+1)) SEGACT MLREE2 IF(JC.EQ.6) THEN DO JD=1,NWA(6) END DO DO JD=1,NSTRS END DO ELSE IF(JC.EQ.7) THEN DO JD=1,NWA(7) END DO DO JD=1,NSTRS END DO ELSE IF(JC.EQ.8) THEN DO JD=1,NWA(8) END DO DO JD=1,NSTRS END DO ELSE IF(JC.EQ.9) THEN DO JD=1,NWA(9) END DO DO JD=1,NSTRS END DO ENDIF ENDIF END DO * * ROTATION DES TENSEURS SI BESOIN * * ******* Cas d'une formulation unidirectionnelle * IF(CMATE.EQ.'UNIDIREC') THEN IF(MFR.EQ.1.OR.MFR.EQ.33) THEN IF(IERR.NE.0) RETURN ICAS=1 ELSE RETURN ENDIF ENDIF * * DESACTIVATION DES SEGMENTS PROG * DO 10 JC=1,9 C# MC : la dimension est definie au depart = 9 IF (IPX(JC).EQ.0) GO TO 10 MLREEL=IPX(JC) SEGDES MLREEL*NOMOD MLREE1=IPY(JC) SEGDES MLREE1*NOMOD MLREE2=NINT(VAR0(JC+1)) SEGDES MLREE2*NOMOD 10 CONTINUE * RETURN END
© Cast3M 2003 - Tous droits réservés.
Mentions légales