OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
rdtime33.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!|| rdtime33 ../engine/source/elements/joint/rdtime33.F
25!||--- called by ------------------------------------------------------
26!|| rgjoint ../engine/source/elements/joint/rgjoint.F
27!||====================================================================
28 SUBROUTINE rdtime33(
29 1 JFT, JLT, DT2T, NELTST,
30 2 ITYPTST, IXR, EINT, STI,
31 3 STIR, OFF, XKM, XKR,
32 4 XCM, XCR, UMAS, UINER,
33 5 FX, FY, FZ, XMOM,
34 6 YMOM, ZMOM, ROT1, ROT2,
35 7 MSRT, DMELRT, NUVAR, UVAR,
36 8 JNTYP, JSMS)
37C-----------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C G l o b a l P a r a m e t e r s
43C-----------------------------------------------
44#include "mvsiz_p.inc"
45C-----------------------------------------------
46C C o m m o n B l o c k s
47C-----------------------------------------------
48#include "scr02_c.inc"
49#include "sms_c.inc"
50C-----------------------------------------------
51C D u m m y A r g u m e n t s
52C-----------------------------------------------
53 INTEGER, INTENT(IN) :: JSMS
54 INTEGER JFT, JLT, IXR(NIXR,*), NELTST, ITYPTST,
55 . NUVAR,JNTYP
56 my_real DT2T, STI(3,*), STIR(3,*), OFF(*), EINT(*) ,
57 . XKM(*),XKR(*),XCM(*),XCR(*),UMAS(*),UINER(*),
58 . FX(*), FY(*), FZ(*), XMOM(*), YMOM(*),ZMOM(*),
59 . ROT1(*), ROT2(*), MSRT(*), DMELRT(*),
60 . UVAR(NUVAR,*)
61C-----------------------------------------------
62C L o c a l V a r i a b l e s
63C-----------------------------------------------
64 INTEGER I
65C REAL
66 my_real DX(3),THETA(3),E0(MVSIZ),TH1,TH2,TH3,
67 . DT(JLT-JFT+1), DTC(1), DTINV, A, MASS2, IN2, DTA, DTB, MX2,
68 . MS, IN
69C=======================================================================
70C nodal time step
71C--------------------------------------------
72 IF((idtmins/=2).AND.(jntyp==33)) nodadt = 1
73C
74 DO i=jft,jlt
75 sti(1,i) = xkm(i)
76 stir(1,i) = xkr(i)
77 sti(2,i) = sti(1,i)
78 stir(2,i) = stir(1,i)
79
80C-------- Masse harmonique --------------
81 ms = (uvar(34,i)*uvar(35,i))/max(em20,uvar(34,i)+uvar(35,i))
82 in = (uvar(36,i)*uvar(37,i))/max(em20,uvar(36,i)+uvar(37,i))
83
84C-------- Node 1--------------
85 IF (ms>em15)
86 . sti(1,i) = ((xcm(i)+sqrt(xcm(i)**2+xkm(i)*ms))**2)/ms
87 IF (in>em15)
88 . stir(1,i) = ((xcr(i)+sqrt(xcr(i)**2+xkr(i)*in))**2)/in
89
90C-------- Node 2--------------
91 sti(2,i) = sti(1,i)
92 stir(2,i) = stir(1,i)
93
94 ENDDO
95C
96 IF(idtmins==2.AND.jsms/=0)THEN
97C
98 dta=dtmins/dtfacs
99 dtb=dta*dta
100 DO i=jft,jlt
101 IF(off(i)<=zero) cycle
102 xkm(i) = max(em15,xkm(i))
103 dmelrt(i)=max(dmelrt(i),
104 . xcm(i)*dta+half*xkm(i)*dtb-half*msrt(i))
105C
106C MX2 = 2*(Mn+2*DeltaM)
107 mx2 =msrt(i)+two*dmelrt(i)
108 dt(i)=dtfacs*
109 . mx2 /max(em15,sqrt(xcm(i)*xcm(i)+mx2*xkm(i))+xcm(i))
110 dt(i)=dtmins
111 ENDDO
112C
113 DO i=jft,jlt
114 IF(off(i)<=zero) cycle
115 IF(dt(i)<dt2t) THEN
116 dt2t=dt(i)
117 neltst =ixr(nixr,i)
118 ityptst=6
119 ENDIF
120 ENDDO
121C
122 ENDIF
123C-----------------------------------------------
124 RETURN
125 END
#define max(a, b)
Definition macros.h:21
subroutine rdtime33(jft, jlt, dt2t, neltst, ityptst, ixr, eint, sti, stir, off, xkm, xkr, xcm, xcr, umas, uiner, fx, fy, fz, xmom, ymom, zmom, rot1, rot2, msrt, dmelrt, nuvar, uvar, jntyp, jsms)
Definition rdtime33.F:37