OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r2coork3.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!|| r2coork3 ../engine/source/elements/spring/r2coork3.F
25!||--- called by ------------------------------------------------------
26!|| r8ke3 ../engine/source/elements/spring/r8ke3.F
27!||====================================================================
28 SUBROUTINE r2coork3(JFT ,JLT ,X ,NCC ,PID ,
29 2 NGL ,R11 ,R12 ,R13 ,R21 ,
30 3 R22 ,R23 ,R31 ,R32 ,R33 ,
31 4 SKEW ,GEO ,OFFG ,OFF ,AL ,
32 5 IGEO )
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------
38C G l o b a l P a r a m e t e r s
39C-----------------------------------------------
40#include "mvsiz_p.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "param_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER JFT, JLT
49 INTEGER NCC(NIXR,*),PID(*),NGL(*), IGEO(NPROPGI,*)
50C REAL
51 my_real
52 . x(3,*),offg(*) ,off(*),al(3,*),
53 . r11(*),r12(*),r13(*),
54 . r21(*),r22(*),r23(*),
55 . r31(*),r32(*),r33(*), geo(npropg,*),skew(lskew,*)
56C-----------------------------------------------
57C L o c a l V a r i a b l e s
58C-----------------------------------------------
59 INTEGER I, J,NC1(MVSIZ),NC2(MVSIZ),ISK
60C REAL
61 my_real
62 . X1(MVSIZ), X2(MVSIZ),Y1(MVSIZ), Y2(MVSIZ),
63 . z1(mvsiz), z2(mvsiz),x21(mvsiz),y21(mvsiz),z21(mvsiz)
64C-----------------------------------------------
65C
66 DO i=jft, jlt
67 pid(i)=ncc(1,i)
68 ngl(i)=ncc(5,i)
69 nc1(i)=ncc(2,i)
70 nc2(i)=ncc(3,i)
71 ENDDO
72C----------------------------
73C LOCAL SYSTEM
74C----------------------------
75 DO i=jft, jlt
76 isk=igeo(2,pid(i))
77 r11(i)=skew(1,isk)
78 r21(i)=skew(2,isk)
79 r31(i)=skew(3,isk)
80 r12(i)=skew(4,isk)
81 r22(i)=skew(5,isk)
82 r32(i)=skew(6,isk)
83 r13(i)=skew(7,isk)
84 r23(i)=skew(8,isk)
85 r33(i)=skew(9,isk)
86 ENDDO
87 DO i=jft, jlt
88 x1(i)=x(1,nc1(i))
89 y1(i)=x(2,nc1(i))
90 z1(i)=x(3,nc1(i))
91 x2(i)=x(1,nc2(i))
92 y2(i)=x(2,nc2(i))
93 z2(i)=x(3,nc2(i))
94 ENDDO
95 DO i=jft, jlt
96 x21(i)=x2(i)-x1(i)
97 y21(i)=y2(i)-y1(i)
98 z21(i)=z2(i)-z1(i)
99 al(1,i)=x21(i)*r11(i)+y21(i)*r21(i)+z21(i)*r31(i)
100 al(2,i)=x21(i)*r12(i)+y21(i)*r22(i)+z21(i)*r32(i)
101 al(3,i)=x21(i)*r13(i)+y21(i)*r23(i)+z21(i)*r33(i)
102 ENDDO
103 DO i=jft,jlt
104 off(i)=offg(i)
105 ENDDO
106C
107 RETURN
108 END
subroutine r2coork3(jft, jlt, x, ncc, pid, ngl, r11, r12, r13, r21, r22, r23, r31, r32, r33, skew, geo, offg, off, al, igeo)
Definition r2coork3.F:33