OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
psumg3.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!|| psumg3 ../engine/source/elements/beam/psumg3.F
25!||--- called by ------------------------------------------------------
26!|| pke3 ../engine/source/elements/beam/pke3.F
27!||====================================================================
28 SUBROUTINE psumg3(JFT ,JLT ,YM ,G ,AREA ,
29 2 B1 ,B2 ,B3 ,AL ,ALI ,
30 3 SH1 ,SH2 ,R11 ,R12 ,R13 ,
31 4 R21 ,R22 ,R23 ,R31 ,R32 ,
32 5 R33 ,KE11 ,KE12 ,KE22 )
33C-----------------------------------------------
34#include "implicit_f.inc"
35#include "mvsiz_p.inc"
36C-----------------------------------------------
37C D U M M Y A R G U M E N T S
38C-----------------------------------------------
39 INTEGER JFT,JLT
40 my_real YM(*),G(*),AL(*),ALI(*),SH1(*),SH2(*),AREA(*),B1(*),B2(*),B3(*),
41 . R11(*),R12(*),R13(*),R21(*),R22(*),R23(*),R31(*),R32(*),R33(*)
42 my_real KE11(6,6,*),KE22(6,6,*),KE12(6,6,*)
43C-----------------------------------------------
44C L O C A L V A R I A B L E S
45C-----------------------------------------------
46 INTEGER I,J,EP,MI,MJ
47 my_real Q(3,3,MVSIZ),K11(3,MVSIZ),M11(3,MVSIZ),MF32(MVSIZ),M12(3,MVSIZ),MF23(MVSIZ),AL2,ELI,Q1,Q2,Q3,MF11(3,3,MVSIZ)
48C---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
49C--- B1 : Iyy ;B2 : Izz ;B3 : Ixx ;
50 DO i=jft,jlt
51 al2= al(i)*al(i)
52 eli = ym(i)*ali(i)
53 k11(1,i)=eli*area(i)
54 k11(2,i)=sh2(i)*ali(i)
55 k11(3,i)=sh1(i)*ali(i)
56 m11(1,i)=g(i)*b3(i)*ali(i)
57 m11(2,i)=fourth*al(i)*sh1(i)+eli*b1(i)
58 m11(3,i)=fourth*al(i)*sh2(i)+eli*b2(i)
59 mf23(i)=half*sh2(i)
60 mf32(i)=half*sh1(i)
61 m12(1,i)=-m11(1,i)
62 m12(2,i)=al(i)*mf32(i)-m11(2,i)
63 m12(3,i)=al(i)*mf23(i)-m11(3,i)
64 mf32(i)=-mf32(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---------K23>0,K32>0-------------------------
101 DO i=1,3
102 DO j=1,3
103 DO ep=jft,jlt
104 mf11(i,j,ep)=q(2,i,ep)*mf23(ep)*q(3,j,ep)+q(3,i,ep)*mf32(ep)*q(2,j,ep)
105 ENDDO
106 ENDDO
107 ENDDO
108
109 DO i=1,3
110 DO j=1,3
111 mj=j+3
112 DO ep=jft,jlt
113 ke11(i,mj,ep)=mf11(i,j,ep)
114 ke22(i,mj,ep)=-mf11(i,j,ep)
115 ENDDO
116 ENDDO
117 ENDDO
118
119 DO i=1,6
120 DO j=i,6
121 DO ep=jft,jlt
122 ke11(j,i,ep)=ke11(i,j,ep)
123 ke22(j,i,ep)=ke22(i,j,ep)
124 ENDDO
125 ENDDO
126 ENDDO
127 !---------KIJ --------
128 DO i=1,3
129 mi=i+3
130 DO j=1,3
131 mj=j+3
132 DO ep=jft,jlt
133 ke12(i,j,ep)=-ke11(i,j,ep)
134 ke12(i,mj,ep)=mf11(i,j,ep)
135 ke12(mi,j,ep)=-mf11(j,i,ep)
136 ENDDO
137 ENDDO
138 ENDDO
139 DO ep=jft,jlt
140 ke12(5,4,ep)=ke12(4,5,ep)
141 ke12(6,4,ep)=ke12(4,6,ep)
142 ke12(6,5,ep)=ke12(5,6,ep)
143 ENDDO
144
145 RETURN
146 END
147
subroutine psumg3(jft, jlt, ym, g, area, b1, b2, b3, al, ali, sh1, sh2, r11, r12, r13, r21, r22, r23, r31, r32, r33, ke11, ke12, ke22)
Definition psumg3.F:33