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