OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r8sumg3.F
Go to the documentation of this file.
1Copyright> OpenRadioss
2Copyright> Copyright (C) 1986-2025 Altair Engineering Inc.
3Copyright>
4Copyright> This program is free software: you can redistribute it and/or modify
5Copyright> it under the terms of the GNU Affero General Public License as published by
6Copyright> the Free Software Foundation, either version 3 of the License, or
7Copyright> (at your option) any later version.
8Copyright>
9Copyright> This program is distributed in the hope that it will be useful,
10Copyright> but WITHOUT ANY WARRANTY; without even the implied warranty of
11Copyright> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12Copyright> GNU Affero General Public License for more details.
13Copyright>
14Copyright> You should have received a copy of the GNU Affero General Public License
15Copyright> along with this program. If not, see <https://www.gnu.org/licenses/>.
16Copyright>
17Copyright>
18Copyright> Commercial Alternative: Altair Radioss Software
19Copyright>
20Copyright> As an alternative to this open-source version, Altair also offers Altair Radioss
21Copyright> software under a commercial license. Contact Altair to discuss further if the
22Copyright> commercial version may interest you: https://www.altair.com/radioss/.
23!||====================================================================
24!|| r8sumg3 ../engine/source/elements/spring/r8sumg3.F
25!||--- called by ------------------------------------------------------
26!|| r8ke3 ../engine/source/elements/spring/r8ke3.F
27!||====================================================================
28 SUBROUTINE r8sumg3(JFT ,JLT ,KX ,KY ,KZ ,
29 2 MX ,MY ,MZ ,R11 ,R12 ,
30 3 R13 ,R21 ,R22 ,R23 ,R31 ,
31 4 R32 ,R33 ,KE11 ,KE12 ,KE22 )
32C---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
33#include "implicit_f.inc"
34#include "mvsiz_p.inc"
35C-----------------------------------------------
36C D U M M Y A R G U M E N T S
37C-----------------------------------------------
38 INTEGER JFT,JLT
39 my_real
40 . KX(*),KY(*),KZ(*),
41 . mx(*),my(*),mz(*),
42 . r11(*),r12(*),r13(*),
43 . r21(*),r22(*),r23(*),
44 . r31(*),r32(*),r33(*)
45 my_real
46 . ke11(6,6,*),ke22(6,6,*),ke12(6,6,*)
47C-----------------------------------------------
48C L O C A L V A R I A B L E S
49C-----------------------------------------------
50 INTEGER I, J, EP,IS,IAS,MI,MJ
51 my_real
52 . Q(3,3,MVSIZ),K11(3,MVSIZ),M11(3,MVSIZ),
53 . m12(3,mvsiz),q1,q2,q3
54C---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
55 DO i=jft,jlt
56 k11(1,i)=kx(i)
57 k11(2,i)=ky(i)
58 k11(3,i)=kz(i)
59 m11(1,i)=mx(i)
60 m11(2,i)=my(i)
61 m11(3,i)=mz(i)
62 m12(1,i)=-m11(1,i)
63 m12(2,i)=-m11(2,i)
64 m12(3,i)=-m11(3,i)
65 ENDDO
66C---------------------------------------
67C TRANS LOCAL-->GLOBAL
68C---------------------------------------
69 DO i=jft,jlt
70 q(1,1,i)=r11(i)
71 q(1,2,i)=r21(i)
72 q(1,3,i)=r31(i)
73 q(2,1,i)=r12(i)
74 q(2,2,i)=r22(i)
75 q(2,3,i)=r32(i)
76 q(3,1,i)=r13(i)
77 q(3,2,i)=r23(i)
78 q(3,3,i)=r33(i)
79 ENDDO
80C---------------------------------------
81C ASSEMBLAGE
82C---------------------------------------
83C---------KII ----Keij=QkiQkj*Kkk---M12 est diag-
84 DO i=1,3
85 mi=i+3
86 DO j=i,3
87 mj=j+3
88 DO ep=jft,jlt
89 q1 =q(1,i,ep)*q(1,j,ep)
90 q2 =q(2,i,ep)*q(2,j,ep)
91 q3 =q(3,i,ep)*q(3,j,ep)
92 ke11(i,j,ep)=q1*k11(1,ep)+q2*k11(2,ep)+q3*k11(3,ep)
93 ke11(mi,mj,ep)=q1*m11(1,ep)+q2*m11(2,ep)+q3*m11(3,ep)
94 ke12(mi,mj,ep)=q1*m12(1,ep)+q2*m12(2,ep)+q3*m12(3,ep)
95 ke22(i,j,ep)=ke11(i,j,ep)
96 ke22(mi,mj,ep)=ke11(mi,mj,ep)
97 ENDDO
98 ENDDO
99 ENDDO
100C
101 DO i=1,3
102 DO j=1,3
103 mj=j+3
104 DO ep=jft,jlt
105 ke11(i,mj,ep)=zero
106 ke22(i,mj,ep)=zero
107 ENDDO
108 ENDDO
109 ENDDO
110C
111 DO i=1,6
112 DO j=i,6
113 DO ep=jft,jlt
114 ke11(j,i,ep)=ke11(i,j,ep)
115 ke22(j,i,ep)=ke22(i,j,ep)
116 ENDDO
117 ENDDO
118 ENDDO
119C---------KIJ --------
120 DO i=1,3
121 mi=i+3
122 DO j=1,3
123 mj=j+3
124 DO ep=jft,jlt
125 ke12(i,j,ep)=-ke11(i,j,ep)
126 ke12(i,mj,ep)=zero
127 ke12(mi,j,ep)=zero
128 ENDDO
129 ENDDO
130 ENDDO
131 DO ep=jft,jlt
132 ke12(5,4,ep)=ke12(4,5,ep)
133 ke12(6,4,ep)=ke12(4,6,ep)
134 ke12(6,5,ep)=ke12(5,6,ep)
135 ENDDO
136C
137 RETURN
138 END
139
subroutine r8sumg3(jft, jlt, kx, ky, kz, mx, my, mz, r11, r12, r13, r21, r22, r23, r31, r32, r33, ke11, ke12, ke22)
Definition r8sumg3.F:32