Télécharger zcvit.eso
Retour à la liste
zcvit
C ZCVIT SOURCE GOUNAND 23/07/31 21:15:07 11713
& (HR,RPG,DRR,LE,NEL,K0,NPTD,IES,NP,IAXI,
& IPADL,IKOMP,IKAS,
& RO,IKR,
& COEFF,IK1,RGE,IKG,NELG,TN,IKT,TREF,IKREF,
& AMUT,GN,UN,TK,TE,
& F,GK,GE,
& GK1,GE1,
& DK,DE,
& VOLU,COTE,NELZ,IDCEN,IMODEL,
& DT,DTT1,DTT2,NUEL,DIAEL,DIAM)
IMPLICIT INTEGER(I-N)
IMPLICIT REAL*8 (A-H,O-Z)
C***********************************************************************
C APPELE PAR NSKE
C CE SP DISCRETISE LES EQUATIONS DE NAVIER STOKES COUPLEES
C AUX DEUX EQUATIONS DU MODELE K - EPSILON
C EN 2D SUR LES ELEMENTS QUA4 ET TRI3 PLAN OU AXI
C EN 3D SUR LES ELEMENTS CUB8 ET PRI6
C LES OPERATEURS SONT "SOUS-INTEGRES"
C
C***
C
C MODELE K - EPSILON
C
C
C CONSTANTES : CNU=0.09D0 C1=1.41D0 C2=1.92D0
C SGT=0.9D0 SGK=1.D0 SGE=1.3D0
C
C P --> TABLEAU P
C
C LE NU TURBULENT EST CALCULE PAR ELEMENT
C IL N EST PAS TRANSMIS EN ARGUMENT
C
C IPRE = 1 ON CONTROLE K ET EPSILON A CHAQUE APS DE TEMPS
C
C
C***********************************************************************
DIMENSION UN(NPTD,IES),GN(NPTD,IES),TK(NPTD),TE(NPTD)
DIMENSION AMUT(*),RO(*)
DIMENSION COTE(NELZ,IES),VOLU(NELZ)
C NOMBRE DE NOEUDS MAX PAR ELEMENT NPX
PARAMETER (NPX=9)
C LONGUEUR DES REGISTRES VECTORIELS DE LA MACHINE CIBLE
PARAMETER (LRV=64)
C
DIMENSION IPADL(*),LE(NP,*)
DIMENSION HR(NEL,NP,IES),RPG(*),DRR(NP,NEL)
DIMENSION QGGT(8,8),Q1(8,8),Q2(8,8),Q3(8,8)
SAVE QGGT,Q1,Q2,Q3
REAL*8 F(NPTD,IES)
REAL*8 GK(NPTD),GK1(NPTD),DK(NPTD)
REAL*8 GE(NPTD),GE1(NPTD),DE(NPTD)
*-
C* -TABLEAUX ADDITIONNELS POUR LA VECTORISATION **********************
C
C ---- ILS CONDUISENT A UN SURCOUT DE LRV*(59+25NPX) MOTS. AVEC NPX=9
C ET LRV=128 ON OBTIENT 37KMOTS (0.3 MEGAOCTETS) ET CECI QUELLE
C SOIT LA NOMBRE TOTAL D'ELEMENTS DU MAILLAGE
C ------------------------------------------------------------------
DIMENSION AIRE(LRV),COEF(LRV),AL(LRV),AH(LRV),AP(LRV)
DIMENSION XMB(LRV),XMH (LRV)
DIMENSION CFM(LRV)
C DIMENSION CF1(LRV),CF2(LRV),CF3(LRV)
C
DIMENSION DR(LRV,NPX)
DIMENSION UIX(LRV,NPX),UIY(LRV,NPX),UIZ(LRV,NPX)
DIMENSION GIX(LRV,NPX),GIY(LRV,NPX),GIZ(LRV,NPX)
DIMENSION AK(LRV,NPX),AE(LRV,NPX)
C
DIMENSION UM(LRV),UMI(LRV,3),AKM(LRV),AEM(LRV),ARO(LRV)
DIMENSION P(LRV),PG(LRV),ANUT(LRV),
; DUDX(LRV),DUDY(LRV),DUDZ(LRV),DVDX(LRV),DVDY(LRV),
; DVDZ(LRV),DWDX(LRV),DWDY(LRV),DWDZ(LRV),
; DTDX(LRV),DTDY(LRV),DTDZ(LRV)
C
DIMENSION C1P(LRV),C1G(LRV),COEFT(LRV),COEFK(LRV),COEFE(LRV)
C
DIMENSION BE1(LRV,NPX)
C
C
C ---- TABLEAUX POUR L'OPTION RAPIDE -------------------------------
C DANS LA TRIPLE BOUCLE SUR K,I,J ON PEUT SORTIR UN MAXIMUM
C D'OPERATIONS DE LA BOUCLES LA PLUS INTERNE. LES TABLEAUX CI-
C DESSOUS PERMETTENT DE STOCKER LES VALEURS CALCULEES
C ------------------------------------------------------------------
C***
DIMENSION COEFF(*),RGE(NELG,IES)
DIMENSION TN(*),TREF(*)
DIMENSION RGX(LRV),RGY(LRV),RGZ(LRV)
DIMENSION SAF1(LRV,9),SAF2(LRV,9),SAF3(LRV,9)
DIMENSION SAFK(LRV,9),SAFE(LRV,9)
DIMENSION AL2(LRV),AH2(LRV),AP2(LRV)
DIMENSION GRADGX(LRV,3),GRADGY(LRV,3),GRADGZ(LRV,3)
DIMENSION GRADK (LRV,3),GRADE (LRV,3)
DIMENSION UPGX(LRV),UPIGX(LRV,3),UPGY(LRV),UPIGY(LRV,3)
DIMENSION UPGZ(LRV),UPIGZ(LRV,3)
DIMENSION UPK (LRV),UPIK (LRV,3),UPE (LRV),UPIE (LRV,3)
DIMENSION BM(LRV),BPGX(LRV),BPGY(LRV),BPGZ(LRV)
DIMENSION BPK (LRV),BPE (LRV)
DIMENSION GXCXT(LRV),GXCYT(LRV),GXCZT(LRV)
DIMENSION GXCXY(LRV),GXCXZ(LRV),GXCYZ(LRV)
DIMENSION GYCXT(LRV),GYCYT(LRV),GYCZT(LRV)
DIMENSION GYCXY(LRV),GYCXZ(LRV),GYCYZ(LRV)
DIMENSION GZCXT(LRV),GZCYT(LRV),GZCZT(LRV)
DIMENSION GZCXY(LRV),GZCXZ(LRV),GZCYZ(LRV)
DIMENSION GKCXT(LRV),GKCYT(LRV),GKCZT(LRV)
DIMENSION GKCXY(LRV),GKCXZ(LRV),GKCYZ(LRV)
DIMENSION GECXT(LRV),GECYT(LRV),GECZT(LRV)
DIMENSION GECXY(LRV),GECXZ(LRV),GECYZ(LRV)
DIMENSION CONST(2,7)
SAVE IPAS
DATA IPAS/0/
C Constantes du modèle RNG
C DATA CNU,C1,C2,C3/0.0845D0,1.42D0,1.68D0,0.8D0/
C DATA SGT,SGK,SGE /0.9D0,0.7179D0,0.7179D0/
C
C Modèle standard
C DATA CNU,C1,C2,C3,SGT,SGE/0.09D0,1.41D0,1.92D0,0.8D0,0.9D0,1.3D0/
C
C IMODEL=1 modele Standard IMODEL=2 modele RNG
C
C
C*** Variation des constantes en fonction du modèle
DATA (CONST(1,j),j=1,4) /0.09D0,1.41D0,1.92D0,0.8D0/
DATA (CONST(1,j),j=5,7) /0.9D0,1.D0,1.3D0/
DATA (CONST(2,j),j=1,4) /0.0845D0,1.42D0,1.68D0,0.8D0/
DATA (CONST(2,j),j=5,7) /0.9D0,0.7179D0,0.7179D0/
C***
C
CDIR$ VECTOR
CDIR$ IVDEP
C WRITE(IOIMP,*)' Debut YCVIT'
C WRITE(IOIMP,*)' NELZ,ies=',nelz,ies
C WRITE(IOIMP,1002)cote
C WRITE(IOIMP,*)' Avt precaution ies=',ies
C
C INITIALISATIONS DIVERSES
C
C zxzini = sqrt(xpetit)
C un peu plus grand sinon on underflow dans les calculs de normes
zxzini = xpetit**0.33D0
DTM1=0.D0
IPRE=0
C IF(IPAS.EQ.0)CALL CALHRG(QGGT,IES)
IF(IPAS.
EQ.0
)CALL CALHRH(QGGT,Q1,Q2,Q3,IES
) NK=K0
C ********
C * 2D *
C ********
C
C IMODEL=3
C Suite de la definition des constantes
C IF(IMODEL.EQ.3) THEN
C IMO=2
C ELSE
C IMO=1
C ENDIF
C
C (IMODEL=1 modèle Standard ; IMODEL=2 modèle RNG)
CNU=CONST(IMODEL,1)
C3=CONST(IMODEL,4)
SGT=CONST(IMODEL,5)
SGK=CONST(IMODEL,6)
SGE=CONST(IMODEL,7)
C
IF(IES.EQ.3)GO TO 10
C
C PRECAUTIONS
C
C WRITE(IOIMP,*)' juste Avt precaution K0=',K0
IF(K0.GT.0)GO TO 52
IF(IPRE.EQ.0)GO TO 52
DT3=0.D0
ECHLM=DIAM
C WRITE(IOIMP,*)' echlm=',echlm,' nptd=',nptd
DO 51 I=1,NPTD
C. IF(DK(I).LT.XPETIT)GOTO 51
C. IF(DE(I).LT.XPETIT)GOTO 51
UMP=UN(I,1)*UN(I,1)+UN(I,2)*UN(I,2)
UMP=SQRT(UMP)
C AKMAX=4.D0*UMP*UMP+zxzini
TK(I)=ABS(TK(I))+zxzini
TE(I)=ABS(TE(I))+zxzini
ECHL=(TK(I)+zxzini)**1.5D0/(TE(I)+zxzini)
C IF(TK(I).LT.AKMAX.AND.ECHL.LT.ECHLM)GO TO 51
IF(ECHL.LT.ECHLM)GO TO 51
C REM=UMP*DIAM/COEFF(1)
DT3=DT3+1.D0
C TEMAX=AKMAX**1.5D0/ECHLM
CP IF(TK(I).GT.AKMAX)TK(I)=((TK(I)-AKMAX)*AKMAX/(TK(I)+AKMAX))+AKMAX
IF(ECHL.GT.ECHLM)TE(I)=TK(I)**1.5D0/
& (((ECHL-ECHLM)*ECHLM/(ECHL+ECHLM))+ECHLM)
C IF(REM.LT.1.D0)TE(I)=CNU*TK(I)**2.D0*10.D0/COEFF(1)
51 CONTINUE
52 CONTINUE
C WRITE(IOIMP,*)' Apr precaution '
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C DIFFERENCES TRIANGLE / QUADRANGLE
QUA4=0.D0
IF(NP.EQ.4)QUA4=1.D0
C
C K EST LE NUMERO DE L'ELEMENT
C KP PERMET DE SE SITUER A L'INTERIEUR DES TABLEAUX DE LRV ELEMENTS
C --- CALCUL DU NOMBRE DE PAQUETS DE LRV ELEMENTS ---
NNN=MOD(NEL,LRV)
IF(NNN.EQ.0) NPACK=NEL/LRV
IF(NNN.NE.0) NPACK=1+(NEL-NNN)/LRV
KPACKD=1
KPACKF=NPACK
C
C*** BOUCLE SUR LES PAQUETS D'ELEMENTS ***
C
DO 70001 KPACK=KPACKD,KPACKF
C
C --- POUR CHAQUE PAQUET DE LRV ELEMENTS
KDEB=1+(KPACK-1)*LRV
KFIN=MIN(NEL,KDEB+LRV-1)
C WRITE(IOIMP,*)' KPACK=',KPACK
C
DO 70002 K=KDEB,KFIN
NK=K+K0
K1=1+(1-IK1)*(NK-1)
XMB
(KP)=(AL
(KP)+AH
(KP))*0.5D0
70002 CONTINUE
C WRITE(IOIMP,*)' Apr bcl 70002,,,,,,,,,,,,,,,,,,,,,,,, '
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C Initialisation des UMI,UMIT avant accumulation
DO 7005 K=KDEB,KFIN
7005 CONTINUE
DO 7006 I=1,NP
DO 6006 K=KDEB,KFIN
NF=IPADL(LE(I,K))
UMI
(KP,
1)=UMI
(KP,
1)+UN
(NF,
1)*DR
(KP,I
) UMI
(KP,
2)=UMI
(KP,
2)+UN
(NF,
2)*DR
(KP,I
) GRADGX
(KP,
1)=GRADGX
(KP,
1)+HR
(K,I,
1)*GIX
(KP,I
) GRADGX
(KP,
2)=GRADGX
(KP,
2)+HR
(K,I,
2)*GIX
(KP,I
) GRADGY
(KP,
1)=GRADGY
(KP,
1)+HR
(K,I,
1)*GIY
(KP,I
) GRADGY
(KP,
2)=GRADGY
(KP,
2)+HR
(K,I,
2)*GIY
(KP,I
) AKM
(KP)=AKM
(KP)+TK
(NF
)*DR
(KP,I
) AEM
(KP)=AEM
(KP)+TE
(NF
)*DR
(KP,I
) GRADK
(KP,
1)=GRADK
(KP,
1)+HR
(K,I,
1)*AK
(KP,I
) GRADK
(KP,
2)=GRADK
(KP,
2)+HR
(K,I,
2)*AK
(KP,I
) GRADE
(KP,
1)=GRADE
(KP,
1)+HR
(K,I,
1)*AE
(KP,I
) GRADE
(KP,
2)=GRADE
(KP,
2)+HR
(K,I,
2)*AE
(KP,I
)C *** CALCUL DU TERME DE PRODUCTION ****************************
DUDX
(KP) = DUDX
(KP)+HR
(K,I,
1)*UN
(NF,
1) DUDY
(KP) = DUDY
(KP)+HR
(K,I,
2)*UN
(NF,
1) DVDX
(KP) = DVDX
(KP)+HR
(K,I,
1)*UN
(NF,
2) DVDY
(KP) = DVDY
(KP)+HR
(K,I,
2)*UN
(NF,
2) 6006 CONTINUE
7006 CONTINUE
C WRITE(IOIMP,*)'Initialisation SAF1,SAF2,SBF '
C
C Initialisation des variables d'accumulation SAF1,SAF2,SBF
C
IF(IKOMP.EQ.0)THEN
DO 70060 K=KDEB,KFIN
70060 CONTINUE
IF(IKAS.EQ.2)THEN
DO 70061 I=1,NP
DO 60061 K=KDEB,KFIN
60061 CONTINUE
70061 CONTINUE
ELSEIF(IKAS.EQ.3)THEN
DO 70021 K=KDEB,KFIN
NK=K+K0
NKG=1+(1-IKG)*(NK-1)
70021 CONTINUE
DO 70062 I=1,NP
DO 60062 K=KDEB,KFIN
SAF1
(KP,I
)=(-RGX
(KP))*DR
(KP,I
) SAF2
(KP,I
)=(-RGY
(KP))*DR
(KP,I
) NKG=1+(1-IKG)*(NK-1)
DTDX
(KP)=DTDX
(KP)+HR
(K,I,
1)*RGE
(NKG,
1) DTDY
(KP)=DTDY
(KP)+HR
(K,I,
2)*RGE
(NKG,
2)60062 CONTINUE
70062 CONTINUE
ELSEIF(IKAS.EQ.5)THEN
DO 70022 K=KDEB,KFIN
NK=K+K0
NKG=1+(1-IKG)*(NK-1)
70022 CONTINUE
DO 70063 I=1,NP
DO 60063 K=KDEB,KFIN
NF=1+(1-IKT)*(IPADL(LE(I,K))-1)
NFR=1+(1-IKREF)*(IPADL(LE(I,K))-1)
SAF1
(KP,I
)=(-RGX
(KP)*(TREF
(NFR
)-TN
(NF
)))*DR
(KP,I
) SAF2
(KP,I
)=(-RGY
(KP)*(TREF
(NFR
)-TN
(NF
)))*DR
(KP,I
) DTDX
(KP)=DTDX
(KP)+HR
(K,I,
1)*TN
(NF
) DTDY
(KP)=DTDY
(KP)+HR
(K,I,
2)*TN
(NF
)60063 CONTINUE
70063 CONTINUE
ENDIF
ELSEIF(IKOMP.EQ.1)THEN
DO 70020 K=KDEB,KFIN
NK=K+K0
NKR=1+(1-IKR)*(NK-1)
70020 CONTINUE
IF(IKAS.EQ.4)THEN
DO 70064 I=1,NP
DO 60064 K=KDEB,KFIN
60064 CONTINUE
70064 CONTINUE
ELSEIF(IKAS.EQ.5)THEN
DO 70024 K=KDEB,KFIN
NK=K+K0
NKG=1+(1-IKG)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
2)*GRADE
(KP,
2) AX=SQRT(AX)+zxzini
GRADE
(KP,
1)=GRADE
(KP,
1)/AX
GRADE
(KP,
2)=GRADE
(KP,
2)/AX
UPE
(KP)=GRADE
(KP,
1)*UMI
(KP,
1)+GRADE
(KP,
2)*UMI
(KP,
2) UPIE
(KP,
1)=UPE
(KP)*GRADE
(KP,
1) UPIE
(KP,
2)=UPE
(KP)*GRADE
(KP,
2)
AMUT
(NK
)=ARO
(KP)*ANUT
(KP) COEFT
(KP)=COEF
(KP)+AMUT
(NK
) COEFK
(KP)=COEF
(KP)+ANUT
(KP)/SGK
COEFE
(KP)=COEF
(KP)+ANUT
(KP)/SGE
C --- 2. CALCUL DU TERME DE PRODUCTION PROPREMENT DIT ----------
PTEMP
=( (DUDY
(KP)+DVDX
(KP))**2 $
+ 2.
D0*(DUDX
(KP)**2+DVDY
(KP)**2) ) 7007 CONTINUE
C------------ANCIENNE VERSION--------------------
C IF(IAXI.NE.0) THEN
C DO 70012 K=KDEB,KFIN
C KP=K+1-KDEB
C P(KP)=P(KP)+2.D0*(UMI(KP,1)*UMI(KP,1))/(RPG(K)*RPG(K))
C70012 CONTINUE
C END IF
C
C IF(IKAS.EQ.5.AND.IKOMP.EQ.0)THEN
C IF(IMODEL.EQ.1)THEN
C DO 70113 K=KDEB,KFIN
C KP=K+1-KDEB
C PG(KP)=(RGX(KP)*DTDX(KP)+RGY(KP)*DTDY(KP))/SGT
C IF(PG(KP).GT.0.D0)C1G(KP)=C1
C70113 CONTINUE
C ELSEIF(IMODEL.EQ.2)THEN
C DO 70213 K=KDEB,KFIN
C KP=K+1-KDEB
C PG(KP)=(RGX(KP)*DTDX(KP)+RGY(KP)*DTDY(KP))/SGT
C RF =-PG(KP)/(P(KP)+PG(KP)+zxzini)
C IF(PG(KP).GT.0.D0)RF=0.D0
C C1G(KP)=C1*(1.D0+C3*RF)
C C1P(KP)=C1*(1.D0+C3*RF)
C70213 CONTINUE
C ENDIF
C ELSEIF(IKAS.EQ.2.AND.IKOMP.EQ.0)THEN
C IF(IMODEL.EQ.1)THEN
C DO 70114 K=KDEB,KFIN
C KP=K+1-KDEB
C PG(KP)=(DTDX(KP)+DTDY(KP))/SGT
C IF(PG(KP).GT.0.D0)C1G(KP)=C1
C70114 CONTINUE
C ELSEIF(IMODEL.EQ.2)THEN
C DO 70214 K=KDEB,KFIN
C KP=K+1-KDEB
C PG(KP)=(DTDX(KP)+DTDY(KP))/SGT
C RF =-PG(KP)/(P(KP)+PG(KP)+zxzini)
C IF(PG(KP).GT.0.D0)RF=0.D0
C C1G(KP)=C1*(1.D0+C3*RF )
C C1P(KP)=C1*(1.D0+C3*RF )
C70214 CONTINUE
C END IF
C END IF
C-------------VERSION POUR RNG---------------
IF(IKAS.EQ.5.AND.IKOMP.EQ.0)THEN
DO 70213 K=KDEB,KFIN
RF
=-PG
(KP)/(P
(KP)+PG
(KP)+zxzini
) IF(PG
(KP).
GT.0.
D0)RF
=0.
D0 70213 CONTINUE
ELSEIF(IKAS.EQ.2.AND.IKOMP.EQ.0)THEN
DO 70214 K=KDEB,KFIN
PG
(KP)=(DTDX
(KP)+DTDY
(KP))/SGT
RF
=-PG
(KP)/(P
(KP)+PG
(KP)+zxzini
) IF(PG
(KP).
GT.0.
D0)RF
=0.
D0 70214 CONTINUE
END IF
IF(IMODEL.EQ.2) THEN
ETA0=4.377D0
BETA0=0.012D0
ETA
=(P
(KP)**0.5D0
)*AKM
(KP)/AEM
(KP) RETA= ETA*(1.D0-(ETA/ETA0))/(1.D0+BETA0*(ETA**3.D0))
END IF
C --------------------------------------------------------------
C *** FIN DU CALCUL DU TERME DE PRODUCTION *********************
DO 70074 K=KDEB,KFIN
BM
(KP)=SQRT(BM
(KP))+zxzini
BPGX
(KP)=BPGXX
*BPGXX
+BPGXY
*BPGXY
BPGX
(KP)=SQRT(BPGX
(KP))+zxzini
BPGY
(KP)=BPGYX
*BPGYX
+BPGYY
*BPGYY
BPGY
(KP)=SQRT(BPGY
(KP))+zxzini
BPK
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U
+ ZVGVV
SAFK
(KP,I
)=SAFK
(KP,I
)+(V2
+ZVGK
)*AK
(KP,J
)+ZVGDK
SAFE
(KP,I
)=SAFE
(KP,I
)+(V2
+ZVGE
)*AE
(KP,J
)+ZVGDE
70152 CONTINUE
70151 CONTINUE
7015 CONTINUE
ENDIF
IF(IAXI.NE.0) THEN
DO 7016 I=1,NP
DO 70161 J=1,NP
DO 70162 K=KDEB,KFIN
C IP=LE(I,K)
C XG=XCOOR((IP-1)*(IDIM+1) +1)+zxzini
C R2=1.D0/XG/XG*DR(KP,I)
R2
=1.
D0/RPG
(K
)/RPG
(K
)*DR
(KP,I
) AX
=(GXCXT
(KP)+GXCYT
(KP))*0.5D0
SAF1
(KP,I
)=SAF1
(KP,I
)+R2
*(COEFT
(KP)*UIX
(KP,J
)+AX
70162 CONTINUE
70161 CONTINUE
7016 CONTINUE
IF(IKOMP.EQ.1)THEN
DO 7118 I=1,NP
DO 71181 K=KDEB,KFIN
SAF1
(KP,I
)=SAF1
(KP,I
)+R1
*UMI
(KP,
1)*GIX
(KP,I
) SAF2
(KP,I
)=SAF2
(KP,I
)+R1
*UMI
(KP,
1)*GIY
(KP,I
)
71181 CONTINUE
7118 CONTINUE
ENDIF
ENDIF
C
C --------------------------------------------------------------
C
C
DO 7017 I=1,NP
DO 70171 K=KDEB,KFIN
SAFK
(KP,I
)=SAFK
(KP,I
)-TSK
SAFE
(KP,I
)=SAFE
(KP,I
)-TSE
70171 CONTINUE
7017 CONTINUE
C
C
C --- ECRITURE DANS LES TABLEAUX F(1,*),F(2,*),G,GK,GE,GE1 (SCALAIRE)
DO 70019 I=1,NP
DO 60019 K=KDEB,KFIN
NF=IPADL(LE(I,K))
F
(NF,
1)=F
(NF,
1)+SAF1
(KP,I
) F
(NF,
2)=F
(NF,
2)+SAF2
(KP,I
) GK
(NF
) =GK
(NF
) +SAFK
(KP,I
) GE1
(NF
)=GE1
(NF
)+BE1
(KP,I
) GE
(NF
) =GE
(NF
)+SAFE
(KP,I
)60019 CONTINUE
70019 CONTINUE
70001 CONTINUE
C
C *** FIN DE LA BOUCLE SUR LES PAQUETS D'ELEMENTS ***
C
C WRITE(IOIMP,*)' FIN YCVIT GK='
C WRITE(IOIMP,1002)(GK(i),i=1,nptd)
IPAS=1
RETURN
C ********
C * 3D *
C ********
10 CONTINUE
C
C PRECAUTIONS
C
IF(K0.GT.0)GO TO 62
IF(IPRE.EQ.0)GO TO 62
DT3=0.D0
ECHLM=DIAM
DO 61 I=1,NPTD
IF(DK(I).LT.XPETIT)GOTO 61
IF(DE(I).LT.XPETIT)GOTO 61
UMP=UN(I,1)*UN(I,1)+UN(I,2)*UN(I,2)+UN(I,3)*UN(I,3)
UMP=SQRT(UMP)
C AKMAX=4.D0*UMP*UMP+zxzini
TK(I)=ABS(TK(I))+zxzini
TE(I)=ABS(TE(I))+zxzini
ECHL=(TK(I)+zxzini)**1.5D0/(TE(I)+zxzini)
C IF(TK(I).LT.AKMAX.AND.ECHL.LT.ECHLM)GO TO 61
IF(ECHL.LT.ECHLM)GO TO 61
C REM=UMP*DIAM/COEFF(1)
DT3=DT3+1.D0
C TEMAX=AKMAX**1.5D0/ECHLM
CP IF(TK(I).GT.AKMAX)TK(I)=((TK(I)-AKMAX)*AKMAX/(TK(I)+AKMAX))+AKMAX
IF(ECHL.GT.ECHLM)TE(I)=TK(I)**1.5D0/
& (((ECHL-ECHLM)*ECHLM/(ECHL+ECHLM))+ECHLM)
C IF(REM.LT.1.D0)TE(I)=CNU*TK(I)**2.D0*10.D0/COEFF(1)
61 CONTINUE
62 CONTINUE
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C DIFFERENCES HEXAHEDRES / AUTRES ELEMENTS
CUB8=0.D0
IF(NP.EQ.8)CUB8=1.D0
C
C K EST LE NUMERO DE L'ELEMENT
C KP PERMET DE SE SITUER A L'INTERIEUR DES TABLEAUX DE LRV ELEMENTS
C --- CALCUL DU NOMBRE DE PAQUETS DE LRV ELEMENTS ---
NNN=MOD(NEL,LRV)
IF(NNN.EQ.0) NPACK=NEL/LRV
IF(NNN.NE.0) NPACK=1+(NEL-NNN)/LRV
KPACKD=1
KPACKF=NPACK
C
C*** BOUCLE SUR LES PAQUETS D'ELEMENTS ***
C
DO 80001 KPACK=KPACKD,KPACKF
C
C --- POUR CHAQUE PAQUET DE LRV ELEMENTS
KDEB=1+(KPACK-1)*LRV
KFIN=MIN(NEL,KDEB+LRV-1)
C WRITE(IOIMP,*)' KPACK=',KPACK
C
DO 80002 K=KDEB,KFIN
NK=K+K0
K1=1+(1-IK1)*(NK-1)
C CF1(KP)=AL(KP)*AH(KP)/AP(KP)
C CF2(KP)=AL(KP)*AP(KP)/AH(KP)
C CF3(KP)=AP(KP)*AH(KP)/AL(KP)
80002 CONTINUE
C WRITE(IOIMP,*)' Apr bcl 80002,,,,,,,,,,,,,,,,,,,,,,,, '
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C Initialisation des UMI,UMIT avant accumulation
DO 8005 K=KDEB,KFIN
8005 CONTINUE
DO 8006 I=1,NP
DO 5006 K=KDEB,KFIN
NF=IPADL(LE(I,K))
UMI
(KP,
1)=UMI
(KP,
1)+UN
(NF,
1)*DR
(KP,I
) UMI
(KP,
2)=UMI
(KP,
2)+UN
(NF,
2)*DR
(KP,I
) UMI
(KP,
3)=UMI
(KP,
3)+UN
(NF,
3)*DR
(KP,I
) GRADGX
(KP,
1)=GRADGX
(KP,
1)+HR
(K,I,
1)*GIX
(KP,I
) GRADGX
(KP,
2)=GRADGX
(KP,
2)+HR
(K,I,
2)*GIX
(KP,I
) GRADGX
(KP,
3)=GRADGX
(KP,
3)+HR
(K,I,
3)*GIX
(KP,I
) GRADGY
(KP,
1)=GRADGY
(KP,
1)+HR
(K,I,
1)*GIY
(KP,I
) GRADGY
(KP,
2)=GRADGY
(KP,
2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 CONTINUE
C WRITE(IOIMP,*)'Initialisation SAF1,SAF2,SBF '
C
C Initialisation des variables d'accumulation SAF1,SAF2,SBF
C
IF(IKOMP.EQ.0)THEN
DO 80060 K=KDEB,KFIN
80060 CONTINUE
IF(IKAS.EQ.2)THEN
DO 80061 I=1,NP
DO 50061 K=KDEB,KFIN
50061 CONTINUE
80061 CONTINUE
ELSEIF(IKAS.EQ.3)THEN
DO 80021 K=KDEB,KFIN
NK=K+K0
NKG=1+(1-IKG)*(NK-1)
80021 CONTINUE
DO 80062 I=1,NP
DO 50062 K=KDEB,KFIN
SAF1
(KP,I
)=(-RGX
(KP))*DR
(KP,I
) SAF2
(KP,I
)=(-RGY
(KP))*DR
(KP,I
) SAF3
(KP,I
)=(-RGZ
(KP))*DR
(KP,I
) NKG=1+(1-IKG)*(NK-1)
DTDX
(KP)=DTDX
(KP)+HR
(K,I,
1)*RGE
(NKG,
1) DTDY
(KP)=DTDY
(KP)+HR
(K,I,
2)*RGE
(NKG,
2) DTDZ
(KP)=DTDZ
(KP)+HR
(K,I,
3)*RGE
(NKG,
3)50062 CONTINUE
80062 CONTINUE
ELSEIF(IKAS.EQ.5)THEN
DO 80022 K=KDEB,KFIN
NK=K+K0
NKG=1+(1-IKG)*(NK-1)
80022 CONTINUE
DO 80063 I=1,NP
DO 50063 K=KDEB,KFIN
NF=1+(1-IKT)*(IPADL(LE(I,K))-1)
NFR=1+(1-IKREF)*(IPADL(LE(I,K))-1)
SAF1
(KP,I
)=(-RGX
(KP)*(TREF
(NFR
)-TN
(NF
)))*DR
(KP,I
) SAF2
(KP,I
)=(-RGY
(KP)*(TREF
(NFR
)-TN
(NF
)))*DR
(KP,I
) SAF3
(KP,I
)=(-RGZ
(KP)*(TREF
(NFR
)-TN
(NF
)))*DR
(KP,I
) DTDX
(KP)=DTDX
(KP)+HR
(K,I,
1)*TN
(NF
) DTDY
(KP)=DTDY
(KP)+HR
(K,I,
2)*TN
(NF
) DTDZ
(KP)=DTDZ
(KP)+H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*GRADE
(KP,
2) & +GRADE
(KP,
3)*GRADE
(KP,
3) AX=SQRT(AX)+zxzini
GRADE
(KP,
1)=GRADE
(KP,
1)/AX
GRADE
(KP,
2)=GRADE
(KP,
2)/AX
GRADE
(KP,
3)=GRADE
(KP,
3)/AX
UPE
(KP)=GRADE
(KP,
1)*UMI
(KP,
1)+GRADE
(KP,
2)*UMI
(KP,
2) UPIE
(KP,
1)=UPE
(KP)*GRADE
(KP,
1) UPIE
(KP,
2)=UPE
(KP)*GRADE
(KP,
2) UPIE
(KP,
3)=UPE
(KP)*GRADE
(KP,
3)
AMUT
(NK
)=ARO
(KP)*ANUT
(KP) COEFT
(KP)=COEF
(KP)+AMUT
(NK
) COEFE
(KP)=COEF
(KP)+ANUT
(KP)/SGE
C --- 2.D0 CALCUL DU TERME DE PRODUCTION PROPREMENT DIT ----------
PTEMP
=( (DUDY
(KP)+DVDX
(KP))**2 + (DUDZ
(KP)+DWDX
(KP))**2 & + (DVDZ
(KP)+DWDY
(KP))**2 & + 2.
D0*(DUDX
(KP)**2+DVDY
(KP)**2+DWDZ
(KP)**2) ) 8007 CONTINUE
IF(IKAS.EQ.5.AND.IKOMP.EQ.0)THEN
IF(IMODEL.EQ.1)THEN
DO 80113 K=KDEB,KFIN
& +RGZ
(KP)*DTDZ
(KP) )/SGT
80113 CONTINUE
ELSEIF(IMODEL.EQ.2)THEN
DO 80213 K=KDEB,KFIN
& +RGZ
(KP)*DTDZ
(KP) )/SGT
RF
=-PG
(KP)/(P
(KP)+PG
(KP)+zxzini
) IF(PG
(KP).
GT.0.
D0)RF
=0.
D0 80213 CONTINUE
ENDIF
ELSEIF(IKAS.EQ.2.AND.IKOMP.EQ.0)THEN
IF(IMODEL.EQ.1)THEN
DO 80114 K=KDEB,KFIN
80114 CONTINUE
ELSEIF(IMODEL.EQ.2)THEN
DO 80214 K=KDEB,KFIN
RF
=-PG
(KP)/(P
(KP)+PG
(KP)+zxzini
) IF(PG
(KP).
GT.0.
D0)RF
=0.
D0 80214 CONTINUE
END IF
END IF
C --------------------------------------------------------------
C *** FIN DU CALCUL DU TERME DE PRODUCTION *********************
DO 80074 K=KDEB,KFIN
BM
(KP)=BMX
*BMX
+BMY
*BMY
+BMZ
*BMZ
BM
(KP)=SQRT(BM
(KP))+zxzini
BPGX
(KP)=BPGXX
*BPGXX
+BPGXY
*BPGXY
+BPGXZ
*BPGXZ
BPGX
(KP)=SQRT(BPGX
(KP))+zxzini
BPGY
(KP)=BPGYX
*BPGYX
+BPGYY
*BPGYY
+BPGYZ
*BPGYZ
BPGY
(KP)=SQRT(BPGY
(KP))+zxzini
BPGZ
(KP)=BPGZX
*BPGZX
+BPGZY
*BPGZY
+BPGZZ
*BPGZZ
BPGZ
(KP)=SQRT(BPGZ
(KP))+zxzini
BPK
(KP)=BPKX
*BPKX
+BPKY
*BPKY
+BPKZ
*BPKZ
BPK
(KP)=SQRT(BPK
(KP))+zxzini
BPE
(KP)=BPEX
*BPEX
+BPEY
*BPEY
+BPEZ
*BPEZ
BPE
(KP)=SQRT(BPE
(KP))+zxzini
80074 CONTINUE
C
C AVANT DECENTREMENT
C
C ALFA,AKSI,CCU utilisées seulement dans la boucle 7008
IF(IDCEN.EQ.1)THEN
DO 80081 K=KDEB,KFIN
80081 CONTINUE
ELSEIF(IDCEN.EQ.2)THEN
DO 8008 K=KDEB,KFIN
ALFA
=UM
(KP)*HMK
/COEFT
(KP)/2.
D0 AKSI=ALFA/3.D0
IF(ALFA.GT.3.D0)AKSI=1.D0
HPK
=2.
D0*UPGX
(KP)/BPGX
(KP) ALFA
=UPGX
(KP)*HPK
/COEFT
(KP)/2.
D0 AKSI=ALFA/3.D0
IF(ALFA.GT.3.D0)AKSI=1.D0
CPT=CCP-CCT
CC2X=0.D0
IF(CPT.GE.0.D0)CC2X=CPT
HPK
=2.
D0*UPGY
(KP)/BPGY
(KP) ALFA
=UPGY
(KP)*HPK
/COEFT
(KP)/2.
D0 AKSI=ALFA/3.D0
IF(ALFA.GT.3.D0)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)+UMI(KP,2)*DR(KP,I)*HR(K,J,2)
SAF1
(KP,I
)=SAF1
(KP,I
)+(V2
+ZVGGX
)*GIX
(KP,J
)+ZVGD
$
*UIX
(KP,J
)+ ZVGUU
+ ZVGUV
+ ZVGUW
SAF2
(KP,I
)=SAF2
(KP,I
)+(V2
+ZVGGY
)*GIY
(KP,J
)+ZVGD
$
*UIY
(KP,J
)+ ZVGVU
+ ZVGUV
+ ZVGVW
SAF3
(KP,I
)=SAF3
(KP,I
)+(V2
+ZVGGZ
)*GIZ
(KP,J
)+ZVGD
$
*UIZ
(KP,J
)+ ZVGWU
+ ZVGWV
+ ZVGWW
SAFK
(KP,I
)=SAFK
(KP,I
)+(V2
+ZVGK
)*AK
(KP,J
)+ZVGDK
SAFE
(KP,I
)=SAFE
(KP,I
)+(V2
+ZVGE
)*AE
(KP,J
)+ZVGDE
80152 CONTINUE
80151 CONTINUE
8015 CONTINUE
ENDIF
C
C --------------------------------------------------------------
C
C
DO 8017 I=1,NP
DO 80171 K=KDEB,KFIN
SAFK
(KP,I
)=SAFK
(KP,I
)-TSK
SAFE
(KP,I
)=SAFE
(KP,I
)-TSE
80171 CONTINUE
8017 CONTINUE
C
C
C --- ECRITURE DANS LES TABLEAUX F(1,*),F(2,*),G,GK,GE,GE1 (SCALAIRE)
DO 80019 I=1,NP
DO 50019 K=KDEB,KFIN
NF=IPADL(LE(I,K))
F
(NF,
1)=F
(NF,
1)+SAF1
(KP,I
) F
(NF,
2)=F
(NF,
2)+SAF2
(KP,I
) F
(NF,
3)=F
(NF,
3)+SAF3
(KP,I
) GK
(NF
) =GK
(NF
) +SAFK
(KP,I
) GE1
(NF
)=GE1
(NF
)+BE1
(KP,I
) GE
(NF
) =GE
(NF
)+SAFE
(KP,I
)50019 CONTINUE
80019 CONTINUE
80001 CONTINUE
C
C *** FIN DE LA BOUCLE SUR LES PAQUETS D'ELEMENTS ***
C
C WRITE(IOIMP,*)' FIN YCVIT GK='
C WRITE(IOIMP,1002)(GK(i),i=1,nptd)
IPAS=1
RETURN
1002 FORMAT(10(1X,1PE11.4))
END