OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r4cum3.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!|| r4cum3 ../engine/source/elements/spring/r4cum3.f
25!||--- called by ------------------------------------------------------
26!|| r23law113 ../engine/source/elements/spring/r23law113.F
27!|| r23law114 ../engine/source/elements/spring/r23law114.F
28!|| rforc3 ../engine/source/elements/spring/rforc3.F
29!||====================================================================
30 SUBROUTINE r4cum3(
31 1 F, FORX, FORY, FORZ,
32 2 XM, XMOM, YMOM, ZMOM,
33 3 STI, STIR, STIFN, STIFR,
34 4 FX1, FX2, FY1, FY2,
35 5 FZ1, FZ2, MX1, MX2,
36 6 MY1, MY2, MZ1, MZ2,
37 7 AL, EXX, EYX, EZX,
38 8 EXY, EYY, EZY, EXZ,
39 9 EYZ, EZZ, NC1, NC2,
40 A NEL)
41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C G l o b a l P a r a m e t e r s
47C-----------------------------------------------
48#include "mvsiz_p.inc"
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 INTEGER, INTENT(IN) :: NEL
56 INTEGER NC1(*),NC2(*)
57C REAL
58 my_real
59 . F(3,*), FORX(*), FORY(*), FORZ(*), XM(3,*), XMOM(*),
60 . YMOM(*), ZMOM(*), STI(3,*),STIR(3,*),STIFN(*),STIFR(*),
61 . FX1(MVSIZ),FY1(MVSIZ),FZ1(MVSIZ),
62 . FX2(MVSIZ),FY2(MVSIZ),FZ2(MVSIZ),
63 . MX1(MVSIZ),MY1(MVSIZ),MZ1(MVSIZ),
64 . MX2(MVSIZ),MY2(MVSIZ),MZ2(MVSIZ),
65 . exx(mvsiz), eyx(mvsiz), ezx(mvsiz),
66 . exy(mvsiz), eyy(mvsiz), ezy(mvsiz),
67 . exz(mvsiz), eyz(mvsiz), ezz(mvsiz),al(mvsiz)
68C-----------------------------------------------
69C L o c a l V a r i a b l e s
70C-----------------------------------------------
71 INTEGER I
72C REAL
73 my_real
74 . F11(MVSIZ), F21(MVSIZ), F31(MVSIZ),
75 . M11(MVSIZ), M21(MVSIZ), M31(MVSIZ),
76 . M12(MVSIZ), M22(MVSIZ), M32(MVSIZ),
77 . YMOM1, YMOM2, ZMOM1, ZMOM2
78C-----------------------------------------------
79 DO I=1,nel
80 f11(i)=exx(i)*forx(i)+exy(i)*fory(i)+exz(i)*forz(i)
81 f21(i)=eyx(i)*forx(i)+eyy(i)*fory(i)+eyz(i)*forz(i)
82 f31(i)=ezx(i)*forx(i)+ezy(i)*fory(i)+ezz(i)*forz(i)
83 ENDDO
84C-------------------------
85C ASSEMBLE
86C-------------------------
87 DO i=1,nel
88 f(1,nc1(i))=f(1,nc1(i))+f11(i)
89 f(2,nc1(i))=f(2,nc1(i))+f21(i)
90 f(3,nc1(i))=f(3,nc1(i))+f31(i)
91 fx1(i) = -f11(i)
92 fy1(i) = -f21(i)
93 fz1(i) = -f31(i)
94 stifn(nc1(i))=stifn(nc1(i))+sti(1,i)
95C
96 f(1,nc2(i))=f(1,nc2(i))-f11(i)
97 f(2,nc2(i))=f(2,nc2(i))-f21(i)
98 f(3,nc2(i))=f(3,nc2(i))-f31(i)
99 fx2(i) = f11(i)
100 fy2(i) = f21(i)
101 fz2(i) = f31(i)
102 stifn(nc2(i))=stifn(nc2(i))+sti(2,i)
103 ENDDO
104C-------------------------
105C MOMENTS
106C-------------------------
107 DO i=1,nel
108 ymom1 = ymom(i) - half*al(i)*forz(i)
109 zmom1 = zmom(i) + half*al(i)*fory(i)
110 m11(i)=exx(i)*xmom(i)+exy(i)*ymom1+exz(i)*zmom1
111 m21(i)=eyx(i)*xmom(i)+eyy(i)*ymom1+eyz(i)*zmom1
112 m31(i)=ezx(i)*xmom(i)+ezy(i)*ymom1+ezz(i)*zmom1
113 ymom2 = ymom(i) + half*al(i)*forz(i)
114 zmom2 = zmom(i) - half*al(i)*fory(i)
115 m12(i)=exx(i)*xmom(i)+exy(i)*ymom2+exz(i)*zmom2
116 m22(i)=eyx(i)*xmom(i)+eyy(i)*ymom2+eyz(i)*zmom2
117 m32(i)=ezx(i)*xmom(i)+ezy(i)*ymom2+ezz(i)*zmom2
118 ENDDO
119C-------------------------
120C ASSEMBLE
121C-------------------------
122 DO i=1,nel
123 xm(1,nc1(i))=xm(1,nc1(i))+m11(i)
124 xm(2,nc1(i))=xm(2,nc1(i))+m21(i)
125 xm(3,nc1(i))=xm(3,nc1(i))+m31(i)
126 mx1(i) = -m11(i)
127 my1(i) = -m21(i)
128 mz1(i) = -m31(i)
129 stifr(nc1(i))=stifr(nc1(i))+stir(1,i)
130C
131 xm(1,nc2(i))=xm(1,nc2(i))-m12(i)
132 xm(2,nc2(i))=xm(2,nc2(i))-m22(i)
133 xm(3,nc2(i))=xm(3,nc2(i))-m32(i)
134 mx2(i) = m12(i)
135 my2(i) = m22(i)
136 mz2(i) = m32(i)
137 stifr(nc2(i))=stifr(nc2(i))+stir(2,i)
138 ENDDO
139C---
140 RETURN
141 END
subroutine r4cum3(f, forx, fory, forz, xm, xmom, ymom, zmom, sti, stir, stifn, stifr, fx1, fx2, fy1, fy2, fz1, fz2, mx1, mx2, my1, my2, mz1, mz2, al, exx, eyx, ezx, exy, eyy, ezy, exz, eyz, ezz, nc1, nc2, nel)
Definition r4cum3.F:41