OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r1cum3.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!|| r1cum3 ../engine/source/elements/spring/r1cum3.F
25!||--- called by ------------------------------------------------------
26!|| rforc3 ../engine/source/elements/spring/rforc3.F
27!||====================================================================
28 SUBROUTINE r1cum3(
29 1 F, FOR, STI, STIFN,
30 2 FX1, FX2, FY1, FY2,
31 3 FZ1, FZ2, MX1, MX2,
32 4 MY1, MY2, MZ1, MZ2,
33 5 EX, EY, EZ, NC1,
34 6 NC2, NEL)
35C-----------------------------------------------
36C I m p l i c i t T y p e s
37C-----------------------------------------------
38#include "implicit_f.inc"
39C-----------------------------------------------
40C G l o b a l P a r a m e t e r s
41C-----------------------------------------------
42#include "mvsiz_p.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER, INTENT(IN) :: NEL
50 INTEGER NC1(*),NC2(*)
51C REAL
52 my_real
53 . F(3,*), FOR(*),STI(3,*),STIFN(*),
54 . FX1(MVSIZ),FY1(MVSIZ),FZ1(MVSIZ),
55 . fx2(mvsiz),fy2(mvsiz),fz2(mvsiz),
56 . mx1(mvsiz),my1(mvsiz),mz1(mvsiz),
57 . mx2(mvsiz),my2(mvsiz),mz2(mvsiz),
58 . ex(mvsiz),ey(mvsiz),ez(mvsiz)
59C-----------------------------------------------
60C L o c a l V a r i a b l e s
61C-----------------------------------------------
62 INTEGER I, J
63C REAL
64 my_real
65 . F11(MVSIZ), F21(MVSIZ), F31(MVSIZ)
66C-----------------------------------------------
67 DO I=1,nel
68 f11(i)=ex(i)*for(i)
69 f21(i)=ey(i)*for(i)
70 f31(i)=ez(i)*for(i)
71c ... note: dF = E*dF + dE*F.
72 ENDDO
73C-------------------------
74C ASSEMBLE
75C-------------------------
76 DO i=1,nel
77 f(1,nc1(i))=f(1,nc1(i))+f11(i)
78 f(2,nc1(i))=f(2,nc1(i))+f21(i)
79 f(3,nc1(i))=f(3,nc1(i))+f31(i)
80 fx1(i) = -f11(i)
81 fy1(i) = -f21(i)
82 fz1(i) = -f31(i)
83 mx1(i) = zero
84 my1(i) = zero
85 mz1(i) = zero
86 stifn(nc1(i))=stifn(nc1(i)) + sti(1,i)
87 f(1,nc2(i))=f(1,nc2(i))-f11(i)
88 f(2,nc2(i))=f(2,nc2(i))-f21(i)
89 f(3,nc2(i))=f(3,nc2(i))-f31(i)
90 fx2(i) = f11(i)
91 fy2(i) = f21(i)
92 fz2(i) = f31(i)
93 mx2(i) = zero
94 my2(i) = zero
95 mz2(i) = zero
96 stifn(nc2(i))=stifn(nc2(i)) + sti(2,i)
97 ENDDO
98C
99 RETURN
100 END
subroutine r1cum3(f, for, sti, stifn, fx1, fx2, fy1, fy2, fz1, fz2, mx1, mx2, my1, my2, mz1, mz2, ex, ey, ez, nc1, nc2, nel)
Definition r1cum3.F:35