DAMASK with grid solvers  Revision: v2.0.3-2204-gdb1f2151
The Düsseldorf Advanced Material Simulation Kit with Grid Solvers
DAMASK_grid.f90
Go to the documentation of this file.
1 # 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/grid/DAMASK_grid.f90"
2 # 1 "<built-in>"
3 # 1 "<command-line>"
4 # 1 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/grid/DAMASK_grid.f90"
5 !--------------------------------------------------------------------------------------------------
12 !--------------------------------------------------------------------------------------------------
14 
15 # 1 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h" 1
16 !
17 !
18 ! Part of the base include file for Fortran use of 1.
19 ! Note: This file should contain only define statements and
20 ! not the declaration of variables.
21 
22 ! No spaces for #defines as some compilers (PGI) also adds
23 ! those additional spaces during preprocessing - bad for fixed format
24 !
25 
26 
27 
28 # 1 "/opt/petsc-3.10.3/Intel-18.4-IntelMPI-2018/include/petscconf.h" 1
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 
1001 
1002 
1003 
1004 
1005 
1006 
1007 
1008 
1009 
1010 
1011 
1012 
1013 
1014 
1015 
1016 
1017 
1018 
1019 
1020 
1021 
1022 
1023 
1024 
1025 
1026 
1027 
1028 
1029 
1030 
1031 
1032 
1033 
1034 
1035 
1036 
1037 
1038 
1039 
1040 
1041 
1042 
1043 
1044 
1045 
1046 
1047 
1048 
1049 
1050 
1051 
1052 
1053 
1054 
1055 
1056 
1057 
1058 
1059 
1060 
1061 
1062 
1063 
1064 
1065 
1066 
1067 
1068 
1069 
1070 
1071 
1072 
1073 
1074 
1075 
1076 
1077 
1078 
1079 
1080 
1081 
1082 
1083 
1084 
1085 
1086 
1087 
1088 
1089 
1090 
1091 
1092 
1093 
1094 
1095 
1096 
1097 
1098 
1099 
1100 
1101 
1102 
1103 
1104 
1105 
1106 
1107 
1108 
1109 
1110 
1111 
1112 
1113 
1114 
1115 
1116 
1117 
1118 
1119 
1120 
1121 
1122 
1123 
1124 
1125 
1126 
1127 
1128 
1129 
1130 
1131 
1132 
1133 
1134 
1135 
1136 
1137 
1138 
1139 
1140 
1141 
1142 
1143 
1144 
1145 
1146 
1147 
1148 
1149 
1150 
1151 
1152 
1153 
1154 
1155 
1156 
1157 
1158 
1159 
1160 
1161 
1162 
1163 
1164 
1165 
1166 
1167 
1168 
1169 
1170 
1171 
1172 
1173 
1174 
1175 
1176 
1177 
1178 
1179 
1180 
1181 
1182 
1183 
1184 
1185 
1186 
1187 
1188 
1189 
1190 
1191 
1192 
1193 
1194 
1195 
1196 
1197 
1198 
1199 
1200 
1201 
1202 
1203 
1204 
1205 
1206 
1207 
1208 
1209 
1210 
1211 
1212 
1213 
1214 
1215 
1216 
1217 
1218 
1219 
1220 
1221 
1222 
1223 
1224 
1225 
1226 
1227 
1228 
1229 
1230 
1231 
1232 
1233 
1234 
1235 
1236 # 13 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h" 2
1237 
1238 
1239 
1240 
1241 # 1 "/opt/petsc-3.10.3/include/petscversion.h" 1
1242 
1243 
1244 
1245 
1246 
1247 
1248 
1249 
1250 
1251 
1252 
1253 
1254 
1255 
1256 
1257 
1258 
1259 
1260 
1261 
1262 
1263 
1264 
1265 
1266 
1267 
1268 
1269 
1270 
1271 
1272 
1273 
1274 
1275 
1276 
1277 
1278 
1279 
1280 
1281 
1282 
1283 
1284 
1285 
1286 
1287 # 17 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h" 2
1288 
1289 # 1 "/opt/petsc-3.10.3/include/petsc/finclude/petscviewer.h" 1
1290 !
1291 ! Include file for Fortran use of the PetscViewer package in 1
1292 !
1293 
1294 
1295 
1296 
1297 
1298 
1299 
1300 
1301 
1302 
1303 
1304 
1305 
1306 # 31 "/opt/petsc-3.10.3/include/petsc/finclude/petscviewer.h"
1307 
1308 # 18 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h" 2
1309 
1310 # 1 "/opt/petsc-3.10.3/include/petsc/finclude/petscerror.h" 1
1311 
1312 !
1313 ! Include file for Fortran error codes
1314 ! These are also in include/petscerror.h
1315 !
1316 
1317 
1318 
1319 # 24 "/opt/petsc-3.10.3/include/petsc/finclude/petscerror.h"
1320 
1321 # 38 "/opt/petsc-3.10.3/include/petsc/finclude/petscerror.h"
1322 
1323 
1324 
1325 
1326 
1327 
1328 
1329 
1330 
1331 
1332 
1333 
1334 
1335 
1336 
1337 
1338 # 19 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h" 2
1339 
1340 # 1 "/opt/petsc-3.10.3/include/petsc/finclude/petsclog.h" 1
1341 !
1342 ! No includes needed for logging
1343 # 20 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h" 2
1344 
1345 # 1 "/opt/petsc-3.10.3/include/petsc/finclude/petscbag.h" 1
1346 !
1347 !
1348 ! Include file for Fortran use of the Bag package in 1
1349 !
1350 
1351 
1352 
1353 
1354 
1355 !
1356 ! End of Fortran include file for the IS package in 1
1357 
1358 # 21 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h" 2
1359 
1360 !
1361 ! The real*8,complex*16 notatiton is used so that the
1362 ! 1 double/complex variables are not affected by
1363 ! compiler options like -r4,-r8, sometimes invoked
1364 ! by the user. NAG compiler does not like integer*4,real*8
1365 
1366 # 41 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h"
1367 
1368 
1369 
1370 
1371 
1372 
1373 
1374 
1375 
1376 # 63 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h"
1377 
1378 
1379 
1380 
1381 
1382 
1383 !
1384 
1385 
1386 
1387 
1388 
1389 !
1390 # 85 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h"
1391 !
1392 
1393 
1394 
1395 
1396 
1397 
1398 !
1399 
1400 
1401 
1402 
1403 !
1404 
1405 !
1406 
1407 
1408 !
1409 # 128 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h"
1410 
1411 # 150 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h"
1412 !
1413 ! Macro for templating between real and complex
1414 !
1415 # 174 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h"
1416 
1417 
1418 
1419 
1420 
1421 
1422 
1423 
1424 
1425 !
1426 ! Allows the matrix Fortran Kernels to work with single precision
1427 ! matrix data structures
1428 !
1429 
1430 !
1431 ! PetscLogDouble variables are used to contain double precision numbers
1432 ! that are not used in the numerical computations, but rather in logging,
1433 ! timing etc.
1434 !
1435 
1436 
1437 !
1438 ! Macros for error checking
1439 !
1440 
1441 
1442 
1443 
1444 
1445 
1446 
1447 
1448 # 215 "/opt/petsc-3.10.3/include/petsc/finclude/petscsys.h"
1449 
1450 
1451 
1452 
1453 
1454 
1455 
1456 
1457 
1458 
1459 
1460 
1461 # 11 "/home/damask_user/GitLabCI_Pipeline_4301/DAMASK/src/grid/DAMASK_grid.f90" 2
1462  use petscsys
1463  use prec
1464  use damask_interface
1465  use io
1466  use config
1467  use debug
1468  use math
1469  use cpfem2
1470  use material
1471  use spectral_utilities
1474  use grid_mech_fem
1477  use results
1478 
1479  implicit none
1480 
1481 !--------------------------------------------------------------------------------------------------
1482 ! variables related to information from load case and geom file
1483  real(preal), dimension(9) :: temp_valuevector = 0.0_preal
1484  logical, dimension(9) :: temp_maskvector = .false.
1485  integer, allocatable, dimension(:) :: chunkpos
1486  integer :: &
1487  n_t = 0, & !< # of time indicators found in load case file
1488  n_n = 0, &
1489  n_def = 0
1490  character(len=pStringLen) :: &
1491  line
1492 
1493 !--------------------------------------------------------------------------------------------------
1494 ! loop variables, convergence etc.
1495  real(preal), dimension(3,3), parameter :: &
1496  ones = 1.0_preal, &
1497  zeros = 0.0_preal
1498  integer, parameter :: &
1499  substepfactor = 2
1500  real(preal) :: &
1501  time = 0.0_preal, &
1502  time0 = 0.0_preal, &
1503  timeinc = 1.0_preal, &
1504  timeincold = 0.0_preal, &
1505  remainingloadcasetime = 0.0_preal
1506  logical :: &
1507  guess, & !< guess along former trajectory
1508  stagiterate, &
1509  cutback = .false.
1510  integer :: &
1511  i, j, k, l, field, &
1512  errorid = 0, &
1513  cutbacklevel = 0, &
1514  stepfraction = 0
1515  integer :: &
1516  currentloadcase = 0, & !< current load case
1517  inc, &
1518  totalincscounter = 0, &
1519  statunit = 0, &
1520  stagiter, &
1521  nactivefields = 0
1522  character(len=pStringLen), dimension(:), allocatable :: filecontent
1523  character(len=pStringLen) :: &
1524  incinfo, &
1525  loadcase_string
1526  type(tloadcase), allocatable, dimension(:) :: loadcases
1527  type(tloadcase) :: newloadcase
1528  type(tsolutionstate), allocatable, dimension(:) :: solres
1529  procedure(grid_mech_spectral_basic_init), pointer :: &
1530  mech_init
1531  procedure(grid_mech_spectral_basic_forward), pointer :: &
1532  mech_forward
1533  procedure(grid_mech_spectral_basic_solution), pointer :: &
1534  mech_solution
1535  procedure(grid_mech_spectral_basic_updatecoords), pointer :: &
1536  mech_updatecoords
1537  procedure(grid_mech_spectral_basic_restartwrite), pointer :: &
1538  mech_restartwrite
1539 
1540  external :: &
1541  quit
1542 
1543 !--------------------------------------------------------------------------------------------------
1544 ! init DAMASK (all modules)
1545  call cpfem_initall
1546  write(6,'(/,a)') ' <<<+- DAMASK_spectral init -+>>>'; flush(6)
1547 
1548  write(6,'(/,a)') ' Shanthraj et al., Handbook of Mechanics of Materials, 2019'
1549  write(6,'(a)') ' https://doi.org/10.1007/978-981-10-6855-3_80'
1550 
1551 !--------------------------------------------------------------------------------------------------
1552 ! initialize field solver information
1553  nactivefields = 1
1554  if (any(thermal_type == thermal_conduction_id )) nactivefields = nactivefields + 1
1555  if (any(damage_type == damage_nonlocal_id )) nactivefields = nactivefields + 1
1556  allocate(solres(nactivefields))
1557  allocate(newloadcase%ID(nactivefields))
1558 
1559 !--------------------------------------------------------------------------------------------------
1560 ! assign mechanics solver depending on selected type
1561  select case (trim(config_numerics%getString('spectral_solver',defaultval='basic')))
1562  case ('basic')
1563  mech_init => grid_mech_spectral_basic_init
1564  mech_forward => grid_mech_spectral_basic_forward
1565  mech_solution => grid_mech_spectral_basic_solution
1566  mech_updatecoords => grid_mech_spectral_basic_updatecoords
1567  mech_restartwrite => grid_mech_spectral_basic_restartwrite
1568 
1569  case ('polarisation')
1571  call io_warning(42, ext_msg='debug Divergence')
1577 
1578  case ('fem')
1580  call io_warning(42, ext_msg='debug Divergence')
1581  mech_init => grid_mech_fem_init
1582  mech_forward => grid_mech_fem_forward
1583  mech_solution => grid_mech_fem_solution
1584  mech_updatecoords => grid_mech_fem_updatecoords
1585  mech_restartwrite => grid_mech_fem_restartwrite
1586 
1587  case default
1588  call io_error(error_id = 891, ext_msg = config_numerics%getString('spectral_solver'))
1589 
1590  end select
1591 
1592 !--------------------------------------------------------------------------------------------------
1593 ! reading information from load case file and to sanity checks
1594  filecontent = io_read_ascii(trim(loadcasefile))
1595 
1596  allocate (loadcases(0)) ! array of load cases
1597  do currentloadcase = 1, size(filecontent)
1598  line = filecontent(currentloadcase)
1599  if (io_isblank(line)) cycle
1600  chunkpos = io_stringpos(line)
1601 
1602  do i = 1, chunkpos(1) ! reading compulsory parameters for loadcase
1603  select case (io_lc(io_stringvalue(line,chunkpos,i)))
1604  case('l','fdot','dotf','f')
1605  n_def = n_def + 1
1606  case('t','time','delta')
1607  n_t = n_t + 1
1608  case('n','incs','increments','logincs','logincrements')
1609  n_n = n_n + 1
1610  end select
1611  enddo
1612  if ((n_def /= n_n) .or. (n_n /= n_t) .or. n_n < 1) & ! sanity check
1613  call io_error(error_id=837,el=currentloadcase,ext_msg = trim(loadcasefile)) ! error message for incomplete loadcase
1614 
1615  newloadcase%stress%myType='stress'
1616  field = 1
1617  newloadcase%ID(field) = field_mech_id ! mechanical active by default
1618  thermalactive: if (any(thermal_type == thermal_conduction_id)) then
1619  field = field + 1
1620  newloadcase%ID(field) = field_thermal_id
1621  endif thermalactive
1622  damageactive: if (any(damage_type == damage_nonlocal_id)) then
1623  field = field + 1
1624  newloadcase%ID(field) = field_damage_id
1625  endif damageactive
1626 
1627  call newloadcase%rot%fromEulers(real([0.0,0.0,0.0],preal))
1628  readin: do i = 1, chunkpos(1)
1629  select case (io_lc(io_stringvalue(line,chunkpos,i)))
1630  case('fdot','dotf','l','f') ! assign values for the deformation BC matrix
1631  temp_valuevector = 0.0_preal
1632  if (io_lc(io_stringvalue(line,chunkpos,i)) == 'fdot'.or. & ! in case of Fdot, set type to fdot
1633  io_lc(io_stringvalue(line,chunkpos,i)) == 'dotf') then
1634  newloadcase%deformation%myType = 'fdot'
1635  else if (io_lc(io_stringvalue(line,chunkpos,i)) == 'f') then
1636  newloadcase%deformation%myType = 'f'
1637  else
1638  newloadcase%deformation%myType = 'l'
1639  endif
1640  do j = 1, 9
1641  temp_maskvector(j) = io_stringvalue(line,chunkpos,i+j) /= '*' ! true if not a *
1642  if (temp_maskvector(j)) temp_valuevector(j) = io_floatvalue(line,chunkpos,i+j) ! read value where applicable
1643  enddo
1644  newloadcase%deformation%maskLogical = transpose(reshape(temp_maskvector,[ 3,3])) ! logical mask in 3x3 notation
1645  newloadcase%deformation%maskFloat = merge(ones,zeros,newloadcase%deformation%maskLogical)! float (1.0/0.0) mask in 3x3 notation
1646  newloadcase%deformation%values = math_9to33(temp_valuevector) ! values in 3x3 notation
1647  case('p','stress', 's')
1648  temp_valuevector = 0.0_preal
1649  do j = 1, 9
1650  temp_maskvector(j) = io_stringvalue(line,chunkpos,i+j) /= '*' ! true if not an asterisk
1651  if (temp_maskvector(j)) temp_valuevector(j) = io_floatvalue(line,chunkpos,i+j) ! read value where applicable
1652  enddo
1653  newloadcase%stress%maskLogical = transpose(reshape(temp_maskvector,[ 3,3]))
1654  newloadcase%stress%maskFloat = merge(ones,zeros,newloadcase%stress%maskLogical)
1655  newloadcase%stress%values = math_9to33(temp_valuevector)
1656  case('t','time','delta') ! increment time
1657  newloadcase%time = io_floatvalue(line,chunkpos,i+1)
1658  case('n','incs','increments') ! number of increments
1659  newloadcase%incs = io_intvalue(line,chunkpos,i+1)
1660  case('logincs','logincrements') ! number of increments (switch to log time scaling)
1661  newloadcase%incs = io_intvalue(line,chunkpos,i+1)
1662  newloadcase%logscale = 1
1663  case('freq','frequency','outputfreq') ! frequency of result writings
1664  newloadcase%outputfrequency = io_intvalue(line,chunkpos,i+1)
1665  case('r','restart','restartwrite') ! frequency of writing restart information
1666  newloadcase%restartfrequency = io_intvalue(line,chunkpos,i+1)
1667  case('guessreset','dropguessing')
1668  newloadcase%followFormerTrajectory = .false. ! do not continue to predict deformation along former trajectory
1669  case('euler') ! rotation of load case given in euler angles
1670  temp_valuevector = 0.0_preal
1671  l = 1 ! assuming values given in degrees
1672  k = 1 ! assuming keyword indicating degree/radians present
1673  select case (io_lc(io_stringvalue(line,chunkpos,i+1)))
1674  case('deg','degree')
1675  case('rad','radian') ! don't convert from degree to radian
1676  l = 0
1677  case default
1678  k = 0
1679  end select
1680  do j = 1, 3
1681  temp_valuevector(j) = io_floatvalue(line,chunkpos,i+k+j)
1682  enddo
1683  call newloadcase%rot%fromEulers(temp_valuevector(1:3),degrees=(l==1))
1684  case('rotation','rot') ! assign values for the rotation matrix
1685  temp_valuevector = 0.0_preal
1686  do j = 1, 9
1687  temp_valuevector(j) = io_floatvalue(line,chunkpos,i+j)
1688  enddo
1689  call newloadcase%rot%fromMatrix(math_9to33(temp_valuevector))
1690  end select
1691  enddo readin
1692 
1693  newloadcase%followFormerTrajectory = merge(.true.,.false.,currentloadcase > 1) ! by default, guess from previous load case
1694 
1695  reportandcheck: if (worldrank == 0) then
1696  write (loadcase_string, '(i0)' ) currentloadcase
1697  write(6,'(/,1x,a,i0)') 'load case: ', currentloadcase
1698  if (.not. newloadcase%followFormerTrajectory) write(6,'(2x,a)') 'drop guessing along trajectory'
1699  if (newloadcase%deformation%myType == 'l') then
1700  do j = 1, 3
1701  if (any(newloadcase%deformation%maskLogical(j,1:3) .eqv. .true.) .and. &
1702  any(newloadcase%deformation%maskLogical(j,1:3) .eqv. .false.)) errorid = 832 ! each row should be either fully or not at all defined
1703  enddo
1704  write(6,'(2x,a)') 'velocity gradient:'
1705  else if (newloadcase%deformation%myType == 'f') then
1706  write(6,'(2x,a)') 'deformation gradient at end of load case:'
1707  else
1708  write(6,'(2x,a)') 'deformation gradient rate:'
1709  endif
1710  do i = 1, 3; do j = 1, 3
1711  if(newloadcase%deformation%maskLogical(i,j)) then
1712  write(6,'(2x,f12.7)',advance='no') newloadcase%deformation%values(i,j)
1713  else
1714  write(6,'(2x,12a)',advance='no') ' * '
1715  endif
1716  enddo; write(6,'(/)',advance='no')
1717  enddo
1718  if (any(newloadcase%stress%maskLogical .eqv. &
1719  newloadcase%deformation%maskLogical)) errorid = 831 ! exclusive or masking only
1720  if (any(newloadcase%stress%maskLogical .and. transpose(newloadcase%stress%maskLogical) &
1721  .and. (math_i3<1))) errorid = 838 ! no rotation is allowed by stress BC
1722  write(6,'(2x,a)') 'stress / GPa:'
1723  do i = 1, 3; do j = 1, 3
1724  if(newloadcase%stress%maskLogical(i,j)) then
1725  write(6,'(2x,f12.7)',advance='no') newloadcase%stress%values(i,j)*1e-9_preal
1726  else
1727  write(6,'(2x,12a)',advance='no') ' * '
1728  endif
1729  enddo; write(6,'(/)',advance='no')
1730  enddo
1731  if (any(abs(matmul(newloadcase%rot%asMatrix(), &
1732  transpose(newloadcase%rot%asMatrix()))-math_i3) > &
1733  reshape(spread(tol_math_check,1,9),[ 3,3]))) errorid = 846 ! given rotation matrix contains strain
1734  if (any(dneq(newloadcase%rot%asMatrix(), math_i3))) &
1735  write(6,'(2x,a,/,3(3(3x,f12.7,1x)/))',advance='no') 'rotation of loadframe:',&
1736  transpose(newloadcase%rot%asMatrix())
1737  if (newloadcase%time < 0.0_preal) errorid = 834 ! negative time increment
1738  write(6,'(2x,a,f0.3)') 'time: ', newloadcase%time
1739  if (newloadcase%incs < 1) errorid = 835 ! non-positive incs count
1740  write(6,'(2x,a,i0)') 'increments: ', newloadcase%incs
1741  if (newloadcase%outputfrequency < 1) errorid = 836 ! non-positive result frequency
1742  write(6,'(2x,a,i0)') 'output frequency: ', newloadcase%outputfrequency
1743  if (newloadcase%restartfrequency < 1) errorid = 839 ! non-positive restart frequency
1744  if (newloadcase%restartfrequency < huge(0)) &
1745  write(6,'(2x,a,i0)') 'restart frequency: ', newloadcase%restartfrequency
1746  if (errorid > 0) call io_error(error_id = errorid, ext_msg = loadcase_string) ! exit with error message
1747  endif reportandcheck
1748  loadcases = [loadcases,newloadcase] ! load case is ok, append it
1749  enddo
1750 
1751 
1752 !--------------------------------------------------------------------------------------------------
1753 ! doing initialization depending on active solvers
1754  call utilities_init
1755  do field = 1, nactivefields
1756  select case (loadcases(1)%ID(field))
1757  case(field_mech_id)
1758  call mech_init
1759 
1760  case(field_thermal_id)
1762 
1763  case(field_damage_id)
1765 
1766  end select
1767  enddo
1768 
1769 !--------------------------------------------------------------------------------------------------
1770 ! write header of output file
1771  if (worldrank == 0) then
1772  writeheader: if (interface_restartinc < 1) then
1773  open(newunit=statunit,file=trim(getsolverjobname())//'.sta',form='FORMATTED',status='REPLACE')
1774  write(statunit,'(a)') 'Increment Time CutbackLevel Converged IterationsNeeded' ! statistics file
1775  if (iand(debug_level(debug_spectral),debug_levelbasic) /= 0) &
1776  write(6,'(/,a)') ' header of statistics file written out'
1777  flush(6)
1778  else writeheader
1779  open(newunit=statunit,file=trim(getsolverjobname())//&
1780  '.sta',form='FORMATTED', position='APPEND', status='OLD')
1781  endif writeheader
1782  endif
1783 
1784  writeundeformed: if (interface_restartinc < 1) then
1785  write(6,'(1/,a)') ' ... writing initial configuration to file ........................'
1786  call cpfem_results(0,0.0_preal)
1787  endif writeundeformed
1788 
1789  loadcaselooping: do currentloadcase = 1, size(loadcases)
1790  time0 = time ! load case start time
1791  guess = loadcases(currentloadcase)%followFormerTrajectory ! change of load case? homogeneous guess for the first inc
1792 
1793  inclooping: do inc = 1, loadcases(currentloadcase)%incs
1794  totalincscounter = totalincscounter + 1
1795 
1796 !--------------------------------------------------------------------------------------------------
1797 ! forwarding time
1798  timeincold = timeinc ! last timeinc that brought former inc to an end
1799  if (loadcases(currentloadcase)%logscale == 0) then ! linear scale
1800  timeinc = loadcases(currentloadcase)%time/real(loadcases(currentloadcase)%incs,preal)
1801  else
1802  if (currentloadcase == 1) then ! 1st load case of logarithmic scale
1803  if (inc == 1) then ! 1st inc of 1st load case of logarithmic scale
1804  timeinc = loadcases(1)%time*(2.0_preal**real( 1-loadcases(1)%incs ,preal)) ! assume 1st inc is equal to 2nd
1805  else ! not-1st inc of 1st load case of logarithmic scale
1806  timeinc = loadcases(1)%time*(2.0_preal**real(inc-1-loadcases(1)%incs ,preal))
1807  endif
1808  else ! not-1st load case of logarithmic scale
1809  timeinc = time0 * &
1810  ( (1.0_preal + loadcases(currentloadcase)%time/time0 )**(real( inc ,preal)/&
1811  real(loadcases(currentloadcase)%incs ,preal))&
1812  -(1.0_preal + loadcases(currentloadcase)%time/time0 )**(real( inc-1 ,preal)/&
1813  real(loadcases(currentloadcase)%incs ,preal)))
1814  endif
1815  endif
1816  timeinc = timeinc * real(substepfactor,preal)**real(-cutbacklevel,preal) ! depending on cut back level, decrease time step
1817 
1818  skipping: if (totalincscounter <= interface_restartinc) then ! not yet at restart inc?
1819  time = time + timeinc ! just advance time, skip already performed calculation
1820  guess = .true. ! QUESTION:why forced guessing instead of inheriting loadcase preference
1821  else skipping
1822  stepfraction = 0 ! fraction scaled by stepFactor**cutLevel
1823 
1824  substeplooping: do while (stepfraction < substepfactor**cutbacklevel)
1825  remainingloadcasetime = loadcases(currentloadcase)%time+time0 - time
1826  time = time + timeinc ! forward target time
1827  stepfraction = stepfraction + 1 ! count step
1828 
1829 !--------------------------------------------------------------------------------------------------
1830 ! report begin of new step
1831  write(6,'(/,a)') ' ###########################################################################'
1832  write(6,'(1x,a,es12.5,6(a,i0))') &
1833  'Time', time, &
1834  's: Increment ', inc,'/',loadcases(currentloadcase)%incs,&
1835  '-', stepfraction,'/',substepfactor**cutbacklevel,&
1836  ' of load case ', currentloadcase,'/',size(loadcases)
1837  write(incinfo,'(4(a,i0))') &
1838  'Increment ',totalincscounter,'/',sum(loadcases%incs),&
1839  '-', stepfraction,'/',substepfactor**cutbacklevel
1840  flush(6)
1841 
1842 !--------------------------------------------------------------------------------------------------
1843 ! forward fields
1844  do field = 1, nactivefields
1845  select case(loadcases(currentloadcase)%ID(field))
1846  case(field_mech_id)
1847  call mech_forward (&
1848  cutback,guess,timeinc,timeincold,remainingloadcasetime, &
1849  deformation_bc = loadcases(currentloadcase)%deformation, &
1850  stress_bc = loadcases(currentloadcase)%stress, &
1851  rotation_bc = loadcases(currentloadcase)%rot)
1852 
1853  case(field_thermal_id); call grid_thermal_spectral_forward(cutback)
1854  case(field_damage_id); call grid_damage_spectral_forward(cutback)
1855  end select
1856  enddo
1857  if(.not. cutback) call cpfem_forward
1858 
1859 !--------------------------------------------------------------------------------------------------
1860 ! solve fields
1861  stagiter = 0
1862  stagiterate = .true.
1863  do while (stagiterate)
1864  do field = 1, nactivefields
1865  select case(loadcases(currentloadcase)%ID(field))
1866  case(field_mech_id)
1867  solres(field) = mech_solution(&
1868  incinfo,timeinc,timeincold, &
1869  stress_bc = loadcases(currentloadcase)%stress, &
1870  rotation_bc = loadcases(currentloadcase)%rot)
1871 
1872  case(field_thermal_id)
1873  solres(field) = grid_thermal_spectral_solution(timeinc,timeincold)
1874 
1875  case(field_damage_id)
1876  solres(field) = grid_damage_spectral_solution(timeinc,timeincold)
1877 
1878  end select
1879 
1880  if (.not. solres(field)%converged) exit ! no solution found
1881 
1882  enddo
1883  stagiter = stagiter + 1
1884  stagiterate = stagiter < stagitmax &
1885  .and. all(solres(:)%converged) &
1886  .and. .not. all(solres(:)%stagConverged) ! stationary with respect to staggered iteration
1887  enddo
1888 
1889 !--------------------------------------------------------------------------------------------------
1890 ! check solution for either advance or retry
1891 
1892  if ( (all(solres(:)%converged .and. solres(:)%stagConverged)) & ! converged
1893  .and. .not. solres(1)%termIll) then ! and acceptable solution found
1894  call mech_updatecoords
1895  timeincold = timeinc
1896  cutback = .false.
1897  guess = .true. ! start guessing after first converged (sub)inc
1898  if (worldrank == 0) then
1899  write(statunit,*) totalincscounter, time, cutbacklevel, &
1900  solres%converged, solres%iterationsNeeded
1901  flush(statunit)
1902  endif
1903  elseif (cutbacklevel < maxcutback) then ! further cutbacking tolerated?
1904  cutback = .true.
1905  stepfraction = (stepfraction - 1) * substepfactor ! adjust to new denominator
1906  cutbacklevel = cutbacklevel + 1
1907  time = time - timeinc ! rewind time
1908  timeinc = timeinc/real(substepfactor,preal) ! cut timestep
1909  write(6,'(/,a)') ' cutting back '
1910  else ! no more options to continue
1911  call io_warning(850)
1912  if (worldrank == 0) close(statunit)
1913  call quit(0) ! quit
1914  endif
1915 
1916  enddo substeplooping
1917 
1918  cutbacklevel = max(0, cutbacklevel - 1) ! try half number of subincs next inc
1919 
1920  if (all(solres(:)%converged)) then
1921  write(6,'(/,a,i0,a)') ' increment ', totalincscounter, ' converged'
1922  else
1923  write(6,'(/,a,i0,a)') ' increment ', totalincscounter, ' NOT converged'
1924  endif; flush(6)
1925 
1926  if (mod(inc,loadcases(currentloadcase)%outputFrequency) == 0) then ! at output frequency
1927  write(6,'(1/,a)') ' ... writing results to file ......................................'
1928  flush(6)
1929  call cpfem_results(totalincscounter,time)
1930  endif
1931  if (mod(inc,loadcases(currentloadcase)%restartFrequency) == 0) then
1932  call mech_restartwrite
1933  call cpfem_restartwrite
1934  endif
1935  endif skipping
1936 
1937  enddo inclooping
1938 
1939  enddo loadcaselooping
1940 
1941 
1942 !--------------------------------------------------------------------------------------------------
1943 ! report summary of whole calculation
1944  write(6,'(/,a)') ' ###########################################################################'
1945  if (worldrank == 0) close(statunit)
1946 
1947  call quit(0) ! no complains ;)
1948 
1949 end program damask_spectral
cpfem2
needs a good name and description
Definition: CPFEM2.f90:10
io::io_stringpos
pure integer function, dimension(:), allocatable, public io_stringpos(string)
locates all whitespace-separated chunks in given string and returns array containing number them and ...
Definition: IO.f90:204
io::io_read_ascii
character(len=pstringlen) function, dimension(:), allocatable, public io_read_ascii(fileName)
reads an entire ASCII file into an array
Definition: IO.f90:61
grid_mech_spectral_polarisation::grid_mech_spectral_polarisation_updatecoords
subroutine, public grid_mech_spectral_polarisation_updatecoords
Age.
Definition: grid_mech_spectral_polarisation.f90:2157
cpfem2::cpfem_results
subroutine cpfem_results(inc, time)
Trigger writing of results.
Definition: CPFEM2.f90:110
grid_mech_fem::grid_mech_fem_forward
subroutine, public grid_mech_fem_forward(cutBack, guess, timeinc, timeinc_old, loadCaseTime, deformation_BC, stress_BC, rotation_BC)
forwarding routine
Definition: grid_mech_FEM.f90:2076
grid_damage_spectral::grid_damage_spectral_solution
type(tsolutionstate) function, public grid_damage_spectral_solution(timeinc, timeinc_old)
solution for the spectral damage scheme with internal iterations
Definition: grid_damage_spectral.f90:1927
prec::tol_math_check
real(preal), parameter tol_math_check
tolerance for internal math self-checks (rotation)
Definition: prec.f90:30
spectral_utilities::field_mech_id
@, public field_mech_id
Definition: spectral_utilities.f90:1485
io::io_error
subroutine, public io_error(error_ID, el, ip, g, instance, ext_msg)
write error statements to standard out and terminate the Marc/spectral run with exit #9xxx
Definition: IO.f90:305
cpfem2::cpfem_initall
subroutine cpfem_initall
call all module initializations
Definition: CPFEM2.f90:45
grid_mech_fem::incinfo
character(len=pstringlen), private incinfo
time and increment information
Definition: grid_mech_FEM.f90:1849
cpfem2::cpfem_forward
subroutine cpfem_forward
Forward data for new time increment.
Definition: CPFEM2.f90:100
debug::debug_level
integer, dimension(debug_maxntype+2), public, protected debug_level
Definition: debug.f90:48
grid_mech_spectral_polarisation::grid_mech_spectral_polarisation_solution
type(tsolutionstate) function, public grid_mech_spectral_polarisation_solution(incInfoIn, timeinc, timeinc_old, stress_BC, rotation_BC)
solution for the Polarisation scheme with internal iterations
Definition: grid_mech_spectral_polarisation.f90:2009
spectral_utilities::field_thermal_id
@, public field_thermal_id
Definition: spectral_utilities.f90:1485
grid_mech_spectral_basic::grid_mech_spectral_basic_updatecoords
subroutine, public grid_mech_spectral_basic_updatecoords
Age.
Definition: grid_mech_spectral_basic.f90:2113
grid_mech_spectral_basic::grid_mech_spectral_basic_restartwrite
subroutine, public grid_mech_spectral_basic_restartwrite
Write current solver and constitutive data for restart to file.
Definition: grid_mech_spectral_basic.f90:2128
material::damage_nonlocal_id
@, public damage_nonlocal_id
Definition: material.f90:87
damask_interface::loadcasefile
character(len=:), allocatable, public, protected loadcasefile
parameter given for load case file
Definition: DAMASK_interface.f90:38
spectral_utilities
Utilities used by the different spectral solver variants.
Definition: spectral_utilities.f90:10
grid_mech_spectral_polarisation
Grid solver for mechanics: 1 Polarisation.
Definition: grid_mech_spectral_polarisation.f90:11
damask_spectral
program damask_spectral
Driver controlling inner and outer load case looping of the various spectral solvers.
Definition: DAMASK_grid.f90:13
material
Parses material config file, either solverJobName.materialConfig or material.config.
Definition: material.f90:11
config
Reads in the material configuration from file.
Definition: config.f90:13
spectral_utilities::field_damage_id
@, public field_damage_id
Definition: spectral_utilities.f90:1485
material::thermal_type
integer(kind(thermal_isothermal_id)), dimension(:), allocatable, public, protected thermal_type
thermal transport model
Definition: material.f90:94
prec
setting precision for real and int type
Definition: prec.f90:13
grid_thermal_spectral::grid_thermal_spectral_forward
subroutine, public grid_thermal_spectral_forward(cutBack)
forwarding routine
Definition: grid_thermal_spectral.f90:1986
grid_mech_spectral_basic
Grid solver for mechanics: 1 basic.
Definition: grid_mech_spectral_basic.f90:11
grid_mech_fem
Grid solver for mechanics: FEM.
Definition: grid_mech_FEM.f90:11
spectral_utilities::utilities_init
subroutine, public utilities_init
allocates all neccessary fields, sets debug flags, create plans for FFTW
Definition: spectral_utilities.f90:1627
grid_mech_spectral_polarisation::grid_mech_spectral_polarisation_forward
subroutine, public grid_mech_spectral_polarisation_forward(cutBack, guess, timeinc, timeinc_old, loadCaseTime, deformation_BC, stress_BC, rotation_BC)
forwarding routine
Definition: grid_mech_spectral_polarisation.f90:2070
grid_mech_fem::grid_mech_fem_updatecoords
subroutine, public grid_mech_fem_updatecoords
Age.
Definition: grid_mech_FEM.f90:2146
io::io_warning
subroutine, public io_warning(warning_ID, el, ip, g, ext_msg)
writes warning statement to standard out
Definition: IO.f90:535
io
input/output functions, partly depending on chosen solver
Definition: IO.f90:12
debug::debug_levelbasic
integer, parameter, public debug_levelbasic
Definition: debug.f90:19
prec::preal
integer, parameter preal
number with 15 significant digits, up to 1e+-307 (typically 64 bit)
Definition: prec.f90:20
debug
Reading in and interpretating the debugging settings for the various modules.
Definition: debug.f90:12
quit
subroutine quit(stop_id)
quit subroutine
Definition: quit.f90:12
grid_thermal_spectral
1 solver for thermal conduction
Definition: grid_thermal_spectral.f90:11
grid_mech_fem::grid_mech_fem_init
subroutine, public grid_mech_fem_init
allocates all necessary fields and fills them with data, potentially from restart info
Definition: grid_mech_FEM.f90:1875
io::io_isblank
logical pure function, public io_isblank(string)
identifies strings without content
Definition: IO.f90:160
prec::dneq
logical elemental pure function dneq(a, b, tol)
inequality comparison for float with double precision
Definition: prec.f90:146
grid_mech_spectral_polarisation::grid_mech_spectral_polarisation_restartwrite
subroutine, public grid_mech_spectral_polarisation_restartwrite
Write current solver and constitutive data for restart to file.
Definition: grid_mech_spectral_polarisation.f90:2172
grid_mech_fem::grid_mech_fem_restartwrite
subroutine, public grid_mech_fem_restartwrite
Write current solver and constitutive data for restart to file.
Definition: grid_mech_FEM.f90:2156
grid_damage_spectral::grid_damage_spectral_init
subroutine, public grid_damage_spectral_init
allocates all neccessary fields and fills them with data
Definition: grid_damage_spectral.f90:1849
grid_mech_fem::grid_mech_fem_solution
type(tsolutionstate) function, public grid_mech_fem_solution(incInfoIn, timeinc, timeinc_old, stress_BC, rotation_BC)
solution for the FEM scheme with internal iterations
Definition: grid_mech_FEM.f90:2021
io::io_intvalue
integer function, public io_intvalue(string, chunkPos, myChunk)
reads integer value at myChunk from string
Definition: IO.f90:252
damask_interface::interface_restartinc
integer, public, protected interface_restartinc
Increment at which calculation starts.
Definition: DAMASK_interface.f90:36
damask_interface
Interfacing between the 1-based solvers and the material subroutines provided by DAMASK.
Definition: DAMASK_interface.f90:22
results
Definition: results.f90:11
config::config_numerics
type(tpartitionedstringlist), public, protected config_numerics
Definition: config.f90:30
cpfem2::cpfem_restartwrite
subroutine cpfem_restartwrite
Write restart information.
Definition: CPFEM2.f90:90
grid_thermal_spectral::grid_thermal_spectral_solution
type(tsolutionstate) function, public grid_thermal_spectral_solution(timeinc, timeinc_old)
solution for the spectral thermal scheme with internal iterations
Definition: grid_thermal_spectral.f90:1924
debug::debug_spectral
integer, parameter, public debug_spectral
Definition: debug.f90:32
math
Mathematical library, including random number generation and tensor representations.
Definition: math.f90:12
math::math_9to33
pure real(preal) function, dimension(3, 3) math_9to33(v9)
convert 9 vector into 3x3 matrix
Definition: math.f90:667
grid_damage_spectral
1 solver for nonlocal damage
Definition: grid_damage_spectral.f90:11
grid_damage_spectral::grid_damage_spectral_forward
subroutine, public grid_damage_spectral_forward(cutBack)
spectral damage forwarding routine
Definition: grid_damage_spectral.f90:1987
damask_interface::getsolverjobname
character(len=:) function, allocatable, public getsolverjobname()
solver job name (no extension) as combination of geometry and load case name
Definition: DAMASK_interface.f90:1737
spectral_utilities::tloadcase
Definition: spectral_utilities.f90:1544
io::io_lc
pure character(len=len(string)) function, public io_lc(string)
changes characters in string to lower case
Definition: IO.f90:280
io::io_stringvalue
character(len=:) function, allocatable, public io_stringvalue(string, chunkPos, myChunk)
reads string value at myChunk from string
Definition: IO.f90:232
grid_mech_spectral_basic::grid_mech_spectral_basic_init
subroutine, public grid_mech_spectral_basic_init
allocates all necessary fields and fills them with data, potentially from restart info
Definition: grid_mech_spectral_basic.f90:1879
material::damage_type
integer(kind(damage_none_id)), dimension(:), allocatable, public, protected damage_type
nonlocal damage model
Definition: material.f90:96
spectral_utilities::tsolutionstate
return type of solution from spectral solver variants
Definition: spectral_utilities.f90:1528
grid_thermal_spectral::grid_thermal_spectral_init
subroutine, public grid_thermal_spectral_init
allocates all neccessary fields and fills them with data
Definition: grid_thermal_spectral.f90:1850
grid_mech_spectral_basic::grid_mech_spectral_basic_forward
subroutine, public grid_mech_spectral_basic_forward(cutBack, guess, timeinc, timeinc_old, loadCaseTime, deformation_BC, stress_BC, rotation_BC)
forwarding routine
Definition: grid_mech_spectral_basic.f90:2050
grid_mech_spectral_polarisation::grid_mech_spectral_polarisation_init
subroutine, public grid_mech_spectral_polarisation_init
allocates all necessary fields and fills them with data, potentially from restart info
Definition: grid_mech_spectral_polarisation.f90:1886
io::io_floatvalue
real(preal) function, public io_floatvalue(string, chunkPos, myChunk)
reads float value at myChunk from string
Definition: IO.f90:266
material::thermal_conduction_id
@, public thermal_conduction_id
Definition: material.f90:87
grid_mech_spectral_basic::grid_mech_spectral_basic_solution
type(tsolutionstate) function, public grid_mech_spectral_basic_solution(incInfoIn, timeinc, timeinc_old, stress_BC, rotation_BC)
solution for the basic scheme with internal iterations
Definition: grid_mech_spectral_basic.f90:1993
math::math_i3
real(preal), dimension(3, 3), parameter math_i3
3x3 Identity
Definition: math.f90:32