OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
tdlen3.F File Reference
#include "implicit_f.inc"
#include "comlock.inc"
#include "mvsiz_p.inc"
#include "com08_c.inc"
#include "param_c.inc"
#include "scr02_c.inc"
#include "scr07_c.inc"
#include "scr17_c.inc"
#include "scr18_c.inc"
#include "sms_c.inc"
#include "units_c.inc"
#include "lockon.inc"
#include "lockoff.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine tdlen3 (jft, jlt, pm, offg, off, dt2t, neltst, ityptst, mstr, dmeltr, dtel, nel, g_dt, mat, ngl, al, jsms)

Function/Subroutine Documentation

◆ tdlen3()

subroutine tdlen3 ( integer jft,
integer jlt,
pm,
offg,
off,
dt2t,
integer neltst,
integer ityptst,
mstr,
dmeltr,
dimension(nel), intent(inout) dtel,
integer, intent(in) nel,
integer, intent(in) g_dt,
integer, dimension(mvsiz) mat,
integer, dimension(mvsiz) ngl,
al,
integer, intent(in) jsms )

Definition at line 28 of file tdlen3.F.

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
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
#define my_real
Definition cppsort.cpp:32
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