OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
tcoork3.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!|| tcoork3 ../engine/source/elements/truss/tcoork3.F
25!||--- called by ------------------------------------------------------
26!|| tke3 ../engine/source/elements/truss/tke3.F
27!||====================================================================
28 SUBROUTINE tcoork3(JFT ,JLT ,X ,NCC ,MAT ,
29 1 NGL ,AL ,R11 ,R21 ,R31 ,
30 2 OFFG ,OFF )
31C-----------------------------------------------
32C I m p l i c i t T y p e s
33C-----------------------------------------------
34#include "implicit_f.inc"
35C-----------------------------------------------
36C G l o b a l P a r a m e t e r s
37C-----------------------------------------------
38#include "mvsiz_p.inc"
39C-----------------------------------------------
40C D u m m y A r g u m e n t s
41C-----------------------------------------------
42 INTEGER JFT, JLT
43 INTEGER NCC(NIXT,*),MAT(*),NGL(*)
44 my_real x(3,*), al(*),r11(*),r21(*),r31(*) ,offg(*),off(*)
45C-----------------------------------------------
46C L o c a l V a r i a b l e s
47C-----------------------------------------------
48 INTEGER I, J,NC1(MVSIZ),NC2(MVSIZ)
49 my_real
50 . x1(mvsiz), x2(mvsiz),y1(mvsiz), y2(mvsiz),
51 . z1(mvsiz), z2(mvsiz), norm
52C-----------------------------------------------
53C S o u r c e L i n e s
54C-----------------------------------------------
55 DO i=jft,jlt
56 ngl(i)=ncc(5,i)
57 mat(i)=ncc(1,i)
58 nc1(i)=ncc(2,i)
59 nc2(i)=ncc(3,i)
60 ENDDO
61C----------------------------
62C COORDONNEES
63C----------------------------
64 DO i=jft,jlt
65 x1(i)=x(1,nc1(i))
66 y1(i)=x(2,nc1(i))
67 z1(i)=x(3,nc1(i))
68 x2(i)=x(1,nc2(i))
69 y2(i)=x(2,nc2(i))
70 z2(i)=x(3,nc2(i))
71 ENDDO
72C----------------------------
73C LOCAL SYSTEM
74C----------------------------
75 DO i=jft,jlt
76 r11(i)=x2(i)-x1(i)
77 r21(i)=y2(i)-y1(i)
78 r31(i)=z2(i)-z1(i)
79 al(i)=sqrt(r11(i)*r11(i)+r21(i)*r21(i)+r31(i)*r31(i))
80 norm=one/al(i)
81 r11(i)=r11(i)*norm
82 r21(i)=r21(i)*norm
83 r31(i)=r31(i)*norm
84 ENDDO
85C----------------------------
86C OFF
87C----------------------------
88 DO i=jft,jlt
89 off(i) = offg(i)
90 ENDDO
91C
92 RETURN
93 END
#define my_real
Definition cppsort.cpp:32
norm(diag(diag(diag(inv(mat))) -id.SOL), 2) % destroy mumps instance id.JOB
subroutine tcoork3(jft, jlt, x, ncc, mat, ngl, al, r11, r21, r31, offg, off)
Definition tcoork3.F:31