cq3gra
C CQ3GRA SOURCE CHAT 05/01/12 22:26:51 5004 1 UE,XX,YY,P,XE,YE,ZE,DT,DF,SK,T,Q,SD,CM,TM) C C |====================================================================| C | | C | ELEMENT COQ3 CALCUL DES GRADIANS C | | C | ===== ENTREE | C | XXE(3,3) COORDONEES DES 3 NOEUDS DE L ELEMENT | C | RANGES X(1,2)=COORDONNEE X DU NOEUD 2 | C | X(2,2)=COORDONNEE Y DU NOEUD 2 | C | X(3,2)=COORDONNEE Z DU NOEUD 2 | C | UUE(18) VECTEUR DEPLACEMENT DE L ELEMENT | C | | C | ===== SORTIE | C | GRADI(9):GRADIAN AUX CENTRE DE GRAVITE | C | RANGEE 1-9 | C | UXDX UXDY UXDZ UYDX UYDY UYDZ UZDX UZDY UZDZ | C | MAIS UXDZ=-UZDX | C | UYDZ=-UZDY | C | CODE SUO X.Z. | C |====================================================================| IMPLICIT INTEGER(I-N) IMPLICIT REAL*8(A-H,O-Z) DIMENSION GRADI(9) DIMENSION XXE(3,3),UUE(18) DIMENSION UE(18),XX(3),YY(3),P(3,3),XE(3),YE(3),ZE(3) DIMENSION DT(6),DF(9),SK(4,6),T(4,2),Q(2,9) DIMENSION CM(4),TM(4),SD(2) C C DATA S1SUR9/0.111111111111111D0/,S2SUR9/0.222222222222222D0/ DATA S4SUR3/1.333333333333333D0/,S1SUR3/0.333333333333333D0/ DATA XZERO/0.D0/ C C DO 2 IP=1,18 2 UE(IP)=UUE(IP) DO 4 IP=1,3 XE(IP)=XXE(1,IP) YE(IP)=XXE(2,IP) ZE(IP)=XXE(3,IP) 4 CONTINUE DO 10 IP=1,6 IP1=3*(IP-1) DO 5 IQ=1,3 5 XX(IQ)=UE(IQ+IP1) DO 7 IQ=1,3 7 UE(IQ+IP1)=YY(IQ) 10 CONTINUE DO 8 IP=1,3 IP1=IP-1 IP2=2*IP1 IP3=3*IP1 IP6=6*IP1 DO 9 IQ=1,2 9 DT(IQ+IP2)=UE(IQ+IP6) DO 11 IQ=3,5 IQ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