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!||--- uses -----------------------------------------------------
28!|| element_mod ../common_source/modules/elements/element_mod.F90
29!||====================================================================
30 SUBROUTINE tcoork3(JFT ,JLT ,X ,NCC ,MAT ,
31 1 NGL ,AL ,R11 ,R21 ,R31 ,
32 2 OFFG ,OFF )
33 use element_mod , only : nixt
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38C-----------------------------------------------
39C G l o b a l P a r a m e t e r s
40C-----------------------------------------------
41#include "mvsiz_p.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER JFT, JLT
46 INTEGER NCC(NIXT,*),MAT(*),NGL(*)
47 my_real x(3,*), al(*),r11(*),r21(*),r31(*) ,offg(*),off(*)
48C-----------------------------------------------
49C L o c a l V a r i a b l e s
50C-----------------------------------------------
51 INTEGER I,NC1(MVSIZ),NC2(MVSIZ)
52 my_real
53 . x1(mvsiz), x2(mvsiz),y1(mvsiz), y2(mvsiz),
54 . z1(mvsiz), z2(mvsiz), norm
55C-----------------------------------------------
56C S o u r c e L i n e s
57C-----------------------------------------------
58 DO i=jft,jlt
59 ngl(i)=ncc(5,i)
60 mat(i)=ncc(1,i)
61 nc1(i)=ncc(2,i)
62 nc2(i)=ncc(3,i)
63 ENDDO
64C----------------------------
65C COORDONNEES
66C----------------------------
67 DO i=jft,jlt
68 x1(i)=x(1,nc1(i))
69 y1(i)=x(2,nc1(i))
70 z1(i)=x(3,nc1(i))
71 x2(i)=x(1,nc2(i))
72 y2(i)=x(2,nc2(i))
73 z2(i)=x(3,nc2(i))
74 ENDDO
75C----------------------------
76C LOCAL SYSTEM
77C----------------------------
78 DO i=jft,jlt
79 r11(i)=x2(i)-x1(i)
80 r21(i)=y2(i)-y1(i)
81 r31(i)=z2(i)-z1(i)
82 al(i)=sqrt(r11(i)*r11(i)+r21(i)*r21(i)+r31(i)*r31(i))
83 norm=one/al(i)
84 r11(i)=r11(i)*norm
85 r21(i)=r21(i)*norm
86 r31(i)=r31(i)*norm
87 ENDDO
88C----------------------------
89C OFF
90C----------------------------
91 DO i=jft,jlt
92 off(i) = offg(i)
93 ENDDO
94C
95 RETURN
96 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:33