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