OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
qcumu2p.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!|| qcumu2p ../engine/source/elements/solid_2d/quad/qcumu2p.F
25!||--- called by ------------------------------------------------------
26!|| qforc2 ../engine/source/elements/solid_2d/quad/qforc2.F
27!||====================================================================
28 SUBROUTINE qcumu2p(
29 1 F11, F12, F21, F22,
30 2 AX1, AX2, T11, T12,
31 3 T13, T14, T21, T22,
32 4 T23, T24, FSKY, FSKYV,
33 5 IADQ, STI, NEL, NFT)
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C C o m m o n B l o c k s
40C-----------------------------------------------
41#include "parit_c.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER, INTENT(IN) :: NEL
46 INTEGER, INTENT(IN) :: NFT
47 INTEGER IADQ(4,*)
48C REAL
49 my_real
50 . fskyv(lsky,8),fsky(8,lsky),sti(*)
51C REAL
52 my_real
53 . f11(*), f12(*), f21(*), f22(*), ax1(*), ax2(*),
54 . t11(*), t12(*), t13(*), t14(*), t21(*), t22(*), t23(*), t24(*)
55C-----------------------------------------------
56C L o c a l V a r i a b l e s
57C-----------------------------------------------
58 INTEGER I, II, K
59C-------------------------
60C ASSEMBLE
61C-------------------------
62C
63 IF(ivector==1) THEN
64 DO i=1,nel
65C
66 ii=i+nft
67 k = iadq(1,ii)
68 fskyv(k,2)=-f11(i)-ax1(i)-t11(i)
69 fskyv(k,3)=-f21(i)+ax2(i)-t21(i)
70 fskyv(k,7)=sti(i)
71C
72 k = iadq(2,ii)
73 fskyv(k,2)=-f12(i)-ax1(i)-t12(i)
74 fskyv(k,3)=-f22(i)+ax2(i)-t22(i)
75 fskyv(k,7)=sti(i)
76C
77 k = iadq(3,ii)
78 fskyv(k,2)=+f11(i)-ax1(i)-t13(i)
79 fskyv(k,3)=+f21(i)+ax2(i)-t23(i)
80 fskyv(k,7)=sti(i)
81C
82 k = iadq(4,ii)
83 fskyv(k,2)=+f12(i)-ax1(i)-t14(i)
84 fskyv(k,3)=+f22(i)+ax2(i)-t24(i)
85 fskyv(k,7)=sti(i)
86C
87 ENDDO
88C
89 ELSE
90 DO i=1,nel
91C
92 ii=i+nft
93 k = iadq(1,ii)
94 fsky(2,k)=-f11(i)-ax1(i)-t11(i)
95 fsky(3,k)=-f21(i)+ax2(i)-t21(i)
96 fsky(7,k) = sti(i)
97C
98 k = iadq(2,ii)
99 fsky(2,k)=-f12(i)-ax1(i)-t12(i)
100 fsky(3,k)=-f22(i)+ax2(i)-t22(i)
101 fsky(7,k) = sti(i)
102C
103 k = iadq(3,ii)
104 fsky(2,k)=+f11(i)-ax1(i)-t13(i)
105 fsky(3,k)=+f21(i)+ax2(i)-t23(i)
106 fsky(7,k) = sti(i)
107C
108 k = iadq(4,ii)
109 fsky(2,k)=+f12(i)-ax1(i)-t14(i)
110 fsky(3,k)=+f22(i)+ax2(i)-t24(i)
111 fsky(7,k) = sti(i)
112C
113 ENDDO
114C
115 ENDIF
116C
117 RETURN
118 END
subroutine qcumu2p(f11, f12, f21, f22, ax1, ax2, t11, t12, t13, t14, t21, t22, t23, t24, fsky, fskyv, iadq, sti, nel, nft)
Definition qcumu2p.F:34