OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
tdlen3.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!|| tdlen3 ../engine/source/elements/truss/tdlen3.f
25!||--- called by ------------------------------------------------------
26!|| tforc3 ../engine/source/elements/truss/tforc3.F
27!||====================================================================
28 SUBROUTINE tdlen3(
29 1 JFT, JLT, PM, OFFG,
30 2 OFF, DT2T, NELTST, ITYPTST,
31 3 MSTR, DMELTR, DTEL, NEL,
32 4 G_DT, MAT, NGL, AL,
33 5 JSMS)
34C-----------------------------------------------
35C I m p l i c i t T y p e s
36C-----------------------------------------------
37#include "implicit_f.inc"
38#include "comlock.inc"
39C-----------------------------------------------
40C G l o b a l P a r a m e t e r s
41C-----------------------------------------------
42#include "mvsiz_p.inc"
43C-----------------------------------------------
44C C o m m o n B l o c k s
45C-----------------------------------------------
46#include "com08_c.inc"
47#include "param_c.inc"
48#include "scr02_c.inc"
49#include "scr07_c.inc"
50#include "scr17_c.inc"
51#include "scr18_c.inc"
52#include "sms_c.inc"
53#include "units_c.inc"
54C-----------------------------------------------
55C D u m m y A r g u m e n t s
56C-----------------------------------------------
57 INTEGER, INTENT(IN) :: JSMS
58 INTEGER MAT(MVSIZ),NGL(MVSIZ)
59 INTEGER, INTENT(IN) :: NEL
60 my_real, INTENT(INOUT) :: DTEL(NEL)
61 INTEGER, INTENT(IN) :: G_DT
62 INTEGER JFT,JLT,NELTST,ITYPTST
63 my_real dt2t,
64 . pm(npropm,*), off(*),offg(mvsiz), mstr(*), dmeltr(*),
65 . al(mvsiz)
66C-----------------------------------------------
67C L o c a l V a r i a b l e s
68C-----------------------------------------------
69 INTEGER I
70 my_real
71 . SSP(MVSIZ), DT(MVSIZ)
72C-----------------------------------------------
73 DO I=jft,jlt
74 ssp(i)=pm(27,mat(i))
75 ENDDO
76
77 IF(idtmins/=2.OR.jsms==0)THEN
78
79 DO i=jft,jlt
80 dt(i)=dtfac1(4)*al(i)/ssp(i)
81 ENDDO
82
83 IF(nodadt/=0.AND.idtmin(4)==0)RETURN
84
85 DO i=jft,jlt
86 IF(off(i)<one.OR.offg(i)<zero) cycle
87 IF(idtmin(4)==1.AND.dt(i)<dtmin1(4))THEN
88 tstop = tt
89#include "lockon.inc"
90 WRITE(iout,*) ' **ERROR : TIME STEP LESS OR EQUAL DTMIN FOR TRUSS ELEMENT'
91 WRITE(istdo,*)' **ERROR : TIME STEP LESS OR EQUAL DTMIN FOR TRUSS ELEMENT'
92#include "lockoff.inc"
93 ELSEIF(idtmin(4)==5.AND.dt(i)<dtmin1(4))THEN
94 mstop = 2
95#include "lockon.inc"
96 WRITE(iout,*) ' **ERROR : TIME STEP LESS OR EQUAL DTMIN FOR TRUSS ELEMENT'
97 WRITE(istdo,*)' **ERROR : TIME STEP LESS OR EQUAL DTMIN FOR TRUSS ELEMENT'
98#include "lockoff.inc"
99 ELSEIF(idtmin(4)==2.AND.dt(i)<dtmin1(4))THEN
100 off(i) = zero
101#include "lockon.inc"
102 WRITE(iout,*) '-- DELETE OF TRUSS ELEMENT NUMBER',ngl(i)
103#include "lockoff.inc"
104 idel7nok = 1
105 ENDIF
106 IF(nodadt/=0.OR.dt(i)>=dt2t) cycle
107 dt2t=dt(i)
108 neltst =ngl(i)
109 ityptst=4
110 enddo!next I
111C----
112 else!(IDTMINS==2.AND.JSMS/=0)
113 !IDTMINS=2 & JSMS=1 <=> AMS & elementary time step
114 DO i=jft,jlt
115 dt(i)=al(i)/ssp(i)
116 END DO
117 DO i=jft,jlt
118 IF(off(i)<one.OR.offg(i)<zero) cycle
119 dmeltr(i) = max(dmeltr(i) , mstr(i)*((dtmins/(dtfacs*dt(i)))**2 - one))
120 dt(i) = dtfacs*sqrt(one+dmeltr(i)/mstr(i))*dt(i)
121 END DO
122 DO i=jft,jlt
123 IF(off(i)<one.OR.offg(i)<zero) cycle
124 IF(dt(i)<dt2t)THEN
125 dt2t = dt(i)
126 neltst = ngl(i)
127 ityptst = 4
128 END IF
129 END DO
130 END if!(IDTMINS/=2.OR.JSMS==0)
131C-----------------------------------------------
132 IF(g_dt/=zero)THEN
133 DO i=1,nel
134 dtel(i) = dt(i)
135 ENDDO
136 ENDIF
137C-----------------------------------------------
138
139 RETURN
140 END
if(complex_arithmetic) id
subroutine dtel(ssp, pm, geo, pid, mat, rho0, vis, deltax, aire, vol, dtx)
Definition dtel.F:46
#define max(a, b)
Definition macros.h:21
subroutine tdlen3(jft, jlt, pm, offg, off, dt2t, neltst, ityptst, mstr, dmeltr, dtel, nel, g_dt, mat, ngl, al, jsms)
Definition tdlen3.F:34