OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
joint_elem_timestep.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!|| joint_elem_timestep ../engine/source/elements/joint/joint_elem_timestep.F
25!||--- called by ------------------------------------------------------
26!|| resol ../engine/source/engine/resol.F
27!||--- uses -----------------------------------------------------
28!|| elbufdef_mod ../common_source/modules/mat_elem/elbufdef_mod.F90
29!|| element_mod ../common_source/modules/elements/element_mod.F90
30!||====================================================================
31 SUBROUTINE joint_elem_timestep(MS,IN,STIFN,STIFR,IXR,IPART,
32 1 IPARTR,IGEO,GEO,NPBY,IPARG,ELBUF_TAB,
33 2 DT2T,NELTST,ITYPTST,NRBODY,ITAB)
34C-----------------------------------------------
35C M o d u l e s
36C-----------------------------------------------
37 USE elbufdef_mod
38 use element_mod , only : nixr
39C-----------------------------------------------
40C I m p l i c i t T y p e s
41C-----------------------------------------------
42#include "implicit_f.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46#include "com01_c.inc"
47#include "param_c.inc"
48#include "scr02_c.inc"
49#include "scr17_c.inc"
50#include "scr18_c.inc"
51#include "sms_c.inc"
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 INTEGER IXR(NIXR,*),IPART(LIPART1,*),IPARTR(*),
56 . IGEO(NPROPGI,*),NPBY(NNPBY,*),
57 . IPARG(NPARG,*),NELTST,ITYPTST,NRBODY,ITAB(*)
58 my_real STIFN(*), STIFR(*),MS(*) ,IN(*),GEO(NPROPG,*),DT2T
59 TYPE(ELBUF_STRUCT_), TARGET, DIMENSION(NGROUP) :: ELBUF_TAB
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63 INTEGER I,J,M1,M2,IG,IGTYP,ITYP,NG,JFT,JLT,NEL,
64 . NFT,NUVAR,IRB,NV
65 my_real DTRB1,DTRB2,DT
66 TYPE(G_BUFEL_),POINTER :: GBUF
67C----------------------------------------------------------
68
69.AND. IF ((NODADT==0)(IDTMINS/=2)) THEN
70C
71 DO NG=1,NGROUP
72 ITYP = IPARG(5,NG)
73 NEL = IPARG(2,NG)
74 NFT = IPARG(3,NG)
75 JFT = 1
76 JLT = MIN(NVSIZ,NEL)
77 GBUF => ELBUF_TAB(NG)%GBUF
78 IF (ITYP == 6) THEN
79C
80C--------> Loop over spring elements -------
81 DO I=JFT,JLT
82 J = I + NFT
83 IG = IPART(2,IPARTR(J))
84 IGTYP = IGEO(11,IG)
85 NUVAR = NINT(GEO(25,IG))
86 NV = NUVAR*(I-1) + 1
87 IF (IGTYP==45) THEN
88C
89C--------> Calcul pas de temps nodal RB1 -------
90 IRB = NINT(GBUF%VAR(NV + 37))
91 IF (IRB > 0) THEN
92 M1 = NPBY(1,IRB)
93 ELSE
94 M1 = IXR(2,J)
95 ENDIF
96 DTRB1 = DTFAC1(11)*SQRT(TWO*MS(M1)/MAX(EM20,STIFN(M1)))
97 IF (IN(M1) > 0) THEN
98 DTRB1 = MIN(DTRB1,DTFAC1(11)*SQRT(TWO*IN(M1)/MAX(EM20,STIFR(M1))))
99 ENDIF
100C
101C--------> Calcul pas de temps nodal RB2 -------
102 IRB = NINT(GBUF%VAR(NV + 38))
103 IF (IRB > 0) THEN
104 M2 = NPBY(1,IRB)
105 ELSE
106 M2 = IXR(3,J)
107 ENDIF
108 DTRB2 = DTFAC1(11)*SQRT(TWO*MS(M2)/MAX(EM20,STIFN(M2)))
109 IF (IN(M2) > 0) THEN
110 DTRB2 = MIN(DTRB2,DTFAC1(11)*SQRT(TWO*IN(M2)/MAX(EM20,STIFR(M2))))
111 ENDIF
112C
113C--------> Calculation of Joint time step -------
114 DT = MIN(DTRB1,DTRB2)
115 IF(DT<DT2T) THEN
116 DT2T=DT
117 ITYPTST=11
118 IF (DTRB1 < DTRB2) THEN
119 NELTST = ITAB(M1)
120 ELSE
121 NELTST = ITAB(M2)
122 ENDIF
123 ENDIF
124
125 ENDIF
126 ENDDO
127C
128 ENDIF
129 ENDDO
130C
131 ENDIF
132C
133 RETURN
134
135 END
subroutine joint_elem_timestep(ms, in, stifn, stifr, ixr, ipart, ipartr, igeo, geo, npby, iparg, elbuf_tab, dt2t, neltst, ityptst, nrbody, itab)