58 1 ELBUF_STR ,JFT ,JLT ,NFT ,IPARG ,
59 2 NEL ,MTN ,IPLA ,ITHK ,GROUP_PARAM,
60 3 PM ,GEO ,NPF ,TF ,BUFMAT ,
61 4 SSP ,RHO ,VISCMX ,DT1C ,SIGY ,
62 5 AREA ,EXX ,EYY ,EXY ,EXZ ,
63 6 EYZ ,KXX ,KYY ,KXY ,NU ,
64 7 OFF ,THK0 ,MAT ,PID ,MAT_ELEM ,
65 8 FOR ,MOM ,GSTR ,FAILWAVE ,FWAVE_EL ,
67 A G ,A11 ,A12 ,VOL0 ,INDXDEL ,
68 B NGL ,ZCFAC ,SHF ,GS ,EPSD_PG ,
70 D DIR_A ,DIR_B ,IGEO ,
71 E IPM ,IFAILURE ,NPG ,FHEAT ,
72 F TEMPEL ,DIE ,JTHE ,IEXPAN ,TEMPEL0 ,
73 G ISHPLYXFEM,PLY_EXX ,
74 H PLY_EYY ,PLY_EXY ,PLY_EXZ ,PLY_EYZ ,PLY_F ,
75 I DEL_PLY ,TH_IPLY ,SIG_IPLY ,E1X ,E1Y ,
76 J E1Z ,E2X ,E2Y ,E2Z ,E3X ,
77 K E3Y ,E3Z ,NG ,TABLE ,IXFEM ,
78 L OFFI ,SENSORS ,A11_IPLY ,ELCRKINI ,
79 M DIR1_CRK ,DIR2_CRK ,ALDT ,IDT_THERM ,THEACCFACT ,
80 N ISMSTR ,IR ,IS ,NLAY ,NPT ,
81 O IXLAY ,IXEL ,ISUBSTACK ,STACK ,
82 P F_DEF ,ITASK ,DRAPE ,VARNL ,NLOC_DMG ,
83 R INDX_DRAPE,THKE ,SEDRAPE ,NUMEL_DRAPE,DT ,
84 Q NCYCLE , SNPC ,STF ,NXLAYMAX ,IDEL7NOK ,
85 S USERL_AVAIL, MAXFUNC ,VARNL_NPTTOT, SBUFMAT ,SDIR_A ,
104#include "implicit_f.inc"
108#include "mvsiz_p.inc"
112#include "param_c.inc"
113#include "com04_c.inc"
114#include "com08_c.inc"
115#include "scr18_c.inc"
116#include "impl1_c.inc"
117#include "timeri_c.inc"
121 TYPE(timer_),
INTENT(INOUT) :: TIMERS
122 INTEGER,
INTENT(IN) :: USERL_AVAIL
123 INTEGER,
INTENT(IN) :: MAXFUNC
124 INTEGER,
INTENT(INOUT) :: IDEL7NOK
125 INTEGER,
INTENT(IN) :: NXLAYMAX
126 INTEGER,
INTENT(IN) :: VARNL_NPTTOT
127 INTEGER,
INTENT(IN) :: SBUFMAT
128 INTEGER,
INTENT(IN) :: SDIR_A
129 INTEGER,
INTENT(IN) :: SDIR_B
130 INTEGER,
INTENT(IN) :: STF
131 INTEGER,
INTENT(IN) :: SNPC
132 INTEGER JFT,JLT,NFT,IR,IS,NPT,NG,NPG,NLAY,NEL,MTN,IPLA,IOFC,ITHK,
133 . KFTS,JHBE,IFAILURE,JTHE,IEXPAN,ISHPLYXFEM,ISMSTR,
134 . IXLAY,IXEL,IXFEM,ISUBSTACK,ITASK , NCYCLE
135 INTEGER ,
INTENT(IN) :: SEDRAPE,NUMEL_DRAPE
136 INTEGER MAT(MVSIZ), PID(MVSIZ), INDXDEL(MVSIZ), NGL(MVSIZ),NPF(*),
137 . IGEO(NPROPGI,*),IPM(NPROPMI,*),IPARG(*),
138 . A11_IPLY(MVSIZ,*),ELCRKINI(*),FWAVE_EL(NEL)
139 INTEGER ,
DIMENSION(SEDRAPE) :: INDX_DRAPE
140 INTEGER,
INTENT(IN) :: IDT_THERM
141 my_real ,
intent(in) :: THEACCFACT
142 my_real ,
dimension(mvsiz) ,
intent(in) :: EPSD_PG
143 my_real PM(NPROPM,*), (NPROPG,*),TF(*),THK(*),EINT(JLT,*),FOR(NEL,5),
144 . MOM(NEL,3),GSTR(NEL,8),BUFMAT(*),G(*),A11(*),A12(*),VOL0(*),
145 . SHF(*),GS(*),SIGY(MVSIZ),RHO(MVSIZ),SSP(MVSIZ),VISCMX(MVSIZ),
146 . OFF(MVSIZ) ,THK0(MVSIZ) ,NU(MVSIZ),DT1C(MVSIZ),
147 . EXX(MVSIZ), EYY(MVSIZ), EXY(MVSIZ), EXZ(MVSIZ), EYZ(MVSIZ),
148 . KXX(MVSIZ), KYY(MVSIZ), KXY(MVSIZ), AREA(MVSIZ),
149 . ZCFAC(MVSIZ,2),ALPE(MVSIZ),DIR_A(),DIR_B(SDIR_B),TEMPEL(*),DIE(*),
150 . tempel0(mvsiz), ply_f(mvsiz,5,*),
151 . ply_exx(mvsiz,*),ply_eyy(mvsiz,*),ply_exy(mvsiz,*),
152 . ply_exz(mvsiz,*),ply_eyz(mvsiz,*),del_ply(mvsiz,3,*) ,
153 . th_iply(mvsiz,*), sig_iply(mvsiz,3,*),
154 . e1x(mvsiz), e1y(mvsiz), e1z(mvsiz),
155 . e2x(mvsiz), e2y(mvsiz), e2z(mvsiz),
156 . e3x(mvsiz), e3y(mvsiz), e3z(mvsiz),offi(mvsiz,*),
157 . dir1_crk(*),dir2_crk(*),dmg_scale(mvsiz),
158 . f_def(mvsiz,*),aldt(mvsiz),varnl(nel,*)
159 my_real,
DIMENSION(NEL),
INTENT(IN) :: thke
160 my_real,
dimension(mvsiz),
intent(inout) :: fheat
161 TYPE (TTABLE) TABLE(*)
162 TYPE (),
TARGET :: ELBUF_STR
163 TYPE (STACK_PLY) :: STACK
164 TYPE (FAILWAVE_STR_)
TARGET :: FAILWAVE
165 TYPE (GROUP_PARAM_) :: GROUP_PARAM
166TYPE (DRAPE_) :: DRAPE(NUMEL_DRAPE)
167 TYPE () ,
INTENT(INOUT) :: MAT_ELEM
169 TYPE (SENSORS_) ,
INTENT(IN) :: SENSORS
170 TYPE (DT_),
INTENT(IN) :: DT
171 my_real,
dimension(nel,5),
intent(inout) :: for_g
175 INTEGER I,J,IT,MX,IGTYP,IFUNC_ALPHA,IPMAT_IPLY,ILAY,LAYNPT_MAX,NLAY_MAX
176 INTEGER MAT_IPLY(MVSIZ,NPT),IDAMP_FREQ_RANGE
177 INTEGER,
DIMENSION(:) ,
ALLOCATABLE :: MATLY
178 my_real,
DIMENSION(:) ,
ALLOCATABLE :: THKLY
179 my_real,
DIMENSION(:,:),
ALLOCATABLE :: POSLY,THK_LY
183 . SXX(MVSIZ),(MVSIZ), SXY(MVSIZ),SYZ(MVSIZ),SZX(MVSIZ),
184 . EPSXX(MVSIZ),EPSYY(MVSIZ),EPSXY(MVSIZ)),EPSZX(MVSIZ),
185 . DEPSXX(MVSIZ),DEPSYY(MVSIZ),(MVSIZ),DEPSYZ(MVSIZ),
186 . DEPSZX(MVSIZ), EPSPXX(MVSIZ),(MVSIZ),EPSPXY(MVSIZ),
187 . EPSPYZ(MVSIZ), EPSPZX(MVSIZ),ETIMP(MVSIZ),TENS(NEL,5),ETH(MVSIZ)
188 my_real
alpha,df,deintth,t0,tm,fscal_alpha,dm,zshift
189 INTEGER,
DIMENSION(:) ,
POINTER :: FLD_IDX
191 TYPE(buf_lay_) ,
POINTER :: BUFLY
192 TYPE(buf_fail_),
POINTER :: FBUF
193 TYPE(l_bufel_) ,
POINTER :: LBUF
194 TYPE(g_bufel_) ,
POINTER :: GBUF
195 TYPE(buf_damp_range_) ,
POINTER :: DAMP_BUF
200 gbuf => elbuf_str%GBUF
201 igtyp=igeo(11,pid(1))
203 dm = group_param%VISC_DM
204 IF (impl_s>0) dm = zero
205 idamp_freq_range = iparg(93)
206 damp_buf => elbuf_str%DAMP_RANGE
207 zcfac(1:mvsiz,1:2) = zero
210 IF (jthe > 0 .AND. (mtn < 28 .OR. mtn == 32))
THEN
211 die(jft:jlt) = eint(jft:jlt,1) + eint(jft:jlt,2)
216 IF (iexpan > 0 .AND. jthe > 0)
THEN
218 IF (tt == zero) tempel0(jft:jlt) = tempel(jft:jlt)
219 dtemp(jft:jlt) = tempel(jft:jlt) - tempel0(jft:jlt)
220 tempel0(jft:jlt) = tempel(jft:jlt)
222 IF (igtyp /= 11 .AND. igtyp /= 17 .AND. igtyp /=51 .AND. igtyp /= 52)
THEN
223 ifunc_alpha = ipm(219, mx)
224 fscal_alpha = pm(191, mx)
226 alpha = finter(ifunc_alpha,tempel(i),npf,tf,df)
228 eth(i) =
alpha*dtemp(i)
229 deintth = -half*(for(i,1) + for(i,2))*eth(i)*thk0(i)*area(i)
230 gbuf%EINTTH(i) = gbuf%EINTTH(i) + deintth
231 eint(i,1) = eint(i,1) + deintth
237 IF(igtyp == 51 .OR. igtyp == 52)
THEN
239 laynpt_max =
max(laynpt_max , elbuf_str%BUFLY(ilay)%NPTT)
242 nlay_max =
max(nlay,npt,ixlay, elbuf_str%NLAY)
243 ALLOCATE(matly(mvsiz*nlay_max), thkly(mvsiz*nlay_max*laynpt_max),
244 . posly(mvsiz,nlay_max*laynpt_max),thk_ly(nel,nlay_max*laynpt_max))
252 lbuf => elbuf_str%BUFLY(ilay)%LBUF(ir,is,it)
253 zshift = geo(199, pid(1))
256 1 jft ,jlt ,pm ,for ,mom ,thk ,
257 2 eint ,off ,gstr ,dir_a ,shf ,
258 3 mat ,area ,exx ,eyy ,exy ,nel ,
259 4 exz ,eyz ,kxx ,kyy ,kxy ,dm ,
261 6 bufmat ,ssp ,rho ,viscmx ,iofc ,a12 ,
262 7 indxdel ,ngl ,zcfac ,gs ,sigy ,g ,
263 8 thk0 ,epsd_pg,ipla ,igeo ,ipm ,table ,
264 9 ir ,is ,f_def ,ismstr ,nu ,vol0 ,
265 a kfts ,zshift ,idamp_freq_range,mat_elem,damp_buf ,
268 ELSE IF (mtn > 28 .AND. mtn < 32 .or. mtn == 99 .or. mtn == 200)
THEN
271 CALL layini(elbuf_str,jft ,jlt ,geo ,igeo ,
272 . mat ,pid ,thkly ,matly ,posly ,
273 . igtyp ,ixfem ,ixlay ,nlay ,npt ,
274 . isubstack,stack ,drape ,nft ,thke ,
275 . nel ,thk_ly ,indx_drape,sedrape ,numel_drape)
278 1 jft ,jlt ,nel ,pm ,for ,mom ,
279 2 gstr ,thk ,eint ,off ,dir_a ,dir_b ,
280 3 mat ,area ,exx ,eyy ,exy ,exz ,
281 4 eyz ,kxx ,kyy ,kxy ,geo ,thk_ly ,
282 5 pid ,tf ,npf ,mtn ,dt1c ,dm ,
283 6 bufmat ,ssp ,rho ,viscmx ,ipla ,iofc ,
284 7 indxdel ,ngl ,thkly ,matly ,zcfac ,ng ,
285 8 shf ,gs ,sigy ,thk0 ,epsd_pg,
286 9 posly ,igeo ,ipm ,failwave,fwave_el,
287 a ifailure,aldt ,tempel ,die ,
288 b e1x ,e1y ,e1z ,e2x ,e2y ,e2z ,
289 c e3x ,e3y ,e3z ,table ,ixfem ,elcrkini,
290 d dir1_crk,dir2_crk,iparg ,jhbe ,ismstr ,jthe ,
291 e tens ,ir ,is ,nlay ,npt ,ixlay ,
292 f ixel ,ithk ,f_def ,ishplyxfem,
293 g itask ,stack%PM ,isubstack,stack ,alpe ,
294 h ply_exx ,ply_eyy ,ply_exy ,ply_exz ,ply_eyz ,ply_f ,
295 i varnl ,nloc_dmg,nlay_max,laynpt_max,dt )
302 CALL layini(elbuf_str,jft ,jlt ,geo ,igeo ,
303 . mat ,pid ,thkly ,matly ,posly ,
304 . igtyp ,ixfem ,ixlay ,nlay ,npt ,
305 . isubstack,stack ,drape ,nft ,thke ,
306 . nel ,thk_ly ,indx_drape, sedrape,numel_drape)
308 CALL mulawc(timers,elbuf_str ,
309 1 jft ,jlt ,nel ,pm ,for ,mom ,
310 2 gstr ,thk ,eint ,off ,dir_a ,dir_b ,
311 3 mat ,area ,exx ,eyy ,exy ,exz ,
312 4 eyz ,kxx ,kyy ,kxy ,geo ,thk_ly ,
313 5 pid ,tf ,npf ,mtn ,dt1c ,dm ,
314 6 bufmat ,ssp ,rho ,viscmx ,ipla ,iofc ,
315 7 indxdel ,ngl ,thkly ,matly ,zcfac ,mat_elem,
316 8 shf ,gs ,sigy ,thk0 ,epsd_pg,
317 9 posly ,igeo ,ipm ,failwave,fwave_el,
318 a ifailure,aldt ,tempel ,die ,fheat ,
319 b table ,ixfem ,elcrkini,
320 d sensors ,ng ,idt_therm,theaccfact,
321 e dir1_crk,dir2_crk,iparg ,jhbe ,ismstr ,jthe ,
322 f tens ,ir ,is ,nlay ,npt ,ixlay ,
323 g ixel ,ithk ,f_def ,ishplyxfem,
324 h itask ,isubstack,stack ,alpe ,
325 i ply_exx ,ply_eyy ,ply_exy ,ply_exz ,ply_eyz ,ply_f ,
326 j varnl ,etimp ,nloc_dmg,nlay_max,laynpt_max ,dt,
327 k ncycle ,snpc ,stf,impl_s ,imconv ,npropgi,
328 * npropmi ,npropm ,npropg,imon_mat,numgeo ,
329 * numstack, dt1 ,tt ,nxlaymax ,idel7nok,userl_avail,
330 * maxfunc,nummat,varnl_npttot, sbufmat ,sdir_a ,sdir_b ,nparg,
334 IF (iexpan > 0 .AND. jthe > 0. and. idt_therm==0)
THEN
336 1 jft ,jlt ,gbuf%FORTH ,for
337 2 off ,eth ,thk0 ,exx ,eyy ,
338 3 pm ,npt ,area ,a11 ,a12 ,
339 4 mat ,mtn ,gbuf%EINTTH ,dir_a ,ir ,
340 5 is ,nlay ,thk ,nel ,igtyp ,
341 6 npf , tf , ipm ,tempel ,dtemp,
342 7 thkly ,posly,mom, matly )
345 IF (jthe > 0 .AND. (mtn < 28 .OR. mtn == 32))
THEN
347 die(i) = (eint(i,1) + eint(i,2) - die(i)) * pm(90,mat(1))
351 gbuf%TEMP(1:nel) = tempel(1:nel)
356 IF (ishplyxfem > 0)
THEN
357 ipmat_iply = 2 + 2*npt
360 mat_iply(i,j) = stack%IGEO(ipmat_iply + j ,isubstack)
369 . jft ,jlt ,ir ,is ,npt ,
370 . mat_iply ,ipm ,pm ,bufmat ,npf ,
371 . tf ,dt1c ,ngl ,off ,th_iply ,
372 . del_ply ,sig_iply ,offi ,a11_iply,for ,
373 . mom ,ply_f ,thk0 ,shf ,epszx ,
374 . epsyz ,area ,pid ,geo ,ssp ,
375 . posly ,thkly ,kxx ,kyy ,kxy ,
376 . exz ,eyz ,eint ,gstr ,nel ,
382 IF (mtn /=78) etimp(jft:jlt) = zcfac(jft:jlt,1)
385 DEALLOCATE(matly, thkly, posly, thk_ly)
subroutine cforc3_crk(timers, xfem_str, jft, jlt, pm, ixc, x, f, m, v, vr, failwave, nvc, mtn, geo, tf, npf, bufmat, partsav, dt2t, neltst, ityptst, stifn, stifr, fsky, crksky, iadc, d, dr, tani, offset, eani, f11, f12, f13, f14, f21, f22, f23, f24, f31, f32, f33, f34, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, indxof, ipartc, thke, group_param, mat_elem, nel, istrain, ihbe, kfts, ithk, iofc, ipla, nft, ismstr, fzero, igeo, ipm, ifailure, itask, jthe, temp, fthe, fthesky, iexpan, gresav, grth, igrth, msc, dmelc, jsms, table, iparg, ixfem, inod_crk, iel_crk, iadc_crk, elcutc, sensors, ixel, stack, isubstack, uxint_mean, uyint_mean, uzint_mean, nlevxf, nodedge, crkedge, drape_sh4n, ipri, nloc_dmg, indx_drape, igre, dt, snpc, stf, glob_therm, userl_avail, maxfunc, sbufmat)
subroutine cmain3(timers, elbuf_str, jft, jlt, nft, iparg, nel, mtn, ipla, ithk, group_param, pm, geo, npf, tf, bufmat, ssp, rho, viscmx, dt1c, sigy, area, exx, eyy, exy, exz, eyz, kxx, kyy, kxy, nu, off, thk0, mat, pid, mat_elem, for, mom, gstr, failwave, fwave_el, thk, eint, iofc, g, a11, a12, vol0, indxdel, ngl, zcfac, shf, gs, epsd_pg, kfts, jhbe, alpe, dir_a, dir_b, igeo, ipm, ifailure, npg, fheat, tempel, die, jthe, iexpan, tempel0, ishplyxfem, ply_exx, ply_eyy, ply_exy, ply_exz, ply_eyz, ply_f, del_ply, th_iply, sig_iply, e1x, e1y, e1z, e2x, e2y, e2z, e3x, e3y, e3z, ng, table, ixfem, offi, sensors, a11_iply, elcrkini, dir1_crk, dir2_crk, aldt, idt_therm, theaccfact, ismstr, ir, is, nlay, npt, ixlay, ixel, isubstack, stack, f_def, itask, drape, varnl, nloc_dmg, indx_drape, thke, sedrape, numel_drape, dt, ncycle, snpc, stf, nxlaymax, idel7nok, userl_avail, maxfunc, varnl_npttot, sbufmat, sdir_a, sdir_b, for_g)