33
34
35
37
38
39
40#include "implicit_f.inc"
41#include "comlock.inc"
42
43
44
45#include "scr02_c.inc"
46#include "scr18_c.inc"
47
48
49
50 INTEGER NODFT, NODLT
51 TYPE(NLOCAL_STR_), TARGET :: NLOC_DMG
53 . dt2t,dtnod_nlocal
54
55
56
57 INTEGER N,I,NDDL,NPOS
58 my_real,
DIMENSION(:),
ALLOCATABLE ::
59 . dtn
60 my_real,
POINTER,
DIMENSION(:) ::
61 . mass,stifn
63 . dtnod,dt2p
64
65
66 my_real,
PARAMETER :: csta = 40.0d0
67
68 my_real,
PARAMETER :: cdamp = 0.7d0
69
70 dtnod = ep20
71 IF (nodadt > 0) THEN
72
73
74 stifn => nloc_dmg%STIFNL(1:nloc_dmg%L_NLOC,1)
75 mass => nloc_dmg%MASS(1:nloc_dmg%L_NLOC)
76
77
78 ALLOCATE(dtn(nloc_dmg%L_NLOC))
79 dtn(1:nloc_dmg%L_NLOC) = zero
80
81
82 DO n = nodft,nodlt
83
84 npos = nloc_dmg%POSI(n)
85
86 nddl = nloc_dmg%POSI(n+1) - npos
87
88 DO i = npos,npos+nddl-1
89 dtn(i) = dtfac1(11)*cdamp*sqrt(two*mass(i)/
max(stifn(i),em20))
90 dtnod =
min(dtnod,dtn(i))
91 ENDDO
92 ENDDO
93#include "lockon.inc"
94 dtnod_nlocal =
min(dtnod_nlocal,dtnod)
95#include "lockoff.inc"
96
98 dtnod = dtnod_nlocal
99
100 IF ((idtmin(11)==3).OR.(idtmin(11)==4).OR.(idtmin(11)==8)) THEN
101
102 IF (dtnod < dtmin1(11)*(sqrt(csta))) THEN
103 DO n = nodft,nodlt
104
105 npos = nloc_dmg%POSI(n)
106
107 nddl = nloc_dmg%POSI(n+1) - npos
108
109 DO i = npos,npos+nddl-1
110 IF (dtn(i) < dtmin1(11)) THEN
111 dt2p = dtmin1(11)/(dtfac1(11)*cdamp)
112 mass(i) = csta*
max(mass(i),half * stifn(i) * dt2p * dt2p * onep00001)
113 ENDIF
114 ENDDO
115 ENDDO
116 ENDIF
117 dtnod = dtmin1(11)*(sqrt(csta))
118 ENDIF
119
120#include "lockon.inc"
121
122 IF (dtnod < dt2t) THEN
123 dt2t =
min(dt2t,dtnod)
124 ENDIF
125#include "lockoff.inc"
126
127
128 DO n = nodft,nodlt
129
130 npos = nloc_dmg%POSI(n)
131
132 nddl = nloc_dmg%POSI(n+1) - npos
133
134 stifn(npos:npos+nddl-1) = em20
135 ENDDO
136
137
138 IF (ALLOCATED(dtn)) DEALLOCATE(dtn)
139
140 ENDIF