-
Notifications
You must be signed in to change notification settings - Fork 0
/
dyn21.f
9236 lines (9236 loc) · 321 KB
/
dyn21.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
c
c $Id: dyn21.F 96707 2015-03-18 22:29:10Z ubasu $
c
c
subroutine umat43v(cm,d1,d2,d3,d4,d5,d6,sig1,sig2,
. sig3,sig4,sig5,sig6,epsps,hsv,lft,llt,dt1siz,capa,
. etype,tt,temps,failels,nlqa,crv,cma,qmat,elsizv,idelev)
c******************************************************************
c| Livermore Software Technology Corporation (LSTC) |
c| ------------------------------------------------------------ |
c| Copyright 1987-2007 LSTC |
c| All Rights Reserved |
c******************************************************************
include 'nlqparm'
include 'iounits.inc'
dimension d1(*),d2(*),d3(*),d4(*),d5(*),d6(*)
dimension sig1(*),sig2(*),sig3(*),sig4(*),sig5(*),sig6(*)
dimension cm(*),epsps(*),hsv(nlq,*),dt1siz(*)
dimension temps(*),crv(101,2,*),cma(*),qmat(nlq,3,3),elsizv(*)
integer idelev(*)
logical failels(*)
character*5 etype
c
c eps(1)=local x strain increment
c eps(2)=local y strain increment
c eps(3)=local z strain increment
c eps(4)=local xy strain increment
c eps(5)=local yz strain increment
c eps(6)=local zx strain increment
c
c sig(1)=local x stress
c sig(2)=local y stress
c sig(3)=local z stress
c sig(4)=local xy stress
c sig(5)=local yz stress
c sig(6)=local zx stress
c
c material properties for orthotropic elastic material
c If transverse elastic properties are not provided, the transverse
c directions take on the same properties as the longitudinal direction,
c i.e. behaves as an isotropic material
c
E1 = cm(1)
E2 = cm(12)
E3 = cm(13)
v21 = cm(14)
v31=cm(15)
v32=cm(16)
G12 = cm(17)
G23 = cm(18)
G31 = cm(19)
c
v12 = v21*E1/E2
v23 = v32*E2/E3
v13 = v31*E1/E3
c
c stiffness matrix
c
S = (1.-v12*v21-v23*v32-v31*v13-2*v21*v32*v13)/(E1*E2*E3)
c
C11=(1. - v23*v32)/(E2*E3*S)
C12=(v21 + v31*v23)/(E2*E3*S)
C13=(v31 + v21*v32)/(E2*E3*S)
C22=(1. - v31*v13)/(E1*E3*S)
C23=(v32 + v31*v12)/(E1*E3*S)
C33=(1. - v12*v21)/(E1*E2*S)
C44=G12
C55=G23
C66=G31
c
c write(59,*) 'Stiffness Matrix'
c write(59,*) C11, ' ',C12, ' ', C13
c write(59,*) C22, ' ',C23, ' ', C33
c write(59,*) C44, ' ',C55, ' ', C66
c write(59,*) ' '
c
do 10 i=lft,llt
if (etype.eq.'solid'.or.etype.eq.'shl_t'.or.
1 etype.eq.'sld2d'.or.etype.eq.'tshel'.or.
2 etype.eq.'sph '.or.etype.eq.'sldax') then
c
c integrate 3-D strains (six components)
c +++++++++++++++++++++++++++++++++++++++++++++++++
c hsv(i,1)=hsv(i,1)+d1(i)
c hsv(i,6)=hsv(i,6)+d2(i)
c hsv(i,7)=hsv(i,7)+d3(i)
c hsv(i,8)=hsv(i,8)+d4(i)
c hsv(i,9)=hsv(i,9)+d5(i)
c hsv(i,10)=hsv(i,10)+d6(i)
c +++++++++++++++++++++++++++++++++++++++++++++++++
c
c Computes stresses
c
c sig1(i) = C11*hsv(i,1)+C12*hsv(i,6)+C13*hsv(i,7)
c sig2(i) = C12*hsv(i,1)+C22*hsv(i,6)+C23*hsv(i,7)
c sig3(i) = C13*hsv(i,1)+C23*hsv(i,6)+C33*hsv(i,7)
c sig4(i) = C44*hsv(i,8)
c sig5(i) = C55*hsv(i,9)
c sig6(i) = C66*hsv(i,10)
c
c sig1(i) = sig1(i)+(C11*d1(i)+C12*d2(i)+C13*d3(i))
c sig2(i) = sig2(i)+(C12*d1(i)+C22*d2(i)+C23*d3(i))
c sig3(i) = sig3(i)+(C13*d1(i)+C23*d2(i)+C33*d3(i))
c sig4(i) = sig4(i)+C44*d4(i)
c sig5(i) = sig5(i)+C55*d5(i)
c sig6(i) = sig6(i)+C66*d6(i)
c
c S1 = C11*d1(i)+C12*d2(i)+C13*d3(i)
c S2 = C12*d1(i)+C22*d2(i)+C23*d3(i)
c S3 = C13*d1(i)+C23*d2(i)+C33*d3(i)
c S4 = C44*d4(i)
c S5 = C55*d5(i)
c S6 = C66*d6(i)
c
c hsv(i,1) = 2.0
c hsv(i,2) = 0.9
c hsv(i,3) = 1.2
c hsv(i,4) = 0.5
c hsv(i,5) = 3.0
c hsv(i,6) = 5.0
c hsv(i,7) = 0.7
c hsv(i,8) = 3.4
c hsv(i,9) = 8.0
c
c Right Green-St. Venant Strain Tensor
G1 = 0.5*(hsv(i,1)*hsv(i,1)+hsv(i,2)*hsv(i,2)+
. hsv(i,3)*hsv(i,3)-1.)
G2 = 0.5*(hsv(i,4)*hsv(i,4)+hsv(i,5)*hsv(i,5)+
. hsv(i,6)*hsv(i,6)-1.)
G3 = 0.5*(hsv(i,7)*hsv(i,7)+hsv(i,8)*hsv(i,8)+
. hsv(i,9)*hsv(i,9)-1.)
G4 = 0.5*(hsv(i,1)*hsv(i,4)+hsv(i,2)*hsv(i,5)+
. hsv(i,3)*hsv(i,6))
G5 = 0.5*(hsv(i,4)*hsv(i,7)+hsv(i,5)*hsv(i,8)+
. hsv(i,6)*hsv(i,9))
G6 = 0.5*(hsv(i,1)*hsv(i,7)+hsv(i,2)*hsv(i,8)+
. hsv(i,3)*hsv(i,9))
c
c Left Green-St. Venant Strain Tensor
c G1 = 0.5*(hsv(i,1)*hsv(i,1)+hsv(i,4)*hsv(i,4)+
c . hsv(i,7)*hsv(i,7)-1.)
c G2 = 0.5*(hsv(i,2)*hsv(i,2)+hsv(i,5)*hsv(i,5)+
c . hsv(i,8)*hsv(i,8)-1.)
c G3 = 0.5*(hsv(i,3)*hsv(i,3)+hsv(i,6)*hsv(i,6)+
c . hsv(i,9)*hsv(i,9)-1.)
c G4 = 0.5*(hsv(i,1)*hsv(i,2)+hsv(i,4)*hsv(i,5)+
c . hsv(i,7)*hsv(i,8))
c G5 = 0.5*(hsv(i,2)*hsv(i,3)+hsv(i,5)*hsv(i,6)+
c . hsv(i,8)*hsv(i,9))
c G6 = 0.5*(hsv(i,1)*hsv(i,3)+hsv(i,4)*hsv(i,6)+
c . hsv(i,7)*hsv(i,9))
c
c write(59,*) 'Green-St. Venant Strain Tensor'
c write(59,*) G1, ' ' ,G4, ' ' ,G6
c write(59,*) G4, ' ' ,G2, ' ' ,G5
c write(59,*) G6, ' ' ,G5, ' ' ,G3
c write(59,*) ' '
c
c Second Piola-Kirchhoff Stress Tensor
S1 = C11*G1 + C12*G2 + C13*G3
S2 = C12*G1 + C22*G2 + C23*G3
S3 = C13*G1 + C23*G2 + C33*G3
S4 = 2.*C44*G4
S5 = 2.*C55*G5
S6 = 2.*C66*G6
c
c write(59,*) 'Second Piola-Kirchhoff Stress Tensor'
c write(59,*) S1, ' ' ,S4, ' ' ,S6
c write(59,*) S4, ' ' ,S2, ' ' ,S5
c write(59,*) S6, ' ' ,S5, ' ' ,S3
c write(59,*) ' '
c
c Jacobian
detF=hsv(i,1)*(hsv(i,5)*hsv(i,9)-hsv(i,6)*hsv(i,8))-
. hsv(i,2)*(hsv(i,4)*hsv(i,9)-hsv(i,6)*hsv(i,7))+
. hsv(i,3)*(hsv(i,4)*hsv(i,8)-hsv(i,5)*hsv(i,7))
c
c write(59,*) 'Jacobian'
c write(59,*) detF
c write(59,*) ' '
c
c Cauchy Stresses (F*S*F^T)
FS11 = hsv(i,1)*S1 + hsv(i,4)*S4 + hsv(i,7)*S6
FS12 = hsv(i,1)*S4 + hsv(i,4)*S2 + hsv(i,7)*S5
FS13 = hsv(i,1)*S6 + hsv(i,4)*S5 + hsv(i,7)*S3
FS21 = hsv(i,2)*S1 + hsv(i,5)*S4 + hsv(i,8)*S6
FS22 = hsv(i,2)*S4 + hsv(i,5)*S2 + hsv(i,8)*S5
FS23 = hsv(i,2)*S6 + hsv(i,5)*S5 + hsv(i,8)*S3
FS31 = hsv(i,3)*S1 + hsv(i,6)*S4 + hsv(i,9)*S6
FS32 = hsv(i,3)*S4 + hsv(i,6)*S2 + hsv(i,9)*S5
FS33 = hsv(i,3)*S6 + hsv(i,6)*S5 + hsv(i,9)*S3
c
c write(59,*) 'F*S'
c write(59,*) FS11, ' ' ,FS12, ' ' ,FS13
c write(59,*) FS21, ' ' ,FS22, ' ' ,FS23
c write(59,*) FS31, ' ' ,FS32, ' ' ,FS33
c write(59,*) ' '
c
sig1(i) = 1./detF*(FS11*hsv(i,1)+FS12*hsv(i,4)+FS13*hsv(i,7))
sig2(i) = 1./detF*(FS21*hsv(i,2)+FS22*hsv(i,5)+FS23*hsv(i,8))
sig3(i) = 1./detF*(FS31*hsv(i,3)+FS32*hsv(i,6)+FS33*hsv(i,9))
sig4(i) = 1./detF*(FS11*hsv(i,2)+FS12*hsv(i,5)+FS13*hsv(i,8))
sig5(i) = 1./detF*(FS21*hsv(i,3)+FS22*hsv(i,6)+FS23*hsv(i,9))
sig6(i) = 1./detF*(FS11*hsv(i,3)+FS12*hsv(i,6)+FS13*hsv(i,9))
c
c write(59,*) 'Cauchy Stresses '
c write(59,*) sig1(i), ' ' ,sig4(i), ' ' ,sig6(i)
c write(59,*) sig4(i), ' ' ,sig2(i), ' ' ,sig5(i)
c write(59,*) sig6(i), ' ' ,sig5(i), ' ' ,sig3(i)
c write(59,*) ' '
c
c write(59,*) '-----------------------------'
c
endif
10 continue
c
return
end
subroutine umat42v(cm,d1,d2,d3,d4,d5,d6,sig1,sig2,
. sig3,sig4,sig5,sig6,epsps,hsvs,lft,llt,dt1siz,capa,
. etype,tt,temps,failels,nlqa,crv,cma,qmat,elsizv,idelev)
c
c******************************************************************
c| Livermore Software Technology Corporation (LSTC) |
c| ------------------------------------------------------------ |
c| Copyright 1987-2007 LSTC |
c| All Rights Reserved |
c******************************************************************
include 'nlqparm'
dimension d1(*),d2(*),d3(*),d4(*),d5(*),d6(*)
dimension sig1(*),sig2(*),sig3(*),sig4(*),sig5(*),sig6(*)
dimension cm(*),epsps(*),hsvs(nlq,*),dt1siz(*)
dimension temps(*),crv(lq1,2,*),cma(*),qmat(nlq,3,3),elsizv(*)
integer idelev(*)
logical failels(*)
character*5 etype
c
c eps(1)=local x strain increment
c eps(2)=local y strain increment
c eps(3)=local z strain increment
c eps(4)=local xy strain increment
c eps(5)=local yz strain increment
c eps(6)=local zx strain increment
c
c sig(1)=local x stress
c sig(2)=local y stress
c sig(3)=local z stress
c sig(4)=local xy stress
c sig(5)=local yz stress
c sig(6)=local zx stress
c
c material properties for orthotropic elastic material
c If transverse elastic properties are not provided, the transverse
c directions take on the same properties as the longitudinal direction,
c i.e. behaves as an isotropic material
c
E1 = cm(1)
E2 = cm(12)
E3 = cm(13)
v21 = cm(14)
v31=cm(15)
v32=cm(16)
G12 = cm(17)
G23 = cm(18)
G31 = cm(19)
c
v12 = v21*E1/E2
v23 = v32*E2/E3
v13 = v31*E1/E3
c
c stiffness matrix
c
S = 1.-v12*v21-v23*v32-v31*v13-2.*v21*v32*v13
c
C11=(1. - v23*v32)*E1/S
C12=(v21 + v31*v23)*E1/S
C13=(v31 + v21*v32)*E1/S
c C13=(v31 + v21*v23)/(E2*E3*S)
C22=(1. - v31*v13)*E2/S
C23=(v32 + v31*v12)*E2/S
C33=(1. - v12*v21)*E3/S
C44=G12
C55=G23
C66=G31
c
c write(59,*) 'Stiffness Matrix'
c write(59,*) C11, ' ',C12, ' ', C13
c write(59,*) C22, ' ',C23, ' ', C33
c write(59,*) C44, ' ',C55, ' ', C66
c write(59,*) ' '
c
do 10 i=lft,llt
if (etype.eq.'solid'.or.etype.eq.'shl_t'.or.
1 etype.eq.'sld2d'.or.etype.eq.'tshel'.or.
2 etype.eq.'sph '.or.etype.eq.'sldax') then
c
c Computes stresses
c
sig1(i) = sig1(i)+(C11*d1(i)+C12*d2(i)+C13*d3(i))
sig2(i) = sig2(i)+(C12*d1(i)+C22*d2(i)+C23*d3(i))
sig3(i) = sig3(i)+(C13*d1(i)+C23*d2(i)+C33*d3(i))
sig4(i) = sig4(i)+C44*d4(i)
sig5(i) = sig5(i)+C55*d5(i)
sig6(i) = sig6(i)+C66*d6(i)
c
c sig1(i) = sig1(i)+(C11*d1(i)+C12*d2(i)+C13*d3(i))*dt1siz(i)
c sig2(i) = sig2(i)+(C12*d1(i)+C22*d2(i)+C23*d3(i))*dt1siz(i)
c sig3(i) = sig3(i)+(C13*d1(i)+C23*d2(i)+C33*d3(i))*dt1siz(i)
c sig4(i) = sig4(i)+C44*d4(i)*dt1siz(i)
c sig5(i) = sig5(i)+C55*d5(i)*dt1siz(i)
c sig6(i) = sig6(i)+C66*d6(i)*dt1siz(i)
c
else if (etype.eq.'shell') then
c hsv(i,7)=-(hsv(i,4)*C13*hsv(i,1) + C23*hsv(i,6))/C33
d3(i) = -(C13*d1(i) + C23*d2(i))/C33
sig1(i) = sig1(i)+(C11*d1(i)+C12*d2(i)+C13*d3(i))
sig2(i) = sig2(i)+(C12*d1(i)+C22*d2(i)+C23*d3(i))
sig3(i) = 0.0
sig4(i) = sig4(i)+C44*d4(i)
sig5(i) = sig5(i)+capa*C55*d5(i)
sig6(i) = sig6(i)+capa*C66*d6(i)
endif
10 continue
c
return
end
subroutine urmats(lft,llt,cm,capa,mt,crv,ipt,rcoor,scoor,tcoor,
. nnm1,nconstp,nip,ipt_thk,npc,plc,eltype,nshbwp)
c
c******************************************************************
c| Livermore Software Technology Corporation (LSTC) |
c| ------------------------------------------------------------ |
c| Copyright 1987-2008 Livermore Software Tech. Corp |
c| All rights reserved |
c******************************************************************
c
include 'nlqparm'
include 'nhisparm.inc'
integer
1 nh01,nh02,nh03,nh04,nh05,nh06,nh07,nh08,nh09,nh10,
2 nb01,nb02,nb03,nb04,nb05,nb06,nb07,nb08,nb09,nb10,
3 ns01,ns02,ns03,ns04,ns05,ns06,ns07,ns08,ns09,ns10,
4 nt01,nt02,nt03,nt04,nt05,nt06,nt07,nt08,nt09,nt10,
5 nu01,nu02,nu03,nu04,nu05,nu06,nu07,nu08,nu09,nu10,
6 nd01,nd02,nd03,nd04,nd05,nd06,nd07,nd08,nd09,nd10,
7 ntbqs
common/bk05/
1 nh01,nh02,nh03,nh04,nh05,nh06,nh07,nh08,nh09,nh10,
2 nb01,nb02,nb03,nb04,nb05,nb06,nb07,nb08,nb09,nb10,
3 ns01,ns02,ns03,ns04,ns05,ns06,ns07,ns08,ns09,ns10,
4 nt01,nt02,nt03,nt04,nt05,nt06,nt07,nt08,nt09,nt10,
5 nu01,nu02,nu03,nu04,nu05,nu06,nu07,nu08,nu09,nu10,
6 nd01,nd02,nd03,nd04,nd05,nd06,nd07,nd08,nd09,nd10,
7 ntbqs
c
integer*8 dm_hmtnum,dm_hnfegp
integer*8 dm_bmtnum,dm_bnfegp
integer*8 dm_smtnum,dm_snfegp
integer*8 dm_tmtnum,dm_tnfegp
c
common/dmbk05/
1 dm_hmtnum,dm_hnfegp,
2 dm_bmtnum,dm_bnfegp,
3 dm_smtnum,dm_snfegp,
4 dm_tmtnum,dm_tnfegp
include 'bk06.inc'
integer n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,n14,n15,
1 n16,n17,n18,n19,n20,n21,n22,n23,n24,n25,n26,n27,n28,n29,n30,n31,
2 n32,n33,n34,n35,n36,n37,n38,n39,n40,n41,n42,n43,n44,n44a,n45,
3 n46,n47,n48,n49,n50,n51,n52,n53,n54,n55,n56,n57,n58,n59,n60,n61,
4 n62,n63,n64,n65,n66,n67,n68,n69,n70,n71,n72,n73,n74,n75,n76,n77,
5 n78,n79,n80,n81,n82,locend,iname,lendf
common/bk07/n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,n14,n15,
1 n16,n17,n18,n19,n20,n21,n22,n23,n24,n25,n26,n27,n28,n29,n30,n31,
2 n32,n33,n34,n35,n36,n37,n38,n39,n40,n41,n42,n43,n44,n44a,n45,
3 n46,n47,n48,n49,n50,n51,n52,n53,n54,n55,n56,n57,n58,n59,n60,n61,
4 n62,n63,n64,n65,n66,n67,n68,n69,n70,n71,n72,n73,n74,n75,n76,n77,
5 n78,n79,n80,n81,n82,locend,iname,lendf
integer lc0,lc1h,lc1b,lc1s,lc1t,lc2,lc3,lc4,lc5,lc6,lc7,lc9,
1 lc10,lc11,lc12,lc13,lc14,lc15,lc16,lc17,lc18,lb0,lb1,lb2,
2 lc7a,lc7b,lc7c,lc7d,lc7e,lc7f,lc7g,lc7h,lc7i,lc7j,lc7k,lc7l
common/bk13/lc0,lc1h,lc1b,lc1s,lc1t,lc2,lc3,lc4,lc5,lc6,lc7,lc9,
1 lc10,lc11,lc12,lc13,lc14,lc15,lc16,lc17,lc18,lb0,lb1,lb2,
2 lc7a,lc7b,lc7c,lc7d,lc7e,lc7f,lc7g,lc7h,lc7i,lc7j,lc7k,lc7l
include 'bk19.inc'
include 'iounits.inc'
include 'memaia.inc'
include 'umatss.inc'
include 'shlioc.inc'
c
c dynamic memory allocation stuff. This has to be a C style
c include because of the use of integer*8
c
integer i_mem(0:1)
real r_mem(0:1)
integer*8 i8_mem(0:1)
real*8 r8_mem(0:1)
real*8 real8_mem
integer*8 m_mem(0:1)
common/dynmem/real8_mem(0:1)
equivalence (i_mem,r_mem,i8_mem,r8_mem,real8_mem,m_mem)
integer*8 mem_alloc, mems_alloc,mem_realloc, memh_ptr
integer mem_length,memh_alloc,memh_realloc,memh_length
integer memh_enum,memh_enums,memh_attach
c integer mem_newmark,mem_getmark,memh_getmark
integer*8 memh_detach,memh_ralloc
integer*8 m_to_m8
integer*8 m_to_mm
external mem_alloc, mems_alloc, mem_realloc, mem_length
external memh_alloc, memh_realloc, memh_length, memh_ptr
external memh_enum,memh_attach,memh_detach,memh_ralloc
external memh_enums
external m_to_m8
external m_to_mm
integer*8 dm_x,dm_xr,dm_v,dm_vr,dm_a,dm_ar,dm_rots,dm_rotr
integer*8 dm_xms,dm_xmr,dm_xm2,dm_xmz,dm_xma
integer*8 dm_xtpz,dm_disp
integer*8 dm_me1,dm_me2,dm_me3
integer*8 dm_masp,dm_masr
integer*8 dm_xrb,dm_yrb,dm_zrb
integer*8 dm_axrb,dm_ayrb,dm_azrb
integer*8 dm_rbfx,dm_rbfy,dm_rbfz
integer*8 dm_n45,dm_n46,dm_n47
integer*8 dm_rwsx
integer len_n45,len_n46,len_n47
common/dynmem1/
. dm_x,dm_xr,dm_v,dm_vr,dm_a,dm_ar,dm_rots,dm_rotr,
. dm_xms,dm_xmr,dm_xm2,dm_xmz,dm_xma,
. dm_xtpz,dm_disp,
. dm_me1,dm_me2,dm_me3,
. dm_masp,dm_masr,
. dm_xrb,dm_yrb,dm_zrb,
. dm_axrb,dm_ayrb,dm_azrb,
. dm_rbfx,dm_rbfy,dm_rbfz,
. dm_n45,dm_n46,dm_n47,dm_rwsx
common/dynmem1l/len_n45,len_n46,len_n47
c
integer*8 mem_allocm,mems_allocm,mem_reallocm,mem_loc
integer memh_allocm,memh_reallocm
external mem_allocm,mems_allocm,mem_reallocm,mem_loc
external memh_allocm,memh_reallocm
integer*8 mem_allocmchk,mem_allocchk,mems_allocmchk,mems_allocchk
integer*8 mem_reallocmchk,mem_reallocchk
integer memh_allocmchk,memh_allocchk
external mem_allocmchk,mem_allocchk,mems_allocmchk,mems_allocchk
external mem_reallocmchk,mem_reallocchk
external memh_allocmchk,memh_allocchk
common/aux2loc/e1(nlq),e2(nlq),d3(nlq),e4(nlq),e5(nlq),e6(nlq),
1 wzzdt(nlq),wyydt(nlq),wxxdt(nlq),einc(nlq)
common /aux8cloc/
& d1(nlq),d2(nlq),d4(nlq),d5(nlq),d6(nlq),
& dfg11(nlq),dfg21(nlq),dfg31(nlq),dfg12(nlq),dfg22(nlq),
& dfg32(nlq),dfg13(nlq),dfg23(nlq),dfg33(nlq),stg5(nlq),
& stg6(nlq),a11(nlq),a12(nlq),a21(nlq),a22(nlq)
common/aux14loc/
& sig1(nlq),sig2(nlq),sig3(nlq),sig4(nlq),
& sig5(nlq),sig6(nlq),epsps(nlq),hsvs(nlq,NHISVAR)
common/aux19loc/
1 sign0(nlq),sign1(nlq),sign2(nlq),sign3(nlq),sign4(nlq),
2 sign5(nlq),sign6(nlq)
common/aux33loc/
1 ix1(nlq),ix2(nlq),ix3(nlq),ix4(nlq),ixs(nlq,4),mxt(nlq)
common/bk00/numnp,numpc,numlp,neq,ndof,nlcur,numcl,numvc,
+ ndtpts,nelmd,nmmat,numelh,numelb,numels,numelt,numdp,
+ grvity,idirgv,nodspc,nspcor,numelh10,numels8
common/bk36loc/index
common/bux13loc/eps(6),sig(6),hsv(NHISVAR),temps(nlq)
common/failcmloc/ifail(nlq)
common/failuloc/sieu(nlq),fail(nlq),ifaili(nlq),nfipts(nlq)
common/frozloc/yhat(nlq,3,4),qloc(nlq,3,3),qmat(nlq,3,3)
common/hourgloc/ym(nlq),gm(nlq),ifsv(nlq)
common/shloptloc/ibelyt
c
common/bk01/itherm,itemp,ntmp0,ntmp1,itempan,itempdr,itmpe(44)
common/bk26/begtim,nintcy
common/bk28/summss,xke,xpe,tt,xte0,erodeke,erodeie,selie,selke,
. erodehg,eintcnt,engjnt
logical failur,failgl
common/failcm/failur,failgl
common/numcpu/ncpu,ncpua,ncpub,lenvec(8)
integer istrn,istupd,ibelyts,miter,ipstpd,intsts,nodsts,intstn,
1 nodstn,jstrn,nddet,nsout01,nsout02,nsout03,nsout04,
2 nsout05,nsout06
real wrpang
common/shlopt/istrn,istupd,ibelytt,miter,wrpang,
1 ipstpd,intsts,nodsts,intstn,nodstn,jstrn,nddet,nsout01,
2 nsout02,nsout03,nsout04,nsout05,nsout06,mporlk,lporlk,
3 istrn_t,istrn_p
common/sidesloc/sidmn(nlq)
common/soundloc/ss(nlq),sndsp(nlq),diagm(nlq),sarea(nlq),
. dxl(nlq)
common/subtssloc/dt1siz(nlq)
common/thropt/itopaz(101)
c
dimension cm(*),crv(lq1,2,*),nconstp(*),npc(*),plc(*)
c dimension eps(6),sig(6),hsv(NHISVAR),temps(nlq)
dimension qmats(3,3)
character*(*)eltype
dimension nshbwp(*)
dimension thhsv(nlq,100),thhsvi(100)
dimension elsizv(nlq)
logical failel,failels(nlq)
integer lqfinv8
integer idelev(nlq),idele
integer*8 ptr_usrcf
c
c data temps/nlq*0.0/
c
c processing elements
c
c$omp threadprivate (/aux2loc/)
c$omp threadprivate (/aux8cloc/)
c$omp threadprivate (/aux14loc/)
c$omp threadprivate (/aux19loc/)
c$omp threadprivate (/aux33loc/)
c$omp threadprivate (/bk36loc/)
c$omp threadprivate (/bux13loc/)
c$omp threadprivate (/failuloc/)
c$omp threadprivate (/failcmloc/)
c$omp threadprivate (/frozloc/)
c$omp threadprivate (/hourgloc/)
c$omp threadprivate (/shloptloc/)
c$omp threadprivate (/sidesloc/)
c$omp threadprivate (/soundloc/)
c$omp threadprivate (/subtssloc/)
mx=48*(mxt(lft)-1)
gm(lft)=cm(mx+abs(ishrmp(mt)))
bk=cm(mx+ibulkp(mt))
pr=(3.*bk-2.*gm(lft))/(2.*(3.*bk+gm(lft)))
ym(lft)=2.*(1.+pr)*gm(lft)
ss(lft)=ym(lft)/(1.-pr*pr)
c
c Determining number of requested history variables
c
no_hsvs=nconstp(mxt(lft))
if (ivumat(mt).ne.0) no_hsvs=no_hsvs-9-6
if (lenvec(5) .eq.1) no_hsvs=no_hsvs-6
if (iorien(mt).ne.0) no_hsvs=no_hsvs-2
if (ihyper(mt).ne.0) no_hsvs=no_hsvs-9
if (iabs(ihyper(mt)).eq.4) no_hsvs=no_hsvs-18
if (ifipts(mt).lt.0) no_hsvs=no_hsvs-1
if (ioshl(67) .eq.1) no_hsvs=no_hsvs-1
c
if (ioshl(881).ne.0) then
c contact forces are store under r_mem(3,numnp)
ptr_usrcf = memh_ptr(ioshl(881))
endif
c
c initializing indeces
c
if(ivumat(mt).ne.0) then
if (iorien(mt).ne.0) then
if (ihyper(mt).ne.0) then
ind_defgrad=1+no_hsvs
ind_ortho=ind_defgrad+9
else
ind_ortho=1+no_hsvs
endif
if (ifipts(mt).lt.0) then
ind_fipts=ind_ortho
ind_ortho=ind_ortho+1
endif
ind_q1=ind_ortho
ind_q2=ind_ortho+1
ind_last=ind_q2
else
if (ihyper(mt).ne.0) then
ind_defgrad=1+no_hsvs
ind_last=ind_defgrad+8
else
ind_last=no_hsvs
endif
if (ifipts(mt).lt.0) then
ind_fipts=ind_last+1
ind_last=ind_last+1
endif
endif
ind_vumat=ind_last+1
ind_last=ind_vumat+9+6-1
c ind_last=ind_last+1
else
if (iorien(mt).ne.0) then
if (ihyper(mt).ne.0) then
ind_defgrad=1+no_hsvs
ind_ortho=ind_defgrad+9
if (iabs(ihyper(mt)).eq.4) ind_ortho=ind_ortho+18
else
ind_ortho=1+no_hsvs
endif
if (ifipts(mt).lt.0) then
ind_fipts=ind_ortho
ind_ortho=ind_ortho+1
endif
ind_q1=ind_ortho
ind_q2=ind_ortho+1
ind_last=ind_q2
else
if (ihyper(mt).ne.0) then
ind_defgrad=1+no_hsvs
ind_last=ind_defgrad+8
if (iabs(ihyper(mt)).eq.4) ind_last=ind_last+18
else
ind_last=no_hsvs
endif
if (ifipts(mt).lt.0) then
ind_fipts=ind_last+1
ind_last=ind_last+1
endif
endif
endif
c
if (ind_last.gt.NHISVAR) then
c write(iotty,900) lqfmiv(mxt(lft))
c write(iohsp,900) lqfmiv(mxt(lft))
c write(iomsg,900) lqfmiv(mxt(lft))
c call adios(2)
ierdat(1)=lqfmiv(mxt(lft))
call lsmsg(3,MSG_SOL+1148,ioall,ierdat,rerdat,cerdat,0)
endif
c$$$ if (tt.eq.0.0.and.nintcy.eq.0) then
c$$$c
c$$$c move transformation matrix in history variables array
c$$$c
c$$$ if (iorien(mt).ne.0) then
c$$$ do i=lft,llt
c$$$ hsvs(i,ind_q2)=hsvs(i,2)
c$$$ hsvs(i,ind_q1)=hsvs(i,1)
c$$$ enddo
c$$$ if (no_hsvs.gt.0) then
c$$$ do j=1,no_hsvs
c$$$ do i=lft,llt
c$$$ hsvs(i,j)=0.0
c$$$ enddo
c$$$ enddo
c$$$ endif
c$$$ endif
c$$$ endif
c
if (ipt.eq.1.and.ifipts(mt).ne.0) then
do i=lft,llt
nfipts(i)=0
enddo
endif
c
num_nods=4
if (ibelyt.eq.0) then
num_nods=8
do 10 i=lft,llt
sign0(i)=sign3(i)+ym(lft)*d3(i)
sign3(i)=sign0(i)
10 continue
endif
c
c transform stresses and strains to material system
c
if (iorien(mt).ne.0.and.(ihyper(mt).ge.0.or.ihyper(mt).eq.-2))
$ then
c if (iorien(mt).ne.0.and.ihyper(mt).ge.0) then
do 20 i=lft,llt
stg5(i)=sig5(i)
stg6(i)=sig6(i)
if (ncycle.le.1) then
rr = 1./sqrt(hsvs(i,ind_q1)**2+hsvs(i,ind_q2)**2)
hsvs(i,ind_q1)=hsvs(i,ind_q1)*rr
hsvs(i,ind_q2)=hsvs(i,ind_q2)*rr
end if
a11(i) =hsvs(i,ind_q1)*sig1(i)-hsvs(i,ind_q2)*sig4(i)
a12(i) =hsvs(i,ind_q2)*sig1(i)+hsvs(i,ind_q1)*sig4(i)
a21(i) =hsvs(i,ind_q1)*sig4(i)-hsvs(i,ind_q2)*sig2(i)
a22(i) =hsvs(i,ind_q2)*sig4(i)+hsvs(i,ind_q1)*sig2(i)
sig1(i)=hsvs(i,ind_q1)*a11(i)-hsvs(i,ind_q2)*a21(i)
sig2(i)=hsvs(i,ind_q2)*a12(i)+hsvs(i,ind_q1)*a22(i)
sig4(i)=hsvs(i,ind_q1)*a12(i)-hsvs(i,ind_q2)*a22(i)
sig5(i)=hsvs(i,ind_q2)*stg6(i)+hsvs(i,ind_q1)*stg5(i)
sig6(i)=hsvs(i,ind_q1)*stg6(i)-hsvs(i,ind_q2)*stg5(i)
20 continue
c
do 30 i=lft,llt
d4(i) =.5*e4(i)
a11(i) =hsvs(i,ind_q1)*e1(i)-hsvs(i,ind_q2)*d4(i)
a12(i) =hsvs(i,ind_q2)*e1(i)+hsvs(i,ind_q1)*d4(i)
a21(i) =hsvs(i,ind_q1)*d4(i)-hsvs(i,ind_q2)*e2(i)
a22(i) =hsvs(i,ind_q2)*d4(i)+hsvs(i,ind_q1)*e2(i)
d1(i) =hsvs(i,ind_q1)*a11(i)-hsvs(i,ind_q2)*a21(i)
d2(i) =hsvs(i,ind_q2)*a12(i)+hsvs(i,ind_q1)*a22(i)
d4(i) =2.*(hsvs(i,ind_q1)*a12(i)-hsvs(i,ind_q2)*a22(i))
d5(i) =hsvs(i,ind_q2)*e6(i)+hsvs(i,ind_q1)*e5(i)
d6(i) =hsvs(i,ind_q1)*e6(i)-hsvs(i,ind_q2)*e5(i)
30 continue
c
c element local strains
c
else
do i=lft,llt
d1(i) =e1(i)
d2(i) =e2(i)
d4(i) =e4(i)
d5(i) =e5(i)
d6(i) =e6(i)
enddo
endif
c
c storage of deformation gradient
c
if (ivumat(mt).ne.0) then
ifo11=ind_vumat
ifo21=ind_vumat+1
ifo31=ind_vumat+2
ifo12=ind_vumat+3
ifo22=ind_vumat+4
ifo32=ind_vumat+5
ifo13=ind_vumat+6
ifo23=ind_vumat+7
ifo33=ind_vumat+8
endif
if (ihyper(mt).ne.0) then
if11=ind_defgrad
if21=ind_defgrad+1
if31=ind_defgrad+2
if12=ind_defgrad+3
if22=ind_defgrad+4
if32=ind_defgrad+5
if13=ind_defgrad+6
if23=ind_defgrad+7
if33=ind_defgrad+8
c
c deformation gradient in element system at time = 0
c
if (tt.eq.begtim.and.nintcy.eq.0) then
do i=lft,llt
hsvs(i,if11)=1.0
hsvs(i,if21)=0.0
hsvs(i,if31)=0.0
hsvs(i,if12)=0.0
hsvs(i,if22)=1.0
hsvs(i,if32)=0.0
hsvs(i,if13)=0.0
hsvs(i,if23)=0.0
hsvs(i,if33)=1.0
enddo
if (ivumat(mt).ne.0) then
do i=lft,llt
hsvs(i,ifo11)=1.0
hsvs(i,ifo21)=0.0
hsvs(i,ifo31)=0.0
hsvs(i,ifo12)=0.0
hsvs(i,ifo22)=1.0
hsvs(i,ifo32)=0.0
hsvs(i,ifo13)=0.0
hsvs(i,ifo23)=0.0
hsvs(i,ifo33)=1.0
enddo
endif
endif
c
c store deformation gradient in element system
c
if (iorien(mt).eq.0) then
do i=lft,llt
dfg11(i)=hsvs(i,if11)
dfg21(i)=hsvs(i,if21)
dfg31(i)=hsvs(i,if31)
dfg12(i)=hsvs(i,if12)
dfg22(i)=hsvs(i,if22)
dfg32(i)=hsvs(i,if32)
dfg13(i)=hsvs(i,if13)
dfg23(i)=hsvs(i,if23)
dfg33(i)=hsvs(i,if33)
enddo
endif
endif
c
if (iorien(mt).ne.0) then
c
c store deformation gradient in material system
c as F_bar=Q^T*F
c
if (ihyper(mt).gt.0) then
c if (ihyper(mt).eq.1) then
do i=lft,llt
dfg11(i)=hsvs(i,ind_q1)*hsvs(i,if11)-
1 hsvs(i,ind_q2)*hsvs(i,if21)
dfg21(i)=hsvs(i,ind_q2)*hsvs(i,if11)+
1 hsvs(i,ind_q1)*hsvs(i,if21)
dfg31(i)=hsvs(i,if31)
dfg12(i)=hsvs(i,ind_q1)*hsvs(i,if12)-
1 hsvs(i,ind_q2)*hsvs(i,if22)
dfg22(i)=hsvs(i,ind_q2)*hsvs(i,if12)+
1 hsvs(i,ind_q1)*hsvs(i,if22)
dfg32(i)=hsvs(i,if32)
dfg13(i)=hsvs(i,ind_q1)*hsvs(i,if13)-
1 hsvs(i,ind_q2)*hsvs(i,if23)
dfg23(i)=hsvs(i,ind_q2)*hsvs(i,if13)+
1 hsvs(i,ind_q1)*hsvs(i,if23)
dfg33(i)=hsvs(i,if33)
c
hsvs(i,if11)=dfg11(i)
hsvs(i,if21)=dfg21(i)
hsvs(i,if12)=dfg12(i)
hsvs(i,if22)=dfg22(i)
hsvs(i,if13)=dfg13(i)
hsvs(i,if23)=dfg23(i)
enddo
c
c store deformation gradient in material system
c as F_bar=Q^T*F*Q
c
else if (ihyper(mt).eq.-2) then
do i=lft,llt
dfg11(i)=hsvs(i,ind_q1)*hsvs(i,if11)-
1 hsvs(i,ind_q2)*hsvs(i,if21)
dfg21(i)=hsvs(i,ind_q2)*hsvs(i,if11)+
1 hsvs(i,ind_q1)*hsvs(i,if21)
dfg31(i)=hsvs(i,if31)
dfg12(i)=hsvs(i,ind_q1)*hsvs(i,if12)-
1 hsvs(i,ind_q2)*hsvs(i,if22)
dfg22(i)=hsvs(i,ind_q2)*hsvs(i,if12)+
1 hsvs(i,ind_q1)*hsvs(i,if22)
dfg32(i)=hsvs(i,if32)
dfg13(i)=hsvs(i,ind_q1)*hsvs(i,if13)-
1 hsvs(i,ind_q2)*hsvs(i,if23)
dfg23(i)=hsvs(i,ind_q2)*hsvs(i,if13)+
1 hsvs(i,ind_q1)*hsvs(i,if23)
dfg33(i)=hsvs(i,if33)
c
hsvs(i,if11)=dfg11(i)*hsvs(i,ind_q1)-dfg12(i)*hsvs(i,ind_q2)
hsvs(i,if12)=dfg11(i)*hsvs(i,ind_q2)+dfg12(i)*hsvs(i,ind_q1)
hsvs(i,if13)=dfg13(i)
hsvs(i,if21)=dfg21(i)*hsvs(i,ind_q1)-dfg22(i)*hsvs(i,ind_q2)
hsvs(i,if22)=dfg21(i)*hsvs(i,ind_q2)+dfg22(i)*hsvs(i,ind_q1)
hsvs(i,if23)=dfg23(i)
hsvs(i,if31)=dfg31(i)*hsvs(i,ind_q1)-dfg32(i)*hsvs(i,ind_q2)
hsvs(i,if32)=dfg31(i)*hsvs(i,ind_q2)+dfg32(i)*hsvs(i,ind_q1)
hsvs(i,if33)=dfg33(i)
dfg11(i)=hsvs(i,if11)
dfg22(i)=hsvs(i,if22)
dfg33(i)=hsvs(i,if33)
dfg12(i)=hsvs(i,if12)
dfg21(i)=hsvs(i,if21)
dfg13(i)=hsvs(i,if13)
dfg31(i)=hsvs(i,if31)
dfg23(i)=hsvs(i,if23)
dfg32(i)=hsvs(i,if32)
enddo
c
c store deformation gradient in material system
c as F_bar=F*Q
c
c else if (ihyper(mt).lt.0) then
else if (ihyper(mt).eq.-1) then
do i=lft,llt
dfg11(i)=hsvs(i,ind_q1)*hsvs(i,if11)-
1 hsvs(i,ind_q2)*hsvs(i,if12)
dfg12(i)=hsvs(i,ind_q2)*hsvs(i,if11)+
1 hsvs(i,ind_q1)*hsvs(i,if12)
dfg13(i)=hsvs(i,if13)
dfg21(i)=hsvs(i,ind_q1)*hsvs(i,if21)-
1 hsvs(i,ind_q2)*hsvs(i,if22)
dfg22(i)=hsvs(i,ind_q2)*hsvs(i,if21)+
1 hsvs(i,ind_q1)*hsvs(i,if22)
dfg23(i)=hsvs(i,if23)
dfg31(i)=hsvs(i,ind_q1)*hsvs(i,if31)-
1 hsvs(i,ind_q2)*hsvs(i,if32)
dfg32(i)=hsvs(i,ind_q2)*hsvs(i,if31)+
1 hsvs(i,ind_q1)*hsvs(i,if32)
dfg33(i)=hsvs(i,if33)
c
hsvs(i,if11)=dfg11(i)
hsvs(i,if12)=dfg12(i)
hsvs(i,if21)=dfg21(i)
hsvs(i,if22)=dfg22(i)
hsvs(i,if31)=dfg31(i)
hsvs(i,if32)=dfg32(i)
enddo
endif
endif
c
c update first two rows of deformation gradient at time = n+1
c
if (ihyper(mt).ne.0) then
call integf_s(hsvs(1,if11),hsvs(1,if21),hsvs(1,if31),
& hsvs(1,if12),hsvs(1,if22),hsvs(1,if32),
& hsvs(1,if13),hsvs(1,if23),hsvs(1,if33),lft,llt)
endif
c
if (iabs(ihyper(mt)).eq.3.or.iabs(ihyper(mt)).eq.4) then
idxshl=5
if (numels8.gt.0) idxshl=9
call usrshl_defgrad(hsvs(1,if11),ihyper(mt),
1 rcoor,scoor,tcoor,
2 r_mem(dm_x),r_mem(dm_rots),
3 a(ns03+3*(idxshl-1)*numels+12*nnm1),
4 a(ns03+3*(idxshl+3)*numels+ 4*nnm1),
5 a(ns05+9*nnm1),
6 lft,llt)
do k=1,3
do j=1,3
do i=lft,llt
qmat(i,j,k)=qloc(i,j,k)
enddo
enddo
enddo
if (iorien(mt).ne.0) then
do j=1,3
do i=lft,llt
q1=hsvs(i,ind_q1)*qmat(i,j,1)-
1 hsvs(i,ind_q2)*qmat(i,j,2)
q2=hsvs(i,ind_q2)*qmat(i,j,1)+
1 hsvs(i,ind_q1)*qmat(i,j,2)
qmat(i,j,1)=q1
qmat(i,j,2)=q2
enddo
enddo
endif
endif
c
c if ishrmp(mt).lt.0 then the flag for temperature is active
c temperatures are stored in the temps array.
c
if (ishrmp(mt).lt.0) then
call usr_temps (a(ntmp0+1),a(n19),itemp,temps,lft,llt,ix1,ix2,
. ix3,ix4,ixs,ixs(1,2),ixs(1,3),ixs(1,4),num_nods,itopaz,
. nnm1,rcoor,scoor,tcoor)
else
do i=lft,llt
temps(i)=0.0
enddo
endif
c
c Get thermal history variables from thermal
c user material
c
call get_thhsv(nthhsv,thhsv,itemp,lft,llt,
1 num_nods,itopaz,nnm1,rcoor,scoor,tcoor)
c
c energy calculations
c
do 33 i=lft,llt
einc(i)=d1(i)*sig1(i)+d2(i)*sig2(i)+d4(i)*sig4(i)+d5(i)*sig5(i)
1 +d6(i)*sig6(i)
33 continue
c
c characteristic element size and element id
do i=lft,llt
elsizv(i)=sqrt(sidmn(i))
ielm=nshbwp(nnm1+i)
if (ielm.gt.0) idelev(i)=lqfinv8(ielm,4)
enddo
c
c memory pointer for extra memory data
lcma=ncma+nmmat+ia(ncma+mxt(lft)-1)-1
c
c vectorization flag
c
ivect=ivectr(mt)
c
mte40=mt-40
c
c scalar umat
c
if (ivect.eq.0) then
do 120 i=lft,llt
c
c gathering of variables
c
index=i
dt1 =dt1siz(i)
eps(1)=d1(i)
eps(2)=d2(i)
eps(3)=d3(i)
eps(4)=d4(i)
eps(5)=d5(i)
eps(6)=d6(i)
sig(1)=sig1(i)
sig(2)=sig2(i)
sig(3)=sig3(i)
sig(4)=sig4(i)
sig(5)=sig5(i)
sig(6)=sig6(i)
epsp=epsps(i)
temper=temps(i)
failel=.false.
if (ifipts(mt).lt.0) failel=hsvs(i,ind_fipts).ne.0.
if (no_hsvs.gt.0) then
do j=1,no_hsvs
hsv(j)=hsvs(i,j)
enddo
endif
if (ihyper(mt).ne.0) then
do j=1,9
hsv(no_hsvs+j)=hsvs(i,ind_defgrad-1+j)
enddo
if (iabs(ihyper(mt)).eq.4) then
do j=1,18
hsv(no_hsvs+j+9)=hsvs(i,ind_defgrad-1+j+9)
enddo
endif
if (iabs(ihyper(mt)).eq.3.or.iabs(ihyper(mt)).eq.4) then
do k=1,3
do j=1,3