OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
r1coork3.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!|| r1coork3 ../engine/source/elements/spring/r1coork3.F
25!||--- called by ------------------------------------------------------
26!|| r4ke3 ../engine/source/elements/spring/r4ke3.F
27!|| ruser32ke3 ../engine/source/elements/spring/ruser32ke3.F
28!||====================================================================
29 SUBROUTINE r1coork3(JFT ,JLT ,X ,NCC ,PID ,
30 1 NGL ,AL ,R11 ,R21 ,R31 ,
31 2 OFFG ,OFF )
32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C G l o b a l P a r a m e t e r s
38C-----------------------------------------------
39#include "mvsiz_p.inc"
40C-----------------------------------------------
41C C o m m o n B l o c k s
42C-----------------------------------------------
43#include "impl1_c.inc"
44#include "comlock.inc"
45#include "units_c.inc"
46#include "scr17_c.inc"
47C-----------------------------------------------
48C D u m m y A r g u m e n t s
49C-----------------------------------------------
50 INTEGER JFT, JLT
51 INTEGER NCC(NIXR,*),PID(*),NGL(*)
52C REAL
54 . x(3,*),al(*),
55 . r11(*),r21(*),r31(*),offg(*) ,off(*)
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)
60C REAL
62 . x1(mvsiz), x2(mvsiz),y1(mvsiz), y2(mvsiz),
63 . z1(mvsiz), z2(mvsiz), norm
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 COORDONNEES
74C----------------------------
75 DO i=jft, jlt
76 x1(i)=x(1,nc1(i))
77 y1(i)=x(2,nc1(i))
78 z1(i)=x(3,nc1(i))
79 x2(i)=x(1,nc2(i))
80 y2(i)=x(2,nc2(i))
81 z2(i)=x(3,nc2(i))
82 ENDDO
83C----------------------------
84C LOCAL SYSTEM
85C----------------------------
86 DO i=jft, jlt
87 r11(i)=one
88 r21(i)=zero
89 r31(i)=zero
90 ENDDO
91 DO i=jft, jlt
92 r11(i)=x2(i)-x1(i)
93 r21(i)=y2(i)-y1(i)
94 r31(i)=z2(i)-z1(i)
95 al(i)=sqrt(r11(i)*r11(i)+r21(i)*r21(i)+r31(i)*r31(i))
96 al(i)=max(em14,al(i))
97 ENDDO
98 IF (imp_chk > 0) THEN
99 DO i=jft,jlt
100 IF(offg(i)/=zero)THEN
101 IF(al(i)<=em14)THEN
102#include "lockon.inc"
103 WRITE(iout ,2001) ngl(i)
104#include "lockoff.inc"
105 idel7nok = 1
106 imp_iw = imp_iw + 1
107 ENDIF
108 ENDIF
109 ENDDO
110 ENDIF
111C
112 DO i=jft, jlt
113 IF (al(i)>em14) THEN
114 norm=one/al(i)
115 r11(i)=r11(i)*norm
116 r21(i)=r21(i)*norm
117 r31(i)=r31(i)*norm
118 ENDIF
119 ENDDO
120 DO i=jft,jlt
121 off(i)=offg(i)
122 ENDDO
123C
124 RETURN
125 2001 FORMAT(/'***WARNING :SPRING TYPE4 ZERO-LENGTH : ELEMENT NB:',
126 . i8/)
127 END
#define my_real
Definition cppsort.cpp:32
norm(diag(diag(diag(inv(mat))) -id.SOL), 2) % destroy mumps instance id.JOB
#define max(a, b)
Definition macros.h:21
subroutine r1coork3(jft, jlt, x, ncc, pid, ngl, al, r11, r21, r31, offg, off)
Definition r1coork3.F:32