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 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 1237 1238 1239 1240 1241 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 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521
|
=PAGE=
5.1 INTRODUCTION
In addition to using the rigid formats provided automatically by NASTRAN,
you may wish to execute a series of modules in a different manner than
provided by a rigid format. Or he may wish to perform a series of matrix
operations which are not contained in any existing rigid format. If the
modifications to an existing rigid format are minor, the ALTER feature
described in Section 2 may be employed. Otherwise, a user-written Direct
Matrix Abstraction Program (DMAP) should be used.
DMAP is the user-oriented language used by NASTRAN to solve problems. A
rigid format is basically a collection of statements in this language. DMAP,
like English or FORTRAN, has many grammatical rules which must be followed to
be interpretable by the NASTRAN DMAP compiler. Section 5.2 provides you with
the rules of DMAP, which will allow him to understand the rigid format DMAP
sequences, write ALTER packages, and construct his own DMAP sequences using
the many modules contained in the NASTRAN DMAP repertoire.
Section 5.3 is an index of matrix, utility, user, and executive modules
which are contained in Sections 5.4 through 5.7 respectively.
Sections 5.4 through 5.7 describe individually the many nonstructurally
oriented modules contained in the NASTRAN library. Section 5.8 provides
several examples of DMAP usage.
User-written modules must conform to the rules and usage conventions
described herein.
Section 5.8 illustrates the use of DMAP operations in both the standard
method (as rigid formats are written) and in the improved method.
Section 5.9 describes the automatic ALTERs to a rigid format which result
from each of the automated multi-stage substructuring commands invoked by you.
Section 5.10 contains descriptions and uses of functional modules which are
of general utility to you but have not been permanently incorporated into the
rigid formats.
=PAGE=
5.2 DMAP RULES
Grammatically, DMAP instructions consist of two types: Executive Operation
Instructions and Functional Module Instructions. Grammatical rules for these
two types of instructions will be discussed separately in following sections.
Functional modules are arbitrarily classified as structural modules, matrix
operation modules, utility modules, or user-generated modules.
The DMAP sequence itself consists of a series of DMAP instructions or
statements, the first of which is BEGIN or XDMAP and the last of which is END.
The remaining statements consist of Executive Operation instructions and
Functional Module calls.
5.2.1 DMAP Rules for Functional Module Instructions
The primary characteristic of the Functional Module DMAP instruction is its
prescribed format. The general form of the Functional Module DMAP statement
is:
MOD I1,I2,...,Im/01,02,...,0n/a1,b1,p1/a2,b2,p2.../az,bz,pz $
where MOD is the DMAP Functional Module name,
Ii (i = 1,m) are the Input Data Block names,
0i (i = 1,n) are the Output Data Block names, and
ai,bi,pi (i = 1,z) are the Parameter Sections.
In the general form shown above, commas (,) are used to separate several
like items while slashes (/) are used to separate sections from one another.
The module name is separated from the rest of the instruction by a blank or a
comma (,). The dollar sign ($) is used to end the instruction and is not
required unless the instruction ends in the delimiter /. A DMAP statement is
restricted to columns 1 through 72. Information beyond column 72 is ignored.
If the entire DMAP instruction does not fit on one card, the last delimiter
(not followed by a $ sign) causes the next card to be read as a continuation.
Thus, one DMAP instruction may occupy several cards. Blanks may be used in
conjunction with any of the above delimiters for ease of reading. If it is
desired to preserve the output alignment of the printed instructions, the
module name is begun in column 1 and the rest of the instruction is begun in
column 10 when supplying alters to a Rigid Format.
A functional module communicates with other modules and the executive
system entirely through its inputs, outputs, and parameters. The
characteristics or attributes of each functional module are contained in the
Module Properties List (MPL) described in Section 2.4 of the Programmer's
Manual and are reflected in the DMAP Module Descriptions that follow in
Section 5.3 and in the Module Functional Descriptions contained in Chapter 4
of the Programmer's Manual. The module name is a BCD value (which consists of
an alphabetic character followed by up to seven additional alphanumeric
characters) and must correspond to an entry in the MPL. A Data Block name may
be either a BCD value or null. The absence of a BCD value indicates that the
Data Block is not needed for a particular application.
5.2.1.1 Functional Module DMAP Statements
Each Functional Module DMAP statement must conform to the MPL regarding:
1. Name spelling
2. Number of input data blocks
3. Number of output data blocks
4. Number of parameters
5. Type of each parameter
NOTE: See Sections 5.2.1.3 and 5.2.1.4 for allowable exceptions to these
rules.
5.2.1.2 Functional Module Names
The only Functional Module DMAP names allowed are those contained in the
MPL. Therefore, if you want to add a module, you must either use one of the
User Module names provided (see Section 5.6) or add a name to the MPL. The
Programmer's Manual should be consulted when adding a new module to NASTRAN.
5.2.1.3 Functional Module Input Data Blocks
In most cases an input data block should have been previously defined in a
DMAP program before it is used. However, there may be instances in which a
module can handle, or may even expect, a data block that is undefined at the
time the module is initially called. An input data block is previously defined
if it appears as an output data block in a previous DMAP instruction, as
output from the Input File Processor, as any user-input (via Bulk Data Cards)
DMI or DTI data block name, or exists on the Old Problem Tape in a restart
problem. Although the number of data blocks is prescribed, if any number of
final data blocks are null, they may be omitted from the section. For example,
the module TABPT, which uses five input data blocks, may be defined by:
TABPT GEOM1,,,, // $
or
TABPT GEOM1 // $
A potentially fatal error message (see Section 5.2.1.7) will be issued at
compilation time to warn you that a discrepancy in the data block name list
has been detected. This is also true if a previously undefined data block is
used as input. Also, see the "error-level" option on the XDMAP compiler option
card, which you may invoke to terminate execution in the event of such errors.
5.2.1.4 Functional Module Output Data Blocks
In general, a data block name will appear as output only once. However,
there are cases in which an output data block may be of no subsequent use in a
DMAP program. In such a case the name may be used again, but caution should be
used when employing such techniques. Although the number of output data blocks
is prescribed, the data block name list may be abbreviated in the manner of
Section 5.2.1.3. Potentially fatal error messages will warn you if possible
ambiguities may occur from these usages.
5.2.1.5 Functional Module Parameters
Parameters may serve many purposes in a DMAP program. They may pass data
values into and out from a module, or they may be used as flags to control the
computational flow within the module or the DMAP program. There are two
allowable forms of the parameter section of the DMAP instruction. The first
explicitly states the attributes of the parameters, while the second is a
briefer simplified specification. The general form of the formal parameter
section is:
/ ai,bi,pi /
where the allowable parameter specifications are:
ai = V Parameter value is variable and may be changed by the module
during execution.
ai = C Parameter value is prescribed initially by you and is an
unalterable constant.
ai = S Parameter is of type V, and will be saved automatically at
completion of module. (See description of the SAVE
instruction.)
bi = Y Initial parameter value may be specified on a PARAM Bulk Data
card.
bi = N Initial parameter value may not be specified on a PARAM Bulk
Data card.
pi = PNAME = v or pi = PNAME or pi = v PNAME is a BCD name selected by you
to represent a given parameter.
The default values for ai and bi depend on the value given for pi, as
described below. The three forms available for pi require additional
clarification. The symbol "v" represents an actual numeric value for the
parameter and may be used only when ai = C and bi = N. The other forms will be
clarified by the examples found at the end of this section. Each parameter has
an initial value which is established when the DMAP sequence is compiled
during execution of the NASTRAN preface. The means by which initial values are
established for all DMAP parameters will be explained by the symbolic examples
that follow. The value used at execution time may differ from the initial
value if and only if the module changes the value, if ai = "V", and if the
parameter name appears in a SAVE (see Section 5.7) instruction immediately
following the module.
The formal parameter specifications defined above can, in frequently
encountered instances, be greatly simplified. Situations where these
simplifications may be used are:
1. / C,N,v / can be written as / v
The value "v" is written exactly as it would be in the formal specification
with the exception of BCD constant parameters, in which case the BCD string
is enclosed by asterisks, that is, / *STRING* /.
2. / V,N,PNAME / can be written as / PNAME /
/ V,N,PNAME=v / can be written as / PNAME=v /
Again, in the case where the value "v" appears, it is written exactly as in
the case of the formal specification. In this case, BCD strings are not
delimited by asterisks.
3. / (default value) / can be written as //
If a particular parameter has a predefined default value specified in the
Module Properties List (MPL), and you want to choose this value, then it is
necessary only to code successive slashes. If a parameter does not have a
default value, an error message will be issued.
Six parameter types are available and the type of each parameter is given
in the MPL and may not be changed. The types and examples of values as they
would be written in DMAP are given below:
PARAMETER TYPE VALUE EXAMPLES
Integer 7 -2 0
Real -3.6 2.4+5 0.01-3
BCD VAR01 STRING3 B3R56
Double Precision 2.5D-3 1.354D7
Complex Single Precision (1.0,-3.24)
Complex Double Precision (1.23D-2,-3.67D2)
Many possible forms of the parameter section may be used. The following
examples will help to clarify the possibilities.
// This is equivalent to / C,N,v / where v is the MPL default value
which must exist.
/ C,Y,v Constant input parameter
Examples: / C,N,0 / C,N,BKL0 / C,N,(1.0,-1.0)
or
/ 0 / *BKL0* / (1.0,-1.0)
In the examples shown, both in formal and simplified form, the
values 0 (integer), BKL0 (BCD), and 1.0-i1.0 (complex single
precision) are defined.
/ C,Y,PNAMEConstant input parameter; MPL default value is used unless a PARAM
Bulk Data card referencing PNAME is present. Error condition is
detected if either no PARAM card is present or no MPL default
value exists.
/ C,Y,PNAME=v Constant input parameter; the value v is used unless a PARAM
Bulk Data card referencing PNAME is present.
/ V,Y,PNAME or V,Y,PNAME=v Variable parameter; may be input, output, or both;
initial value is the first of
1. value from the most recently executed SAVE instruction, if
any
2. value from PARAM Bulk Data card referencing PNAME will be
used if present in Bulk Data Deck
3. v, if present in DMAP instruction
4. MPL default value, if any
5. 0
If a parameter is output from a functional module and if the
output value is to be carried forward, a SAVE instruction must
immediately follow the DMAP instruction in which the parameter is
generated.
/ V,N,PNAME or / PNAME or / V,N,PNAME=v or /PNAME=v Variable parameter; may
be input, output, or both; initial value is the first of
1. value from the most recently executed SAVE instruction, if
any
2. v, if present in DMAP instruction
3. MPL default value, if any
4. 0
5.2.1.6 DMAP Compiler Options - The XDMAP Instruction (see Section 5.7)
You can elect several options when compiling and executing a DMAP program
by including an XDMAP compiler option instruction in the program. Similarly,
the Rigid Formats may be altered by replacing the BEGIN statement with XDMAP
to invoke the same options. The available options are:
GO (default) or NOGO
The GO option compiles and executes the program, while NOGO terminates the job
at the conclusion of compilation.
LIST or NOLIST
The LIST option produces a DMAP program source listing. See the description of
the XDMAP card in Section 5.7 for the default values for this option.
DECK or NODECK (default)
The DECK option produces a punched card deck of the program.
OSCAR or NOOSCAR (default)
If the OSCAR option is selected, a complete listing of the Operation Sequence
Control Array is produced.
REF or NOREF (default)
The REF option produces a complete cross reference listing of variable
parameters, data block names, and module calls for the DMAP program.
ERR=0 or 1 or 2 (default)
This option specifies the error level at which termination of the job will
occur, 0 for WARNING, 1 for POTENTIALLY FATAL, and 2 for FATAL ERROR MESSAGE.
See Section 5.2.1.7 for further explanation.
The complete description of the XDMAP card may be found in Section 5.7,
dealing with Executive Operation Modules. Note that an XDMAP card need not
appear when all default values are elected, but may be replaced with a BEGIN
instruction.
5.2.1.7 Extended Error Handling Facility
There are three levels of error messages generated during the compilation
of a DMAP sequence. These levels are WARNING MESSAGE, POTENTIALLY FATAL ERROR
MESSAGE, and FATAL ERROR MESSAGE. You have, through available compiler
options, the ability to specify the error level at which the job will be
terminated. (See Section 5.2.1.6 for the manner of specification.) The class
of POTENTIALLY FATAL ERROR MESSAGES is generated by certain compiler
conveniences which, if not fully understood by you, could cause an erroneous
or incorrect execution of the DMAP sequence. The default value for the error
level is that of the FATAL ERROR MESSAGE.
5.2.2 DMAP Rules for Executive Operation Instructions
Each executive operation statement has its own format which is generally
open-ended, meaning the number of inputs, outputs, etc. is not prescribed.
Executive operation instructions or statements are divided into general
categories as follows:
1. Declarative instructions FILE, BEGIN, LABEL. XDMAP, and PRECHK which aid
the DMAP compiler and the file allocator as well as provide user
convenience.
2. Instructions CHKPNT, EQUIV, PURGE, and SAVE which aid the NASTRAN
Executive System in allocating files, interfacing between functional
modules, and in restarting a problem.
3. Control instructions REPT, JUMP, COND, EXIT, and END which control the
order in which DMAP instructions are executed.
The rules associated with the executive operation instructions are distinct
for each instruction and are discussed individually in Section 5.7.
5.2.3 Techniques and Examples of Executive Module Usage
Even though the DMAP program may be interpretable by the DMAP compiler this
does not guarantee that the program will yield the desired results. Therefore,
this section is provided to acquaint you with techniques and examples used in
writing DMAP programs. In particular, the instructions REPT, FILE, EQUIV,
PURGE, and CHKPNT will now be discussed in some detail. The DMAP modules
available are listed in Section 5.3.
The new DMAP user should read Sections 5.4 through 5.7 to obtain the
necessary knowledge of terminology before reading this section.
The data blocks and functional modules referenced in the following examples
are fictitious and have no relationship to any real data blocks or functional
modules.
A data block is described as having a status of "not generated",
"generated", or "purged." A status of not generated means that the data block
is available for generation by appearing as output in a functional module. A
status of generated means that the data block contains data which is available
for input to a subsequent module. A status of purged means that the data block
cannot be generated and any functional module attempting to use this data
block as input or output will be informed that the purged data block is not
available for use.
5.2.3.1 The REPT and FILE Instructions (see Section 5.7)
The DMAP instructions bounded by the REPT instruction and the label
referenced by the REPT instruction are referred to as a loop. The location
referenced by the REPT is called the top of the loop. In many respects a DMAP
loop is like a giant functional module since it requires inputs and generates
output data blocks which usually can be handled correctly by the file
allocator (see Section 4.9 of the Programmer's Manual) without any special
action by you. The one exception is a data block that is not referenced
outside the loop (that is, an internal data block with respect to the loop).
The file allocator considers internal data blocks as scratch data blocks to be
used for the present pass through the loop but not to be saved for input at
the top of the loop. To save an internal data block, declare the data block
SAVE in the FILE instruction.
When the REPT instruction transfers control back to the top of the loop,
the status of all internal data blocks is changed to "not generated" unless
the internal data block is declared SAVE or APPEND in a FILE instruction. It
should also be noted that equivalences established between internal data
blocks (not declared saved) and data blocks referenced outside the loop are
not carried over for the next time through the loop. The equivalence must be
re-established each time through the loop. Data blocks generated by the Input
File Processor are considered referenced outside of all DMAP loops.
Example Using REPT and FILE Instructions
BEGIN $
FILE X=SAVE / Y=APPEND / Z=APPEND $
LABEL L1 $
MOD1 B/W,Y $
COND L3,PX $
DMAP MOD2 A/X/V,N,PX=0 $
loop SAVE PX $
LABEL L3 $
MOD3 W,X,Y/Z $
REPT L1,1 $
MOD4 Z// $
END $
Assume that MOD2 sets PX < 0 when it is executed. Note that Z is declared
APPEND, whereas Y will be saved since it is an internal data block that is to
be appended. X is an internal data block that is to be saved since it will
only be generated the first time through the loop but is needed as input each
time the loop is repeated. W is an internal data block that is generated each
time through the loop; therefore, it is not saved.
The following table shows what happens when the above DMAP program is
executed. Only modules being executed are shown in the table. Data blocks A
and B are assumed to be generated by the Input File Processor, and hence are
considered referenced outside of all DMAP loops.
Module Input status Output status and comments
being and comments
executed
MOD1 B - assumed generated by W, Y - generated
the input file processor
COND PX is 0 No transfer occurs since PX >= 0
MOD2 A - assumed generated by X - generated
the input file processor PX is set < 0
SAVE PX < 0 The value created above is saved for
subsequent use.
MOD3 W, X, Y are all generated Z - generated
at this point
REPT Loop count is Transfer to L1 - set loop count to 1-
initially set to 1 1=0. Status of data blocks at top of
loop will be: A, B, Z - generated
(referenced outsIde loop) X, Y -
generated (internal data blocks
declared saved) W - not generated
(internal data block)
MOD1 B - generated W - generated
Y - generated (appended)
COND PX is now < 0 due to Transfer to L3 occurs
SAVE
MOD3 W, X, Y - generated Z - generated (appended)
REPT Loop count is now 0 No transfer occurs.
MOD4 Z - generated Output to printer (assumed)
END Normal termination of problem.
5.2.3.2 The EQUIV Instruction (see Section 5.7)
There are no restrictions on the status of data blocks referenced in an
EQUIV instruction. Consider the instruction EQUIV A,B1,...,BN/P $ when P < 0.
Data blocks B1,...,BN take on all the characteristics of data block A
including the status of A. This means the status of some Bj can change from
purged to generated or not generated.
The EQUIV instruction will unequivalence data blocks when P >= 0. In an
unequivalence operation, the status of all secondary data blocks reverts to
not generated.
Suppose A, B, and C are all equivalenced and P >= 0. EQUIV A,B/P $ will
break the equivalence between A and B but not between A and C.
Now consider the following situation. Data block B is to be generated by
repeatedly executing functional module MOD2. The input to MOD2 is the previous
output from MOD2. That is to say, each successive generation of B depends on
the previous B generated. The following example shows how the EQUIV
instruction is used to solve this problem. Assume parameter BREAK >= 0 and
parameter LINK < 0.
Example of EQUIV Instruction
BEGIN $
MOD1 A/B $
LABEL L1 $
DMAP EQUIV B,BB/BREAK $
loop MOD2 B/BB $
EQUIV BB,B/LINK $
REPT L1,1 $
MOD3 BB// $
END
The following table shows what happens when the above DMAP program is
executed. Only modules being executed are shown in the table.
Module Input status Output status and comments
being and comments
executed
MOD1 A - assumed generated by B - generated
input processor
EQUIV B will not be equivalenced No action taken
to BB since BREAK >= 0
MOD2 B - generated BB - generated
EQUIV BB and B are not B is equivalenced to BB. That is,
equivalenced. B assumes all of the characteristics
B - generated of BB. B and BB then both have the
BB - generated status of generated.
LINK < 0.
REPT Loop count is Transfer to L1; set loop count to
initially 1 1-1=0.
EQUIV B and BB are generated The equivalence is broken;
and equivalenced. B - generated, BB - not generated
BREAK >= 0.
MOD2 B - generated BB - generated
EQUIV BB and B are generated B equivalenced to BB; B, BB
and not equivalenced. - generated
LINK < 0.
REPT Loop count is 0 No transfer occurs.
MOD3 BB - generated Output to printer (assumed)
END Normal termination of problem.
Since equivalences are automatically broken between internal files (not
declared saved) and files referenced outside the loop, the above DMAP program
could be written as follows and the same results achieved.
BEGIN $
MOD1 A/B $
LABEL L1 $
DMAP MOD2 B/BB $
loop EQUIV BB,B/LINK $
REPT L1,1 $
MOD3 B// $
END
Data block BB is now internal; therefore, the instruction EQUIV B,BB/BREAK $
is not needed.
5.2.3.3 The PURGE Instruction (see Section 5.7)
The status of a data block is changed to purged by explicitly or implicitly
purging it. A data block is explicitly purged through the PURGE instruction,
whereas it is implicitly purged if it is not created by the functional module
in which it appears as an output.
The primary purpose of the PURGE instruction is to prepurge data blocks.
Prepurging is the explicit purging of a data block prior to its appearance as
output from a functional module. Prepurging data blocks allows the NASTRAN
executive system to allocate available files more efficiently, which decreases
problem execution time. You should look for data blocks that can be prepurged
and purge them as soon as it is recognized that they will not be generated.
Sometimes during the execution of a problem it is necessary to generate a
data block whose status is purged. This situation can occur both in DMAP
looping and in a modified restart situation. In order to generate a data block
that is purged it is first necessary to unpurge it (that is, change its status
from purged to not generated). Unpurging is achieved by executing a PURGE
instruction which references the purged data block and whose purge parameter
is positive.
The PURGE instruction thus has two functions, to unpurge as well as purge
data blocks, depending on the value of the purge parameter and the status of
the referenced data block. The following table shows what action is taken by
the PURGE instruction for all combinations of input.
PURGE A/P $
Status of data block Value of P Status of Data block
A prior to PURGE A after PURGE
Not generated P >= 0 Not generated (that is, no action taken)
Not generated P < 0 Purged
Generated P >= 0 Generated (that is, no action taken)
Generated P < 0 Purged
Purged P >= 0 Not generated (that is, unpurged)
Purged P < 0 Purged (that is, no action taken)
You may wonder why you should not prepurge all data blocks and then unpurge
them when necessary in order to really assist the file allocator. The reason
not to do this is that there is a limited amount of space in the table where
the status of data blocks is kept. This table may overflow if too many data
blocks are purged at one time. Therefore, only prepurge those data blocks that
can truly be prepurged.
Example of Explicit and Implicit Purging and Prepurging
BEGIN $
MOD1 IP/A/V,Y,PX/V,Y,PY/V,Y,PB $
SAVE PX,PY,PB $
PURGE X/PX / Y/PY $
MOD2 A/B,C,D/V,Y,PB/V,Y,PC $
SAVE PC $
PURGE C/PC $
MOD3 B,C,D/E $
MOD4 E/X,Y,Z $
MOD5 X,Y,Z// $
END $
Assume that module MOD1 sets PX < 0, PY >= 0 and PB = 0. Assume that B is not
generated by MOD2 if PB = 0. Assume that MOD2 sets PC < 0, but does not change
PB.
The following table shows what happens when the above DMAP program is
executed. Only modules being executed are shown in the table.
Module Input status Output status and comments
being and comments
executed
MOD1 IP - assumed generated A - generated
by the input file PX < 0, PY >= 0, PB = 0
processor
SAVE PX < 0, PY >= 0, Parameter values are saved for use
PB = 0 in subsequent modules.
PURGE X,Y - not generated X - purged (that is, prepurged)
PX < 0, PY >= 0 Y - not generated
MOD2 A - generated; PB = 0 B - purged (that is, implicitly);
C, D - generated; PC 0.
SAVE PC < 0 PB value not saved since MOD2 did
not reset it.
PURGE C - generated C - purged
PC < 0
MOD3 B, C - purged E - generated
D - generated
MOD4 E - generated X - purged; Y - generated;
Z - generated
MOD5 X - purged Output to printer (assumed)
Y, Z - generated
END Normal termination of problem.
Example of Unpurging
BEGIN $
FILE X=SAVE/Y=SAVE $
FILE Z=APPEND $
MOD1 IP/A $
LABEL L1 $
COND L2,NPX $
PURGE X/NPX $
MOD2 A/X,Y/V,Y,PX=0/V,N,NPX=0 $
DMAP SAVE PX,NPX $
loop PURGE X/PX $
LABEL L2 $
MOD3 X,Y/Z $
REPT L1,2 $
MOD4 Z// $
END $
Assume that MOD2 sets PX < 0 and NPX >= 0 the first time it is executed.
Assume that MOD2 sets PX >= 0 and NPX < 0 the second time it is executed.
The following table shows what happens when the above DMAP program is
executed. Only modules being executed are shown in the table.
Module Input status Output status and comments
being and comments
executed
MOD1 IP - assumed generated by A - generated
input file processor.
COND NPX = 0 Jump not executed
PURGE X - not generated X - not generated (that is, no action
taken)
MOD2 A - generated X, Y - generated; PX < 0, NPX >= 0
SAVE PX < 0, NPX >= 0
PURGE X - generated; PX < 0 X - purged
MOD3 X - purged; Z - generated
Y - generated
REPT Loop count = 2 Transfer to location L1;
loop count = 1
COND NPX >= 0 Jump not executed
PURGE X - purged; NPX >= 0 X - not generated (that is, unpurged)
MOD2 A - generated X - generated; Y - generated (note
old data for Y is lost because Y not
Appended); PX >= 0, NPX <0
SAVE PX >= 0, NPX < 0
PURGE X - generated; PX >= 0 X - generated (that is, no action
taken)
MOD3 X,Y - generated Z - generated (note new data appended
to old because Z declared appended)
REPT Loop count = 1 Transfer to location L1;
loop count = 0
COND NPX < 0 Transfer to location L2
MOD3 X, Y - generated Z - generated (that is, appended)
REPT Loop count = 0 Fall through to next instruction
MOD4 Z - generated Output to printer (assumed)
END Normal termination of problem
5.2.3.4 The CHKPNT Instruction (see Section 5.7)
The CHKPNT instruction provides you with a means for saving data blocks for
subsequent restart of your problem with a minimum amount of redundant
processing. The following rules will assure you of the most efficient restart.
1. Checkpoint all output data blocks from every functional module.
2. Checkpoint all data blocks mentioned in a PURGE instruction.
3. Checkpoint all secondary data blocks in an EQUIV instruction. Never
checkpoint primary data blocks in an EQUIV instruction.
4. Checkpoint all data blocks mentioned above as soon as possible.
Example of Checkpointing
BEGIN $
MOD1 A/B,C/S,Y,P1/S,Y,P2 $
CHKPNT B,C $
PURGE X,Y/P1 / Z/P2 $
CHKPNT X,Y,Z $
EQUIV B,BB/P1 / C,CC,D/P2 $
CHKPNT BB,CC,D $
:
:
END $
In the example above, the data blocks were checkpointed as soon as possible,
which is the most straightforward way, but it required three calls to the
checkpoint module, which increases problem execution time. Since checkpointing
usually requires a small fraction of the total execution time, the most
straightforward method is recommended to avoid trouble.
The rigid format DMAP sequences (see Volume II) do not employ any explicit
CHKPNT instructions. Instead, for the sake of efficiency, each rigid format
includes a single PRECHK ALL instruction towards the beginning of the DMAP
sequence. (See Section 5.7 for the description of the PRECHK DMAP
instruction.) In keeping with the four rules mentioned above, the PRECHK ALL
instruction immediately and automatically CHKPNTs all output data blocks from
each functional module, all data blocks mentioned in each PURGE instruction,
and all secondary data blocks in each EQUIV instruction. The only exceptions
to this are the CASESS, CASEI, and CASECC data blocks appearing as output in
substructure analyses.
=PAGE=
5.3 INDEX OF DMAP MODULE DESCRIPTIONS
Descriptions of all nonstructurally oriented modules are contained herein,
arranged alphabetically by category as indicated by the lists below.
Descriptions for the structurally oriented modules are contained in Section 4
of the Programmer's Manual. They are listed here in order to provide a
complete list of all NASTRAN modules. Additional information regarding
nonstructurally oriented modules is also given in Section 4 of the
Programmer's Manual.
Matrix Operation Modules (16) Utility Modules (33)
(See Section 5.4) (See Section 5.5)
ADD MPY3 COPY OUTPUT4
ADD5 PARTN DATABASE OUTPUT5
DECOMP SDCMPS GINOFILE PARAM
DIAGONAL SMPYAD INPUT PARAMD
FBS SOLVE INPUTT1 PARAML
MATGEN TRNSP INPUTT2 PARAMR
MERGE UMERGE INPUTT3 PRTPARM
MPYAD UPARTN INPUTT4 SCALAR
INPUTT5 SEEMAT
LAMX SETVAL
MATGPR SWITCH
MATPRN TABPCH
MATPRT TABPRT
NORM TABPT
OUTPUT1 TIMETEST
OUTPUT2 VEC
OUTPUT3
User Modules (11) Executive Operation Modules (16)
(See Section 5.6) (See Section 5.7)
DDR MODA BEGIN FILE
DUMMOD1 MODB CHKPNT JUMP
DUMMOD2 MODC COMPOFF LABEL
DUMMOD3 OUTPUT COMPON PRECHK
DUMMOD4 XYPRNPLT COND PURGE
DUMMOD5 END REPT
EOUIV SAVE
EXIT XDMAP
Substructure DMAP ALTERs (22) Supplementary Functional Modules (2)
(See Section 5.9) (See Section 5.10)
BRECOVER PLOT EMA1 GPSPC
CHECK RECOVER
COMBINE REDUCE
CREDUCE RENAME
DELETE RESTORE
DESTROY RUN
DUMP SOFIN
EDIT SOFOUT
EQUIV SOFPRINT
MRECOVER SOLVE
MREDUCE SUBSTRUCTURE
Structurally Oriented Functional Modules (122)
(See Section 4 of the Programmer's Manual)
ADR EQMCK MRED1 SDRHT
ALG EXIO MRED2 SDR1
AMG FA1 MTRXIN SDR2
AMP FA2 NRLSUM SDR3
ANISOP FLBMG OFP SGEN
APD FRLG OPTPR1 SITEPLOT
APDB FRRD OPTPR2 SMA1
BMG FRRD2 PLA1 SMA2
CASE FVRSTR1 PLA2 SMA3
CASEGEN FVRSTR2 PLA3 SMP1
CEAD GENCOS PLA4 SMP2
CMRED2 GENPART PLOT SOFI
COMBUGV GFSMA PLTHBDY SOFO
COMB1 GI PLTMRG SOFUT
COMB2 GKAD PLTSET SSGHT
CURV GKAM PLTTRAN SSG1
CYCT1 GPCYC PROLATE SSG2
CYCT2 GPFDR PROMPT1 SSG3
DDAMAT GPSP PRTMSG SSG4
DDAMPG GPWG RANDOM SUBPH1
DDRMM GP1 RBMG1 TA1
DDR1 GP2 RBMG2 TRAILER
DDR2 GP3 R8MG3 TRD
DESVEL GP4 RBMG4 TRHT
DPD GUST RCOVR TRLG
DSCHK IFT RCOVR3 VARIAN
DSMG1 LOADPP READ VDR
DSMG2 MAGBDY REDUCE XYPLOT
EMA MCE1 RMG XYTRAN
EMFLD MCE2 SCAN
EMG MODACC SCE1
In the examples that accompany each description, the following notation is
used:
1. Upper case letters and special symbols in the DMAP calling sequence must
be punched as shown except for data block names, parameter names, and
label names, which are symbolic.
2. Lower case letters represent constants whose permissible values are
indicated in the descriptive text.
Due to the many possible forms which may be used when writing parameters, a
variety of arbitrarily selected forms will be used in the examples. This does
not imply that the form used in any example is required or that it is the only
acceptable form allowed.
The terms "form", "type", and "precision" are used in many functional
module descriptions. By form is meant one of the following:
Form Meaning
1 Square matrix
2 Rectangular matrix
6 Symmetric matrix
By type is meant one of the following:
Form Meaning
1 Real, single precision
2 Real, double precision
3 Complex, single precision
4 Complex, double precision
By precision is meant one of the following:
Precision IndicatorMeaning
1 Single precision numbers
2 Double precision numbers
=PAGE=
5.4 MATRIX OPERATION MODULES
Module Basic Operation Page
ADD [X] = a[A] + b[B] 5.4-2
ADD5 [X] = a[A] + b[B] + c[C] + d[D] + e[E] 5.4-4
DECOMP [A] => [L][U] 5.4-5
DIAGONAL Generate a diagonal matrix from a given matrix 5.4-6
(except rectangular and row vector)
-1
FBS [X] = +/- ([L][U]) [B] 5.4-7
MATGEN Generate certain kinds of matrices 5.4-?
A11 A12
MERGE [A] <= 5.4-8
A21 A22
T
MPYAD [X] = +/- [A][B] +/- [C] or +/- [A] [B] +/- C 5.4-10
T T
MPY3 [X] = [A] [B][A] + [C], [A] [B] + [C] or 5.4-12
[B][A] + [C]
A11 A12
PARTN [A] => 5.4-13
A21 A22
SDCMPS [A] => [L][U] 5.4-17
SMPYAD [X] = [A][B][C][D][E] +/- [F] 5.4-20
-1
SOLVE [X] = +/- [A] [B] 5.4-22
T
TRNSP [X] = [A] 5.4-23
PHIA
UMERGE {PHIF} <= 5.4-24
PHIO
Kjj Kjl
UPARTN [K ] = 5.4-26
ii Klj Kll
=PAGE=
ADD - Matrix Add
Purpose
To compute [X] = a[A] + b[B] where a and b are scale factors.
DMAP Calling Sequence
ADD A,B / X / C,Y, ALPHA=(1.0,2.0) / C,Y, BETA=(3.0,4.0)
/ C,Y,DALPHA=(5.D+0,6.D-1) / C,Y,DBETA=(7.D+2,8.D-3) $
Input Data Blocks
A Any GINO matrix.
B Any GINO matrix.
Output Data Blocks
X Matrix.
Parameters
ALPHA Input-complex-single precision. This is the scalar multiplier for
[A]. (See Remark 7 for default if DALPHA is purged.)
BETA Input-complex-single precision. This is the scalar multiplier for
[B]. (See Remark 7 for default if DBETA is purged.)
DALPHA Input-complex-double precision. This is the scalar multiplier for
[A]. (See Remark 7 for default if ALPHA is purged.)
DBETA Input-complex-double precision. This is the scalar multiplier for
[B]. (See Remark 7 for default if BETA is purged.)
Subroutines
DADD
Method
The parameters are checked. If [A] is not purged, the number of columns, rows,
and form of [X] are set to those of [A]. Otherwise the [B] descriptors are
used. The flags for the type of [X] (see Remark 2) and multiply-add operations
are set before calling subroutine SADD, which performs the actual scalar
multiplication and matrix addition.
Remarks
1.Matrix [A] and/or matrix [B] may be purged, in which case the corresponding
term in the matrix sum will be assumed null. The input data blocks must be
unique.
2.Matrix [X] cannot be purged. The type of [X] is maximum of the types of
[A], [B], a, b. The size and shape of [X] are the size and shape of [A] if
[A] is present. Otherwise they are those of [B].
3.The use of double precision parameters DALPHA and DBETA will force the
matrix multiply-and-add operation to be performed in double precision
unconditionally. The single precision ALPHA and BETA may cause the
multiply-and-add operation to be performed in single precision or in double
precision depending on the matrix original precision types.
4.Either the DALPHA-DBETA pair or the ALPHA-BETA pair is used. They cannot be
mixed; that is, DALPHA-BETA pair is illegal; so is DALPHA-ALPHA.
5.If Im(ALPHA or DALPHA) or Im(BETA or DBETA) is zero, the corresponding
parameter will be considered real.
6.Matrix [X] is put into complex form if any one of the [A], [B], ALPHA,
BETA, DALPHA, or DBETA is complex.
7.The defaults are ALPHA = (1.0,0.0) if DALPHA is purged, and BETA =
(1.0,0.0) if DBETA is purged. ALPHA and DALPHA cannot both be specified;
neither can BETA and DBETA.
=PAGE=
ADD5 - Matrix Add
Purpose
To compute [X] = a[A] + b[B] + c[C] + d[D] + e[E] where a, b, c, d, and e are
scale factors.
DMAP Calling Sequence
ADD5 A,B,C,D,E / X / C,Y,ALPHA=(1.0,2.0) / C,Y,BETA=(3.O,4.O) /
C,Y,GAMMA=(5.0,6.0) / C,Y,DELTA=(7.0,8.0) /
C,Y,EPSLN=(9.0,1.0) $
Input Data Blocks
A, B, C, D, and E must be distinct matrices.
NOTE: Any of the matrices may be purged, in which case the corresponding term
in the matrix sum will be assumed null. The input data blocks must be unique.
Output Data Blocks
X Matrix.
The type of [X] is maximum of the types of A, B, C, D, E, a, b, c, d, e. The
size of [X] is the size of the first nonpurged input.
NOTE: [X] cannot be purged.
Parameters
ALPHA Input-complex-single precision, default = (1.0, 0.0). This is a,
the scalar multiplier for [A].
BETA Input-complex-single precision, default = (1.0, 0.0). This is b,
the scalar multiplier for [B].
GAMMA Input-complex-single precision, default = (1.0, 0.0). This is c,
the scalar multiplier for [C].
DELTA Input-complex-single precision, default = (1.0, 0.0). This is d,
the scalar multiplier for [D].
EPSLN Input-complex-single precision, default = (1.0, 0.0). This is e,
the scalar multiplier for [E].
NOTE: If Im(ALPHA), Im(BETA), Im(GAMMA), Im(DELTA), or Im(EPSLN) = 0.0, the
corresponding parameter will be considered real.
=PAGE=
DECOMP - Matrix Decomposition
Purpose
To decompose a square matrix [A] into upper and lower triangular factors [U]
and [L].
[A] => [L][U]
DMAP Calling Sequence
DECOMP A / L,U / V,Y,KSYM / V,Y,CHOLSKY / V,N,MINDIAG / V,N,DET /
V,N,POWER / V,N,SING $
Input Data Blocks
A A square matrix.
Output Data Blocks
L Nonstandard lower triangular factor of [A].
U Nonstandard upper triangular factor of [A].
Parameters
KSYM Input-Integer, default = 0. 1, use symmetric decomposition. 0, use
unsymmetric decomposition.
CHOLSKY Input-Integer, default = 0. 1, use Cholesky decomposition - matrix
must be positive definite. 0, do not use Cholesky decomposition.
MINDIAG Output-Real double precision, default = 0.0D0. The minimum
diagonal term of [U].
DET Output-complex single precision, default = 0.0D0. The scaled value
of the determinant of [A].
POWER Output-Integer, default = 0. Integer POWER of 10 by which DET
should be multiplied to obtain the determinant of [A].
SING Output-Integer, default = 0. SING is set to -1 if [A] Is singular.
Remarks
1.Non-standard triangular factor matrix data blocks are used to improve the
efficiency of the back substitution process in module FBS. The format of
these data blocks is given in Section 2 of the Programmer's Manual.
2.The matrix manipulating utility modules should be cautiously employed when
dealing with non-standard matrix data blocks.
3.If the CHOLSKY option is selected, the resulting factor (which will be
written as [U]) cannot be input to FBS.
4.Variable parameters output from functional modules must be SAVEd if they
are to be subsequently used. See the Executive Module SAVE description.
=PAGE=
DIAGONAL - Strip Diagonal From Matrix
Purpose
To remove the real part of the diagonal from a matrix, raise each term to a
specified power, and output a column vector, a square symmetric matrix, or a
diagonal matrix.
DMAP Calling Sequence
DIAGONAL A/B/C,Y,OPT=COLUMN/V,Y,POWER=1. $
Input Data Blocks
A Can be any square or diagonal matrix.
Output Data Blocks
B Either a real column vector, a symmetric matrix, or a diagonal
matrix containing the diagonal of A.
Parameters
OPT Input-BCD, default = COLUMN.
COLUMN produces column vector output (labeled as a general
rectangular matrix)
SQUARE produces square matrix (labeled as a symmetric matrix)
DIAGONAL produces diagonal matrix (labeled as a diagonal
matrix)
POWER Input-Real single precision, default = 1.0. Exponent to which the
real part of each diagonal element is raised.
Remarks
1.The module checks for special cases of POWER = 0.0, 0.5, 1.0, and 2.0.
2.The precision of the output matrix matches the precision of the input
matrix.
=PAGE=
FBS - Matrix Forward-Backward Substitution
Purpose
To solve the matrix equation [L][U][X] = +/- [B] where [L] and [U] are the
lower and upper triangular factors of a matrix previously obtained via
Functional Module DECOMP.
DMAP Calling Sequence
FBS L,U,B / X / V,Y,SYM / V,Y,SIGN / V,Y,PREC / V,Y,TYPE $
Input Data Blocks
L Nonstandard lower triangular factor.
U Nonstandard upper triangular factor.
B Rectangular matrix.
Output Data Blocks
X Rectangular matrix having the same dimensions as [B].
Parameters
SYM Input-Integer-default = 0; 1 - matrix [L][U] is symmetric; -1
-matrix [L][U] is unsymmetric; 0 - reset to 1 or -1 depending upon
[U] being purged or not respectively.
Output-Integer - SYM used.
SIGN Input-Integer-default = 1; 1 - solve [L][U][X] = [B]; -1 - solve
[L][U][X] = [-B]
PREC Input-Integer-default = 0; 1 - use single precision arithmetic; 2
-use double precision arithmetic; 0 - logical choice based on
input and system precision flag.
Output-Integer - precision used.
TYPE Input-Integer-default = 0; 1 - output type of matrix [X] is real
single precision; 2 - output type of matrix [X] is real double
precision; 3 - output type of matrix [X] is complex single
precision; 4 - output type of matrix [X] is complex double
precision; 0 - logical choice based on input matrices.
Output-Integer - TYPE used.
Remarks
1.Non-standard triangular factor matrix data blocks are used to improve the
efficiency of the back substitution process. The format of these data
blocks is given in Section 2 of the Programmer's Manual.
2.The matrix manipulating utility modules should be cautiously employed when
dealing with non-standard matrix data blocks.
=PAGE=
MATGEN - Matrix Generator
Purpose
To generate different kinds of matrices for later use in other matrix
operation modules.
DMAP Calling Sequence
MATGEN TABLE/MAT/P1/P2/P3/P4/P5/P6/P7/P8/P9/P10/P11 $
Input Data Blocks
TABLE Optional tabular data for use in generating the matrix. (This data
may be assumed to be entered by DTI cards.) For P1 = 9, TABLE is
the EQEXIN table. For P1 = 11, TABLE is the USET table.
Output Data Blocks
MAT Standard matrix data block.
Parameters
P1 Input-integer-no default. Option selection parameter as described
below.
P2 - P11Input-integer-default = 0. Provide parametric data depending on
P1.
Usage
P1 = 1 Generate a real identity matrix.
P2 = Order of matrix.
P3 = Skew flag. If nonzero, generate a skew-diagonal matrix.
P4 = Precision (1 or 2). If zero, use machine precision.
P1 = 2 Generate an identity matrix trailer.
P2 = Order of matrix.
Note: This option differs from P1 = 1 in that only the trailer is
generated (form = 8) and the matrix is not actually generated.
Only certain DMAP modules are prepared to accept this form (for
example, MPYAD, FBS, CEAD).
P1 = 3 Generate a diagonal matrix from input file TABLE.
P2 = Type of data in TABLE.
P3 = 0, matrix is form 6, type P2; = 1, matrix is form 3, type P2.
P1 = 4 Generate a pattern matrix.
P2 = Number of columns.
P3 = Number of rows.
P4 = Precision (1 or 2). If 0, use machine precision.
P5 = Number of terms per string. If 0, use 1.
P6 = Increment between strings. If 0, use 1.
P7 = Row number of first string in column 1. If 0, use 1.
P8 = Increment to first row of subsequent columns.
P9 = Number of columns before returning to P7.
Note: The nonzero values in each column will be the column
numbers.
Example: To generate a 10 x 10 diagonal matrix with the column
number in each diagonal position:
MATGEN ,/DIAG/4/10/10/0/1/10/1/1/10 $
P1 = 5 Generate a matrix of pseudo-random numbers. The numbers span the
range 0 to 1.0, with a normal distribution.
P2 = Number of columns.
P3 = Number of rows.
P4 = Precision (1 or 2). If 0, use machine precision.
P5 = Seed for random number generation. If P5 <= 0, the time of
day (seconds past midnight) will be used.
P1 = 6 Generate a partitioning vector for use in PARTN or MERGE.
P2 = Number of rows.
P3, P5, P7, P9 = Number of rows with zero coefficients.
P4, P6, P8, P10 = Number of rows with unit coefficients.
If
10
Pi < P2
i=3
the remaining terms contain zeros.
If
10
Pi > P2
i=3
the terms are ignored after P2.
Example: To generate a vector of 5 unit terms followed by 7 zeros
followed by 2 unit terms:
MATGEN ,/UPART/6/14/0/5/7/2 $
P1 = 7 Generate a null matrix.
P2 = Number of rows.
P3 = Number of columns.
P4 = Form. If P4 = 0, the form will be 6 (symmetric) if P2 = P3,
otherwise form 2.
P5 = Type. If P5 = 0, the type will be the machine precision.
P1 = 8 Not available.
P1 = 9 Generate a transformation between external and internal sequence
matrices for g-set size matrices.
P2 = Output transpose flag. If 0, output non-transposed factor, UEXT =
MAT*UINT. If 1, output transposed factor, UEXT = MAT*UINT.
P3 = Number of terms in g-set. The parameter LUSET contains this
number in most solution sequences.
Example 1: Transform a g-set size vector to external sequence:
ALTER XX $ AFTER SDR1. ALL SDR1 OUTPUTS ARE IN INTERNAL SEQUENCE.
MATGEN EQEXIN/EXTINT/9/LUSET $
MPYAD EXTINT,UGV/UGVEXT/1 $
Example 2: Transform an a-set size matrix to external sequence:
ALTER XX $ AFTER KAA GENERATED. ALL MATRICES IN INTERNAL SEQUENCE.
VEC USET/VATOG/G/A/COMP $
MERGE KAA,,,,VATOG,/KAGG/ $ EXPAND TO G-SIZE, INTERNAL SORT
MATGEN EQEXIN/INTEXT/9/0/LUSET $
SMPYAD INTEXT,KAGG,INTEXT,,/KAAGEXT/3////1////6 $
$ (KAAGEXT) = TRANSPOSE(INTEXT)*(KAAG)*(INTEXT)
$ ITS FORM IS 6 (SYMMETRIC)
P1 = 10 Not used.
P1 = 11 Not available.
=PAGE=
MERGE - Matrix Merge
Purpose
To form the matrix [A] from its partitions:
CP Ĵ
A11 A12 = 0
[A] <= RP
A21 A22 not equal 0
= 0 not equal 0
DMAP Calling Sequence
MERGE A11,A21,A12,A22,CP,RP / A / V,Y,SYM / V,Y,TYPE / V,Y,FORM $
Input Data Blocks
A11 Matrix.
A21 Matrix.
A12 Matrix.
A22 Matrix.
CP Column partitioning vector (see below) - Single precision column vector.
RP Row partitioning vector (see below) - Single precision column vector.
NOTES
1. Any or all of [A11], [A12], [A21], [A22] can be purged. When all are purged
this implies [A] = [0].
2. {RP} and {CP} may not both be purged.
3. See Remarks for meaning when either of {RP} or {CP} is purged.
4. [A11], [A12], [A21], [A22] must be unique matrices.
Output Data Blocks
A Merged matrix from [A11], [A12], [A21], [A22].
NOTE: [A] cannot be purged.
Parameters
SYM Input-Integer, default = -1. SYM < 0, {CP} is used for {RP}. SYM >= 0,
{CP} and {RP} are distinct.
TYPE Input-Integer, default = 0. Type of [A] - see Remark 4.
FORM Input-Integer, default = 0. Form of [A] - see Remark 3.
Remarks
1. MERGE is the inverse of PARTN in the sense that if [A11], [A12], [A21],
[A22] were produced by PARTN using {RP}, {CP}, FORM, SYM, and TYPE from [A],
MERGE will produce [A]. See PARTN for options on {RP}, {CP}, and SYM.
2. All input data blocks must be distinct.
3. When FORM = 0, a compatible matrix [A] results as shown in the following
table:
Ŀ
FORM OF A22
Ĵ
Square Rectangular Symmetric
Ĵ
Square Square Rectangular Rectangular
FORM Ĵ
OF Rectangular Rectangular Rectangular Rectangular
A11 Ĵ
Symmetric Rectangular Rectangular Symmetric
4. If TYPE = 0, the type of the output matrix wilt be the maximum type of
[A11], [A12], [A21], and [A22].
=PAGE=
MPYAD - Matrix Multiply and Add
Purpose
MPYAD computes the multiplication of two matrices and, optionally, addition of
a third matrix to the product. By means of parameters, you may compute +/-
[A][B] +/- [C] = [X], or +/- [A]T[B] +/- [C] = [X].
DMAP Calling Sequence
MPYAD A,B,C / X / V,N,T / V,N,SIGNAB / V,N,SIGNC / V,N,TYPEX $
Input Data Blocks
A Left hand matrix in the matrix product [A][B].
B Right hand matrix in the matrix product [A][B].
C Matrix to be added to [A][B].
NOTES
1.If no matrix is to be added, [C] must be purged.
2.[A], [B], [C] must be physically different data blocks.
3.[A] and [B] must not be purged.
4.[A], [B], and [C] must be conformable. This condition is checked by MPYAD.
Output Data Blocks
X Matrix resulting from the MPYAD operation.
NOTE: [X] cannot be purged.
Parameters
T Input-Integer, no default; 1 - compute [A]T[B]; 0 - compute [A][B].
SIGNAB Input-Integer, default = 1; +1 - compute [A][B]; 0 - omit [A][B]; -1 -
compute -[A][B].
SIGNC Input-Integer, default = 1; +1 - add [C]; 0 - omit [C]; -1 - subtract
[C].
TYPEX Input-Integer, default = 0; 0 - logical choice based on input; 1 -
output type of matrix X is real single precision; 2 - output type of
matrix X is real double precision; 3 - output type of matrix X is
complex single precision; 4 - output type of matrix X is complex
double precision.
Output-Integer; TYPEX used.
Examples
1. [X] = [A][B]+[C] ([X] see notes)
MPYAD A,B,C / X / C,N,0 $
T
2. [X] = [A] [B]-[C] ([X] real single-precision)
MPYAD A,B,C / X / C,N,1 / C,N,1 / C,N,-1 / C,N,1 $
3. [X] = -[A][B] ([X] see notes)
MPYAD A,B, / X / C,N,0 / C,N,-1 $
NOTES: The precision of [X] is determined from the input matrices in that if
any one of these matrices is specified as double precision, then [X] will also
be double precision. If the precision for the input matrices is not specified,
the precision of the system flag will be used.
=PAGE=
MPY3 - Triple Matrix Multiply
Purpose
To compute the matrix product [X]=[A]T[B][A]+[C], [X]=[A]T[B]+[C], or
[X]=[B][A]+[C] for sparse A matrix and dense B matrix.
DMAP Calling Sequence
MPY3 A,B,C /X/ V,N,CODE / V,N,PREC $
Input Data Blocks
A Matrix[A].
B Matrix[B].
C Matrix[C].
NOTES
1.If no matrix is to be added, [C] must be purged.
2.[A], [B], and [C] must be physically different data blocks.
3.[A] and [B] must not be purged.
4.[A], [B], and [C] must be conformable.
Output Data Blocks
X Matrix resulting from the triple matrix multiplication.
NOTE: [X] cannot be purged.
Parameters
CODE Input-Integer, default = 0. If CODE = 0, ATBA + C is performed. If
CODE = 1, ATB + C is performed via MPYAD. If CODE = 2, BA + C is
performed.
PREC Input-Integer, default = 0. If PREC = 0, output precision is the
logical choice based on input. If PREC = 1, output is in real single
precision. If PREC = 2, output is in real double precision.
Remarks
1. See Section 4.157 of the Programmer's Manual for a detailed description of
the MPY3 module.
=PAGE=
PARTN - Matrix Partition
Purpose
To partition [A] into [A11], [A12], [A21], and [A22]:
CP Ĵ
A11 A12 = 0
[A] => RP
A21 A22 not equal 0
= 0 not equal 0
DMAP Calling Sequence
PARTN A,CP,RP / A11,A21,A12,A22 / V,Y,SYM / V,Y,TYPE / V,Y,F11 /
V,Y,F21 / V,Y,F12 / V,Y,F22 $
Input Data Blocks
A Matrix to be partitioned.
CP Column partitioning vector - single precision column vector.
RP Row partitioning vector - single precision column vector.
Output Data Blocks
A11 Upper left partition of [A].
A21 Lower left partition of [A].
A12 Upper right partition of [A].
A22 Lower right partItion of [A].
NOTES
1.Any or all output data blocks may be purged.
2.For size of outputs see Method section below.
Parameters
SYM Input-Integer, default = -1. SYM chooses between a symmetric partition
and one unsymmetric partition. If SYM < 0, {CP} is used as {RP}. If
SYM >= 0, {CP} and {RP} are distinct.
TYPE Input-Integer, default = 0. Type of output matrices - see Remark 8.
F11 Input-Integer, default = 0. Form of [A11]. See Remark 7.
F21 Input-Integer, default = 0. Form of [A21]. See Remark 7.
F12 Input-Integer, default = 0. Form of [A12]. See Remark 7.
F22 Input-Integer, default = 0. Form of [A22]. See Remark 7.
Method
Let NC = number of nonzero terms in {CP}.
Let NR = number of nonzero terms In {RP}.
Let NROWA = number of rows In [A].
Let NCOLA = number of columns In [A].
CASE 1 {CP} purged and SYM >= 0.
[A11] is a (NROWA - NR) by NCOLA matrix. A11
[A21] is a NR by NCOLA matrix. [A] -> ij
[A12] is not written. A21
[A22] is not written.
CASE 2 {RP} purged and SYM >= 0.
[A11] is a NROWA by (NCOLA - NC) matrix.
[A21] is not written. [A] -> [A11 | A12]
[A12] is a NROWA by NC matrix.
[A22] is not written.
CASE 3 SYM < 0 ({RP} must be purged)
[A11] is a (NROWA - NC) by (NCOLA - NC) matrix. A11 A12
[A21] is a NC by (NCOLA - NC) matrix. [A] ->
[A12] is a (NROWA - NC) by NC matrix. A21 A22
[A22] is a NC by NC matrix.
CASE 4 neither {CP} nor {RP} purged and SYM >=0
[A11] is a (NROWA - NR) by (NCOLA - NC) matrix. A11 A12
[A21] is a NR by (NCOLA - NC) matrix. [A] ->
[A12] is a (NROWA - NR) by NC matrix. A21 A22
[A22] is a NR by NC matrix.
Remarks
1.If [A] is purged, PARTN will cause all output data blocks to be purged.
2.If {CP} is purged, [A] is partitioned as follows:
A11
[A] => ij
A21
3.If {RP} is purged and SYM >= 0, [A] is partitioned as follows:
[A] => [A11 | A12]
4.If {RP} is purged and SYM < 0, [A] is partitioned as follows:
A11 A12
[A] =>
A21 A22
where {CP} is used as both the row and column partitioner.
5.{RP} and {CP} cannot both be purged.
6.
A11 A12
[A] =>
A21 A22
Let [A] be a m by n order matrix. Let {CP} be a n order column vector
containing q zero elements. Let {RP} be a m order column vector containing p
zero element.
Partition [A11] will consist of all elements Aij of [A] for which CPj = RPi =
0 in the same order as they appear in [A].
Partition [A12] will consist of all elements Aij of [A] for which CPj not
equal 0 and RPi = 0 in the same order as they appear in [A].
Partition [A21] will consist of all elements Aij or [A] for which CPj = 0 and
RPi not equal 0 in the same order as they appear in [A].
Partition [A22] will consist of all elements Aij of [A] for which CPj not
equal 0 and RPi not equal 0 in the same order as they appear in [A].
7. If the defaults for F11, F21, F12, or F22 are used, the corresponding
matrix will be output with a compatible form entered in the trailer.
8. If TYPE = 0, the type of the output matrices will be the type of the input
matrix [A].
Examples
1.Let [A], {CP} and {RP} be defined as follows:
1.0
1.0 2.0 3.0 4.0 0.0 0.0
[A] = 5.0 6.0 7.0 8.0 , {CP} = 1.0 , {RP} = 0.0
9.0 10.0 11.0 12.0 1.0 1.0
Then, the DMAP instruction
PARTN A,CP,RP / A11,A21,A12,A22 / C,N,1 $
will create the real double precision matrices
2.0 1.0 3.0 4.0
[A11] = 6.0 , F11 = 2 [A12] = 5.0 7.0 8.0 , F12 = 2
[A21] = [10.0] , F21 = 1 [A22] = [9.0 11.0 12.0] , F22 = 2
2.If, in Example 1, the DMAP instruction were written as
PARTN A,CP, / A11,A21,A12,A22 / C,N,1 $
the resulting matrices would be
2.0 1.0 3.0 4.0
[A11] = 6.0 [A12] = 5.0 7.0 8.0
10.0 9.0 11.0 12.0
[A21] = purged [A22] = purged
3.If, in Example 1, the DMAP instruction were written as
PARTN A,,RP / A11,A21,A12,A22 / C,N,1 $
the resulting matrices would be
1.0 2.0 3.0 4.0
[A11] = 5.0 6.0 7.0 8.0 [A12] = purged
[A21] = [9.0 10.0 11.0 12.0] [A22] = purged
=PAGE=
SDCMPS - Symmetric Decomposition
Purpose
To decompose a matrix [A] into upper and lower triangular factors [U] and [L].
[A] => [L][U]
Badly conditioned matrix columns for symmetric real matrices are identified in
external identification numbers. Various user exit controls for error
conditions are available.
DMAP Calling Sequence
SDCMPS USET,GPL,SIL,A / L,U / V,Y,SYM / V,Y,DIAGCK / V,Y,DIAGET /
V,Y,PDEFCK / V,N,SING / V,Y,SET / V,Y,CHOLSKY /
V,N,DET / V,N,MINDIA / V,N,POWER / V,Y,SUBNAM $
Input Data Blocks
USET Displacement Set Definition Table.
GPL Grid Point List.
SIL Scalar Index List.
A A real symmetric matrix (may not be purged).
NOTE: Error conditions will be identified by column number if USET, GPL, or
SIL are purged for non-substructuring problems.
Output Data Blocks
L Lower triangular factor of [A].
U Upper triangular factor of [A].
Parameters
SYM Input-Integer, default = 0. 1, use symmetric decomposition. -1, use
unsymmetric decomposition. 0, use decomposition based on input matrix
form.
DIAGCK Input-Integer, default = 0. Diagonal singularity or nonconservative
column exit flag.
= 0 nonfatal messages for es > Ts (see DIAGET and Remark 6 for
definitions).
> 0 a maximum of DIAGCK messages for es > Ts before aborting
decomposition prior to completion.
< 0 no check of es.
DIAGET Input-Integer, default = 20. Diagonal singularity error tolerance.
Used in conjunction with DIAGCK. A message is issued if the error, es
> Ts = 2-n, where n = DIAGET.
PDEFCK Input-Integer, default = 0. Positive definite exit flag.
= 0 nonfatal messages are issued for Dii < 0.0 and fatal messages
are issued for Dii = 0.0.
> 0 a maximum of PDEFCK fatal messages for all Dii <= 0.0 are issued
before aborting decomposition prior to completion
< 0 no check for Dii < 0.0. If Dii = 0.0, absolute value of PDEFCK
messages are issued before aborting decomposition prior to
completion.
SING Output-Integer, no default. SING is set to -1 if [A] is singular, 0 if
not positive definite, and 1 otherwise, in the given order.
SET Input-BCD, default = L. The displacement set to which [A] belongs.
CHOLSKY Input-Integer, default = 0. Cholesky decomposition is used if the
value is 1 (matrix must be positive definite); Cholesky decomposition
is not used for values other than 1.
DET Output-Real single precision, default = 0.0. The scaled value of the
determinant of [A].
MINDIA Output-double precision, default = 0.0D0. Minimum diagonal of [U].
POWER Output-Integer, default = 0. Integer power of 10 by which DET should
be multiplied to obtain the determinant of [A].
SUBNAM Input-BCD, default = NONE. Name of substructure being solved. Not
necessary unless this is a substructuring problem.
Remarks
1. Non-standard triangular factor matrix data blocks are used to improve the
efficiency of the back substitution process in module FBS. The format of these
data blocks is given in Section 2 of the Programmer's Manual.
2. If the CHOLSKY option is selected, the resulting factor (which will be
written as [U]) cannot be input to FBS.
3. Upon finding a zero diagonal (Dii) on the decomposed matrix, a value of 1.0
is substituted for the diagonal term if decomposition is to proceed. However,
the fatal error flag is always set in this case.
4. All zero columns on the input matrix cause fatal messages and decomposition
is not attempted. If a system error occurs, a null column might result during
decomposition, in which case the column is labeled as a "Bad Column" and the
decomposition is aborted.
5. A nonpositive definite matrix (decomposed diagonal element less than zero)
causes the absolute value to be substituted only with the Cholesky option and
if decomposition is to be continued.
6. The diagonal singularity test is
1-p
2
e =
s |Dii/Aii|
where p is the number of bits in the mantissa (machine dependent), Dii is the
ith diagonal term of the decomposed matrix, and Aii is the ith diagonal term
of the input matrix, [A].
7. All matrix messages give the input and decomposed diagonal value except for
situations where the input matrix is in error (for example, the matrix is
classified as rectangular or has a null column).
8. Nonconservative columns (identified by Dii > 1.001 * Aii) are identified.
9. Variable parameters output from functional modules must be SAVEd if they
are to be subsequently used. See Executive Module SAVE instruction.
10. Setting MODCOM(1) to -1 on the NASTRAN card (see Section 2.1) allows the
time and core estimates to be made without actually doing the decomposition.
Absolute values greater than 1 replace the variable CLOSE documented in
Section 3.5.14.4 of the Programmer's Manual.
Examples
1. To use the SDCMPS module in a static analysis (Rigid Format 1), modules
SMP1 and RBMG2 must be removed. For this case, the required ALTERs are as
follows:
ALTER n1 $ (where n1 = DMAP statement number of LABEL LBL4)
PARAM //*PREC*/MPREC $
ALTER n2,n2 $ (where n2 = DMAP statement number of the SMP1 module)
VEC USET/V/*F*/*O*/*A* $
PARTN KFF,V,/KOO,,KOA,KAAB $
SDCMPS USET,GPL,SIL,KOO/LOO,/C,Y,SYM=0/C,Y,DIAGCK=0/C,Y,DIAGET=20/
C,Y,PDEFCK=0/S,N,SINGO/*O*/0/S,N,DETO/S,N;MINDIAO/
S,N,POWERO $
COND LSING,SINGO $
FBS LOO,,KOA/GO/1/-1 $
MPYAD KOA,GO,KAAB/KAA/1/1/1/MPREC $
ALTER n3,n3 $ (where n3 = DMAP statement number of the RBMG2 module)
SDCMPS USET,GPL,SIL,KL/LLL,/C,Y,SYM=0/C,Y,DIAGCK=0/C,Y,DIAGET=20/
C,Y,PDEFCK=0/S,N,SINGL/*L*/0/S,N,DETL/S,N,MINDIAL/
S,N,POWERL $
COND LSING,SINGL $
ALTER n4 $ (where n4 = DMAP statement number of COND FINIS, COUNT)
LABEL LSING $
PRTPARM //O/*SINGO* $
PRTPARM //0/*SINGL* $
PRTPARM //-1/*DMAP* $
ENDALTER $
The input parameters SYM, DIAGCK, DIAGET, and PDEFCK may be changed from the
values illustrated above either by using the form /C,N,i/ or by including a
PARAM bulk data card with a different value.
2. To use the SDCMPS module in a real eigenvalue analysis (Rigid Format 3),
modules SMP1 and RBMG2 must be removed. For this case, the required ALTERs are
as follows:
ALTER n1,n1 $ (where n1 = DMAP statement number of the SMP1 module)
VEC USET/V/*F*/*0*/*A* $
PARTN KFF,V,/KOO,,KOA,KAAB
SDCMPS USET,GPL,SIL,KOO/LOO,UOO/C,Y,SYM=0/C,Y,DIAGCK=0/C,Y,DIAGET=20/
C,Y,PDEFCK=0/S,N,SINGO/*O*/0/S,N,DETO/S,N,MINDIAO/
S,N,POWERO $
COND LSING,SINGO $
FBS LOO,UOO,KOA/GO/1/-1 $
MPYAD KOA,GO,KAAB/KAA/1 $
ALTER n2,n2 $ (where n2 = DMAP statement number of the RBMG2 module)
SDCMPS USET,GPL,SIL,KLL/LLL,/C,Y,SYM=0/C,Y,DIAGCK=O/C,Y,DIAGET=20/
C,Y,PDEFCK=0/S,N,SINGL/*L*/0/S,N,DETL/S,N,MINDIAL/
S,N,POWERL $
COND LSING,SINGL $
ALTER n3 $ (where n3 = DMAP statement number of LABEL P2)
LABEL LSING $
PRTPARM //0/*SINGO* $
PRTPARM //0/*SINGL* $
PRTPARM //-1/*DMAP* $
ENDALTER $
The input parameters SYM, DIAGCK, DIAGET, and PDEFCK may be changed from the
values illustrated above as indicated under Example 1.
=PAGE=
SMPYAD - Matrix Series Multiply and Add
Purpose
To multiply a series of matrices together and, optionally, add another matrix
to the product:
[X] = [A][B][C][D][E] +/- [F]
DMAP Calling Sequence
SMPYAD A,B,C,D,E,F / X / C,N,n / V,N,SIGNX / V,N,SIGNF / V,N,PX / V,N,TA /
V,N,TB / V,N,TC / V,N,TD $
Input Data Blocks
A, B, C, D, E Up to 5 matrices to be multiplied together, from left to right.
F Matrix to be added to the above product.
NOTES
1. If one of the five multiplication matrices is required in the product (see
parameter n below) and is purged, the entire calculation is skipped.
2. If the [F] matrix is purged, no matrix will be added to the product.
3. The input matrices must be conformable. This condition is checked by SMPYAD.
Output Data Blocks
X Resultant matrix (may not be pre-purged).
Parameters
n number of matrices involved in the product, counting from the
left (Input-Integer).
SIGNX sign of the product matrix (for example, [A][B][C][D][E]); 1 for
plus, -1 for minus (Input-Integer).
SIGNF sign of the matrix to be added to the product matrix (Input-
Integer); 1 for plus, -1 for minus
PX output precision of the final result (Input-Integer); 1 for
single-precision, 2 for double-precision, 0 logical choice based
on input matrices.
TA, TB,TC, TD transpose indicators for the [A],[B],[C], and [D] matrices; (1
if transposed matrix to be used in the product; 0 if
untransposed) (Input-Integer).
NOTE
All the parameters except n have default values as follows:
SIGNX = 1 (sign of product is plus)
SIGNF = 1 (sign of added matrix is plus)
PX = 0 (logical choice based on input matrices)
TA, TB, TC, TD = 0 (use untransposed [A],[B],[C], and [D] matrices in
the product) (the number of transpose indicators required is one less than
the number of matrices in the product. The last matrix in the product
cannot be transposed.)
Method
The method is the same as for the MPYAD module with the following additional remarks:
1. None of the matrices may be diagonal.
2. Except for the final product, all intermediate matrix products are
generated in double-precision.
3. The matrices are post-multiplied together from right-to-left, that is, the
first product calculated is the product of matrix n-l and matrix n.
Examples
1. To compute [X] = [A][B]T[C]-[F], use
SMPYAD A,B,C,,,F / X / C,N,3 / C,N,1 / C,N,-1 / C,N,0 / C,N,0 / C,N,1 $
2. To compute [Z] = -[U]T[V]T[W]T[X]T[Y], use
SMPYAD U,V,W,X,Y, / Z / C,N,5 / C,N,-1 / C,N,0 / C,M,0 / C,N,1 / C,N,1 /
C,N,1 / C,N,1 $
=PAGE=
SOLVE - Linear System Solver
Purpose
To solve the Matrix Equation
[A][X] = +/- [B]
DMAP Calling Sequence
SOLVE A,B / X / V,Y,SYM / V,Y,SIGN / V,Y,PREC / V,Y,TYPE $
Input Data Blocks
A Square real or complex matrix.
B Rectangular real or complex matrix (if purged, the identity
matrix is assumed).
Output Data Blocks
X A rectangular matrix.
NOTE: A standard matrix trailer will be written, identifying [X] as a rectangular matrix with the same
dimensions as [B] and the type specified.
Parameters
SYM Input-Integer, default = 0; -1 - use unsymmetric decomposition;
1 -use symmetric decomposition; 0 - logical choice based on
input matrices.
Output-Integer, SYM used.
SIGN Input-Integer, default = 1;1 - solve [A][X] = [B]; -1 - solve
[A][X] = -[B].
PREC Input-Integer, default = 0; 0 - logical choice based on input; 1
-use single precision arithmetic; 2 - use double precision
arithmetic.
Output-Integer, PREC used.
TYPE Input-Integer, default = 0; 0 - logical choice based on input; 1
-output type of matrix [X] is real single precision; 2 - output
type of matrix [X] is real double precision; 3 - output type of
matrix [X] is complex single precision; 4 - output type of
matrix [X] is complex double precision
Output-Integer, TYPE used.
Method
Depending on the SYM flag and the type of [A], one of subroutines SDCOMP,
DECOMP, or CDECOMP is called to form [A] = [L][U]. One of FBS or GFBS is then
called to solve [L][Y] = +/- [B] and [U][X] = [Y], as appropriate.
=PAGE=
TRNSP - Matrix Transpose
Purpose
To form [A]T given [A].
DMAP Calling Sequence
TRNSP A/X $
Input Data Blocks
A Any matrix data block.
NOTE: If [A] is purged, TRNSP will cause [X] to be purged.
Output Data Blocks
X The matrix transpose of [A].
NOTE: [X] cannot be purged.
Parameters
None.
Remarks
1. Transposition of large full matrices is very expensive and should be
avoided if possible (see Section 2.1.4 of the Theoretical Manual).
2. TRNSP uses an algorithm which assumes that the matrix is dense. This
algorithm is extremely inefficient for sparse matrices. Sparse matrices
should be transposed by using MPYAD.
=PAGE=
UMERGE - Merge Two Matrices
Purpose
To merge two column matrices (such as load vectors or displacement vectors) into a single matrix.
DMAP Calling Sequence
UMERGE USET,PHIA,PHIO / PHIF / V,N,MAJOR=F / V,N,SUB0=A / V,N,SUB1=L $
Input Data Blocks
USET Displacement set definitions.
PHIA, PHIO Any matrices.
NOTES
1. The set definitions may be USET (statics), USETD (dynamics), HUSET (heat
transfer), or USETA (aeroelastic).
2. USET, USETD, HUSET, or USETA may not be purged.
3. PHIA or PHIO may be purged, in which case their respective elements will
be zero.
4. PHIA, PHIO, and PHIF must be related by the following matrix equation:
PHIA
==> PHIF
PHIO
Output Data Blocks
PHIF Matrix.
NOTE: PHIF cannot be purged.
Parameters
MAJOR BCD value from table below (Input, no default).
SUB0 BCD value from table below (Input, no default).
SUB1 BCD value from table below (Input, no default).
NOTE: The set equation MAJOR = SUB0 + SUB1 should hold.
Parameter Value USET Matrix
M Um
S Us (union of SG and SB)
O Uo
R Ur
G Ug
N Un
F Uf
A Ua
L Ul
SG Us (specified on Grid card)
SB Us (specified on SPC card)
E Ue
P Up
NE Une (union of N and E)
FE Ufe (union of F and E)
D Ud
PS Ups
SA UsA
K Uk
PA UpA
=PAGE=
UPARTN - Partition a Matrix
Purpose
To perform symmetric partitioning of matrices (particularly to allow you to
split long running modules such as SMP1).
DMAP Calling Sequence
UPARTN USET,KII / KJJ,KLJ,KJL,KLL / V,N,MAJOR=I / V,N,SUB0=J / V,N,SUB1=L $
Input Data Blocks
USET Displacement set definitions.
KII Any displacement matrix.
NOTES
1. The set definitions may be USET (statics), USETD (dynamics), HUSET (heat
transfer), or USETA (aeroelastic).
2. USET may not be purged.
3. KII may be purged, in which case UPARTN will simply return, causing the
output matrices to be purged.
Output Data Blocks
KJJ, KLJ, KJL, KII Matrix partitions
NOTES
1. Any or all output data block(s) may be purged.
2. UPARTN forms:
Kjj Kjl
[Kii] =>
Klj Kll
Parameters
MAJOR BCD value from table below (Input, no default).
SUB0 BCD value from table below (Input, no default).
SUB1 BCD value from table below (Input, no default).
NOTE: The set equation MAJOR = SUB0 + SUB1 should hold.
Parameter Value USET Matrix
M Um
S Us (union of SG and SB)
O Uo
R Ur
G Ug
N Un
F Uf
A Ua
L Ul
SG Us (specified on Grid card)
SB Us (specified on SPC card)
E Ue
P Up
NE Une (union of N and E)
FE Ufe (union of F and E)
D Ud
PS Ups
SA UsA
K Uk
PA UpA
Example
In Rigid Format 2, module SMP1 performs the following calculations. SMP1
partitions the constrained stiffness and mass matrices
_
Kaa Kao
[Kff] =>
Koa Koo
and
_
Maa Mao
[Mff] =>
Moa Moo
solves for transformation matrix
-1
[Go] = -[Koo] [Koa]
and performs the matrix reductions
_ T
[Kaa] = [Kaa] + [Koa] [Go]
and
_ T T T
[Maa] = [Maa] + [Moa] [Go] + [Go] [Moa] + [Go] [Moo][Go]
Step 1 can be performed by two applications of UPARTN:
UPARTN USET,KFF / KAAB,KOA,,KOO / *F*/*A*/*O* $
UPARTN USET,MFF / MAAB,MOA,,MOO / *F*/*A*/*O* $
Step 2 can be performed by SOLVE:
SOLVE KOO,KOA / GO / 1 / -1 $
KAA and MAA can then be computed by a sequence of applications of the MPYAD
module.
Thus, in the above manner, a long running module can be broken down into
several smaller steps and the intermediate results can be checkpointed.
=PAGE=
5.5 UTILITY MODULES
Module Basic Function Page
COPY Generate a physical copy of a data block 5.5-3
DATABASE Save data on user tape 5.5-4
GINOFILE Copy scratch file data to GINO file 5.5-13
INPUT Generate most of bulk data for selected academic 5.5-15
problems
INPUTT1 Read data blocks from GINO-written user files 5.5-16
INPUTT2 Read data blocks from FORTRAN-written user files 5.5-21
INPUTT3 Read matrix data from special file 5.5-24
INPUTT4 Read user tape in special format 5.5-25
INPUTT5 Read data blocks from FORTRAN-written user files 5.5-27
LAMX Edit or generate data block LAMA 5.5-30
MATGPR Displacement set matrix printer 5.5-32
MATPRN Print matrices 5.5-34
MATPRT Print matrices associated only with geometric grid 5.5-35
points
NORM Generate normalized matrices, or normalized column vector
OUTPUT1 Write data blocks via GINO onto user files 5.5-36
OUTPUT2 Write data blocks via FORTRAN onto user files 5.5-41
OUTPUT3 Punch matrices onto DMI cards 5.5-44
OUTPUT4 Write data block via FORTRAN onto user files,
in dense or sparse format, binary
OUTPUT5 Write data blocks via FORTRAN onto user files 5.5-46
PARAM Manipulate parameter values 5.5-53
PARAMD Perform specified arithmetic, logical, and conversion
operations on double precision real or double
precision complex parameters
PARAML Select parameters from a user input matrix or table 5.5-58
PARAMR Similiar to PARAMD, except operation is on single
precision real or single precision complex parameters
PRTPARM Print parameter values and DMAP error messages 5.5-63
SCALAR Convert matrix element to parameter 5.5-65
SEEMAT Generate matrix topology displays 5.5-67
SETVAL Set parameter values 5.5-69
SWITCH Interchange two data block names 5.5-70
TABPCH Punch NASTRAN tables on DTI cards 5.5-71
TABPRT Print selected table data blocks using readable format 5.5-72
TABPT Print table data blocks 5.5-74
TIMETEST Provide NASTRAN system timing data 5.5-75
VEC Generate partitioning vector 5.5-76
Utility modules are an arbitrary sub-division of the Functional Modules and
are used to output matrix and table data blocks and to manipulate parameters.
The data block names corresponding to the various matrix and table data blocks
used in the Rigid Format DMAP sequences may be found in Volume II or in the
NASTRAN mnemonic dictionary, Section 7.
=PAGE=
COPY - Copy Data Block
Purpose
To generate a physical copy of a data block.
DMAP Calling Sequence
COPY DB1 / DB2 / PARAM $
Input Data Blocks
DB1 Any NASTRAN data block.
Output Data Blocks
DB2 Any valid NASTRAN data block name.
Parameters
PARAM If PARAM <= 0, the copy will be performed - Input-Integer, default =
-1.
Method
If PARAM > 0, a return is made; otherwise a physical copy of the input data
block is generated. See Remark 2 below.
Remarks
1. The input data block may not be purged.
2. If PARAM < 0, the output data block will have the name of the input data
block in its header record. If PARAM = 0, the output data block will have
its own name in its header record.
=PAGE=
DATABASE - Save Data on User Tape
Purpose
To save following data on user tape, formatted, or unformatted for user
external use:
1. Grid points - external numbers, and their x,y,z coordinates in basic
rectangular coordinate system.
2. Connecting elements - element names, GPTABD element types, NASTRAN
symbols, property IDs (or material IDs if elements have no property
IDs), number of grid points, connecting grid (external) numbers.
3. Displacement vectors (including velocity, acceleration vectors, loads,
grid point forces, eigenvectors, element stresses, and element forces) -
real or complex data in basic rectangular coordinate system, or in
NASTRAN global coordinate system, in SORT1 or SORT2 data format,
single-case or subcases, displacement or mode shape data. In addition,
the grid point masses.
DMAP Calling Sequence
DATABASE EQEXIN,BGPDT,GEOM2,CSTM,O1,O2,O3//C,N,OUTTP/C,N,FORMAT/C,N,BASIC $
Input Data Blocks
EQEXIN External-internal grid tables. Must be present.
BGPDT Basic Grid Point Definition Table. If purged, no grid point data sent
to OUTTP output tape. If BGPDT is purged, and OUGV is present,
displacement vector will not be converted to basic coordinates.
GEOM2 Geometry 2 Data Block. If purged, no element connectivity data sent
to OUTTP.
CSTM Coordinate System Transformation Matrix Data Block. If purged,
displacement vectors remain in global coordinate system.
O1,O2,O3 Any three output displacement (velocity, acceleration, load, grid
point force, eigenvector, element stress, and element force) data
blocks written for OFP module. If present, the displacement
vectors are processed and results sent out to user OUTTP tape.
(See Remark 2 for special input data block MGG.) Oi must be one of
the following files characterized by a 1, 2, 3, 7, 10, 11, 15, or
16 on the 2nd word, last 2 digits, of the first header record, and
an 8 or a 14 on the 10th word:
OUDV1, OUDVC1, OUGV1, OUHV1, OUHVC1, OUPV1, OUPVC1,
OUDV2, OUDVC2, OUGV2, OUHV2, OUHVC2, OUPV2, OUPVC2,
OUBGV1, OPHID, OPHIG, OPHIH, OCPHIP,
OPG1, OPP1, OPPC1, OQG1, OQP1, OQPC1, OQBG1,
OPG2, OPP2, OPPC2, OQG2, OQP2, OQPC2, OBQG1,
OEF1, OEFC1, OES1, OESC1, OEFB1, OBEF1, OEF2,
OEFC2, OES2, OESC2, OESB1, OBES1
If purged, no data are sent out to OUTTP.
Output Data Block
No GINO output data block.
Parameters
OUTTP User output tape. Must be one of the UT1, UT2, INPT, INP1, ...,
INP9 files; tape or disc file. (Default INP1, FORTRAN Unit 15)
Ŀ
FORTRAN LOGICAL
UNIT, OUTTP USER FILE CODE
Ĵ
11 UT1 (CDC only)
12 UT2 (CDC only)
14 INPT (UNIVAC,VAX)
15 INP1 (All
16 INP2 machines
: : except
23 INP9 CDC)
24 INPT (IBM only)
FORMAT = 0, unformatted output to OUTTP tape (default).
= 1, formatted.
BASIC = 0, displacement vectors in NASTRAN's global coordinate system
(default).
= 1, displacement vectors in basic rectangular coordinate system.
Example
DATABASE EQEXIN,BGPDT,GEOM2,,,, /C,N,15/C,N,+1 $
DATABASE EQEXIN,BGPDT,,CSTM,OUGV,,/C,N,16 $
The first example writes the grid points and element connectivity data out to
INP1 tape, formatted. The second example writes the grid points and
displacement vectors in NASTRAN global coordinates out to INP2 tape,
unformatted.
Subroutine
DBASE Subroutine for DATABASE Module.
Method
There are three independent sets of data to be copied out to user tape OUTTP:
grids data, connecting elements data, and displacement vectors (velocities,
accelerations, eigenvectors, stresses, and forces). If BGPDT file is purged
(that is, is not present), the grid point data set is not generated.
Similarly, if GEOM2 file is purged, the element connectivity data is not
generated; and the same with the OUGV file and the displacement vectors. The
exact contents in the output tape OUTTP depend therefore on the input file
assignment.
In all cases, EQEXIN file is opened and the grid point external number vs. the
internal number table is read. If BGPDT file is present, the basic grid point
data is read, and each internal grid point number is converted to its external
ID number. The grid points x, y, z coordinates from BGPDT are already in the
basic rectangular coordinate system. The grid points data are then sorted by
their external grid IDs before they are written out to OUTTP tape, under
FORTRAN control. The following table gives the precise contents of each record
in the OUTTP tape.
FOR UNFORMATTED TAPE - GRID POINT DATA IN ONE LONG RECORD:
Ŀ
RECORD WORD CONTENT (UNFORMATTED)
Ĵ
1 1-2 "GRID PTS--------", a 16-letter identification. (BCD*)
2 1 No. of words (this first word not included) in this
record. (Integer)
2 External grid ID. (Sorted, integer)
3 0 (Not used; reserved for future use)
4,5,6 x,y,z coordinates in basic rect. coord. system.
(single precision real)
: Repeat words 2 thru 6 as many times as there are grids
* Throughout, "BCD" = alphanumeric characters
(Total number of grid points = (WORD 1 of record 2)/5)
To read the second record into array XYZ, one can use
READ (OUTTP) L,(XYZ(J),J=1,L)
FOR FORMATTED TAPE - GRID POINT DATA IN MULTIPLE SHORT RECORDS:
Ŀ
RECORD WORD CONTENT FORMAT
Ĵ
1 1,2 "GRID PTS--------" identification 4A4
2 1 Total number of grid points I8
3 1 External grid ID (Sorted) I8
2 0 (Not used; reserved for future use) I8
3,4,5 x,y,z coordinates in basic rect. 3E12.6
coordinate system.
: 1-5 Repeat record 3 as many times as
there are grids
If GEOM2 file is present, the elements data will be generated next. An element
identification record is written out first.
Ŀ
RECORD WORD CONTENT (FORMATTED or UNFORMATTED) FORMAT
Ĵ
1 1-2 "ELEMENTS--------", identification. BCD 4A4
The element data in GEOM2 file will be written out to the OUTTP file almost in
the same way, and same order as the original data. A header record is written
out for each type of element, then followed by the element data. The element
data will be written out in a long record if the OUTTP is unformatted, and in
multiple short records, one for each element, if OUTTP is formatted. Notice
that the element types are sorted according to the NASTRAN'S GPTABD data block
order; and within each type, the elements are sorted by their element IDs.
ELEMENT HEADER RECORD FOR THE UNFORMATTED OUTPUT TAPE:
Ŀ
RECORD WORD CONTENT (UNFORMATTED)
Ĵ
2 1-2 Element name. (BCD)
3 Element type number, according to GPTABD order.
(Integer)
4 Element symbol. (2 letters)
5 Number of grid points per element. (Integer)
6 Total no. of elements of this current element type.
(Integer)
7 No. of words in next record = WORD5 + 2 (Integer)
8 No. of 132-column lines needed in next record if
OUTTP is written with a format. (Integer)
ELEMENT RECORDS; repeat as many times as there are elements not of the same
type (that is, a record for each element type):
Ŀ
RECORD WORD CONTENT (UNFORMATTED)
Ĵ
3 1 Element ID. (Integer)
2 Property ID. (Positive Integer); or
0 (Element has no property ID nor material ID); or
Material ID. (Element has no property ID, but it has
a material ID. (Negative Integer)
3 0 (Not used; reserved for future use, integer)
4,5,... Element connecting (external) grid points. (Integers)
: Repeat words 1,2,3,4... as many times as there are
elements of this same type.
(See WORD 6 in header record)
FOR FORMATTED TAPE
ELEMENT HEADER RECORD, IN 8-COLUMN FORMAT:
Ŀ
RECORD COLUMNS CONTENT FORMAT
Ĵ
2 1- 8 "ELEMENT " 8 letters
9-16 Element name 2A4
17-24 " TYPE =" 8 letters
25-28 Elem. type no. according to GPTABD I4
29,30 Blank 2X
31-32 Element symbol A2
33-40 " GRIDS =" 8 letters
41-48 No. of grids per element I8
49-56 " TOTAL =" 8 letters
57-64 Total no. of elements of this elem. type I8
65-72 " WDS/EL=" 8 letters
73-80 No. of words per element in next records I8
81-88 " LINES =" 8 letters
89-96 No. of lines (records) needed on next I8
record for this element type
A printout of this header record may look like this: (the ---+++ line is for
video aid; it is not part of the record)
--------++++++++--------++++++++--------++++++++--------++++++++--
"ELEMENT CBAR TYPE = 34 BR GRIDS = 2 TOTAL = 54 etc."
ELEMENT RECORDS (FORMATTED)
There should be (TOTAL X LINES) records in each element type:
Ŀ
RECORD WORD CONTENT FORMAT
Ĵ
3 1 Element ID. I8
2 Property ID. (Positive integer); or I8
0 (Element has no property nor material ID); or
Material ID. (Element has no property ID,
but it has a material ID)
3 0 (Not used; reserved for future use) I8
4-16 First 13 external connecting grid points 13I8
4 (IF NEEDED, and LINES in header record = 2)
1-15 Next 15 Grid points 8X,15I8
5 (IF NEEDED, and LINES in header record = 3)
1-15 More grid points 8X,15I8
: : Repeat element record 3 (and possible 4 and 5)
as many times as there are elements of the
same type.
Repeat the header record and the element records as many times as there are
different types of elements.
The end of element data records is signaled by an element ENDING record of the
following form, 8 words:
Words 1 and 2 form the word " -END-",
Word 4 holds the symbol "--",
and all other words are zeros
The ENDING ELEMENT RECORD of the FORMATTED tape looks like this:
--------++++++++--------++++++++--------++++++++--------++++++++---
"ELEMENT -END- TYPE = 0 -- GRIDS = 0 TOTAL = 0 etc."
If the OUGV file is present, the displacement vectors will be processed and
the final results sent out to the OUTTP tape. (In this and the next few
paragraphs, the word "displacement" implies also velocity, acceleration, load,
grid point force, eigenvector, element stresses, and element forces.) The
input OUGV file must be one of the GINO files described in the INPUT DATA
BLOCKS section, which gives the displacements in the g-set or p-set, or the
other data types. The output data are sorted by their external grid ID
numbers. The displacement records in OUTTP also begin with an identification
record:
Ŀ
RECORD WORD CONTENT (FORMATTED OR UNFORMATTED) FORMAT
Ĵ
1 1-2 "DISPLCNT--------" identification*. BCD 4A4
(* or "VELOCITY--------",
"ACCELERN--------",
"LOADINGS--------",
"G FORCES--------",
"EIGENVCR--------",
"E STRESS--------",
"E FORCES--------")
The original displacement data in NASTRAN are always in the global coordinate
system. If the parameter BASIC is zero (default), the displacement vectors
will be passed over to OUTTP without changes. However, if the parameter is set
to +1, the displacement vectors will be converted to the basic rectangular
coordinate system. In this latter case, the coordinate transformation matrices
from CSTM will be brought into the computer, the grid point coordinate CID
will be identified, and proper coordinate transformation will be applied to
the displacements of each grid point. Again, the output OUTTP tape can be
formatted or unformatted. In the unformatted tape, each grid point and its
displacement values will form one logical record of 8 or 14 words (variable
word length if element stresses or element forces). In the formatted tape, one
logical record (8 words) is used if the displacement data is real, and an
additional record (for data words 9 through 14) if the data is complex. In
either case, a formatted record has 128-column of words. Similarly to the grid
and element sets of data, a HEADER record is written out to OUTTP first before
the grid point displacement vectors.
DISPLACEMENT HEADER RECORD FOR UNFORMATTED TAPE
Ŀ
RECORD WORD CONTENT (UNFORMATTED)
Ĵ
2 1 Subcase or mode number. (Integer)
2 Zero or frequency. (Real)
3 Number of words per entry in next record.
4-5 Original data file name, 2 BCD words
6-7 " GLOBAL " if BASIC=0, 2 BCD words
" BASIC " if BASIC=1
8-13 CODE (See note below; 6 integers)
14-45 Title, 32 BCD words
46-77 Subtitle, 32 BCD words
78-109 Label, 32 BCD words
NOTE: Each code word holds 8 digits. Therefore there are 48 digits, from
CODE(1) through CODE(6), and from left to right, they describe the data type
of the next displacement record:
1 for integer
2 for real, and
3 for BCD
The first digit points to the first data word; 2nd, 3rd, 4th, etc. point to
2nd, 3rd, 4th data words, etc.
DISPLACEMENT RECORDS IN UNFORMATTED TAPE - IN ONE LONG RECORD:
Ŀ
RECORD WORD CONTENT (UNFORMATTED)
Ĵ
3 1 No. of words (excluding this first word) in this
record. (Integer)
2 External grid point number. (Integer)
3 Point type (1=grid pt. 2=scalar pt.
3=extra pt. 4=modal pt., integer)
4-9 Displacements. (Real parts,
t1,t2,t3,r1,r2,r3, single precision real)
10-15 (COMPLEX data only)
Displacements. (Imaginary parts,
t1,t2,t3,r1,r2,r3, single precision real)
: Repeat words 2 thru 9 (or 15) as many times as
there are grid points in OUGV file
: : Repeat record 3 as many times as there are
subcases or frequencies
DISPLACEMENT HEADER RECORD FOR FORMATTED TAPE
Ŀ
RECORD WORD CONTENT (FORMATTED) FORMAT
Ĵ
2 1-2 " CASE = " or " MODE = " 8 letters
3 Subcase number I8
4 Zero or frequency 1PE12.5
5-6 " WORDS =" 8 letters
7 NWDS, number of words per entry in next I8
record (=8 for REAL data, or =14 COMPLEX,
for all displacement records)
8-9 " INPUT =" 8 letters
10-11 Original GINO file name 2A4
12-13 " COORD =" 8 letters
14-15 " BASIC " or "GLOBAL " 2A4
16-17 " CODE =" 8 letters
18-22 Format code 5I8
8 digits per word, 1 for INTEGER
2 for REAL
Ex. 13222200 3 for BCD
0 not applicable
23 NA4, number of words per entry in next I8
record, in A4-word count
3 1-32 Title, 32 BCD words 32A4
4 33-64 Subtitle, 32 BCD words 32A4
5 65-96 Label, 32 BCD words 32A4
DISPLACEMENT RECORDS IN FORMATTED TAPE - IN MULTIPLE SHORT RECORDS:
Ŀ
RECORD WORD CONTENT FORMAT
Ĵ
6 1 External grid point number. (Integer) I8
2 Point type (1=grid pt. 2=scalar pt. I8
3=extra pt. 4=modal pt., integer)
3-8 Displacements. (Real parts, 6E12.6
t1,t2,t3,r1,r2,r3, single precision real)
7 (COMPLEX DATA only)
1-6 Displacements (Imaginary parts, 16X,6E12.6
t1,t2,t3,r1,r2,r3, single precision real)
: : Repeat record 6 (records 6 and 7 if complex
data) as many times as there are grid points
At the end of each subcase, if the output tape OUTTP is formatted, a ZERO
record (two records if data is complex) is written out to OUTTP tape. This
ZERO record has the same format as a DISPLACEMENT record, and consists of 8 or
14 zeros (first two are integers, minus zeros). This ZERO record is not needed
in the unformatted OUTTP output tape.
Repeat the HEADER record, the DISPLACEMENT records, and the ZERO record
(formatted OUTTP tape only) as many times as there are subcases. At the end of
the last subcase, or end of the input file OUGV, an ENDING record is written
out. It has the same form as the HEADER record:
DISPLACEMENT ENDING RECORD
Ŀ
RECORD WORD CONTENT (UNFORMATTED)
Ĵ
LAST 1 Zero. (Integer)
2 Zero. (Real)
3 Zero. (Integer)
4-5 " -END-". (BCD)
6-101 96 Blank words. (BCD)
Ŀ
RECORD WORD CONTENT (FORMATTED) FORMAT
Ĵ
LAST 1-2 " CASE = " or " MODE = " 8 letters
3 Minus 0 (Integer) I8
4 Zero 1PE12.5
5-6 " WORDS =" 8 letters
7 Minus 0 (Integer) I8
8-11 " INPUT = -END- " 16 letters
12-17 Blanks 4A4
LAST+1 1-32 Blanks 32A4
LAST+2 1-32 BLANKS 32A4
LAST+3 1-32 Blanks 32A4
If OUGV is an element stress or an element force file, the stress or force
data have variable length depending on the type of element. The stress or
force records written to the OUTTP tape are therefore different from those of
the displacement records.
The element stress or force record has the following forms:
Ŀ
RECORD WORD CONTENT (UNFORMATTED)
Ĵ
3 1 Number of words, excluding this first word,
in this record. (Integer)
2-NWDS Element ID, stress or force data
(Variable data types are described in "CODE")
: Repeat (2-NWDS) words as many times as there
are elements.
: : Repeat record 3 as many times as there are subcases.
where NWDS is the number of computer words per entry, and CODE is the 6-word
format code, as described in header record.
or
Ŀ
RECORD WORD CONTENT (FORMATTED) FORMAT
Ĵ
6 1-NA4 Element ID, stress or force data 33A4
(The data types are described in
"CODE"; all integers in 2A4, real
numbers in 3A4, and BCD in A4)
: : (Maximum record length is 132 columns (33A4);
continuation into next record(s) if necessary)
: : Repeat above record(s) as many times as there
are elements
where NA4 is the number of words per entry in A4-word count, and CODE is
5-word format code.
Notice that the DATABASE module does not copy out the external-internal grid
points table in EQEXIN file, nor the coordinate transformation matrices in
CSTM. The coordinate systems originally associated with the external grid
points are never mentioned in the OUTTP tape.
If you must copy the EQEXIN and CSTM files (both are in table forms), OUTPUT5
can be used.
Design Requirement
The DATABASE module is mapped in NASTRAN Links 2, 4, and 14. This module is
accessible only through a NASTRAN DMAP Alter. Minimum open core requirement =
10 x (total number of grid points) words.
The formatted outputs are flagged only by the parameter FORMAT. The formatted
output records are designed not to exceed 132 columns in length and include
printer carriage control. In most cases, I8-formats are used for integers and
E12.6 for real data (no double precision words used); and BCD words are in
multiples of 2A4. The entire OUTTP file can be printed, or it can be edited by
a system editor. The formatted OUTTP file, if written on magnetic tape by a
computer, can be used in another computer of a different manufacturer. The
unformatted OUTTP file is more efficient, and the integer and real data are
more accurate. The grid point data and data of each connecting element type
are written out unformatted in long records; that requires large working space
in the computer system. On the other hand, only short records are written to
the formatted OUTTP file, and the working space requirement is less critical.
Remarks
1. Conversion of element stresses or forces to the basic coordinates is not
allowed.
2. The mass matrix, MGG, can be one of the Oi input data blocks due to its
special characteristics and application. The mass engineering data will be
arranged in their external grid point order.
The formatted and unformatted records of the mass data are arranged
similarly to the grid point data, except the words 4, 5, 6 (X, Y, Z
coordinates of the grid point) are replaced by mass-x, mass-y, mass-z,
moment of inertia-x, moment of inertia-y, moment of inertia-z, words 4
through 9.
Diagnostic Messages
Message numbers 3001, 3002, and 3008 may be issued by DATABASE.
=PAGE=
GINOFILE - GINO File Creation
Purpose
To capture data from a scratch file of a preceding DMAP module and copy the
data to a NASTRAN GINO file. Type of data can be table or matrix. (Not
available for CDC.)
DMAP Calling Sequence
GINOFILE /FILE/C,N,P1/C,N,P2/C,N,P3 $
Input Data Blocks
None.
Output Data Blocks
FILE Any GINO output file name.
Parameters
P1 Any 300-series scratch file number (301,302,303,...), Integer.
P2 Additional records to be skipped on P1 file before data transfer
from P1 to FILE, Integer. GINOFILE will automatically skip over
header record if a header record exists in P1, or it will not skip
if it does not exist. (Default P2 = 0.) Data transfer starts from
P2+1 record after header (or no header) record on scratch file.
P3 Last record to be copied, or up to an EOF mark on P1 file. Total
number of records copied is (P3 - P2), Integer. (Default is to
copy to EOF mark.)
Subroutine
GINOFL Subroutine in GINOFILE module.
Method
At the end of a NASTRAN executable module, all the input files, output files,
and scratch files are closed. The input files are read only and they will
remain untouched. The output files are saved, and their names are preserved.
(The output file names are actually allocated before the beginning of the
module execution). The scratch files are released without any mechanism of
saving them. However, the data of the scratch files are still in the system
disc space, and will remain there until they are over-written by another part
(or another module) of the NASTRAN program. It is at this point that GINOFILE
module accesses a scratch file of the preceding module and copies the data to
a GINO output file, without changing the scratch file data. Tables or matrices
are copied the same way, as they exist in the original form on the scratch
file.
A NASTRAN GINO file always has a header record and a 6 word trailer. However,
the header record and the trailer are not required for a scratch file, and
they may or may not exist. The GINOFILE module will first test the header
record of the scratch file and skip over it, if it exists. A header record is
always generated by GINOFILE for the new GINO file. The beginning record and
the ending record where data are to be transferred are under user control.
Finally, a trailer for the output file is generated and saved. An EOF record
is written to the new GINO file at the completion of the module.
Design Requirement
The GINOFILE module is mapped in all NASTRAN Links, except LINK1. You can
request this module through a regular NASTRAN DMAP Alter.
You must request this module immediately following the DMAP module where the
scratch file was used. It is your responsibility to see that the Executive
Segment File Allocator, XSFA, does not come in between the preceding DMAP
module and this GINOFILE module. If XSFA does intervene before GINOFILE
execution, the FIAT/OSCAR table (see XSFA Module description in section 4.9)
is rearranged, and the scratch files are no longer accessible.
If XSFA does intervene, you can provoke the XSFA operation and FIAT/OSCAR
table rearrangement before the execution of preceding DMAP module so that XSFA
will not come in between this preceding and GINOFILE modules. The technique
here can involve a DMAP alter to PURGE some obsolete files, TABPT to print
some files that have been generated some time ago, and currently are not on
the FIAT/OSCAR table, or any other DMAP module that would disturb the NASTRAN
filing system. You could turn on DIAG 2 and observe the flow of the GINO files
created or allocated by XSFA/FIAT/OSCAR operation.
If the scratch file in the preceding DMAP module was used repeatedly such as
being used in a loop, only the "last-time-used" set of data on the scratch
file can be copied out by GINOFILE.
You should turn on DIAG 8,15,-n (where n is the current LINK number) and see
that the scratch file, FORTRAN unit number, and associated trailers are being
processed correctly.
Diagnostic Messages
Message numbers 3001, 3002, and 3008 may be issued by GINOFILE.
=PAGE=
INPUT - Input Generator
Purpose
Generates the majority of the bulk data cards for selected academic problems.
Used in many of the official NASTRAN Demonstration Problems.
DMAP Calling Sequence
INPUT I1,I2,I3,I4,I5 / 0l,02,03,04,05 / C,N,a / C,N,b / C,N,c $
Input Data Blocks
Appropriate preface outputs.
Output Data Blocks
Appropriate for the problem being generated.
Parameters
The three parameters are used in conjunction with data read by INPUT from the
input stream to define the problem being generated.
Method
Since INPUT is intimately related to bulk data card input, a detailed
description of this module has been placed in Section 2.6.
=PAGE=
INPUTT1 - Read User Files
Purpose
Recovers up to five data blocks from a user file (on either tapes or mass
storage devices) and checks your file label where the expected format is that
created by Utility Module OUTPUT1. Also used to position your file (including
handling of multiple reel tapes) prior to reading the data blocks. Multiple
calls are allowed. A message is written for each data block successfully
recovered and after each tape reel switch. (User tape reel switching is
available only on the IBM and UNIVAC versions.) (The companion module is
OUTPUT1.)
DMAP Calling Sequence
INPUTT1 / DB1,DB2,DB3,DB4,DB5 / V,N,P1 / V,N,P2 / V,N,P3 / V,N,P4/ $
Input Data Blocks
Input data blocks are not used in this module call statement.
Output Data Blocks
DBi Data blocks which will be recovered from one of the NASTRAN
permanent files INPT, INP1, INP2 through INP9. Any or all of the
output data blocks may be purged. Only nonpurged data blocks will
be taken from the file. The data blocks will be taken sequentially
from the file starting from a position determined by the value of
the first parameter. Note that the output data block sequence
A,B,,, is equivalent to ,A,,B, or ,,,A,B.
Parameters
Parameters P1 and P2 are integer inputs. P3 and P4 are BCD.
1. The meaning of the first parameter (P1) value is given in the table below.
(The default value is 0.)
Ŀ
P1 Value Meaning
Ĵ
+n Skip forward n data blocks before reading.
0 Data blocks are read starting at current position.
Current position for first use of a file is at label
(P3). Hence P3 counts as one data block.
-1 Rewind before reading, position file past label (P3).
-2* Mount new reel and position new reel past label (P3)
before reading.
-3 Print data block names and then rewind before reading.
-4* Current tape reel will have an end-of-file mark
written on it, will be rewound and dismounted, and
then a new tape reel will be mounted with ring out
and rewound before reading the data blocks. This
option should be used when a call to INPUTT1 is
preceded by a call to OUTPUT1 using the same User Tape.
-5 Search user file for first version of data block
(DBi) requested. If any (DBi) are not found, fatal
termination occurs.
-6 Search user file for final version of data block
(DBi) requested. If any (DBi) are not found, fatal
termination occurs.
-7 Search user file for first version of data block
(DBi) requested. If any (DBi) are not found, a
warning message is written on the output file and the
run continues.
-8 Search user file for final version of data block
(DBi) requested. If any (DBi) are not found, a
warning message is written on the output file and the
run continues.
* Valid only for files that reside on physical tape. User tape reel switching is
available only on the IBM and UNIVAC versions.
2. The second parameter (P2) for this module is your File Code shown in the
table below. (The default value is 0.)
Ŀ
User File Code GINO File Name
Ĵ
0 INPT
1 INP1
2 INP2
3 INP3
4 INP4
5 INP5
6 INP6
7 INP7
8 INP8
9 INP9
3. The third parameter (P3) for this module is used as your File Label for
NASTRAN identification. The label (P3) is an alphanumeric variable of eight
characters or less (the first character must be alphabetic). The value of
P3 must match a corresponding value on your file. The comparison of P3 and
the value on your file is dependent on the value of P1 as shown in the
table below. (The default value for P3 is XXXXXXXX).
Ŀ
P1 Value File Label Checked
Ĵ
+n No
0 No
-1 Yes
-2 Yes (On new reel)
-3 Yes (Warning Check)
-4 Yes (On new reel)
-5 Yes
-6 Yes
-7 Yes
-8 Yes
4. If the fourth parameter, P4, is set to "MSC", the FORTRAN input tape is
assumed to be written in MSC/INPUTT1 compatible record formats. Default is
blank.
Examples
(Most examples use the default value for P2 and P3 which means the use of
permanent NASTRAN file INPT and NASTRAN user file label of XXXXXXXX.)
1. INPUTT1 / A,B,,, / $
Read data blocks A and then B from user file INPT starting from wherever INPT
is currently positioned. If this is the first module to manipulate INPT, the
file will automatically be initially positioned at the beginning of your file
label. In this case, the first parameter of INPUTT1 must be set to either one
(1) to skip past the label or minus one (-1) to rewind the file and position
it at the beginning of the first data block (A).
2. INPUTT1 / ,,,, / C,N,-1 / C,N,3 $
Rewind INP3 and check user tape label.
3. INPUTT1 / A,,,, / C,N,-2 $
Mount a new reel of file (without write ring) for INPT and read data block A
from the first file position. The label of the new reel of tape will be
checked.
4. INPUTT1 / ,,,, / C,N,-2 $
INPUTT1 / A,,,, / C,N,0 $
This is equivalent to example 3.
5. INPUTT1 / A,B,C,D,E / C,N,14 $
Starting from the current position, skip forward 14 data blocks on INPT and
read the next five data blocks into A, B, C, D, and E. Do not check your file
label.
6. INPUTT1 / ,,,, / C,N,-3 $
INPUTT1 / A,B,C,D,E / C,N,14 $
A complete list of data block names will be provided including a warning check
of your file label. Then, it will be the same as example 5 only if the current
position in that example is at the beginning of the first data block.
7. INPUTT1 / ,,,, / C,N,-2 $
INPUTT1 / ,,,, / C,N,-3 $
INPUT / A,B,,, / C,N,14 $
Mount a new reel of tape for INPT and check the new reel's label. Print the
names of all data blocks on the new tape and give a warning check for tape
label. Read the 15th and 16th data blocks into A and B. INPT will end up
positioned at the beginning of the 17th data block if present.
More Difficult Examples Using Both INPUTT1 and OUTPUT1
Example 1
a. Objectives:
1. Obtain printout of the names of all data blocks on INPT.
2. Skip past the first four data blocks, replace the next two with data
blocks A and B, and retain the next three data blocks.
3. Obtain printout of the names of all data blocks on INPT after 2 has been
done.
b. DMAP Sequence:
BEGIN $ (1)
INPUTT1 / ,,,, / C,N,-3 $ (2)
INPUTT1 / ,,T1,T2,T3 / C,N,6 $ (3)
INPUTT1 / ,,,, / C,N,-1 $ (4)
OUTPUT1 A,B,T1,T2,T3 // C,N,4 $ (5)
OUTPUT1 , ,,,, // C,N,-3 $ (6)
END $ (7)
c. Remarks:
1. DMAP sequence (2) accomplishes objective 1 and rewinds INPT.
2. DMAP sequence (3) recovers data blocks 7, 8, and 9. This is necessary
because they would be effectively destroyed by anything written in front
of them on INPT.
3. DMAP sequence (4) rewinds INPT.
4. DMAP sequence (5) accomplishes objective 2.
5. DMAP sequence (6) accomplishes objective 3 and leaves INPT positioned
after the ninth file, ready to receive additional data blocks.
6. Note that INPUTT1 is used whenever possible to avoid the possibility of
mistakenly writing on INPT prematurely.
Example 2
a. Objectives:
1. Write data blocks A, B, and C on INPT.
2. Obtain printout of the names of all data blocks on INPT after step 1.
3. Make two copies of the file created in 1.
4. Add data blocks D and E to one of the files.
5. Obtain the names of all data blocks on INPT after 4.
b. DMAP Sequence:
BEGIN $ (1)
OUTPUT1 A,B,C,, // C,N,-1 $ (2)
OUTPUT1 , ,,,, // C,N,-3 $ (3)
OUTPUT1 A,B,C,, // C,N,-2 $ (4)
OUTPUT1 A,B,C,, // C,N,-2 $ (5)
OUTPUT1 D,E,,, // C,N,0 $ (6)
OUTPUT1 , ,,,, // C,N,-3 $ (7)
END $ (8)
c. Remarks:
1. DMAP Sequence (2) accomplishes objective 1.
2. DMAP Sequence (3) accomplishes objective 2. The statement INPUTT1 / ,,,,
/ C,N,-3 $ will do the same thing and add a rewind.
3. Statements (4) and (5) accomplish objective 3.
4. Statement (6) accomplishes objective 4 where the third file tape is
used.
5. Statement (7) accomplishes objective 5. The statement INPUTT1 / ,,,, /
C,N,-3 $ will do the same thing and add a rewind.
6. On machines where tape reel switching is not implemented, the second
parameter can be used as follows:
BEGIN $
OUTPUT1 A,B,C,, // C,N,-1 $
OUTPUT1 , ,,,, // C,N,-3 $
OUTPUT1 A,B,C,, // C,N,-1 / C,N,1 $
OUTPUT1 A,B,C,, // C,N,-1 / C,N,2 $
OUTPUT1 D,E,,, // C,N,0 / C,N,2 $
OUTPUT1 , ,,,, // C,N,-3 / C,N,2 $
END $
=PAGE=
INPUTT2 - Read User-Written FORTRAN Files
Purpose
Recovers up to five data blocks from a FORTRAN-written user file (either on
tape or mass storage). This file may be written either by a user-written
FORTRAN program or by the companion module OUTPUT2. The Programmer's Manual
describes the format of the file which must be written in order to be readable
by INPUTT2.
DMAP Calling Sequence
INPUTT2 / DB1,DB2,DB3,DB4,DB5 / V,N,P1 / V,N,P2 / V,N,P3 /V,N,P4 /
V,N,P5 / V,N,P6 $
Input Data Blocks
Input data blocks are not used in this module call statement.
Output Data Blocks
DBi Data blocks which will be recovered from one of the NASTRAN
FORTRAN tape files UT1, UT2, through UT5. Any or all of the output
data blocks may be purged. Only non-purged data blocks will be
taken from the file. The data blocks will be taken sequentially
from the file starting from a position determined by the value of
the first parameter. Note that the output data block sequence
A,B,,, is equivalent to ,A,,B, or ,,,A,B.
Parameters
Parameters P1, P2, P4, and P5 are integer inputs. P3 and P6 are BCD.
1. The meaning of the first parameter (P1) value is given in the table below.
(The default value is 0.)
Ŀ
P1 Value Meaning
Ĵ
+n Skip forward n data blocks before reading.
0 Data blocks are read starting at the current
position. The current position for the first use of a
file is at the label (P3). Hence, P3 counts as one
data block.
-1 Rewind before reading, position file past label (P3).
-3 Print data block names and then rewind before
reading.
-5 Search user file for first version of data block
(DBi) requested. If any (DBi) are not found, fatal
termination occurs.
-6 Search user file for final version of data block
(DBi) requested. If any (DBi) are not found, fatal
termination occurs.
-7 Search user file for first version of data block
(DBi) requested. If any (DBi) are not found, a
warning message is written on the output file and the
run continues.
-8 Search user file for final version of data block
(DBi) requested. If any (DBi) are not found, a
warning message is written on the output file and the
run continues.
Important Note
On the UNIVAC and DEC VAX versions, the FORTRAN files used with the
INPUTT2/OUTPUT2 modules are automatically rewound every time a link change
occurs in the program. In general, a link change can be assumed to occur
whenever a DMAP statement other than an INPUTT2 statement follows an INPUTT2
statement; similarly, whenever a DMAP statement other than an OUTPUT2
statement follows an OUTPUT2 statement. For this reason, the following
cautions should be noted on these versions when using the various values for
the parameter P1 in an INPUTT2 or OUTPUT2 DMAP statement.
Ŀ
Cautions for UNIVAC and DEC VAX versions
Ĵ
Parameter P1 Remarks
Ĵ
0 or +n You must be certain that this INPUTT2
statement immediately follows another INPUTT2
statement; or that this OUTPUT2 statement
immediately follows another OUTPUT2 statement, to
avoid a link change that would cause the
rewinding of the FORTRAN file.
-1 to -8 No cautions.
-9 You must be certain that this OUTPUT2
statement immediately follows another OUTPUT2
statement, to avoid a link change that would
cause the rewinding of the FORTRAN file.
2. The second parameter (P2) for this module is the FORTRAN unit number from
which the data blocks will be read. The allowable values for this parameter
are highly machine- and installation-dependent. Reference should be made to
Section 4 of the Programmer's Manual for a discussion of this subject.
For CDC machine (default is 11):
Ŀ
User File Code FORTRAN File Name
Ĵ
11 UT1
12 UT2
For all others (default is INPT):
Ŀ
User File Code FORTRAN File Name
Ĵ
14 INPT
15 INP1
16 INP2
: :
23 INP9
IBM/MVS only: INPT is user file code 24.
3. The third parameter (P3) for this module is used as the FORTRAN User File
Label for NASTRAN identification. The label (P3) is an alphanumeric
variable of eight characters or less (the first character must be
alphabetic). The value of P3 must match a corresponding value on the
FORTRAN user file. The comparison of P3 and the value on your file is
dependent on the value of P1 as shown in the table below. (The default
value for P3 is XXXXXXXX.)
Ŀ
P1 Value File Label Checked
Ĵ
+n No
0 No
-1 Yes
-3 Yes (Warning Check)
-5 Yes
-6 Yes
-7 Yes
-8 Yes
4. The fourth parameter (P4) is not used. P4 is used only in the OUTPUT2
module to specify the maximum record size.
5. If the fifth parameter (P5) is non-zero, the FORTRAN tape was written with
sparse matrix format by the OUTPUT2 module. Therefore, the P5 parameters
for INPUTT2 and OUTPUT2 should be set the same.
Default P5 is zero.
6. If the sixth parameter (P6) is set to "MSC", INPUTT2 will process the
FORTRAN input tape as if it were generated previously from an MSC/OUTPUT2
run.
Default P6 is blank.
Examples
INPUTT2 is intended to have the same logical action as the GINO User File
module INPUTT1 except for tape reel switching. It is therefore suggested that
the examples shown under module INPUTT1 be used for INPUTT2 as well, excepting
the ones involving tape reel switching.
=PAGE=
INPUTT3 - Auxiliary Input File Processor
Purpose
Reads matrix data from a specially formatted file into specified GINO matrix
data blocks.
DMAP Calling Sequence
INPUTT3 /01,02,03,04,05/ V,N,UNIT/ V,N,ERRFLG/ V,N,TEST $
Input Data Blocks
No GINO data blocks. See parameter UNIT for FORTRAN input unit.
Output Data Blocks
0i GINO written matrix data blocks. Any or all of the output data
blocks may be purged.
Parameters
UNIT Input, FORTRAN input tape unit number; default is 11. Tape is
rewound before read if UNIT is negative.
ERRFLG Input, error control:
= 1, job terminated if data block on tape not found.
= 0, no termination if data block not found.
TEST Input, file name check:
= 1, will search tape for DMAP 0i tape match.
= 0, no check of file names on tape and DMAP 0i names.
Remarks
1. Input tape unit must be written according to special format specification,
including header, end-of-data mark, and matrix data.
=PAGE=
INPUTT4 - Read User Tape
Purpose
Reads user tape, as generated by OUTPUT4, MSC/NASTRAN/OUTPUTi, where i = 1, 2,
3, or 4. Recovers up to five matrix data blocks from a user tape and checks
your tape label where the expected format is that created by utility modules
OUTPUT1, OUTPUT2, or OUTPUT4 of the MSC/NASTRAN. (Your tape may reside either
on physical tape or on mass storage devices.) Also used to position your tape
prior to reading the data blocks. Multiple calls to INPUTT4 are allowed. A
message is written for each data block successfully recovered. User tape from
OUTPUT1 and OUTPUT2 is binary. Tape from OUTPUT4 can be binary or ASCII.
DMAP Calling Sequence
INPUTT4 / DB1,DB2,DB3,DB4,DB5 / V,N,P1 / V,N,P2 / V,N,P3 / V,N,P4 $
Input Data Blocks
None.
Output Data Blocks
DBi Data blocks which will be recovered from one of the NASTRAN
permanent files INPT, INP1, INP2 through INP9 (UT1 or UT2
for CDC machine). Any or all of the output data blocks may
be purged. Only non-purged data blocks will be taken from
the file. The data blocks will be taken sequentially from
the file starting from a position determined by the value of
the first parameter. Note that the output data block
sequence A,B,,, is NOT equivalent to ,A,,B. A purged file on
the output data block list will cause skipping of one data
block on the input tape. (See Example 1.)
Parameters
Parameters P1, P2, and P4 are integer inputs. P3 is BCD.
P1 Tape position control.
See P1 of INPUTT1 module if P4 is -1.
See P1 of INPUTT2 module if P4 is -2.
If P4 is greater then -1, P1 takes on following
meanings:
P1 = -3, print data block names on tape, then
rewind before reading.
P1 = -2, rewind tape at end.
P1 = -1, rewind tape before reading.
P1 = 0, read tape starting from current tape
position.
P1 = n, skip forward n records (plus tape
header record if it exists) starting at current
tape position.
P2 FORTRAN input tape number. P2 is positive if tape was
written in binary records, and is negative if in ASCII
records.
P3 Tape label. Default is "XXXXXXXX". P3 is used only
when P4 = -1 or -2.
P4 Tape module control, Integer.
P4 = -1, tape was originally written by MSC/OUTPUT1
module.
P4 = -2, tape was originally written by MSC/OUTPUT2
module.
P4 = -4, tape was originally written by MSC/OUTPUT4
module.
P4 = 0, tape was written by OUTPUT4 module (default).
P4 >= 1, see Remarks 6 and 7.
Parameters equivalence for COSMIC/INPUTT4 and MSC/INPUTT4/OUTPUT4:
COSMIC/INPUTT4 MSC/INPUTT4/OUTPUT4
-------------- -------------------
P1 NMAT (number of matrices on tape)
P2 P2
P3 P1
P4 BCDOPT
Methods
If the input tape was created by MSC/OUTPUT1, INPUTT4 calls COSMIC/INPUTT1
module to read the tape, with additional information that the tape was not
created by COSMIC/OUTPUT1 module. Similarly, INPUTT4 module calls
COSMIC/INPUTT2 to process the MSC/OUTPUT2 tape.
If the input tape was created by COSMIC or MSC OUTPUT4 module, INPUTT4 module
calls a special subroutine, INPUT4, to read the tape, formatted (ASCII), or
binary (unformatted).
Examples
1. Input tape INP1 (logical unit 15) contains 5 matrices, written by COSMIC
or MSC/OUTPUT4, binary format. We want to copy file 3 to A, and file 5
to B.
INPUTT4 /,,A,,B/-1/15 $ REWIND, READ & ECHO HEADER RECORDS
2. To copy the first 2 files of a formatted tape INP2 (unit 16), written by
COSMIC/OUTPUT4, formatted.
INPUTT4 /A,B,,,/-1/-16 $
3. Print the data block names on INP3 tape (Tape Code 3), rewind, and copy
files 2 and 3 of an INP3 tape written by MSC/OUTPUT1. Tape contains a
header record (record 0), and tape id "MYFILE".
INPUTT4 /,A,B,,/-3/3/*MYFILE*/-1 $
Remarks
1. Companion OUTPUT4 module does not generate OUTPUT1 or OUTPUT2 type of
records.
2. GINO buffer sizes in COSMIC/NASTRAN and MSC/NASTRAN must be
synchronized. See NASTRAN BUFFSIZE option.
3. INPUTT4 module cannot accept mixed output files from MSC/OUTPUT1,
OUTPUT2 and OUTPUT4 on one input tape.
4. INPUTT4 module may not process ASCII records correctly from an
MSC/OUTPUT4 input tape, due to insufficient information in the MSC
User's Manual.
5. INPUTT4 module does not handle any table data block, including the six
special tables KELM, MELM, BELM, KDICT, MDICT, and BDICT, that are
handled specially in the OUTPUT4 module.
6. If the input tape is written in ASCII records (P2 < 0 and P4 > 0), the
following formats are used to read the tape:
If P4=1, integers are read in I13, and single precision real data
in 10E13.6, or integers are read in I16, and double precision real
data in 8D16.9. The selection of formats must agree with the P3
setting in OUTPUT4 module, or the precision of the matrix on input
tape.
If P4=2, integers are read in I16, and single precision real data
in 8E16.9. This option is available only for machines with long
word size, 60 bits or more per word.
The matrix header record is read in by (1X,4I13,5X,2A4).
7. See OUTPUT4 module for record construction.
8. The tape label P3 is not used in INPUTT4 and OUTPUT4.
=PAGE=
INPUTT5 - Read User-Written FORTRAN File
Purpose
Recovers up to five data blocks from a FORTRAN-written user file, formatted or
unformatted. (The FORTRAN file may reside either on physical tape or on a mass
storage device.) This file may be written either by a user-written FORTRAN
program or by the companion module OUTPUT5. The Programmers' Manual describes
the format of your tape which must be written in order to be readable by
INPUTT5. The unformatted binary tape can only be read by a computer of the
same manufacturer as the one that created the tape. The formatted tape can be
created and read by different computers (CDC, UNIVAC, IBM, and VAX). The data
blocks to be recovered can be matrices, tables, or both.
DMAP Calling Sequence
INPUTT5 /DB1,DB2,DB3,DB4,DB5/C,N,P1/C,N,P2/C,N,P3/C,N,P4 $
INPUTT5 is intended to have the same logical action as the FORTRAN User File
module INPUTT2 and the GINO User File module INPUTT1 except for formatted
tape. It is therefore suggested that the examples shown under modules INPUTT2
and OUTPUT1 be used for OUTPUT5 as well, excepting the addition of the P4
parameter.
Input Data Blocks
None.
Output Data Blocks
DBi Data blocks which will be recovered from one of the NASTRAN tape
files INP1, INP2 through INP9 (UT1, UT2 for CDC computer). Any or
all of the output data blocks may be purged. Only non-purged data
blocks will be taken from your tape. The data blocks will be taken
sequentially from the tape starting from a position determined by
the value of the first parameter. Note that any purged output file
will cause skipping of a corresponding file in your input tape.
The output data block sequence A,B,,, is not equivalent to ,A,,B,
or ,,,A,B.
Parameters
1. The meanings of the first three parameter values (P1, P2, P3) are the same
as those described for INPUTT2 Module, except (1) values -5 through -8 for
P1 are not available, and a new P1=-9 to rewind input tape; and (2) your
file code and the FORTRAN file name are given below. (The default value for
P2 is 16, or 12 for a CDC computer.)
Ŀ
FORTRAN LOGICAL
UNIT, P2 USER FILE CODE
Ĵ
11 UT1 (CDC only)
12 UT2 (CDC only)
14 INPT (UNIVAC,VAX)
15 INP1 (All
16 INP2 machines
: : except
23 INP9 CDC)
24 INPT (IBM only)
2. The fourth parameter (P4) for this module is used to specify whether your
tape was written with formats (P4=1 or 2), or binary tape (P4=0). Default
is P4=0.
On the formatted tape, the selection of formats for real data must be
consistent with the precision of the matrix data block coming from the
input tape. If P4=1, and the matrix is in single precision, format 10E13.6
is used.
If the matrix is in double precision and P4=1, 5D23.17 is selected. Format
I13 is used for integers in both cases.
For machines with long words only, 60 bits or more per word, the single
precision format can be switched to 5E23.17 for numeric accuracy by setting
P4 to 2.
A fatal error in reading the input tape may occur if P4 is set erroneously
with respect to the content of the tape.
Methods
Since INPUTT5 is intended to be a companion module to OUTPUT5, it is therefore
suggested that you should refer to the Methods and Remarks sections of the
OUTPUT5 module for input tape structure.
Subroutine INPTT5 is the main driver for the INPUTT5 module. Its primary
function is to read matrix data blocks from your input tape. When a table data
block is encountered, INPTT5 calls subroutine TABLEV to process the data. Your
input tape always begins with a tape ID record which tells when the tape was
generated, on what machine, tape identification, formatted or unformatted
tape, and NASTRAN system buffer size. This tape ID record can be skipped, or
read by the following FORTRAN code:
INTEGER TAPEID(2),MACHIN(2),DATE(3),BUFSIZ,P4X
READ (TAPE ) TAPEID,MACHIN,DATE,BUFSIZ,P4X or
READ (TAPE,10) TAPEID,MACHIN,DATE,BUFSIZ,P4X
10 FORMAT (2A4,2A4,3I8,I8,I8)
Unformatted Tape
The rest of the unformatted tape can be read by the following FORTRAN code:
READ (TAPE) L,J,K,(ARRAY(I),I=J,K)
where L is a control word:
L = 0, ARRAY contains matrix (or table) header record
= +n, ARRAY contains data for the nth column of the matrix
= -1, ARRAY contains end of matrix record.
The ARRAY below J and above K are zeros.
The matrix header record and the table header record (L=0) differ only on the
5th and 6th words of ARRAY. If both words are zeros, it is a table header, and
the entire table data can be read by:
READ (TAPE) L,(ARRAY(I),I=1,L)
where ARRAY may contain integers, BCD words, and real single and double
precision numbers.
Table data ends with a (1,0.0) record.
Formatted Tape
For matrix data, the rest of the formatted tape can be read by:
READ (TAPE,20) L,J,K,(ARRAY(I),I=J,K)
20 FORMAT (3I8,/,(10E13.6)) (for single precision data), or
20 FORMAT (3I8,/,(5D26.17)) (for double precision data), or
20 FORMAT (3I8,/,(5E26.17)) (P4 = 2)
where the control words L, J, and K are the same as in the unformatted case,
and the data type, single or double precision, is determined already by the
4th word of the matrix trailer embedded in the matrix header record. (See
Remark 5 of OUTPUT5 module)
For table data, the rest of the formatted tape can be read by:
CHARACTER*5 ARRAY(500)
READ (TAPE,30) J,(ARRAY(I),I=1,J)
30 FORMAT (I10,24A5,/,(26A5))
Notice the formatted record was written in the units of 5-byte character
words, and the first byte of each unit indicates what data type follows. The
following table summarizes the method to decode the character data in ARRAY.
Ŀ
DATA TYPE
FIRST BYTE OF ARRAY UNITS USED FORMAT
Ĵ
"/" BCD word 1 A4
"I" Integer 2 I9
"R" Real, s.p. 3 E14.7
"D" Real, d.p. 3 D14.7
"X" Filler 1 4X
Table data ends with a (1,"0") record.
Examples
$ COPY KJI AND KGG TO INP1 (UNIT 15), SEQUENTIAL FORMATTED TAPE
OUTPUT5 KJI,KGG,,,//-1/15/*MYTAPE*/1 $
$ RECOVER THE 2 FILES FROM INP1 AND MAKE THEM NASTRAN GINO FILES
INPUTT5 /OKJI,OKGG,,,/-1/15/*MYTAPE*/1 $
Remarks
1. Since open core is used to receive data from user input tape, INPUTT5 can
handle all kinds and all sizes of data blocks.
2. UNIVAC and VAX users should read the Important Note at the end of the
description of the INPUTT2 module.
3. If you assemble your own matrix in INPUTT5 format, and use the INPUTT5
module to read it into NASTRAN, be sure that the density term (DENS) of the
matrix trailer is set to nonzero. Otherwise your matrix will be treated as
a table and everything goes haywire.
4. Since INPUTT5 is a companion module of OUTPUT5, it is recommended that you
read the Methods and Remarks sections of the OUTPUT5 module.
=PAGE=
LAMX - LAMA Data Block Editor or Generator
Purpose
Allows modification of mode frequencies, which is useful in dynamics rigid
formats. This can be used, for example, to test the effects of structural
uncertainties. It does not require a new eigensolution.
DMAP Calling Sequence
LAMX EDIT,LAMA/LAMB/C,Y,NLAM $
Input Data Blocks
EDIT The editing instruction in the form of a DMI matrix.
LAMA An output of the READ module which contains frequencies and
generalized masses. If purged, the output is generated solely from
EDIT information.
Output Data Blocks
LAMB An edited version of LAMA, which is suitable for input to GKAM and
OFP modules, or a matrix from LAMA.
Parameters
NLAM Integer. The maximum number of modes in the output data block. If
NLAM = 0, the number of modes in LAMB is equal to that of LAMA. If
NLAM < 0, LAMB will be a matrix.
Method
The DMI matrix (named EDIT in the above calling sequence) has one column for
each mode. Each column has, at most, three entries (rows). Let R1n, R2n, and
R3n be the entries in the first through third rows of the nth column. The nth
column will edit the frequency fn and the generalized mass mn of the nth mode.
The rules defined below are such that a null column produces no change, while
either a fixed frequency shift or a percentage change may be specified.
1. If R3n < 0, delete the mode and decrease the mode number of higher modes.
2. If R3n >= 0
Frequency = Rln + (1 + R2n)fn
mn , R3n = 0
Generalized mass = R3n , R3n > 0
The change for generalized mass is ignored unless data block MI is purged. The
module will generate a LAMB data block if the second input is purged.
Frequency = R1n
Generalized mass = R3n
This second option is useful if modes are created external to NASTRAN and are
input into the program via USER modules or DMI Bulk Data cards.
If NLAM is less than zero, a matrix will be built on LAMB. EDIT is ignored,
and columns will be built with eigenvalue, omega, frequency, generalized mass,
and generalized stiffness until the generalized mass is zero. The number of
rows should then match the number of eigenvectors requested.
Remarks
1. LAMA may be purged. If LAMA is purged, than a LAMB is created from the EDIT
information.
Examples
1. Assume that ten modes were found by READ and it is desired to do the
following:
1 - 3 Leave alone
4 Multiply frequency by .8
5 Leave alone
6 Delete
7 Replace frequency by 173.20
8 Delete
The ALTER would be:
ALTER XX
LAMX LLLL,LAMA/LAMB/C,N,7 $
EQUIV LAMB, LAMA/ALWAYS
This ALTER must be placed after READ and before GKAM. The DMI Bulk Data
card would be:
1 2 3 4 5 6 7 8 9 10
Ŀ
DMI LLLL 0 2 1 1 3 7
Ĵ
DMI LLLL 4 1 0. -.2
Ĵ
DMI LLLL 6 1 0. 0. -1.
Ĵ
DMI LLLL 7 1 173.20 -1.
2. Create a LAMA with fi = 10., 20., 30., 40., and mi = 1., 1., 1., 2.
ALTER XX
LAMX EDIT,/LAMA $ DEFAULT PARAMETER IS ZERO.
OFP LAMA,,,,,// $
1 2 3 4 5 6 7 8 9 10
Ŀ
DMI EDIT 0 2 1 1 3 4
Ĵ
DMI EDIT 1 1 10. 0. 1.
Ĵ
DMI EDIT 2 1 20. 0. 1.
Ĵ
DMI EDIT 3 1 30. 0. 1.
Ĵ
DMI EDIT 4 1 40. 0. 2.
=PAGE=
MATGPR - Structural Matrix Printer
Purpose
Prints matrices generated by a Solution Sequence. External grid
point/component identification of each nonzero element is printed.
DMAP Calling Sequence
A. For matrices whose degrees of freedom relate to grid or scalar points:
MATGPR GPL,USET,SIL,M//C,N,c/C,N,r/V,N,PRNTOPT=ALL/V,N,TINY=1.E-6/V,N,F1 $
B. For matrices whose degrees of freedom relate to grid, scalar, or extra
points:
MATGPR GPLD,USETD,SILD,M//C,N,c/C,N,r/V,N,PRNTOPT=ALL/V,N,TINY=1.E-2/
V,N,F1 $
Input Data Blocks
GPL Grid Point List
GPLD Grid Point List (Dynamics)
USET u-set
USETD u-set (Dynamics)
SIL Scalar Index List
SILD Scalar Index List (Dynamics)
M Any displacement approach matrix
Output Data Blocks
None
Parameters
c row size (number of columns); must be the appropriate BCD value
from the table in Section 1.4.10. Input, no default.
r column size (number of rows); must be the appropriate BCD value
from the table in Section 1.4.10. If not specified, it will be
assumed that r=c. Input, default = X, which implies r=c.
PRNTOPT Must be one of the following BCD values:
NULL Only null columns will be printed and identified.
ALL Standard MATGPR printout (default).
ALLP Standard MATGPR printout (complex numbers are converted to
magnitude/phase).
TINY Real-default = 0.0. If F1 = 0 and TINY > 0, printed output will be
provided only for those matrix terms, aij, that satisfy the
relation |aij| > TINY. If F1 = 0 and TINY < 0, printed output will
be provided only for those matrix terms, aij, that satisfy the
relation |aij| < |TINY|. If TINY = 1.E37, MATGPR will return. If
F1 is nonzero, see the following description of F1.
F1 Real-default = 0.0. If F1 is not zero, then printed output will be
provided for only those matrix terms that satisfy aij > TINY or
aij < 0.0.
Remarks
1. When using the form specified in DMAP Calling Sequence A, this module may
not be scheduled until after GP4 since data blocks generated by GP4 are
required inputs. When using the form specified in DMAP Calling Sequence B,
this module may not be scheduled until after DPD since data blocks
generated by DPD are required inputs.
2. If [M] is purged, no printing will be done.
3. The nonzero terms of the matrix will be printed along with the external
grid point and component identification numbers corresponding to the row
and column position of each term.
Examples
Display terms of KGG:
MATGPR GPL,USET,SIL,KGG//G $
Display null columns of KLL:
MATGPR GPL,USET,SIL,KLL//L/L/NULL $
Display small terms on diagonal of LOO:
DIAGONAL LOO/LOOD $
MATGPR GPL,USET,SIL,LOOD//H/O//-1.E-2 $
Display PHIA, H columns by A rows:
MATGPR GPL,USET,SIL,PHIA//H/A $
Also good for any single column
Display all terms of KGG outside the range of 0 through 107:
MATGPR GPL,USET,SIL,KGG//G/G//1.E7/1.E1 $
=PAGE=
MATPRN - General Matrix Printer
Purpose
To print general matrix data blocks.
DMAP Calling Sequence
MATPRN M1,M2,M3,M4,M5 // C,N,P1/C,N,P2/C,N,P3/C,N,P4/C,N,P5 $
Input Data Blocks
Mi Matrix data blocks, any of which may be purged.
Output Data Blocks
None.
Parameters
P1 and P2 are print format controls.
P1 = 0, matrices are printed in their original precision (default).
= 1, matrices are printed in single precision (for example, x.xxxE+xx).
= 2, matrices are printed in double precision (for example, -x.xxxD+xx).
= -1, only the diagonal elements of the matrix will be printed in their
original precision.
P2 number of data values printed per line (132 column print line).
= 8 to 14 if matrices are printed in single precision (default is 10).
= 6 to 12 if matrices are printed in double precision (default is 9).
P3, P4, and P5 are printout controls, to allow only a portion of the matrix to
be printed.
P3 = m, matrix columns 1 through m will be printed.
= 0, all matrix columns will be printed (default).
= -m, see P4 = -n.
P4 = n, last n matrix columns will be printed. Default = 0.
= -n, and P3 = -m, every other n matrix columns will be printed,
starting from column m.
P5 = k, each printed column will not exceed k lines long and the remaining
data will be omitted. For example, 40 data values will be printed if
P2=10 and P5=4.
Output
The nonzero band of each column of each input matrix data block is unpacked
and printed in single precision.
Remarks
1. Any or all input data blocks can be purged.
2. If any data block is not matrix type, the TABPT routine will be called.
Examples
1. MATPRN KGG,,,, // $
2. MATPRN KGG,PL,PG,BGG,UPV // $
=PAGE=
MATPRT - Matrix Printer
Purpose
To print matrix data blocks associated with grid points only.
DMAP Calling Sequence
MATPRT X // C,N,rc / C,N,y $
Input Data Blocks
X Matrix data block to be printed. If [X] is purged, then nothing is
done.
Output Data Blocks
None.
Parameters
rc indicates whether [X] is stored by rows (rc = 1) or by columns (rc
= 0) (Input-Integer, default value = 0).
y indicates whether [X] is to be printed even if not purged (y < 0,
do not print [X]; y >= 0, print [X] (Input-Integer, default value
= 0).
Method
Each column (or row) of the matrix is broken into groups of 6 terms (3 terms
if complex) per printed line. If all the terms in a group = 0, the line is not
printed. If the entire column (or row) = 0, it is not printed. If the entire
matrix = 0, it is not printed.
Remarks
1. MATPRT should not be used if scalar or extra points are present. For this
case, use MATPRN.
2. Only one matrix data block is printed by this instruction. However, the
instruction may be repeated as many times as required.
=PAGE=
NORM - Normalize a Matrix
Purpose
To normalize a matrix, each vector by its largest element. To compute the
square root of the sum of the squares for each row of a matrix (SRSS).
DMAP Calling Sequence
NORM PHIG/PHIG1/V,N,NCOL/V,N,NROW/V,N,XNORM/V,N,IOPT $
Input Data Blocks
PHIG Any matrix (real or complex)
Output Data Blocks
PHIG1 IOPT=1, copy of PHIG such that for any columnj||max(aij)|| for all
i = 1.0.
IOPT=2, contains a single column {ai} where
NCOL _
ai = SQRT ( (uij * uij) )
j=1
where uij are the terms in the matrix PHIG and ij are the complex
conjugates.
Parameters
NCOL Integer-output-default = 0. Number of columns in PHIG.
NROW Integer-output-default = 0. Number of rows in PHIG.
XNORM Real-output-default = 0.0. Maximum (absolute value) normalizing value
over all columns.
IOPT Integer-input-default = 1. IOPT=1, normalize by largest element;
IOPT=2, compute SRSS.
Examples
Normalize PHIG so that the maximum deflection is 1.0 (or -1.0):
EQUIV PHIG,PHIG1/NEVER $
NORM PHIG/PHIG1/ $
CHKPNT PHIG1 $
EQUIV PHIG1,PHIG/ALWAYS $
CHKPNT PHIG $
=PAGE=
OUTPUT1 - Create User Files
Purpose
Writes up to five data blocks and a user file label onto a user file (either
on tape or mass storage) for use at a later date. (See User Module INPUTT1 for
recovery procedures.) OUTPUT1 is also used to position your file (including
handling of multiple reel tapes--user tape reel switching is available only on
IBM and UNIVAC versions) prior to writing the data blocks. Multiple calls are
allowed. A message is written on the output file for each data block
successfully written and after each tape reel switch. You are cautioned to be
careful when positioning a user file with OUTPUT1 since you may inadvertently
destroy information through improper positioning. Even though no data blocks
are written, an EOF will be written at the completion of each call, which has
the effect of destroying anything on the file forward of the current position.
DMAP Calling Sequence
OUTPUT1 DB1,DB2,DB3,DB4,DB5 // V,N,P1 / V,N,P2 / V,N,P3 $
Input Data Blocks
DBi Any data block which you desire to be placed on one of the NASTRAN
permanent files INPT, INP1, INP2 thru INP9. Any or all of the
input data blocks may be purged. Only nonpurged data blocks will
be placed on the file.
Output Data Blocks
None.
Parameters
1. The meaning of the first parameter (P1) value is given in the table below.
(The default value is O.)
Ŀ
P1 Value Meaning
Ĵ
+n Skip forward n data blocks before reading.
0 Data blocks are read starting at the current
position. The current position for the first use of a
file is at the label (P3). Hence, P3 counts as one
data block.
-1 Rewind before writing. (This is dangerous!) An EOF is
written at the end of each call to OUTPUT1.
-2 Valid only for files residing on physical tape.
Mount new reel before writing. An EOF mark is written
on the tape to be switched. Be careful when switching
from a user tape being read by INPUTT1 to a tape to be
written by OUTPUT1.
-3 Rewind files, print data block names, and then write
after the last data block on the file.
-4 Valid only for files residing on physical tape.
Current tape reel will be rewound and dismounted and
a new tape reel will be mounted with ring in and
rewound before writing the data blocks. This option
should be used when a call to OUTPUT1 is preceded
by a call to INPUTT1 using the same User Tape.
2. The second parameter (P2) for this module is your File Code shown in the
table below. (The default value is 0.)
Ŀ
User File Code GINO File Name
Ĵ
0 INPT
1 INP1
2 INP2
3 INP3
4 INP4
5 INP5
6 INP6
7 INP7
8 INP8
9 INP9
3. The third parameter (P3) for this module is used to define your File Label.
The label is used for NASTRAN identification. The label (P3) is an
alphanumeric variable of eight or less characters (the first character must
be alphabetic) which is written on your file. The writing of this label is
dependent on the value of P1 as follows (The default value for P3 is
XXXXXXXX).
Ŀ
P1 Value File Label Written
Ĵ
+n No
0 No
-1 Yes
-2 Yes (On new reel)
-3 No (Warning Check)
-4 Yes (On new reel)
You may specify the third parameter as V, Y, name. You then must also
include a PARAM card in the bulk data deck to set a value for name.
Examples
1. OUTPUT1 A,B,,, // C,N,0 / C,N,0 $ or OUTPUT1 A,B,,, // $
Write data blocks A and then B onto user file INPT starting wherever INPT
is currently positioned. If this is the first write operation on INPT, it
must be preceded by OUTPUT1 ,,,, // C,N,-1 $, which will automatically
label the file positioned at its beginning.
2. OUTPUT1 , ,,,, // C,N,-1 / C,N,0 $
Rewind INPT, destroy any data blocks that were on INPT, and write default
value of P3 on file as a label.
3. OUTPUT1 A,,,, // C,N,-2 / C,N,2 / C,N,USERTPA $
Mount a new reel of tape (with write ring) for INP2 and write USERTPA for
user tape label and then data block A as the first file.
4. OUTPUT1 , ,,,, // C,N,-2 / C,N,2 / C,N,USERTPA $
OUTPUT1 A,,,, // C,N,0 / C,N,2 $
This is equivalent to example 3.
5. OUTPUT1 A,B,C,D,E // C,N,14 $
Starting from the current position, skip forward 14 data blocks on INPT and
write A, B, C, D, and E as the next five data blocks. The skip positioning
feature cannot be used if the current position of INPT is forward of a just
previously written data block end-of-file or before the file is labeled.
6. OUTPUT1 , ,,,, // C,N,-3 $ THIS IS AN
OUTPUT1 A,B,C,D,E // C,N,14 $ INCORRECT EXAMPLE.
This is an invalid sequence since the first call positions the tape at the
end of all data blocks on the tape. See example 7.
7. INPUTT1 / ,,,, / C,N,-3 $
OUTPUT1 A,B,C,D,E // C,N,14 $
A complete list of data block names will be printed by INPUTT1, which will
then rewind the file. Then, OUTPUT1 will skip forward 14 data blocks and
write A, B, C, D, and E. Your file label is given a warning check by
INPUTT1.
8. OUTPUT1 , ,,,, // C,N,-2 $ THIS IS AN
OUTPUT1 , ,,,, // C,N,-3 $ INCORRECT EXAMPLE.
OUTPUT1 , A,B,,, // C,N,14 $
This is an invalid sequence since the first call effectively destroys
whatever information is on the tape. See example 9.
9. INPUTT1 / ,,,, / C,N,-2 $
INPUTT1 / ,,,, / C,N,-3 $
OUTPUT1 A,B,,, // C,N,14 $
Mount a new reel of tape previously default labeled for INPT (the operator
will have to be instructed to ignore the NORING message and put a ring in
the tape). Print the names of all data blocks on the tape and rewind the
tape. Skip 14 data blocks on the tape and write A and then B as the 15th
and 16th data blocks. Any information forward of this current position is
effectively destroyed. See example 10.
10. INPUTT1 / ,,,, / C,N,-2 $
OUTPUT1 A,B,,, // C,N,-3 $
Mount a new reel of tape previously default labeled for INPT (the operator
will have to be instructed to ignore the NORING message and put a ring in
the tape). Print the names of all data blocks on the tape and write A and B
as new data blocks at the end of the tape. If INPT contained 14 data blocks
at the start of this sequence, it would be more efficient to do it this way
than by using the sequence of example 9, since a pass on the tape is
eliminated.
11. INPUTT1 / ,,,, / C,N,-2 / C,N,0 / V,Y,BDSETLAB $
OUTPUT1 A,B,,, // C,N,-3 / C,N,0 / V,Y,BDSETLAB $
This is equivalent to example 10 except your tape label is set on a PARAM
card, which must be included in the BULK DATA deck (that is, PARAM BDSETLAB
USERTP12).
Difficult Examples Using INPUTT1 and OUTPUT1
Example 1
a. Objectives:
1. Obtain printout of the names of all data blocks on INPT.
2. Skip past the first four data blocks, replace the next two with data blocks
A and B, and retain the next three data blocks.
3. Obtain printout of the names of all data blocks on INPT after (2) has been
done.
b. DMAP Sequence:
BEGIN $ (1)
INPUTT1 / ,,,, / C,N,-3 $ (2)
INPUTT1 / ,,T1,T2,T3 / C,N,6 $ (3)
INPUTT1 / ,,,, / C,N,-1 $ (4)
INPUTT1 A,B,T1,T2,T3 // C,N,4 $ (5)
OUTPUT1 , ,,,, // C,N,-3 $ (6)
END $
c. Remarks
1. DMAP sequence (2) accomplishes objective 1 and rewinds INPT.
2. DMAP sequence (3) recovers data blocks 7, 8, and 9. This is necessary
because they would be effectively destroyed by anything written in front of
them on INPT.
3. DMAP sequence (4) rewinds INPT.
4. DMAP sequence (5) accomplishes objective 2.
5. DMAP sequence (6) accomplishes objective 3 and leaves INPT positioned after
the ninth file, ready to receive additional data blocks.
6. Note that INPUTT1 is used whenever possible to avoid the possibility of
mistakenly writing on INPT prematurely.
Example 2
a. Objectives:
1. Write data blocks A, B, and C on INPT.
2. Obtain printout of the names of all data blocks on INPT after step (1).
3. Make two copies of the file created in (1).
4. Add data blocks D and E to one of the files.
5. Obtain the names of all data blocks on INPT after (4).
b. DMAP Sequence:
BEGIN $ (1)
OUTPUT1 A,B,C,, // C,N,-1 $ (2)
OUTPUT1 , ,,,, // C,N,-3 $ (3)
OUTPUT1 A,B,C,, // C,N,-2 $ (4)
OUTPUT1 A,B,C,, // C,N,-2 $ (5)
OUTPUT1 D,E,,, // $ (6)
OUTPUT1 , ,,,, // C,N,-3 $ (7)
END $ (8)
c. Remarks:
1. DMAP sequence (2) accomplishes objective 1 since the file must initially
have P3 written on it when first used. The DMAP statement INPUTT1 A,B,C,,
// C,N,-1 $ will accomplish the same thing.
2. DMAP sequence (3) accomplishes objective 2. The statement INPUTT1 / ,,,, /
C,N,-3 $ will do the same thing and add a rewind.
3. Statements (4) and (5) accomplish objective 3.
4. Statement (6) accomplishes objective 4 where the third file (tape) is used.
5. Statement (7) accomplishes objective 5. The statement INPUTT1 / ,,,, /
C,N,-3 $ will do the same thing and add a rewind.
6. On machines where tape reel switching is not implemented, the second
parameter can be used as follows:
BEGIN $
OUTPUT1 A,B,C,, // C,N,-1 $
OUTPUT1 , ,,,, // C,N,-3 $
OUTPUT1 A,B,C,, // C,N,-1 / C,N,1 $
OUTPUT1 A,B,C,, // C,N,-1 / C,N,2 $
OUTPUT1 D,E,,, // C,N,0 / C,N,2 $
OUTPUT1 , ,,,, // C,N,-3 / C,N,2 $
END $
=PAGE=
OUTPUT2 - Create User-Written FORTRAN Files
Purpose
Writes up to five data blocks and a user file label onto a FORTRAN-written
user file (either on tape or mass storage) for subsequent use at a later date.
OUTPUT2 is also used to position your file prior to writing the data blocks.
Multiple calls are allowed. A message is written on the output file for each
data block successfully written. You are cautioned to be careful when
positioning a user file with OUTPUT2, since you may inadvertently destroy
information through improper positioning. Even though no data blocks are
written, an EOF will be written at the completion of each call, which has the
effect of destroying anything on the tape forward of the current position.
(The companion module is INPUTT2.)
DMAP Calling Sequence
OUTPUT2 DB1,DB2,DB3,DB4,DB5 // V,N,P1 / V,N,P2 / V,N,P3 / V,N,P4 /
V,N,P5 / V,N,P6 $
Input Data Blocks
DBi Any data block which you desire to be written on one of the
NASTRAN FORTRAN files INPT, INP1 through INP9. Any or all of the
input data blocks may be purged. Only nonpurged data blocks will
be placed on the file.
Output Data Blocks
None.
Parameters
P1, P2, P4, and P5 are integer inputs. P3 and P6 are BCD.
1. The meaning of the first parameter (P1) value is given in the table below.
(The default value is 0.)
Ŀ
P1 Value Meaning
Ĵ
+n Skip forward n data blocks before writing.
0 Data blocks are written starting at the current
position. The current position for the first use of a
file is at the label (P3). Hence, P3 counts as one
data block.
-1 Rewind before writing.
-3 Rewind files, print data block names, and then write
after the last data block on the file.
-9 Write a final EOF on the file.
Important Notes
a. It is a good practice for you to ensure that a sequence of OUTPUT2
statements always ends with a statement of the form
OUTPUT2, ,,,, // -9 $
thereby causing a final (or physical) EOF to be written on the FORTRAN
file. Otherwise, subsequent use of this file by OUTPUT2, INPUTT2, or an
external program may fail due to the absence of a physical EOF on the
file. Notice the presence of an extra comma after the module name.
b. On the UNIVAC and DEC VAX versions, the FORTRAN files used with the
INPUTT2/OUTPUT2 modules are automatically rewound every time a link
change occurs in the program. In general, a link change can be assumed
to occur whenever a DMAP statement other than an INPUTT2 statement
follows an INPUTT2 statement; similarly, whenever a DMAP statement other
than an OUTPUT2 statement follows an OUTPUT2 statement. For this reason,
the following cautions should be noted on these versions when using the
various values for the parameter P1 in an INPUTT2 or OUTPUT2 DMAP
statement.
Ŀ
Cautions for UNIVAC and DEC VAX versions
Ĵ
Parameter P1 Remarks
Ĵ
0 or +n You must be certain that this INPUTT2
statement immediately follows another INPUTT2
statement; or that this OUTPUT2 statement
immediately follows another OUTPUT2 statement, to
avoid a link change that would cause the
rewinding of the FORTRAN file.
-1 to -8 No cautions.
-9 You must be certain that this OUTPUT2
statement immediately follows another OUTPUT2
statement, to avoid a link change that would
cause the rewinding of the FORTRAN file.
2. The second parameter (P2) for this module is the FORTRAN unit number onto
which the data blocks will be written. The allowable values for this
parameter are highly machine- and installation-dependent. Reference should
be made to Section 4 of the Programmer's Manual for a discussion of this
subject.
For CDC machine (default is 11):
Ŀ
User File Code FORTRAN File Name
Ĵ
11 UT1
12 UT2
For all others (default is INPT):
Ŀ
User File Code FORTRAN File Name
Ĵ
14 INPT
15 INP1
16 INP2
: :
23 INP9
IBM/MVS only: INPT is user file code 24.
3. The third parameter (P3) for this module is used to define the FORTRAN User
File Label. The label is used for NASTRAN identification. The label (P3) is
an alphanumeric variable of eight or less characters (the first character
must be alphabetic) which is written on your file. The writing of this
label is dependent on the value of P1 as follows: (The default value for P3
is XXXXXXXX.)
Ŀ
P1 Value File Label Written
Ĵ
+n No
0 No
-1 Yes
-3 No (Warning Check)
-9 No
If the label is written, eight additional records are placed at the
beginning of the FORTRAN file.
You may specify the third parameter as V,Y,name. You then must also include
a PARAM card in the bulk data deck to set a value for name.
4. The fourth parameter (P4) controls the maximum FORTRAN record size.
P4 = 0 (default); record size is unlimited for all machines except IBM/MVS,
which is set to 1024 words.
P4 = -n; maximum FORTRAN record size is n times the system buffer. (If P6
is not blank, n is 2.)
P4 = +n; maximum FORTRAN record size is n words. If n is less than system
buffer, n is increased to system buffer size. If n is greater than system
open core, n is reduced to the size of open core.
5. The fifth parameter (P5) is valid only for matrix DBi input.
P5 = 0; matrices are written out by columns. This is the normal way using
one keyword.
P5 = not 0; matrices are written out by columns in sparse matrix forms,
that is, from first non-zero row of a column to last non-zero row. The
keyword record contains two keys:
First key:
> 0, defines length of next data record
= 0, end-of-file
< 0, end-of-record; more records follow
Second key:
= 0, if DBi is a table data block, or P5 = 0
> 0, row-base for next record
For example, if keys = 10,200, the next record is 10 words long, for rows
200+1 through 200+10; that is, (ROW(key2+j),j=1,key1)
6. If the sixth parameter (P6) is set to *MSC*, OUTPUT2 will generate OUTPUT2
records in MSC/OUTPUT2 compatible formats. The COSMIC/OUTPUT2 and
MSC/OUTPUT2 generate records slightly differently. The P5 parameter is not
available when P6 is specified.
Default P6 is blank.
Examples
OUTPUT2 is intended to have the same logical action as the GINO User File
module OUTPUT1 except for tape reel switching. It is therefore suggested that
the examples shown under module OUTPUT1 be used for OUTPUT2 as well, excepting
the ones involving tape reel switching. All examples should be ended with a
call to OUTPUT2 with P1 = -9.
Remarks
The primary objective of this module is to write files using simple FORTRAN so
that you can read NASTRAN generated data with your own program. Similarly,
matrices can be generated with externally written simple FORTRAN programs and
then read in by module INPUTT2.
In order to do this, the format of the information on these files must be
adhered to. The basic idea is that a two word logical KEY record is written,
which indicates what follows. A zero value in KEY1 indicates an end-of-file
condition. A negative value indicates the end of a record, where the absolute
value is the record number. A positive value indicates that the next record
consists of that many words of data. KEY2 is used only with P5 not equal to
zero, and was explained previously.
The correspondence between FORTRAN records and GINO-written NASTRAN files is
shown in the following sample:
Ŀ
FORTRAN NASTRAN File
Record Length Contents File Record
Ĵ
1 1 KEY1 > 0, KEY2 1 1
Ĵ
2 KEY1 {Data}
Ĵ
3 1 KEY1 > 0, KEY2
Ĵ
4 KEY1 {Data}
Ĵ
5 1 KEY1 < 0 (EOR),
KEY2
Ĵ Ĵ
6 1 KEY1 > 0, KEY2 2
Ĵ
7 KEY1 {Data}
Ĵ
8 1 KEY1 < 0 (EOR),
KEY2
Ĵ Ĵ
9 1 KEY1 = 0 (EOF), EOF
KEY2
Ĵ
10 1 KEY1 > 0, KEY2 2 1
Ĵ
11 KEY1 {Data}
Ĵ
12 1 KEY1 < 0 (EOR),
KEY2
Ĵ Ĵ
13 1 KEY1 = 0 (EOF), EOF
KEY2
Ĵ
14 1 KEY1 = 0 (EOF=EOD), 3 EOF
KEY2
KEY2s are zeros except when parameter P5 is non-zero, and the next records are
data records (KEY1 > 0). When parameter P5 is zero, effectively only one key,
KEY1, is used.
KEY2s are not generated when parameter P6 is *MSC*.
=PAGE=
OUTPUT3 - Punch Matrix Data Blocks Onto Cards
Purpose
Punches up to five matrix data blocks onto DMI bulk data cards. These cards
may then read into NASTRAN as ordinary bulk data to reestablish the matrix
data block at a later date.
DMAP Calling Sequence
OUTPUT3 M1,M2,M3,M4,M5 // C,N,P1 / C,Y,N1=ABC / C,Y,N2=DEF / C,Y,N3=GHI
C,Y,N4=JKL / C,Y,N5=MNO $
Input Data Blocks
Mi Any matrix data block which you desire to be punched on DMI cards.
Any or all of the input data blocks may be purged. Only nonpurged
data blocks will be punched.
Output Data Blocks
None.
Parameters
The first parameter (P1) controls the writing of the DMI card images on a
FORTRAN unit as follows:
P1 < 0 write on FORTRAN unit |P1| as well as punch DMi cards
P1 >= 0 punch DMI cards only
The default value for P1 is 0.
Ni - The values of the five BCD parameters shown above are used to create a
unique continuation field configuration on the DMI cards. Only the first three
characters are used. These three characters must be unique for all matrices
which will be input together during a subsequent run using cards generated by
OUTPUT3. (Input-BCD, default values are N1 = no default, N2 = N3 = N4 = N5 =
XXX).
Method
The nonzero elements of each matrix are punched on double-field DMI cards as
shown in the example below. The name of the matrix is obtained from the header
record of the data block. Field 10 contains the three character parameter
value in columns 74-76 and an incremented integer card count in columns 77-80.
Example
Let the data block MAT contain the matrix
1.0 0.0 6.0 0.0 0.0 0.0
0.0 0.0 7.0 0.0 0.0 0.0
[MAT] = 2.0 4.0 0.0 0.0 0.0 0.0
0.0 5.0 0.0 0.0 0.0 9.0
3.0 0.0 8.0 0.0 0.0 0.0
The DMAP instruction OUTPUT3 MAT,,,, // C,N,0 / C,N,XYZ $ will then punch out
the DMI cards shown below.
1 2 3 4 5 6 7 8 9 10
Ŀ
DMI MAT 0 2 1 2 5 6+XYZ0
Ŀ
DMI* MAT 1 1 1.000000E 00 *XYZ1
Ĵ
*XYZ 1 3 2.000000E 00 5 3.000000E 00 *XYZ2
Ŀ
DMI* MAT 2 3 4.000000E 00 *XYZ3
Ĵ
*XYZ 3 5.000000E 00 *XYZ4
Ŀ
DMI* MAT 3 1 6.000000E 00 *XYZ5
Ĵ
*XYZ 5 7.000000E 00 5 8.000000E 00 *XYZ6
Ŀ
DMI* MAT 6 4 9.000000E 00 *XYZ7
Remarks
1. Only real single- or double-precision matrices may be output.
2. All matrices are output on double-field cards in single-precision.
3. The maximum number of cards that may be punched is 99,999. If matrices
larger than this are desired, use module OUTPUT2 and write a program to
process the resulting FORTRAN file.
4. The auxiliary subroutine PHDMIA used by module OUTPUT3 can be used with
stand-alone FORTRAN programs. See Section 4 of the Programmer's Manual for
details.
=PAGE=
OUTPUT4 - Write a Matrix to a FORTRAN Readable File
Purpose
To write a matrix to an ASCII or FORTRAN binary file so that user processing
can be done.
OUTPUT4 can also handle six special tables: KELM, MELM, BELM, KDICT, MDICT,
and BDICT.
DMAP Calling Sequence
OUTPUT4 M1,M2,M3,M4,M5 // V,N,P1 / V,Y,P2 / V,N,P3 $
Input Data Blocks
Mi Up to five matrix data blocks, including any of the six special
table data blocks.
Output Data Blocks
None (written to user tape; see Remarks for the format).
Parameters
P1 Input-integer-default = 0. P1 controls the status of the unit
before OUTPUT4 starts to write any matrices as follows:
0 No action taken before write.
-1 Rewind tape before write.
-2 End file and rewind tape after write.
-3 Both
P2 Input-integer-default = 14. The absolute value of IUNIT is the
FORTRAN unit number where the matrices will be written. If P2 is
negative, the sparse output option will be used.
P3 If P3 = 1 the file is written in FORTRAN binary format (default).
If P3 = 2 or 3, the file is written in ASCII format; see Remarks
10 - 13.
Remarks
1. Each matrix will be written on unit P2 as follows:
Record No. Word Type Meaning
1 1 I Number of columns (NCOL)
(binary or 2 I Number of rows (NR)
ASCII) 3 I FORM (1-8, negative if P3 is not equal to 1)
4 I TYPE (1-4)
5,6 B DMAP name (2A4 format)
On ASCII output tape, record 1 is written in (1X,4I3,5X,2A4) format.
2,3,etc. 1 I Column number.
(nonsparse,2 I Row position of first nonzero term.
binary) 3 I NW, number of words in the column (that is,
number of elements times number of
words per element).
4-NW+3 R/DP Floating point values, either real or double
precision, depending on the type.
Words 1 - 4-NW+3 are repeated for each nonzero column.
2,3,etc. 1 I Column number.
(sparse, 2 I Zero.
binary) 3 I Number of words (NW) in the column.
4-NW+3 R/DP Strings of nonzero terms as follows: [Length of string
(L)/Row position of first term]=IS
Floating point values either real or double precision,
depending on type. If IS is the string header, L =
IS/65536
IROW = IS-(L*65536)
2 1 I Column number (1X,I13 or 1X,I16).
(nonsparse,2 I Row position of first nonzero term (I13 or I16).
ASCII) 3 I NW, number of words in the column (I13 or I16).
3,etc. 11 R/DP Floating point values either real or double
precision, depending on the type (1X,10E13.6,
1X,8D16.9, or 1X,8E16.9).
Record 3 is repeated as many times as necessary. Notice that each record
holds 11 values, and is 132 bytes in length, except the last record, which
may be shorter.
2 1 I Column number (1X,I13 or 1X,I16).
(sparse, 2 I Row position of first string element (a negative
value, I13 or I16).
ASCII) 3 I NW, number or words in string, adjusted for single
precision or double precision word count (I13 or
I16).
3,etc. 11 R/DP Floating point values of string, either real or
double precision, depending on the type
(1X,10E13.6, 1X,8D16.9, or 1X,8E16.9)
Records 2, 3, etc. are repeated as many times as needed for the same matrix
column (therefore same column number). Notice each record 3 holds 10 or 8
values, and is less than 132 bytes in length, except the last record, which
may be shorter. Notice that records 1, 2, and 3 always begin with a space
(1X).
Repeat records 2 and 3 (etc.) for each nonzero column (therefore different
column number).
2. A record with the last column number plus +1 and at least one value in the
next record will by written on unit P2.
3. Number of words per type is as follows:
Type NWORDS
1, Real S.P. 1
2, Readl D.P. 2
3, Complex S.P. 2
4, Complex D.P. 4
4. OUTPUT4 does not handle table data blocks, except the six special tables
mentioned above.
5. Choosing a correct unit is machine dependent and correct control cards must
be supplied. See other sections of this User's Manual for descriptions of
the control cards for each type of computer.
6. If the non-sparse option is selected, zero terms will be explicitly present
after the first nonzero term in any column until the last nonzero term.
7. Null columns will not be written to the output.
8. An entire column must fit in memory.
9. The FORTRAN binary file option is the preferred method when the file is to
be used on the same computer. The ASCII format allows use of the file on
another type of computer.
10. The output tape, ASCII (formatted) or binary (unformatted), can be read
by the INPUTT4 module. On ASCII tape, if P4 is 2, the formats for
integers and real data are selected automatically depending on the
precision of the incoming matrix data block. If the matrix is in single
precision, formats I13 and 10E13.6 are used. If the matrix is in double
precision, I16 and 8D16.9 are used.
11. If P3 =3, formats I16 and 8E16.9 are used for integers and single
precision real data to increase numeric accuracy. This option is
available only for machines with long word size, 60 bits or more per
word.
12. A fatal error in reading input tape may occur if P4 is selected
erroneously with respect to the content of the tape.
13. On the ASCII tape, and sparse matrix output, each string of non-zero
data is written as a FORTRAN record. A fatal error could occur for a
large matrix where the number of records exceeds system I/O limits.
14. When KDICT, MDICT, or BDICT input table is copied out to an ASCII output
tape (not to a binary tape), the damping constant, the only real number
on the table, is pre-multiplied by 10**8, and converted to an integer.
The whole table therefore is in pure integer form, and is written out by
a 10I13 format. In rigid format heat analyses, these six special tables,
prefixed by an "L", work also with OUTPUT4.
=PAGE=
OUTPUT5 - Create User-Written FORTRAN File
Purpose
Writes up to five NASTRAN GINO data blocks to a user FORTRAN file using a
FORTRAN write, formatted or unformatted. (The FORTRAN file may reside either
on physical tape or on a mass storage device.) If the data block contains
matrix data, each matrix column is first unpacked, then written out to your
file in unpacked form. If the data block contains table data and formatted
records are requested, a dynamic scheme is used to generate the appropriate
format for the FORTRAN write. Coded symbols are also included in the formatted
table data, so that they can be read back into the NASTRAN system by the
INPUTT5 module, or by a user-written FORTRAN program. Mixed matrix and table
data blocks are allowed in one OUTPUT5 operation.
The unformatted (binary) user file is intended to be used later in the same
computer, or a similar computer of the same manufacturer. The formatted file
can be generated in one computer system and used later in another, with
complete freedom in operating systems and computer manufacturers. The
formatted file can be viewed and edited by the use of the system editor. The
records contain 132 characters (or less) per line.
The parameters in OUTPUT5 are modeled after OUTPUT2. They can be used to
direct which user output file (INP1, INP2, UT1 etc.) is to be used, to write
formatted or unformatted records, to position the output file prior to
writing, and to place an End-Of-File mark at the end of the tape. Multiple
calls are allowed. You are cautioned to be careful when positioning your
output file with OUTPUT5, since you may inadvertently destroy information
through improper positioning. Even though no data blocks are written, an EOF
will be written at the completion of each call, which has the effect of
destroying anything on the tape forward of the current position.
DMAP Calling Sequence
OUTPUT5 DB1,DB2,DB3,DB4,DB5//C,N,P1/C,N,P2/C,N,P3/C,N,P4/C,N,T1/C,N,T2/
C,N,T3/...C,N,T10 $
OUTPUT5 is intended to have the same logical action as the FORTRAN User File
module OUTPUT2 and the GINO User File module OUTPUT1, except for formatted
tape. It is therefore suggested that the examples shown under modules OUTPUT2
and OUTPUT1 be used for OUTPUT5 as well, excepting the addition of the P4
parameter. All samples should be ended with a call to OUTPUT5 with P1=-9.
Input Data Blocks
DBi Any data block which you desire to be written on one of the
NASTRAN FORTRAN user files INPT, INP1, INP2,..., INP9. Any or all
of the input data blocks may be purged. Only unpurged data blocks
will be placed on your file.
Output Data Blocks
None.
Parameters
1. The meanings of the first three parameter values (P1, P2, P3) are the same
as those described for the OUTPUT2 module, except your file code and the
FORTRAN file name are given below. (The default value for P2 is 15, or 11
for a CDC machine.)
Ŀ
FORTRAN LOGICAL
UNIT, P2 USER FILE CODE
Ĵ
11 UT1 (CDC only)
12 UT2 (CDC only)
14 INPT (UNIVAC,VAX)
15 INP1 (All
16 INP2 machines
: : except
23 INP9 CDC)
24 INPT (IBM only)
2. The fourth parameter (P4) for this module is used to specify whether your
output tape is to be written formatted (P4=1 or 2), or unformatted (P4=0,
default). Unless the tape is to be used later by a different computer or a
different operating system, the unformatted tape should be used.
On the formatted tape, with P4=1, the selection of output formats for real
data is automatic, depending on the precision of the incoming matrix data
blocks. If the matrix in in single precision, format 10E13.6 is used. If
the matrix is in double precision, 5D23.17 is used. Format I13 is used for
integers in both cases.
For machines with long word only, 60 bits or more per word, the single
precision format can be switched to 5E23.17 for numeric accuracy by setting
P4 to 2.
3. The 10 Ti parameters (T1, T2, T3,..., T10) are used only for table data
blocks. They are used only when a formatted output file is requested
(P4=1), and you want to override the automatic format generation of the
OUTPUT5 module. (Default - all Ti are zeros)
The following rules are used to create user-directed output format:
a. 9 digits must be specified on a Ti parameter. Zero fill if necessary.
b. The digits are continued among the Ti parameters; therefore up to 90 digits
are allowed. The digits are arranged from left to right. First digit
specifies the format of the first data word. Second, third, fourth, etc.,
specify the second, third, fourth data words, etc. (See exception below
using digits 5 through 9)
c. The values of digits and their meanings are:
0, format not specified; whatever format OUTPUT5 generated will be used,
1, specifies integer format,
2, specifies single precision real format,
3, specifies BCD format,
4, specifies double precision real format, and
5-9, specify multiple format of the same type indicated by next digit,
which must be 0 through 4. For example, 061352000 is same as
0111111322222000
Methods
The methods used to transfer data from NASTRAN GINO data blocks to your output
tape (or file) depend on whether
a. the data blocks are matrix or table,
b. formatted or unformatted output tape is requested, and
c. data contains single precision real numbers or double precision numbers, or
both. (Table data block only)
The methods used must also guarantee continuity of mixed matrix and table
types of block data on your output tape. That is, the mixed data must be able
to be read back into the NASTRAN system, or processed by a user's program, by
a common switching mechanism.
OUTPUT5 treats any input data block as matrix if the 5th and the 6th words
(maximum non-zero matrix column length and matrix density) are both non-zero.
Otherwise, the data block is table. This method is, however, not perfect. Most
table data blocks generated by LINK1, such as GEOM1, GEOM2, EPT, MPT, etc.
may have non-zero 5th and 6th trailer words.
UNFORMATTED TAPE
The data transfer from a GINO file to an unformatted tape is comparatively
simple. The difference in processing matrix data and table data lies in a
single key word of the length of each record.
MATRIX - A matrix header record that includes the original GINO trailer is
written to user tape first. Thus the total number of records (equal number of
columns) and the length of each record (equal number of rows) are known. Each
column of the matrix is unpacked and copied out to your tape, except that the
leading and trailing zeros are not copied out. The data is either single
precision or double precision real numbers. Each output record is also
preceded by three control words. The following FORTRAN code can read one such
column array (the ICOL matrix column):
READ (TAPE) ICOL,JB,JE,(ARRAY(J),JB,JE)
TABLE - A table header record, with the 5th and 6th trailer words set to
zeros, is also written out to indicate the following records are of table
type. Records from the input GINO data block are read and transferred to user
tape directly, except each output record is preceded by one additional word,
which tells the total length of this current record. The following FORTRAN
code can be used to read one such record:
READ (TAPE) LENGTH,(ARRAY(J),J=1,LENGTH)
FORMATTED TAPE
Most of the attributes of unformatted tape apply equally well to the formatted
tape, except tapes are written with FORTRAN formats.
MATRIX - All integers are written in I8 format, BCD in A4 format, single
precision real numbers in E13.6 (or E26.17 if P4 = 2), and double precision
numbers in D26.17. Only the matrix header record can have all mixed data
types; the matrix column records contain only real numbers. The following
FORTRAN code reads the header record and/or a matrix column:
READ (TAPE,10) I,J,K,(A(L),L=J,K)
10 FORMAT (3I8,/,(10E13.6 )) (for single precision data), or
10 FORMAT (3I8,/,( 5D26.17)) (for double precision data), or
10 FORMAT (3I8,/,( 5E26.17)) (P4 = 2)
TABLE - All integers are written in ("I",I9) format, BCD in ("/",A4) format,
single precision real numbers in ("R",E14.7) format, and double precision
numbers in ("D",E14.7). Notice that 5 bytes are used for BCD, 10 bytes for
integer, and 15 bytes for real numbers, single or double precision. NASTRAN
table data blocks often contain integers, BCD, and single and double precision
real numbers in a mixed fashion. Each table record may have a different table
length. To write formatted NASTRAN tables and to read them back later present
a real challenge in FORTRAN programming. The OUTPUT5 module calls subroutine
TABLE5 to process table data, and the INPUTT5 module calls subroutine TABLEV
to read them back.
TABLE5 generates dynamically a unit of format - ("I",I9), ("/",A4), etc. - to
match each data type - integer, BCD, etc. When the synthesized format reaches
130 characters (or bytes), a line of data is written out. A table therefore
may require multiple lines (each line physically is a record). In addition,
the first word of the first line contains the total length of this table. The
following FORTRAN code can be used to read back a table from your tape into
5-character ARRAY:
CHARACTER*5 ARRAY(500)
READ (TAPE,20) LENGTH,(ARRAY(J),J=1,LENGTH)
20 FORMAT (I10,24A5,/,(26A5))
The first byte of each 5-character ARRAY (which is I, /, R, or D) can be used
to convert the 5-, 10-, or 15-character data back to BCD, integer, or real
numbers (single or double precision). For more details, see INPUTT5 module and
INPTT5 FORTRAN source subroutine.
TABLE5 calls subroutine NUMTYP to determine the data type, then issue the
corresponding format for output. NUMTYP, however, is not one hundred percent
foolproof. One in five or ten thousand times, NUMTYP may err in determining
exactly the data type. Also, when TABLE5 passes a computer word to NUMTYP with
no other information, NUMTYP cannot tell if it is part of a double precision
word, or if it is a single precision word. (In this case, single precision
word is assumed.) Finally, NUMTYP cannot distinguish between integer zero and
real number zero. (A period may be important in the output format). TABLE5
therefore may generate the wrong format due to NUMTYP's internal limitations.
In case that TABLE5 does produce erroneous format, you can override the
automatic format generation by the Ti parameters which supply OUTPUT5 the
exact format to use, in a condensed, coded form. 90 (or more if 5, 6, 7, 8, or
9 are used in the Ti specification) unit formats can be specified.
The following example illustrates the use of the Ti parameter.
Data on table:
3 4 3.4 5.0E-3 TESTING .6D+7 9 G 3.2 8 0. 0 4
12 13 14 15 28 61 88 14 44 .7D+7
Ti specification:
T1=112233413, T2=212516140 or
T1=604000025, T2=060400000 (7th and 24th words are d.p.
and 12th word is real)
NOTE 2 BCD words in "TESTING",
all others are 1 computer word per data entry.
T2, the last Ti used here, must fill up with zeros to make up
a 9-digit word.
When viewed with a system editor, the above example looks like this (first
line):
37I 3I 4R 5.0000000E-3/TEST/ING D 6.0000000D+07 etc.
++---------+++++++++--------------++++++++++---------------
1st 2nd 3rd 4th 5th data etc.
The first 37 indicates there are 37 5-byte words in this record. the "++----"
line and the "1st,2nd..." line are added here for video purposes.
Since the formatted data line may not end exactly at 130 bytes, one or two
fillers of the form "X" and four blanks may appear at the end of an output
line.
The matrix data blocks are handled by the main routine OUTPT5. OUTPT5 calls
TABLE5 only when the former encounters a table data block input.
Examples
$ Copy KJI, KGG, and CASECC to INP2 (unit 16), sequential formatted tape
OUTPUT5 KJI,KGG,CASECC,,//-1/16/*MYTAPE*/1 $
$ Recover the files from INP2 (unit 16) and make them NASTRAN GINO files
INPUTT5 /OKJI,OKGG,OCASECC,,/-1/16/*MYTAPE*/1 $
Remarks
1. Formatted tape (P4 = 1 or 2) takes a longer time and more space to write
than the unformatted tape. Unless the tape is intended to be used later by
a different computer, unformatted tape should be selected (P4=0).
2. The OUTPUT5 "records" are written to tape "identically" with both formatted
and unformatted FORTRAN write commands. The matrix header and the table
header can be read "identically" without prior knowledge of what type of
data, matrix or table, is coming up next.
3. All matrix records are written to tape in a standard way, except the first
matrix header record.
All table records are written to tape in a standard way, including table
header record and the last ending record.
4. The first tape header record is composed of 9 words as shown below:
Ŀ
RECORD WORD CONTENTS P4=0 P4=1
Ĵ
0 1,2 Tapeid (=P2) 2*BCD 2A4
3,4 Machine (CDC,UNIVAC,IBM,VAX) 2*BCD 2A4
5-7 Date 3*INT 3I8
8 System BUFFER SIZE INT I8
9 P4 used in creating tape (0,1) INT I8
5. This remark and the next one deal only with matrix data blocks.
Three types of data records follow the header record, or the EOF record of
a previous data block. They are:
a. Matrix header record
b. Matrix column data record
c. EOF record
These records are written to tape in a standard procedure. Three control
words are written out first, followed by the actual data. Binary FORTRAN
write is used in unformatted tape (P4=0), and each logical record holds a
complete set of data. The following FORTRAN statement is used to write the
entire data record:
WRITE (TAPE) I,J,K,(A(L),L=J,K)
For formatted tape, multiple logical records are actually written for each
complete set of data. The following FORTRAN statements are used to write
the entire data record:
WRITE (TAPE,30) I,J,K,(A(L),L=J,K)
30 FORMAT (3I8,/,(10E13.6)) (for single precision data), or
30 FORMAT (3I8,/,(5D26.17)) (for double precision data), or
30 FORMAT (3I8,/,(5E26.17)) (P4 = 2)
In the above WRITE statements, the value of I is used to indicate the type
of record just read.
Ŀ
VALUE OF I TYPE OF RECORD
Ĵ
0 Matrix header record
+n Nth matrix column data
-1 End-of-matrix
The column data is written to tape from the first non-zero row position (J)
to the last non-zero row position (K). The following table describes the
contents of the data records written to tape by the OUTPUT5 module.
Ŀ
RECORD+ WORD CONTENTS P4=0 P4=1
Ĵ
1 Matrix header record -
1 0 INT I8
2,3 1,1 2*INT 2I8
4 0.0 F.P. E13.6 or
D26.17
5-10 Matrix trailer 6*INT 6I8
(Col,Row,Form,Type,Max,Density)
11,12 DMAP Name of DB1 2*BCD 2A4
2 1 1 (First matrix column) INT I8
2 Row pos. of first non-zero elem. INT I8
3 Row pos. of last non-zero elem. INT I8
4-W First banded column data 6*INT (**)
(W=Word3-Word2)
3 1 2 (Second matrix column) INT I8
2 Row pos. of first non-zero elem. INT I8
3 Row pos. of last non-zero elem. INT I8
4-W Second banded column data 6*INT (**)
4 1 3 (Third matrix column) INT I8
2 Row pos. of first non-zero elem. INT I8
3 Row pos. of last non-zero elem. INT I8
4-W Third banded column data 6*INT (**)
: : :
L 1 L-1 (last matrix column) INT I8
2 Row pos. of first non-zero elem. INT I8
3 Row pos. of last non-zero elem. INT I8
4-W Last banded column data 6*INT (**)
L+1 1 -1 INT I8
2,3 1,1 2*INT 2I8
4 0.0 F.P. D26.17
(Repeat records 1 through L+1 for next matrix data block.)
Where (**) is (10E13.6), (5D26.17), or (5E26.17 for long word machines).
(+ RECORD number does not correspond one to one to the actual
physical record number.)
6. A record of (n,1,1,0.0) is written out for a null Nth column.
7. This remark deals only with table data blocks. Three types of data record
follow the header record, or an EOF record of previous data block. They
are:
a. Table header record
b. Record(s) of a table (a table data block can have more than one table
record)
c. EOF record.
The table header record has a general structure as in the standard
procedure for the matrix records, except that the 5th and 6th words of the
matrix trailer section are zeros.
The table record was discussed in great detail in the METHOD section for
both formatted and unformatted output tape. A table record is created for
each table in the input data block, and no skipping forward or backward is
allowed on the input file.
If double precision data are encountered in a table record, the double
precision data will be truncated to single precision, but the format of
("D",E14.7) will be used. (INPUTT5 will re-generate the data back to their
double precision status.)
An End-Of-File record in the form of "-1 1 1 0.0D+0" ends the table record
output.
8. Since the formatted tape (P4 = 1 or 2) is intended to be used in different
computers, the OUTPUT5 module appends no system control word(s) to the
FORTRAN written formatted records. The output tape must be unlabeled, fixed
block size with record size of 132 characters, and ANSI unpacked character
data set. The specification of the tape is either internally specified
(UNIVAC) by a FORTRAN open statement, or uses system default tape
specification (IBM and VAX). The CDC user must specify the output tape
externally by the appropriate FILE, LABEL, or REQUEST cards:
For example:
LABEL,TAPE,NT,D=1200,CV=AS,F=S,LB=KU,PO=W.
FILE,TAPE,MRL=132,MBL=132,RT=F,BT=C.
9. Since open core is used in data processing, the OUTPUT5 module is capable
of handling all kinds and all sizes of input data blocks.
=PAGE=
PARAM - Parameter Processor
Purpose
To perform specified operations on integer DMAP parameters.
DMAP Calling Sequence
PARAM // C,N,op / V,N,OUT / V,N,IN1 / V,N,IN2 $
Input Data Blocks
None.
Output Data Blocks
None.
Parameters
op a BCD operation code from the table below (Input, no default). op
is usually specified as a "C,N" parameter.
OUT the name of the parameter which is being generated by PARAM
(Output-Integer, default = 1).
IN1 the name of a parameter whose value is used to compute OUT
according to the table below (Input-Integer, default = 1).
IN2 the name of a parameter whose value is used to compute OUT
according to the table below (Input-Integer, default = 1).
Remarks
1. The tables below give the results for OUT as a function of op, IN1, and
IN2.
Ŀ
Param Arithmetic Operations
Ĵ
op ADD SUB MPY DIV NOT
Ĵ
OUT IN1+IN2 IN1-IN2 IN1xIN2 IN1/IN2 -IN1
Ŀ
Param Logical Operations
Ĵ
op AND OR IMPL
Ĵ
IN1 <0 <0 >=0>=0<0 <0 >=0>=0<0 <0 >=0>=0
Ĵ
IN2 <0 >=0<0 >=0<0 >=0<0 >=0<0 >=0<0 >=0
Ĵ
OUT -1 +1 +1 +1 -1 -1 -1 +1 -1 +1 -1 -1
Ŀ
Param Arithmetic Relational Operations
Ĵ
op EQ GE GT LE LT NE
Ĵ
IN1-IN2<0 =0 >0<0 =0 >0<0 =0 >0<0 =0 >0<0 =0 >0<0 =0 >0
ĴĴĴ
OUT +1 -1 +1+1 -1 -1+1 +1 -1-1 -1 +1-1 +1 +1-1 +1 -1
Ŀ
Param Special Operations
Ĵ
op OUT
Ĵ
NOP OUT (unchanged)
KLOCK Current CPU time in integer seconds from the start of the job.
TMTOGO Remaining CPU time in integer seconds based on the TIME card.
PREC Returns the currently requested precision; single precision (1)
or double precision (2).
DIAG Turn on DIAGs IN1 through IN2.
IN1 >= IN2 will turn on DIAG IN1
IN1 < IN2 will turn on DIAG IN1 through DIAG IN2
DIAGOFF Turn off DIAGs IN1 through IN2 as used for DIAG.
SSST Turns DIAG OUT on if OUT > 0.
Turns DIAG |OUT| off if OUT <= 0.
SSSR Saves DIAG IN1 in OUT if IN1 >= 0.
Restores DIAG |IN1| to OUT if IN1 < 0.
STSR Saves SYSTEM(IN1) in OUT if IN1 >= 0.
Restores SYSTEM(IN1) to OUT if IN1 < 0.
(SYSTEM(IN1) is the IN1-th word in /SYSTEM/ common block.)
SYSR Saves SYSTEM(IN1) in OUT.
SYST Sets the value of both SYSTEM(IN1) and OUT to IN2.
2. PARAM does its own SAVE; therefore, a SAVE is not needed following the
module.
Examples
1. To change the sense of parameter NOXYZ (which may be useful for the COND or
EQUIV instructions):
PARAM // C,N,NOT / V,N,XYZ / V,N,NOXYZ $ or
PARAM // *NOT* / XYZ / NOXYZ $
Alternatively, XYZ could have been set in the following way:
PARAM // C,N,MPY / V,N,XYZ / V,N,NOXYZ / C,N,-1 $ or
PARAM // *MPY* / XYZ / NOXYZ / -1 $
2. PARAM // C,N,IMPL / V,N,ABC / V,N,DEF / V,N,GHI $
3. To set the value of parameter P1 to 5 and save it for subsequent use:
PARAM // C,N,NOP / V,N,P1=5 $ or
PARAM // *NOP* / P1=5 $
4. To set parameter ABC to +1:
PARAM // C,N,EQ / V,N,ABC / C,N,2 / C,N,-3 $ or
PARAM // *EQ* / ABC / 2 / -3 $
5. To change the maximum number of lines of printed output:
PARAM // C,N,SYST / Y,N,DUM / C,N,14 / C,N,150000 $ or
PARAM // *SYST* // 14 / 150000 $
The 14th word in /SYSTEM/ common block is MXLINS, whose default value is
20000, that is, SYSTEM(14) = 20000. The equivalent operations to the PARAM
examples shown above are to code SYSTEM(14) = 150000 or MXLINS = 150000 on
the NASTRAN card or to use the Case Control card MAXLINES = 150000.
6. To turn on DIAGs 1 through 6:
PARAM // C,N,DIAG / C,N, / C,N,1 / C,N,6 $ or
PARAM // *DIAG* // 1 / 6 $
This can also be done with the Executive Control card DIAG 1,2,3,4,5,6.
=PAGE=
PARAMD - Parameter Processor, Double Precision
Purpose
To perform specified arithmetic, logical, and conversion operations on double
precision real or double precision complex parameters.
DMAP Calling Sequence
PARAMD // C,N,OP / V,N,OUTD / V,N,IND1 / V,N,IND2 / V,N,OUTC /
V,N,INC1 / V,N,INC2 / V,N,FLAG $
Input Data Blocks
None.
Output Data Blocks
None.
Parameters
OP Input-BCD operation code from the table below, no default.
OUTD Output-Double precision, default = 0.0D+0.
IND1 Input-Double precision, default = 0.0D+0.
IND2 Input-Double precision, default = 0.0D+0.
OUTC Output-Double precision-complex, default = (0.0D+0, 0.0D+0).
INC1 Input-Double precision-complex, default = (0.0D+0, 0.0D+0).
INC2 Input-Double precision-complex, default = (0.0D+0, 0.0D+0).
FLAG Output-Integer, default = 0 (see Remark 6).
The values of parameters are dependent upon OP as shown in the table described
in PARAMR module. In addition, a new OP operation code is added:
OP OUTPUTS
ERR If FLAG is set to 0 (or by default), NASTRAN system NOGO flag (the
3rd word of /SYSTEM/) is set to integer zero unconditionally. If
FLAG is set to non-zero by user, NASTRAN job will terminate if any
preceding PARAMD (or PARAMR) has non-fatal error(s).
Remarks
1. All parameters, except OP, must be "V" type. Default parameter values will
be used in case of error. Error in input parameter(s) would cause output
parameter(s) to pick up the original default value(s).
2. All input errors are non-fatal, with error messages printed.
3. PARAMD does its own SAVE; therefore, a SAVE is not needed following the
module.
4. For OP = DIV or OP = DIVC, the output is zero if the denominator is zero,
and FLAG is set to +1.
5. For OP = SIN, OP = COS or OP = TAN, the input must be expressed in radians.
6. The default value of FLAG is zero as stated in the Programmer's Manual. All
NASTRAN releases prior to 1989 actually used a +1 instead of 0. The case
where FLAG = -1 was not affected.
7. Remarks 1, 2, and 6 also apply to the PARAMR module. The new ERR operation
code is also available in PARAMR.
Examples
PARAMR //*ERR* $
PARAMR //*ADD* /V,N,R1SP4 /V,N,R1 /V,N,SP4 $
PARAMR //*SUB* /V,N,R1SP4 /V,N,R1 /V,N,SP4 $
PARAMR //*ABS* /V,N,ABSR1 /V,N,R1 $
PARAMR //*SQRT* /V,N,SQTR1 /V,N,ABSR1 $
PARAMR //*MPYC* ////V,N,CMPY /V,N,SCPLX /V,N,CS1 $
PARAMR //*COMPLEX*//V,N,R1 /V,N,SP4 /V,N,OUTC $
PARAMR //*LE* //V,N,R1 /V,N,SP4////V,N,LEFLG $
PARAMD //*MPY* /V,N,RDPDP /V,N,RDPX /V,N,RDPX $
PARAMD //*DIV* /V,N,DP4X /V,N,DP4 /V,N,RDPX $
PARAMD //*EXP* /V,N,EXPX /V,N,DP4 /V,N,RDP $
PARAMD //*CONJ* ////V,N,CONJX /V,N,CDP4 $
PARAMD //*EQ* //V,N,EXPX /V,N,DP4////V,N,EQFLG $
PARAMD //*DIVC* ////V,N,DIVCX /C,Y,DCPLX4/V,N,CDP4 $
PARAMD //*ERR* //// // /C,N,1 $
PRTPARM // 0 $
=PAGE=
PARAML - Abstract Parameters From a List
Purpose
To convert an element from a GINO matrix or table data block to a legitimate
NASTRAN parameter, or parameters.
DMAP Calling Sequence
PARAML DB // C,N,OP / V,N,P1 / V,N,P2 / V,N,RSP/ V,N,INT/ V,N,RDP/
V,N,BCD/ V,N,CSX/ V,N,CDX $
Input Data Blocks
DB Any GINO data block file (table or matrix, single precision or
double precision, real or complex).
Output Data Blocks
None.
Parameters
OP One of the following key words, BCD input, no default. "MATRIX",
"NULL", "PRESENCE", "TRAILER", "TABLE1", "TABLE2", or "TABLE4".
P1,P2 Input-Integer, see Remark 4 below, default = 1,1.
P2 Output-Integer (only in OP=TRAILER).
RSP Output-Real single precision, default = 0.0.
INT Output-Integer, default = 0.
RDP Output-Real double precision, default = 0.D+0.
BCD Output, two BCD words in 2A4 format, default = (VOID)
CSX Output, single precision complex number, default = (0.,0.).
CDX Output, double precision complex, default = (0.D+0,0.D+0).
Remarks
1. RSP, INT, RDP, BCD, CSX and CDX will be set by the module whenever they are
present and of the "V" type parameters. The parameters will be printed out
in their respective formats according to their precision types. Warning
message will be printed if type mismatch occurs or end-of-record is
encountered.
2. After execution, the parameter value will be delivered to NASTRAN's
executive VPS table as a numerical value in the form specified by any one
or some of the parameters RSP, RDP, CSX, CDX, INT, or BCD (4 BCD characters
per word, the rest of the word blank filled).
3. PARAML does its own SAVE; therefore, a SAVE is not needed following the
module. Invalid parameter due to type mismatch or EOR encountered, is not
saved and the default value remains.
4. P1 and P2 control the location in the data block of the element to be
selected. The meaning of P1 and P2 depend on OP selection as explained in
Remarks 5 through 9.
5. If OP = TABLEi (where i=1, 2, or 4), P1 is the record number and P2 is the
word position of the target element in DB. Word position is based on
computer word count (1 word per integer or single precision real, 2 words
per double precision real or single precision complex, and 4 words per
double precision complex). The table data from record P1 and word P2 (or
word P2 plus more) will be delivered to the VPS table as a numerical value
in the form specified.
If OP = TABLE1, one data word from P2 word position, record P1, will be
used to form the output parameter.
If OP = TABLE2, two data words from P2 and P2+1, record P1, will be used.
If OP = TABLE4, four words from P2, P2+1, P2+2, and P2+3, record P1, will
be used.
Since table data block DB can contain mixed types of data, you must know
ahead of time what the original data type is, and select TABLE1, TABLE2, or
TABLE4 accordingly.
For example, the data in P2, p2+1, P2+2, and P2+3 are a, b, c, d, and the
output parameter request is double precision complex CDX,
TABLE1 gives CDX = (a.D+0, 0.D+0)
TABLE2 gives CDX = (a.D+0, b.D+0)
TABLE4 gives CDX = (e.D+0, f.D+0)
where e is a double precision real number formed by the union of a and b,
and f, by the union of c and d.
6. If OP = MATRIX, P1 is the row number and P2 is the column number of the
matrix in [DB] to be read. The matrix element of (ROW,COL) will be
delivered to VPS as a numerical value in the form specified by one or more
of the parameters RSP, RDP, CSX, or CDX. Requests for CSX or CDX from a
real matrix will assign the value of (ROW,COL) to the real part and zero to
the imaginary part. The requested output parameter(s) are set to zero(s)
and a warning message is issued if:
(1) P1 and/or P2 exceed the matrix order,
(2) requests for RSP and RDP from a complex matrix,
(3) requests for INT and BCD from [DB], and the invalid output parameter(s)
are not saved.
(Notice that row first and column second is consistent with SCALAR module
parameter input, and also with common practice in matrix element
designation; (row,column)).
7. If OP = NULL and if [DB] is a matrix, INT is set to -1 if the sixth word of
the matrix trailer, the matrix density, is zero.
8. If OP = PRESENCE, INT will be -1 if input data block is purged.
9. If OP = TRAILER, P2 is output as the value of ith word of the matrix
trailer where i is set by P1 in accordance with the following table.
Ŀ
P1 TERM OF MATRIX TRAILER
Ĵ
1 Numbers of columns
2 Number of rows
3 Form of matrix
4 Precision of matrix
5 Maximum number of nonzero terms in any column of the matrix
6 Matrix density
10. One or more of the output parameters can be requested simultaneously.
11. After execution, a user information message prints out the parameter
value in the format prescribed by you. The output parameters can also be
printed by the PRTPRM module which carries normally more digits. (PRTPRM
may actually print integer zero in a real number format, 0.0)
12. See SCALAR module for similar capability.
Examples
Obtain the value in column 1, row 4 of a real matrix, and record 2 word 5 of a
table.
PARAML KGG //*MATRIX*/C,N,4/C,N,1 /V,N,STERM $
PARAML KGG //*MATRIX*/C,N,4/C,N,1 ///V,N,DTERM $
PARAML KGG //*MATRIX*/C,N,4/C,N,1 /////V,N,CSTERM $
PARAML KGG //*MATRIX*/C,N,4/C,N,1//////V,N,CDTERM $
PARAML KGG //*MATRIX*/C,N,4/C,N,1/V,N,TERM1//V,N,TERM2
//V,N,TERM3/V,N,TERM4 $
PARAML CASECC //*TABLE1*/C,N,2/C,N,2 //V,N,ATERM $
PARAML CASECC //*TABLE2*/C,N,2/C,N,5////V,N,BTERM $
The above output parameters yield the following results:
STERM ,TERM1 = KGG(4,1), in single precision,
DTERM ,TERM2 = KGG(4,1), in double precision,
CSTERM,TERM3 = KGG(4,1), in single precision complex expression,
CDTERM,TERM4 = KGG(4,1), in double precision complex expression
ATERM = 2nd word of the 2nd record of CASECC, integer, and
BTERM = 5th and 6th words of the 2nd record of CASECC, 2 BCD words.
=PAGE=
PARAMR - Parameter Processor, Real
Purpose
To perform specified arithmetic, logical, and conversion operations on real or
complex parameters.
DMAP Calling Sequence
PARAMR // C,N,OP / V,N,OUTR / V,N,INR1 / V,N,INR2
V,N,OUTC / V,N,INC1 / V,N,INC2
V,N,FLAG $
Input Data Blocks
None.
Output Data Blocks
None.
Parameters
OP Input-BCD operation code from the table below, no default.
OUTR Output-Real, default = 0.0.
INR1 Input-Real, default = 0.0.
INR2 Input-Real, default = 0.0.
OUTC Output-Complex, default = (0.0,0.0).
INC1 Input-Complex, default = (0.0,0.0).
INC2 Input-Complex, default = (0.0,0.0).
FLAG Output-Integer, default = 0.
The values of the parameters are dependent upon OP as shown in the following
table:
OP OUTPUTS
ADD OUTR = INR1 + INR2
SUB OUTR = INR1 - INR2
MPY OUTR = INR1 * INR2
DIV OUTR = INR1 / INR2
NOP RETURN
SQRT OUTR = square root of INR1
SIN OUTR = SIN(INR1)
COS OUTR = COS(INR1)
ABS OUTR = | INR1 |
EXP OUTR = exp (INR1)
TAN OUTR = TAN(INR1)
NORM OUTR = || OUTC ||
POWER OUTR = INR1 ** INR2
ADDC OUTC = INC1 + INC2
SUBC OUTC = INC1 - INC2
MPYC OUTC = INC1 * INC2
DIVC OUTC = INC1 / INC2
CSQRT OUTC = square root of INC1
COMPLEX OUTC = (INRT,INR2)
CONJ OUTC = INC1
REAL INR1 = Re (OUTC)
INR2 = Im (OUTC)
EQ FLAG = -1 if INR1 = INR2
GT FLAG = -1 if INR1 > INR2
LT FLAG = -1 if INR1 < INR2
LE FLAG = -1 if INR1 <= INR2
GE FLAG = -1 if INR1 >= INR2
NE FLAG = -1 if INR1 not equal INR2
LOG OUTR = LOG (INR1)
10
LN OUTR = LOG (INR1)
e
FIX FLAG = FIX (OUTR)
FLOAT OUTR = FLOAT(FLAG)
Remarks
1. Any output parameter must be "V" type if the parameter is used by "OP" as
output.
2. For OP = DIV or OP = DIVC, the output is zero if the denominator is zero.
3. PARAMR does its own SAVE; therefore, a SAVE is not needed following the
module.
4. For OP = SIN, OP = COS, or OP = TAN, the input must be expressed in
radians.
=PAGE=
PRTPARM - Parameter and DMAP Message Printer
Purpose
A. Prints parameter values.
B. Prints DMAP messages.
DMAP Calling Sequence
PRTPARM // C,N,a / C,N,b / C,N,c $
Input Data Blocks
None.
Output Data Blocks
None.
Parameters
a Integer value (no default value).
b BCD value (default value = XXXXXXXX).
c Integer value (default value = 0).
Method
A. As a parameter printer, use a = 0. There are two options:
1. b = parameter name will cause the printout of the value of that
parameter.
Example: PRTPARM // C,N,0 / C,N,LUSET $
2. b = XXXXXXXX will cause the printout of the values of all parameters in
the current variable parameter table. Since this is the default value,
it need not be specified.
Example: PRTPARM // C,N,0 $
B. As a DMAP message printer, use a not equal to 0. There are two options:
1. a > 0 causes the printout of the jth message of category b where j = |a|
and b is one of the values shown below. (The number of messages
available in each category is also given.)
Example: PRTPARM // C,N,1 / C,N,DMAP $
2. a < 0 causes the same action as a 0 with the additional action of
program termination. Thus, PRTPARM may be used as a fatal message
printer.
Example: PRTPARM // C,N,-2 / C,N,PLA $
Remarks
1. b is always a value.
2. Meaningless values of a and b will result in diagnostic messages from
PRTPARM.
3. Following is a table of b category values.
Ŀ
Number of
DISPLACEMENT Rigid Formats Value of b Messages
Ĵ
1 Static Analysis STATICS 5
2 Static Analysis with Inertia Relief INERTIA 6
3 Normal Mode Analysis MODES 4
4 Static Analysis with Differential Stiffness DIFFSTIF 5
5 Buckling Analysis BUCKLING 6
6 Piecewise Linear Static Analysis PLA 5
7 Direct Complex Eigenvalue Analysis DIRCEAD 3
8 Direct Frequency and Random Response DIRFRRD 4
9 Direct Transient Response DIRTRD 3
10 Modal Complex Eigenvalue Analysis MDLCEAD 5
11 Modal Frequency and Random Response MDLFRRD 7
12 Modal Transient Response MDLTRD 6
13 Normal Modes Analysis with Differential NMDSTIF 6
Stiffness
14 Static Analysis with Cyclic Symmetry CYCSTAT 6
15 Normal Modes Analysis with Cyclic Symmetry CYCMODES 6
16 Static Aerothermoelastic Design/Analysis ASTAT 5
of Axial-Flow Compressors
Ĵ
HEAT Rigid Formats
Ĵ
1 Static Heat Transfer HSTAT 4
3 Nonlinear Static Heat Transfer HNLIN 3
9 Transient Heat Transfer HTRD 2
Ĵ
AERO Rigid Formats
Ĵ
9 Blade Cyclic Modal Flutter Analysis BLADE 7
10 Modal Flutter Analysis FLUTTER 5
11 Modal Aeroelastic Response AERORESP 4
Ĵ
Direct Matrix Abstraction Program
Ĵ
DMAP DMAP See Remark 5
4. For details on error messages for the ith Displacement Rigid Format, see
Section 3.(i+1). The Heat and Aero Rigid Formats follow these.
5. The message number, a, may be any integer for DMAP messages.
6. The third parameter is not used.
=PAGE=
SCALAR - Convert Matrix Element to Parameter
Purpose
To extract a specified element from a matrix for use as a parameter.
DMAP Calling Sequence
SCALAR DB // C,N,ROW/C,N,COL/V,N,RSP/V,N,RDP/V,N,CSX/V,N,CDX $
Input Data Blocks
DB May be any type of matrix (single precision or double precision,
real or complex).
Output Data Blocks
None.
Parameters
ROW Row number of element to be extracted from [DB]. Input-Integer,
default = 1.
COL Column identification of element. Input-Integer, default = 1.
RSP Output, value of element (ROW,COL) in single precision real,
default = 0.0.
RDP Output, value of element (ROW,COL) in double precision real,
default = 0.D+0.
CSX Output, value of element (ROW,COL) in single precision complex,
default = (0.,0.).
CDX Output, value of element (ROW,COL) in single precision complex,
default = (0.D+0,0.D+0).
Remarks
1. RSP, RDP, CSX, and CDX will be set by the module whenever they are present
and of the "V" type parameters. The parameters will be printed out in their
respective formats according to their precision types. Warning message will
be printed if type mismatch occurs or element specified is out of matrix
range.
2. After execution, the parameter value will be delivered to NASTRAN's
executive VPS table as a numerical value in the form specified by any of
the parameters RSP, RDP, CSX, or CDX. The output parameters can also be
printed by the PRTPRM module, which carries normally more digits.
3. SCALAR does its own SAVE; therefore, a SAVE is not needed following the
module. There is no save for any invalid parameter, and the default value
remains unchanged.
4. If [DB] is purged, all parameter default values remain unchanged.
5. All of the output parameters can be printed out by PRTPRM module.
6. See PARAML for a similar capability.
Examples
Obtain the value of the element in column 8 and row 2 of the matrix KLL.
SCALAR KLL//C,N,2/C,N,8 /V,N,S1 $
SCALAR KLL//C,N,2/C,N,8 //V,N,D1/V,N,S2/V,N,D2 $
The output parameters give the following results:
S1 = KLL(2,8), in single precision real,
D1 = KLL(2,8), in double precision real,
S2 = KLL(2,8), in single precision complex expression, and
D2 = KLL(2,8), in double precision complex expression.
=PAGE=
SEEMAT - Pictorial Matrix Output
Purpose
To display nonzero elements of a matrix on printer or plotter output
positioned pictorially by row and column within the outlines of the matrix.
DMAP Calling Sequence
SEEMAT M1,M2,M3,M4,M5 // C,N,OPTION/V,N,PFILE/V,N,PACK/
C,N,MODEL/C,N,TYPING/C,N,PAPERX/C,N,PAPERY $
Input Data Blocks
M1,M2,M3,M4,M5 Matrix data blocks, any of which may be purged.
Output Data Blocks
None.
Parameters
OPTION Input BCD value, default = PRINT. This parameter specifies the
output option. PRINT implies the use of the system output file.
PLOT implies the use of the NASTRAN General Purpose Plotter
(NASTPLT) (see Section 4.1). (Any value other than PLOT implies
PRINT.)
NOTE: The following parameters are used only if OPTION = PLOT.
PFILE Input/Output-Integer, default = 0. PFILE represents the frame (or
sheet) number generated by the plotter. The value of this
parameter is incremented by one (1) for each frame (or sheet)
plotted by SEEMAT.
PACK Input-Integer, default = 100. Reserved for a future modification
that will allow the representation of a nonzero block of a matrix
with a single character.
MODEL Input-BCD value, default = M. This parameter specifies the plotter
type or model. Permissible values are M for microfilm plotters, T for
table plotters, and D for drum plotters. The default value of M
implies a microfilm plotter.
TYPING Input-Integer, default = 1. This parameter specifies the typing
capability of the plotter. A value of 1 specifies a plotter
without typing capability. (In this case, all characters in the
plot will be drawn.) A value of 0 specifies a plotter with typing
capability.
PAPERX Input-Real, default = 0.0. This parameter specifies the horizontal
size (or X-dimension) in inches of the plot frame. The use of the
default value of 0.0 actually causes the program to employ a
horizontal size of 11.0 inches for table plotters and 30.0 inches
for drum plotters. (PAPERX cannot be greater than 30.0 inches for
table plotters.) See Remark 5 regarding the frame size for
microfilm plotters.
PAPERY Input-Real, default = 0.0. This parameter specifies the vertical
size (or Y-dimension) in inches of the plot frame. The use of the
default value of 0.0 actually causes the program to employ a
vertical size of 8.5 inches for table plotters and 30.0 inches for
drum plotters. (PAPERY cannot be greater than 30.0 inches for
either table or drum plotters.) See Remark 5 regarding the frame
size for microfilm plotters.
Method
The matrix is partitioned into blocks which can be printed on a single sheet
of output paper or frame on the plotter selected. Only blocks containing
nonzero elements will be output. Row and column indices are indicated.
You are cautioned to make sure your line count limit is large enough. A
default of 20,000 lines is provided by NASTRAN. This may be changed by the use
of the MAXLINES card in the Case Control Deck (see Section 2.3). The transpose
of the matrix is output.
Remarks
1. If a plotter is used, the file PLT2 (either on tape or mass storage) must
be made available to NASTRAN.
2. If a plotter is used, the PFILE parameter updated by SEEMAT must be saved
either by using a SAVE instruction immediately after the SEEMAT instruction
or by using the automatic SAVE feature (/S,N,PFILE/) in the SEEMAT
instruction itself.
3. The nonzero elements are indicated by asterisks (*), except for diagonal
elements of square matrices, which are indicated by the letter D, and
elements in the last row or column, which are indicated by dollar signs
($).
4. The default plotter model is specified by omitting the last five
parameters.
5. The plot frame size for microfilm plotters is set at 10.23 inches x 10.23
inches and is not under user control.
Examples
1. Specify a table plotter with typing capability as follows:
SEEMAT M1,M2,M3,M4,M5 //*PLOT*/S,N,PFILE//*T*/0 $
2. Specify a drum plotter without typing capability as follows:
SEEMAT M1,M2,M3,M4,M5 //*PLOT*/S,N,PFILE//*D* $
3. Specify the default plotter (a microfilm plotter without typing capability)
as follows:
SEEMAT M1,M2,M3,M4,M5 //*PLOT*/S,N,PFILE $
4. Specify the printer rather than a plotter as follows:
SEEMAT M1,M2,M3,M4,M5 // $
5. For additional examples, see Section 5.8.8.
=PAGE=
SETVAL - Set Values
Purpose
Set integer DMAP parameter variable values equal to other integer DMAP
parameter variables or integer DMAP parameter constants.
DMAP Calling Sequence
SETVAL // V,N,X1 / V,N,A1 /
V,N,X2 / V,N,A2 /
V,N,X3 / V,H,A3 /
V,N,X4 / V,N,A4 /
V,N,X5 / V,N,A5 $
Input Data Blocks
None.
Output Data Blocks
None.
Parameters
X1, X2, X3, X4, X5 Output-Integers, variables (default values = -1, except
for X1, which has no default).
A1, A2, A3, A4, A5 Input-Integers, variables or constants (default values =
-1).
Method
This module sets X1 = A1, X2 = A2, X3 = A3, X4 = A4, and X5 = A5. Only two
parameters need be specified in the calling sequence (X1 and A1).
Remarks
1. SETVAL does its own SAVE; therefore, a SAVE is not needed following the
module.
2. See PARAM for an alternate method of defining parameter values.
3. As an example, the statement
SETVAL //X1/A1/X2/3 $
is equivalent to the statements:
PARAM //*ADD*/X1/A1/0 $
PARAM //*NOP*/X2 = 3 $
=PAGE=
SWITCH - Interchange Data Block Names
Purpose
To interchange two data block names.
DMAP Calling Sequence
SWITCH DB1,DB2 // PARAM $
Input Data Blocks
DB1 Any NASTRAN data block.
DB2 Any NASTRAN data block.
Output Data Blocks
None.
Parameters
PARAM If PARAM < 0, the switch will be performed - Input-Integer, default =
-1.
Method
If PARAM >= 0, a return is made; otherwise the names of the data blocks are
interchanged. All attributes of the data within the blocks remains constant;
only the names are changed.
Remarks
1. Neither input data block may be purged.
2. This option is of use in iterative DMAP operations.
=PAGE=
TABPCH - Table Punch
Purpose
To punch NASTRAN tables onto DTI cards in order to allow transfer of data from
one NASTRAN run to another, or to allow user postprocessing.
DMAP Calling Sequence
TABPCH TAB1,TAB2,TAB3,TAB4,TAB5 // C,N,A1 / C,N,A2 / C,N,A3 / C,N,A4 / C,N,A5 $
Input Data Blocks
TAB1, TAB2, TAB3, TAB4, TAB5 Any NASTRAN tables.
Output Data Blocks
None. All output is punched onto DTI cards.
Parameters
A1, A2, A3, A4, A5 Input-BCD; defaults are AA, AB, AC, AD, AE. These
parameters are used to form the first two characters (columns 74,
75) of the continuation field for
each table respectively.
Remarks
1. Any or all tables may be purged.
2. Integer and BCD characters will be punched onto single-field cards. Real
numbers will be punched onto double-field cards. Their formats are I8, 2A4,
E16.9.
3. Up to 99,999 cards may be punched per table.
4. Twice the entire record must fit in open core.
5. Tables with 1 word BCD values (ELSETS) cannot be punched correctly.
Examples
TABPCH EST,,,, // C,N,ES $ will punch the EST onto cards with a continuation
mnemonic of +ESbbbbi (where i is the sequence number).
=PAGE=
TABPRT - Formatted Table Printer
Purpose
To print selected table data blocks with format for ease of reading.
DMAP Calling Sequence
TABPRT TDB // C,N,KEY / C,N,OPT1 / C,N,OPT2 $
Input Data Blocks
TDB Table Data Block from list given under X.
Output Data Blocks
None.
Parameters
KEY Alphanumeric value, no default. Identifies the format to be used
in printing the table. The allowable list is given under X.
OPT1 Integer, default value = 0. If 0, no blank lines are written
between entries. If not equal to 0, one blank line will be written
between each pair of entries.
OPT2 Integer, default value = 0. Not used at present.
Output
The contents of the table are formatted and written on the system output file.
Remarks
1. The module returns in the event of any difficulty.
2. The TABPT module can be used to print the contents of any data block.
Examples
1. TABPRT CSTM // C,N,CSTM $
2. TABPRT GPL // C,N,GPL / C,N,1 $
Miscellaneous
Following is a list of data blocks recognized by TABPRT. (Rigid Format name is
used here. The actual DMAP name for the same or equivalent information is
acceptable.)
Data Block Key (Value)
BGPDT BGPDT
CSTM CSTM
EQDYN EQDYN
EQEXIN EQEXIN
GPCT GPCT
GPDT GPDT
GPL GPL
GPLD GPLD
GPTT GPTT
=PAGE=
TABPT - Table Printer
Purpose
To print table data blocks (may be used for matrix data blocks if desired).
DMAP Calling Sequence
TABPT TAB1,TAB2,TAB3,TAB4,TAB5 // $
Input Data Blocks
TAB1, TAB2, TAB3, TAB4, TAB5 Any NASTRAN data block.
NOTE: Any or all input data blocks can be purged.
Output Data Blocks
None.
Parameters
None.
Remarks
1. Each input data block is treated as a table and its contents are printed on
the system output file via a prescribed format. Each word of the table is
identified by the module as to type (Real, BCD, Integer) and an appropriate
format is used.
2. The trailer data items for the table are also printed.
3. Purged input data blocks are not printed.
Examples
TABPT GEOM1,,,, // $
TABPT GEOM1 ,GEOM2 ,GEOM3 ,GEOM4 ,GEOM5 // $
=PAGE=
TIMETEST - Timing Data for Unit Operations
Purpose
To produce timing data for specific NASTRAN unit operations.
DMAP Calling Sequence
TIMETEST /, / C,N,N / C,N,M / C,N,T / C,N,01 / C,N,02 $
Input Data Blocks
None.
Output Data Blocks
FILE1, FILE2 Reserved for future implementation
Parameters
N Outer loop index.
M Inner loop index.
T Data type to be processed.
01 TIMTST routine to be processed.
02 Powers-of-two table for TIMTST option selection.
See Section 4.140 of the NASTRAN Programmer's Manual for further description
of the parameters.
Examples
TIMETEST / , / C,N,100 / C,N,100 / C,N,1 / C,N,2 $
TIMETEST / , / C,N,10 / C,N,10 / C,N,3 / C,N,1 / C,N,127 $
=PAGE=
VEC - Create Partitioning Vector
Purpose
To create a partitioning vector for matrices using USET that may be used by
matrix operation modules MERGE and PARTN. This allows you to split up long
running modules such as SMP1.
DMAP Calling Sequence
A. For matrices generated in Rigid Formats 1-6 or prior to module GKAD (or
GKAM) in Rigid Formats 7 - 12:
VEC USET / V / C,N,SET / C,N,SET0 / C,N,SET1 / V,N,ID $
B. For matrices generated in Rigid Formats 7 - 12 after module GKAD (or GKAM):
VEC USETD / V / C,N,SET / C,N,SET0 / C,N,SET1 / V,N,ID $
Input Data Blocks
USET Displacement set definition (statics).
USETD Displacement set definition (dynamics).
HUSET Displacement set definition (heat transfer).
USETA Displacement set definition (aeroelastic).
NOTE: The set definition input data block may not be missing and must fit into
open core.
Output Data Blocks
V Partitioning vector.
NOTES
1. If all elements are in SET0 or SET1 then V will be purged.
2. V may not be purged prior to execution.
Parameters
SET Matrix set to be partitioned (Input-BCD, no default).
SET0 Upper partition of SET (Input-BCD, no default).
SET1 Lower partition of SET (Input-BCD, no default).
ID Identification of bit position (see table below) (Input-Integer,
default = 0).
NOTES
1. Legal parameter values are given in the table below.
2. See Section 1.4 for a description of set notation.
Parameter Value USET Matrix Bit Position
M Um 32
S Us (union of SG and SB) 31
0 Uo 30
R Ur 29
G Ug 28
N Un 27
F Uf 26
A Ua 25
L Ul 24
SG Us (specified on Grid card) 23
SB Us (specified on SPC card) 22
E Ue 21
P Up 20
NE Une (union of N and E) 19
FE Ufe (union of F and E) 18
D Ud 17
PS Ups 16
SA UsA 15
K Uk 14
PA UpA 13
Remarks
1. Parameters SET0 and SET1 must be a subset of the SET matrix parameter. A
degree of freedom may not be in both subsets.
2. If desired, one of SET0 or SET1, but not both, may be requested to be the
complement of the other one by giving it a value of COMP.
3. If SET = BITID, the second and third parameters are ignored and the IDth
bit position in USET (or USETD) is used. In this case, SET is assumed equal
to G (or P) and SET0 will correspond to the zeros in the IDth position and
SET1 will correspond to the non-zeros in the IDth position.
Examples
1. To partition [Kff] into a- and o- set based matrices, use
VEC USET / V / C,N,F / C,N,O / C,N,A $
PARTN KFF,V, / KOO,KAO,KOA,KAA $
Note that the same thing can be done in one step by
UPARTN USET,KFF / KOO,KAO,KOA,KAA / C,N,F / C,N,P / C,N,A $
2. Example 1 could be accomplished by
VEC USET / V / C,N,F / C,N,O / C,N,COMP $
or
VEC USET / V / C,N,F / C,N,COMP / C,N,A $
3. Example 1 could be accomplished by
VEC USET / V / C,N,BITID / C,N,X / C,N,X / C,N,25 $
=PAGE=
5.6 USER MODULES
Module Basic Function Page
DDR User Dummy Module 5.6-2
DUMMOD1 Dummy Module 1 5.6-3
DUMMOD2 Dummy Module 2 5.6-4
DUMMOD3 Dummy Module 3 5.6-5
DUMMOD4 Dummy Module 4 5.6-6
DUMMOD5 Dummy Module 5 5.6-7
MATGEN User Dummy Module 5.6-9
MODA User Dummy Module 5.6-10
MODB User Dummy Module 5.6-11
MODC User Dummy Module 5.6-12
OUTPUT Auxiliary Output File Processor 5.6-13
XYPRNPLT User Dummy Module 5.6-15
A number of modules have been placed in the NASTRAN system for which only
dummy code exists. These modules are available to you to create your own data
blocks by reading tapes or data cards, generate your own output on the
printer, punch, or plotter, or perform your own matrix computations. The
appropriate MPL (Module Properties List) information is presented for each
such user module in this section. All necessary interfaces with the Executive
System have been completed for these user modules. The procedures for
implementing a user module are described in Section 6.12 of the Programmer's
Manual.
=PAGE=
DDR - User Dummy Module
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
DDR A/X/C,N,ABC/C,N,DEF/C,N,GHI $
Input Data Blocks
As desired by author of module.
Output Data Blocks
As desired by author of module.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the constants in the calling sequence shown above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
DUMMOD1 - Dummy Module 1
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
DUMMOD1 I1,I2,I3,I4,I5,I6,I7,I8 /
O1,O2,O3,O4,O5,O6,O7,O8 /
C,N,-1 / V,Y,P2=-1 / V,N,P3=-1 / C,Y,P4=-1 /
C,Y,P5=-1.0 / C,N,-1.0 /
C,Y,P7=ABCDEFGH /
C,Y,P8=-1.0D0 /
C,Y,P9=(-1 0,-1.0) /
C,Y,P10=(-l.0D0,-1.0D0) $
Input Data Blocks
As desired by author of module.
Output Data Blocks
As desired by author of module.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the default values shown in the calling sequence above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
DUMMOD2 - Dummy Module 2
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
DUMMOD2 I1,I2,I3,I4,I5,I6,I7,I8 /
O1,O2,O3,O4,O5,O6,O7,O8 /
C,N,-1 / V,Y,P2=-1 / V,N,P3=-1 / C,Y,P4=-1 /
C,Y,P5=-1.0 / C,N,-1.0 /
C,Y,P7=ABCDEFGH /
C,Y,P8=-1.0D0 /
C,Y,P9=(-1 0,-1.0) /
C,Y,P10=(-1.0D0,-1.0D0) $
Input Data Blocks
As desired by author of module.
Output Data Blocks
As desired by author of module.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the default values shown in the calling sequence above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
DUMMOD3 - Dummy Module 3
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
DUMMOD3 I1,I2,I3,I4,I5,I6,I7,I8 /
O1,O2,O3,O4,O5,O6,O7,O8 /
C,N,-1 / V,Y,P2=-1 / V,N,P3=-1 / C,Y,P4=-1 /
C,Y,P5=-1.0 / C,N,-1.0 /
C,Y,P7=ABCDEFGH /
C,Y,P8=-1.0D0 /
C,Y,P9=(-1 0,-1.0) /
C,Y,P10=(-1.0D0,-1.0D0) $
Input Data Blocks
As desired by author of module.
Output Data Blocks
As desired by author of module.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the default values shown in the calling sequence above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
DUMMOD4 - Dummy Module 4
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
DUMMOD4 I1,I2,I3,I4,I5,I6,I7,I8 /
O1,O2,O3,O4,O5,O6,O7,O8 /
C,N,-1 / V,Y,P2=-1 / V,N,P3=-1 / C,Y,P4=-1 /
C,Y,P5=-1.0 / C,N,-1.0 /
C,Y,P7=ABCDEFGH /
C,Y,P8=-1.0D0 /
C,Y,P9=(-1 0,-1.0) /
C,Y,P10=(-1.0D0,-1.0D0) $
Input Data Blocks
As desired by author of module.
Output Data Blocks
As desired by author of module.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the default values shown in the calling sequence above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
DUMMOD5 - Dummy Module 5
Purpose
Converts certain NASTRAN output tabular data blocks into NASTRAN matrix data
blocks (GINO files) or to a magnetic tape of special matrix form (by column,
unpacked, from first non-zero term to last non-zero term), similar to that
generated by OUTPUT5. The data on the tape can be read into NASTRAN by the
INPUTT5 module. DUMMOD5 handles only single precision data blocks.
DMAP Calling Sequence
DUMMOD5 T1,T2,T3,T4,T5 / 01,02,03,04,05 / C,N,P1 / C,N,P2 / C,N,P3 /
C,N,P4 / C,N,P5 / C,N,Q $
Input Data Blocks
Ti NASTRAN GINO single precision files, such as OEF1, OQG1, or
similar type of tabular data blocks, whose fixed length records
can be rearranged into the columns of a matrix. Any or all of the
input data blocks may be purged. Only non-purged data blocks will
be processed.
Output Data Blocks
All output data blocks are written in single precision. See Method below for
more details.
0i GINO written matrix data blocks. Any or all of the output data
blocks may be purged.
INP1 Unit 15, FORTRAN written tape, unformatted.
Parameters
Pi Each Pi parameter corresponds to each Ti-0i conversion process.
The tabular input data records in Ti are mapped into a Pi by 8
two-dimensional matrix space. See Method below for more details.
Q Print-punch control of the element/grid table gathered from the
input data blocks (Ti):
= -1, no print and punch.
= 0, print only, no punch.
= +1, both print and punch.
= /2/, print contents of output tape INP1 after it is generated.
Method
A record of the input data block (Ti) is read. The first word is saved in an
element/grid table. The next eight words are saved in the Pi by 8 matrix
space, row-wise. If the record has more than nine words, the rest of the
record is discarded. Similarly, the rest of the records in Ti are read, and
the element/grid table and the Pi by 8 matrix space are filled. If the input
data block Ti has more than Pi records, all the records above Pi are skipped.
If the input data block has less than Pi records, the rest of the matrix space
is zero filled. Finally, when all the records in Ti are read, the Pi by 8
matrix is written to output data block (0i) or tape (INP1), column-wise.
If an output data block (0i) exists, and its corresponding data block (Ti) is
not purged, the Pi by 8 matrix is then written out to the output data block by
NASTRAN GINO in packed form. If an input data block (Ti) exists, and the
corresponding output data block (0i) is purged (not present), the Pi by 8
matrix is then written out to INP1 tape (unit 15), column-wise, unpacked, from
first non-zero term to last non-zero term, in binary records. The content of
INP1 tape is written similarly to those written by OUTPUT5, as shown below.
Ŀ
RECORD WORD CONTENTS TYPE
Ĵ
0 Tape header record
1,2 "xxxxxxxx" (tape ID) 2*BCD
3,4 Machine type 2*BCD
5,7 Date 3*INT
8 System buffer size INT
9 0, binary tape INT
1 First matrix (01) header
1 0 INT
2,3 1,1 2*INT
4 0.0D0 D.P.
5-10 6 words from matrix trailer 6*INT
(col,row,form,type,max,density
where type=1 or 3)
11,12 Matrix DMAP name 2*BCD
2 1 1 (first column ID) INT
2 Location of first non-zero element INT
3 Location of last non-zero element INT
4-n S.P. data REAL
3 1 2 (second column ID)
2-n Same as record 1
: 1-n Repeat for more columns
(x 1 x (x-th column ID, a null column INT
2,3 1,1 INT
4,5 0.0, 0.0 REAL
l 1-n l-1, last column, same as record 1
l+1 1 -1 (element) or -2 (grid) INT
2 1 INT
3 Length of element/grid table, T INT
4-(T+4) Table of element or grid IDs INT
l+2 Second matrix (02) header
: : Repeat above 1 through l+1 for 02
: : Repeat, up to 5 output data blocks
per tape
Remarks
1. This module is very limited in scope. It handles only some special types of
tabular input data blocks. This module is designed to be used for a
particular job or jobs.
2. The heading records of the input data blocks are skipped automatically. The
rest of the records are read in and processed without further intervention.
If the output data block contains more than one type of data (such as OEF1
data file with multi-element type data), meaningless data may be included.
You must know ahead of time what type of data you are gathering for the
DUMMOD5 module operation. For this reason, you may find the use of SET in
the Case Control section to your advantage.
3. The INP1 tape generated by DUMMOD5 can be read by the INPUTT5 module. Any
future changes in the tape format must also appear in the INPUTT5 and
OUTPUT5 modules.
=PAGE=
MATGEN - User Dummy Module
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
MATGEN I01,I02,...,I20,I21 / O1,O2,O3 / V,N,Pl=0 /
V,N,P2=0 / ... / V,N,P22=0 $
Input Data Blocks
As desired by author of module.
Output Data Blocks
As desired by author of module.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the default values shown in the calling sequence above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
MODA - User Dummy Module
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
MODA / W,X,Y,Z / C,N,0.0 / C,N,0.0 / C,N,0.0 / C,N,0.0 / C,N,0.0 / C,N,0 /
C,N,0 / C,N,0 / C,N,0 / C,N,0 / C,N,0.0 / C,N,0 / C,N,0 $
Input Data Blocks
None.
Output Data Blocks
As desired by author of module.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the default values shown in the calling sequence above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
MODB - User Dummy Module
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
MODB / W,X,Y,Z / C,N,1.0 / C,N,1.0 / C,N,1.0 / C,N,1.0 / C,N,0 / C,N,0 /
C,N,0 / C,N,1.0 / C,N,0 / C,N,0 / C,N,0 $
Input Data Blocks
As desired by author of module.
Output Data Blocks
As desired by author of module.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the default values shown in the calling sequence above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
MODC - User Dummy Module
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
MODC A,B // C,N,-l $
Input Data Blocks
As desired by author of module.
Output Data Blocks
None.
Parameters
Parameters may be used as desired by the author of the module. The parameter
types are indicated by the default values shown in the calling sequence above.
Remarks
This module has been provided for those who may want to include a module of
their own design in the system. The number of inputs and outputs, as well as
the number, type, and default values of the parameters, may be changed by
changing the Module Properties List (MPL) in subroutine XMPLDD (see Section 2
of the Programmer's Manual).
=PAGE=
OUTPUT - Auxiliary Output File Processor
Purpose
A user-written module to generate printer, plotter, or punch output.
DMAP Calling Sequence
(See Remarks below.)
OUTPUT IN // C,Y,P=-l $
Input Data Blocks
IN Contains any desired information which the module extracts and
writes on the system output file, punch, or either of the two
plotters. May be purged.
Output Data Blocks
None.
Parameters
Parameters may be used as desired by the author of the module. Type is Integer
with MPL default value of -1 as shown above.
Remarks
This module has been provided for those who may want to process their own
output. The number of inputs as well as the number, type, and default values
of parameters may be changed by changing the Module Properties List (MPL) in
subroutine XMPLDD (see Section 2 of the Programmer's Manual).
=PAGE=
XYPRNPLT - User Dummy Module
Purpose
Can be used for any desired purpose.
DMAP Calling Sequence
(See Remarks below.)
XYPRNPLT A // $
Input Data Blocks
As desired by the author of module.
Output Data Blocks
None.
Parameters
None.
Remarks
This module has been provided for those who may want to process their own
output. The number of inputs and outputs as well as the number, type, and
default values of parameters may be changed by changing the Module Properties
List (MPL) in subroutine XMPLDD (see Section 2 of the Programmer's Manual).
=PAGE=
5.7 EXECUTIVE OPERATION MODULES
Module Basic Function Page
BEGIN Always first in DMAP; begin DMAP program 5.7-2
CHKPNT Write data blocks on checkpoint tape if 5.7-3
checkpointing
COMPOFF Conditional DMAP compilation off 5.7-4
COMPON Conditional DMAP compilation on 5.7-5
COND Conditional forward jump 5.7-6
END Always last in DMAP; terminates DMAP execution 5.7-7
EQUIV Assign another name to a data block 5.7-8
EXIT Conditional DMAP termination 5.7-9
FILE Defines special data block characteristics 5.7-10
to DMAP compiler
JUMP Unconditional forward jump 5.7-11
LABEL Defines DMAP location 5.7-12
PRECHK Predefined automated checkpoint 5.7-13
PURGE Conditional data block elimination 5.7-14
REPT Repeat a series of DMAP instructions 5.7-15
SAVE Save value of output parameter 5.7-16
XDMAP Controls the DMAP compiler options 5.7-17
All modules classified as Executive Operation Modules are individually
described in this section. Additional discussions concerning the interaction
of the Executive Modules with themselves and with the NASTRAN Executive System
are contained in Section 5.2.3.
=PAGE=
BEGIN - Begin DMAP Program
Purpose
BEGIN is a declarative DMAP instruction which may be used to denote the
beginning of a DMAP program.
DMAP Calling Sequence
BEGIN $
Remarks
1.BEGIN is a non-executable DMAP instruction which is used only by the DMAP
compiler for information purposes.
2.Either a BEGIN card or an XDMAP card is required when selecting APP DMAP in
the Executive Control Deck. This is followed by DMAP instructions up to and
including the END card.
3.The use of BEGIN implicitly elects all compiler defaults. (See XDMAP
instruction.)
=PAGE=
CHKPNT - Checkpoint
Purpose
Causes data blocks to be written on the New Problem Tape (NPTP) to enable the
problem to be restarted with a minimum of redundant processing.
DMAP Calling Sequence
CHKPNT D1,D2,...,DN $
where D1,D2,...,DN (N >= 1) are data blocks to be copied onto the problem tape
for use in restarting problem.
Rules
1.A data block to be checkpointed must have been referenced in a previous
PURGE, EQUIV, or functional module instruction.
2.CHKPNT cannot be the first instruction of a DMAP loop.
3.Data Blocks generated by the Input File Processor (including DMIs and DTIs)
should not be checkpointed since they are always regenerated on restart.
4.Checkpointing only takes place when a New Problem Tape (NPTP) is set up and
the Executive Control Card CHKPNT YES appears in the Executive Control
Deck. Otherwise, the CHKPNT instructions are ignored.
5.For each data block that is successfully checkpointed, a card of the
restart dictionary is punched which gives the critical data for the data
block as it exists on the Problem Tape.
6.For data blocks that have been purged or equivalenced, an entry is made in
the restart dictionary to this effect. In these cases data blocks are not
written on the Problem Tape.
Remarks
1.See the PRECHK instruction for an automated CHKPNT capability.
=PAGE=
COMPOFF - Conditional DMAP Compilation Off
Purpose
To allow blocks of DMAP statements to be compiled or skipped depending upon
the value of a bulk data parameter. (The companion module is COMPON.)
DMAP Calling Sequence
COMPOFF LBLNAME,PARNAME $
or
COMPOFF c,PARNAME $
where:
1.LBLNAME is the BCD name of a label which specifies the end of the DMAP
statement block,
2.c is an integer constant which specifies the number of DMAP statements in
the block, and
3.PARNAME is the name of a parameter that appears on a PARAM bulk data card.
Method
The block of DMAP statements specified by the label or count is skipped if the
value of the parameter is < 0. The block of DMAP statements will be compiled
if the value of the parameter is >= 0.
Example
COMPOFF LBL,NAM1 $
MODULE1 A/B/L $
MODULE2 C/D/M $
MODULE3 E/F/N $
LABEL LBL $
:
:
COMPOFF 2,NAM2 $
MODULE4 P/Q/I
MODULE5 X/Y/J $
:
:
In the above example, modules MODULE1, MODULE2, and MODULE3 will not be
compiled if the value of parameter NAM1 is < 0 and modules MODULE4 and MODULE5
will not be compiled if the value of parameter NAM2 is < 0.
Remarks
1.If no PARAM bulk data card is provided to define the parameter, a value of
0 is assumed.
2.If the form of COMPOFF specifying a label is used, the label may not be
referenced by any other DMAP instructions, including other COMPOFF or
COMPON instructions.
3.Comment cards are not included in the statement count.
4.COMPOFF and COMPON instructions may be nested up to five levels using the
same rules as for FORTRAN DO loops.
=PAGE=
COMPON - Conditional DMAP Compilation On
Purpose
To allow blocks of DMAP statements to be compiled or skipped depending upon
the value of a bulk data parameter. (The companion module is COMPOFF.)
DMAP Calling Sequence
COMPON LBLNAME,PARNAME $
or
COMPON c,PARNAME $
where:
1.LBLNAME is the BCD name of a label which specifies the end of the DMAP
statement block,
2.c is an integer constant which specifies the number of DMAP statements in
the block, and
3.PARNAME is the name of a parameter that appears on a PARAM bulk data card.
Method
The block of DMAP statements specified by the label or count is skipped if the
value of the parameter is >= 0. The block of DMAP statements will be compiled
if the value of the parameter is < 0.
Example
COMPON LBL,NAM1 $
MODULE1 A/B/L $
MODULE2 C/D/M $
MODULE3 E/F/N $
LABEL LBL $
:
:
COMPON 2,NAM2 $
MODULE4 P/Q/I
MODULE5 X/Y/J $
:
:
In the above example, modules MODULE1, MODULE2, and MODULE3 will not be
compiled if the value of parameter NAM1 is >= 0 and modules MODULE4 and
MODULE5 will not be compiled if the value of parameter NAM2 is >= 0.
Remarks
1.If no PARAM bulk data card is provided to define the parameter, a value of
0 is assumed.
2.If the form of COMPON specifying a label is used, the label may not be
referenced by any other DMAP instructions, including other COMPOFF or
COMPON instructions.
3.Comment cards are not included in the statement count.
4.COMPOFF and COMPON instructions may be nested up to five levels using the
same rules as for FORTRAN DO loops.
=PAGE=
COND - Conditional Transfer
Purpose
To alter the normal order of execution of DMAP modules by conditionally
transferring program control to a specified location in the DMAP program.
DMAP Calling Sequence
COND n,V $
where:
1.n is a BCD label name specifying the location where control is to be
transferred. (See the LABEL Instruction.)
2.V is a BCD name of a variable parameter whose value indicates whether or
not to execute the transfer. If V < 0 the transfer is executed.
Example
BEGIN $
:
:
COND L1,K $
MODULE1 A/B/V,Y,P1 $
:
:
LABEL L1 $
MODULEN X/Y $
:
:
END $
If K >= 0, MODULE1 is executed. If K < 0 control is transferred to the label
L1 and MODULEN is executed.
Remarks
1.Only forward transfers are allowed. See the REPT instruction for backward
transfers.
=PAGE=
END - End DMAP Program
Purpose
Denotes the end of a DMAP program.
DMAP Calling Sequence
END $
Remarks
1.The END instruction also acts as an implied EXIT instruction.
2.The END card is required whenever APP DMAP is selected in the Executive
Control Deck.
=PAGE=
EQUIV - Data Block Name Equivalence
Purpose
To attach one or more equivalent (alias) data block names to an existing data
block so that the data block can be referenced by several equivalent names.
DMAP Calling Sequence
EQUIV DBN1A,DBN2A,DBN3A / PARMA / DBN1B,DBN2B / PARMB $
NOTE: The number of data block names (DBNij) prior to each parameter (PARMj)
and the number of such groups in a particular calling sequence are variable.
Input Data Blocks
DBN1A,DBN2A, etc. Any data block names appearing within the DMAP sequence.
The first data block name in each group (DBN1A and DBN1B in the
examples above) is known as the primary data block and the second,
etc. data block names become equivalent to the primary (depending
on the associated parameter value). These equivalenced data blocks
are known as secondary data blocks.
Output Data Blocks
None specified or permitted.
Parameters
PARMA, etc. One required for each set of data block names.
Method
The data block names in each group are made equivalent if the value of the
associated parameter is < 0. If a number of data blocks are already
equivalenced and the parameter value is >= 0, the equivalence is broken and
the data block names again become unique. If the data blocks are not
equivalenced and the parameter value is >= 0, no action is taken.
Remarks
1. An EQUIV statement may appear at any time as long as the primary data block
name has been previously defined.
2. If an equivalence is to be performed at all times, that is, the parameter
value is always negative, it is not necessary to specify a parameter name.
For example,
EQUIV DB1,DB2 // DB3,DB4 $
=PAGE=
EXIT - Terminate DMAP Program
Purpose
To conditionally terminate the execution of the DMAP program.
DMAP Calling Sequence
EXIT c $
where c is an integer constant which specifies the number of times the
instruction is to be ignored before terminating the program. If c = 0 the
calling sequence may be shortened to EXIT.
Example
BEGIN $
:
:
LABEL L1 $
MODULE1 A/B/V,Y,P1 $
DMAP :
loop :
EXIT 3 $
REPT L1,3 $
:
:
END $
Remarks
1. The EXIT instruction will be executed the third time the loop is repeated
(that is, the instructions within the loop will be executed four times).
2. EXIT may appear anywhere within the DMAP sequence.
=PAGE=
FILE - File Allocation Aid
Purpose
To inform the File Allocator (see Section 4.9 of the Programmer's Manual) of
any special characteristics of a data block.
DMAP Calling Sequence
FILE A=a1,a2...aa / B=b1,b2...bb / ... / Z=z1,z2...zz $
where:
A,B...Z are the names of the data blocks possessing special characteristics.
a1...aa,b1...bb....z1...zz are the special characteristics from the list
below.
The allowable special characteristics are:
SAVE Indicates data block is to be saved for possible looping in DMAP
program.
APPEND Output data blocks which are generated within a DMAP loop are
rewritten during each pass through the loop, unless the data block
is declared APPEND in a FILE statement. The APPEND declaration
allows a module to add information to a data block on successive
passes through a DMAP loop.
TAPE Indicates that data block is to be written on a physical tape if a
physical tape is available.
Remarks
1. Data blocks created by the NASTRAN preface may not appear in FILE
declarations.
2. Symbolic DMAP sequences which explain the use of the FILE instruction are
given in Section 5.2.3.1.
3. FILE is a non-executable DMAP instruction which is used only by the DMAP
compiler for information purposes.
4. A data block name may appear only once in all FILE statements; otherwise
the first appearance will determine all special characteristics applied to
the data block.
=PAGE=
JUMP - Unconditional Transfer
Purpose
To alter the normal order of execution of DMAP modules by unconditionally
transferring program control to a specified location in the DMAP program. The
normal order of execution of DMAP modules is the order of occurrence of the
modules as DMAP instructions in the DMAP program.
DMAP Calling Sequence
JUMP n $
where n is a BCD name appearing on a LABEL instruction which specifies where
control is to be transferred.
Remarks
1. Jumps must be forward in the DMAP sequence. See the REPT instruction for
backward jumps.
=PAGE=
LABEL - DMAP Location
Purpose
To label a location in the DMAP program so that the location may be referenced
by the DMAP instructions JUMP, COND, and REPT.
DMAP Calling Sequence
LABEL n $
where n is a BCD name.
Remarks
1. The LABEL instruction is inserted just ahead of the DMAP instruction to be
executed when transfer of control is made to the label.
2. LABEL is a non-executable DMAP instruction which is used only by the DMAP
compiler for information purposes.
=PAGE=
PRECHK - Predefined Automated Checkpoint
Purpose
To allow you to specify a single, or limited number, of checkpoint
declarations, thereby removing the need for a large number of individual
CHKPNT instructions to appear in a DMAP program.
DMAP Calling Sequence
PRECHK namelist $
PRECHK ALL $
PRECHK ALL EXCEPT namelist $
where namelist is a list of data block names separated by commas and not
exceeding 50 data blocks per command.
Remarks
1. PRECHK is, in itself, a non-executable DMAP instruction which actuates the
automatic generation of explicit CHKPNT instructions during the DMAP
compilation.
2. Any number of PRECHK declarations may appear in a DMAP program. Each time a
new statement is encountered the previous one is invalidated. The PRECHK
END $ option will negate the current PRECHK status.
3. CHKPNT instructions may be used in conjunction with PRECHK declarations.
The CHKPNT instruction will override any PRECHK condition. For example, if
the PRECHK ALL EXCEPT option is in effect, a data block named in the
excepted list may still be explicitly CHKPNTed.
4. PRECHK ALL immediately and automatically CHKPNTs all output data blocks
from each functional module, all data blocks mentioned in each PURGE
instruction, and all secondary data blocks in each EQUIV instruction. The
only exceptions to this are the CASESS, CASEI, and CASECC data blocks
appearing as output in substructure analyses.
5. The rigid format DMAP sequences (see Volume II) do not employ any explicit
CHKPNT instructions. Instead, for the sake of efficiency, each rigid format
includes a single PRECHK ALL instruction towards the beginning of the DMAP
sequence.
=PAGE=
PURGE - Explicit Data Block Purge
Purpose
To flag a data block so that it will not be assigned to a physical file.
DMAP Calling Sequence
PURGE DBN1A,DBN2A,DBN3A / PARMA / DBN1B,DBN2B / PARMB $
NOTE: The number of data block names (DBNij) prior to each parameter (PARMj)
and the number of groups of data block names and parameters in a particular
calling sequence is variable.
Input Data Blocks
DBN1A,DBN2A, etc. Any data block names appearing within the DMAP sequence.
Output Data Blocks
None specified or permitted.
Parameters
PARMA, etc. One required for each group of data block names.
Method
The data blocks in a group are purged if the value of the associated parameter
is < 0. If a data block is already purged and the parameter value is >= 0, the
purged data block is unpurged so that it may be subsequently reallocated. If
the data block is not purged and the parameter value is >= 0, no action is
taken.
Remarks
1. If a purge is to be made at all times, i.e., the parameter value is always
negative, it is not necessary to specify a parameter name. For example,
PURGE DB1,DB2,DB3,DB4 $
=PAGE=
REPT - Repeat
Purpose
To repeat a group of DMAP instructions a specified number of times.
DMAP Calling Sequence
REPT n,c $ or REPT n,p $
where:
1. n is a BCD name appearing in a LABEL instruction which specifies the
location of the beginning of a group of DMAP instructions to be repeated.
(See LABEL instruction.)
2. c is an integer constant hard coded into the DMAP program which specifies
the number of times to repeat the instructions.
3. p is a variable parameter set by a previously executed module specifying
the number of times to repeat the instructions.
Example
BEGIN $ BEGIN $
: :
: :
LABEL L1 $ MODULE1 X/Y/V,Y,NLOOP $
MODULE1 A/B/V,Y,P1 $ LABEL L1 $
: MODULE1 A/B/V,Y,P1 $
: or :
MODULEN B/C/V,Y,P2 $ :
REPT L1,3 $ MODULEN B/C/V,Y,P2 $
: REPT L1,NLOOP $
: :
END $ :
END $
Remarks
1. REPT is placed at the end of the group of instructions to be repeated.
2. When a variable number of loops is to be performed as in the second example
above, the value of the variable at the first time the REPT instruction is
encountered will determine the number of loops. This number will not be
changed after the initial assignment.
3. A COND (conditional jump) instruction may be used to exit from the loop if
desired.
4. In the first example, the instructions MODULE1 to MODULEN will be repeated
three times (that is, executed four times).
=PAGE=
SAVE - Save Variable Parameter Values
Purpose
To specify which variable parameter values are to be saved from the preceding
functional module DMAP instruction for use by subsequent modules.
DMAP Calling Sequence
SAVE V1,V2,...,VN $
where the V1,V2,...,VN (N > 0) are the BCD names of some or all of the
variable parameters which appear in the immediately preceding functional
module DMAP instruction.
Remarks
1. A SAVE instruction must immediately follow the functional module
instruction wherein the parameters being saved are generated.
2. See Section 5.2.1.5 for a description of the alternate method of saving
parameter values by means of the parameter specification statement.
=PAGE=
XDMAP - Execute DMAP Program
Purpose
To control the DMAP compiler options.
DMAP Calling Sequence
GO ERR = 2 LIST NODECK NOOSCAR
XDMAP NOGO , ERR = 1 , NOLIST , DECK , OSCAR ,
ERR = 0
See Remark
4 for
NOREF defaults
REF
where:
GO compile and execute program (default).
NOGO compile only and terminate job.
ERR defines the error level at which suspension of execution will
occur:
0 Warning level
1 Potentially fatal error level
2 Fatal error level (default)
LIST a listing of the DMAP program will be printed (see Remark 4 for
default values).
NOLIST no listing (see Remark 4 for default values).
DECK a deck of the DMAP program will be punched.
NODECK a deck will not be punched (default).
OSCAR detailed listing of OSCAR (Operation Sequence Control Array), the
output of the DMAP compiler.
NOOSCAR no OSCAR listing (default).
REF a cross reference listing of the DMAP program will be printed.
NOREF no cross reference listing (default).
Remarks
1. The XDMAP card is optional and may be replaced by a BEGIN instruction.
However, one or the other must appear in an APP DMAP execution.
2. The XDMAP instruction is non-executable and is used only to control the
above options by the DMAP compiler.
3. If all defaults are chosen, this instruction need not appear and BEGIN may
be used instead.
4. The DMAP compiler default is set to LIST for restart runs and for runs
using the DMAP approach (APP DMAP) and the substructure capability (APP
DISP,SUBS). The default is also set to LIST when the REF option on the
XDMAP card is specified. The default is set to NOLIST for all other cases.
(The NOLIST option can be used in the former cases to suppress the
automatic listing of the DMAP program.)
5. Multiple XDMAP cards can be used in the DMAP to get subsets of the DMAP
program to be listed (using the LIST/NOLIST option) or punched (using the
DECK/NODECK option).
6. The use of DIAGs in the Executive Control Deck (see Section 2.2) will
always override the corresponding DMAP compiler options whether or not they
are selected by means of an XDMAP card. Thus, the use of DIAG 4 will give
the OSCAR listing, DIAG 14 will give the DMAP program listing, DIAG 17 will
give a punched output of the DMAP program, and DIAG 25 will give the DMAP
program cross-reference listing, regardless of any other requests made by
the presence or absence of XDMAP cards. The DMAP compiler option summary,
printed before the DMAP source listing, reflects the DIAG selections, if
any.
=PAGE=
5.8 DMAP EXAMPLES
In order to facilitate the use of DMAP, several examples are provided in this
section. You are urged to study these examples both from the viewpoint of
performing a sequence of matrix operations and from that of a DMAP flow. In
addition, some examples have been written to illustrate the improved DMAP
syntax.
5.8.1 DMAP to Print Table and Matrix Data Blocks and Parameters
Objective
1. Print the contents of table data block A.
2. Print matrix data blocks B, C, and D.
3. Print values of parameters P1 and P2.
4. Set parameter P3 equal to -7.
BEGIN $ XDMAP $
TABPT A,,,, // $ TABPT A // $
MATPRN B,C,D,, // $ MATPRN B,C,D // $
PRTPARM // C,N,0 / C,N,P1 $ PRTPARM // 0 / *P1* $
PRTPARM // C,N,0 / C,N,P2 $ PRTPARM // 0 / *P2* $
PARAM // C,N,NOP / V,N,P3=-7 $ PARAM // *NOP* / P3=-7 $
END $ END $
Remarks
1. To be a practical example, a restart situation is assumed. You are
cautioned to remember to reenter at DMAP instruction 2 by changing the last
reentry point in the restart dictionary.
2. In the alternate form, the omission of trailing commas in the TABPT and
MATPRN instructions will generate POTENTIALLY FATAL ERROR messages alerting
you to possible errors in the data block name list.
5.8.2 DMAP to Perform Matrix Operations
Let the constrained matrix [Kll] and the load vector [Pl] be defined by means
of DMI bulk data cards. The following DMAP sequence will perform the series of
matrix operations.
-1
{u } = [K ] {P }
1 ll l
{r} = [K ]{u } - {P }
ll 1 l
-1
{u} = [K ] {r}
ll
{u } = {u } + {u}
2 1
Print {u }
2
BEGIN $ XDMAP $
SOLVE KLL,PL/U1/C,N,1/C,N,1/C,N,1/C,N,1 $ SOLVE KLL,PL/U1/1/1/1/1 $
MPYAD KLL,U1,PL/R/C,N,0/C,N,1/C,N,-1 $ MPYAD KLL,U1,PL/R/0/1/-1 $
SOLVE KLL,R/DU/C,N,1 $ or SOLVE KLL,R/DU/1 $
ADD U1,DU/U2 $ ADD U1,DU/U2 $
MATPRN U2,,,, // $ MATPRN U2// $
END $ END $
Remarks
1. [Kll] is assumed symmetric.
2. In the example above, KLL will be decomposed twice. A more efficient DMAP
sequence, which requires only a single decomposition for this problem, is
given below.
BEGIN $ XDMAP $
DECOMP KLL/LLL,ULL $ DECOMP KLL/LLL,ULL $
FBS LLL,ULL,PL/U1/C,N,1/C,N,1/ FBS LLL,ULL,PL/U1/1/1/1/1 $
C,N,1/C,N,1 $
MPYAD KLL,U1,PL/R/C,N,0/C,N,1/C,N,-1 $ MPYAD KLL,U1,PL/R/0/1/-1 $
FBS LLL,ULL,R/DU $ or FBS LLL,ULL,R/DU $
ADD U1,DU/U2 $ ADD U1,DU/U2 $
MATPRN U2,,,, // $ MATPRN U2// $
END $ END $
5.8.3 DMAP to Use the Structure Plotter to Generate Undeformed Plots of the
Structural Model
BEGIN $
GP1 GEOM1,GEOM2, / GPL,EQEXIN,GPDT,CSTM,BGPDT,SIL / V,N,LUSET /
V,N,NOCSTM / V,N,NOGPDT $
SAVE LUSET $
GP2 GEOM1,EQEXIN / ECT $
PLTSET PCDB,EQEXIN,ECT / PLTSETX,PLTPAR,GPSETS,ELSETS / V,N,NSIL /
V,N,NPSET $
SAVE NPSET,NSIL $
PRTMSG PLTSETX // $
PARAM // C,N,NOP / V,N,PLTFLG=1 $
PARAM // C,N,NOP / V,N,PFILE=0 $
COND P1,NPSET $
PLOT PLTPAR,GPSETS,ELSETS,CASECC,BGPDT,EQEXIN,SIL,, / PLOTX1 /
V,N,NSIL / V,N,LUSET / V,N,NPSET / V,N,PLTFLG / V,N,PFILE $
SAVE NPSET,PLTFLG,PFILE $
PRTMSG PLOTX1 // $
LABEL P1 $
PRTPARM // C,N,0 $
END $
Remarks
1. GEOM1, GEOM2, PCDB, and CASECC are generated by the Input File Processor.
2. PRTPARM is used to print all current variable parameter values.
3. This DMAP sequence contains several structurally oriented modules. This
sequence of DMAP instructions is essentially identical with the section of
each rigid format associated with the operation of the Structure Plot
Request Packet of the Case Control Deck (contained in data block PCDB).
5.8.4 DMAP to Print Eigenvectors Associated with any of the Modal Formulation
Rigid Formats
BEGIN $
OFP LAMA,OEIGS,,,, // $
SDR1 USET,,PHIA,,,GO,GM,,KFS,, / PHIG,,QG / C,N,1 / C,N,REIG $
SDR2 CASECC,CSTM,MPT,DIT,EQEXIN,SIL,,,BGPDT,LAMA,QG,PHIG,EST, /
, OQG1,OPHIG,OES1,OEF1, / C,N,REIG $
OFP OPHIG,OQG1,OEF1,OES1,, // $
END $
Remarks
1. A restart from a successfully executed modal formulation is assumed.
2. This DMAP sequence contains several structurally oriented modules.
5.8.5 DMAP Using a User-Written Module
As an example of how you might perform matrix operations of your own design,
the following DMAP is provided. Functional modules MODA, MODB, and MODC are
assumed to be written by you and added to the NASTRAN system, replacing dummy
modules with the same names. A brief explanation of a problem for which this
DMAP is applicable is given.
1 BEGIN $
2 PARAM // C,N,NOP / V,N,TRUE=-1 $
3 PARAM // C,N,NOP / V,N,FALSE=+l $
4 MODA / X,Y,DB,A / V,N,BETA=0.0 / V,N,SIGMA=1.0 / V,N,FW=0.0 /
V,N,SW=0.0 / V,N,ETAINF=5.0 / V,N,M=100 / C,N,0 /
C,N,0 / C,N,0 / V,N,ICONV=0 / V,N,ZCONV=1.0E-4 /
V,N,ITMAX=10 / C,N,0 $
5 SAVE BETA,SIDMA,FW,SW,ETAINF,M,ICONV,ZCONV,ITMAX $
6 LABEL TOP $
7 FILE A=SAVE / DB=SAVE $
8 SOLVE A,DB / DY / C,N,0 / C,N,1 / C,N,1 / C,N,1 $
9 EQUIV X,XX / FALSE / Y,YY / FALSE $
10 MODB X,Y,DY / XX,YY,DBB,AA / V,N,BETA / V,N,SIGMA / V,N,FW /
V,N,SW / V,N,M / C,N,0 / V,N,ICONV / V,N,ZCONV / C,N,0 /
V,N,DONE=1 / V,N,DIVERGED=1 $
11 SAVE DONE,DIVERGED $
12 COND QUIT,DIVERGED $
13 COND OUT,DONE $
14 EQUIV XX,X / TRUE / YY,Y / TRUE / DBB,DB / TRUE / AA,A / TRUE $
15 COND QUIT,ITMAX $
16 REPT TOP,1000 $
17 PRTPARM // C,N,-1 / C,N,DMAP $
18 EXIT $
19 LABEL OUT $
20 MODC X,Y // $
21 EXIT $
22 LABEL QUIT $
23 PRTPARM // C,N,-2 / C,N,DMAP $
24 EXIT $
25 END $
The above DMAP sequence is designed to solve an iteration problem where {x} is
the set of independent variable values on which the discretized solution
{y(x)} is defined. Let the discrete values of {y(x)} measured at {x} be called
{y}. An iteration sequence
i+1 i i -1 i
{y} = {y} + [A({y} ,{x})] {b({y} ,{x})}
is to be performed where [A] and b are computable functions of {y} and {x}. A
convergence-divergence criterion is assumed known. It is also assumed that the
independent variable distribution {x} may be modified as the solution
proceeds. A brief description of the significant DMAP instructions is given
below:
4 Initialization of all parameters and output data blocks. This module is
assumed to be written by you.
7 Prevents file allocator from dropping A and DB.
8 Compute {b} = [A]-1{b}
9 Break equivalences.
10 Iterate to obtain new {x}, {y}, {b}, [A]; test convergence and set
parameters DONE and DIVERGED. This module is assumed to be written by you.
14 The new {x}, {y}, {b}, [A] are established as current by replacing the old
values.
20 Prints out the converged solutions {x} and {y}. This module is assumed to
be written by you.
5.8.6 DMAP ALTER Package for Using a User-Written Auxiliary Input File
Processor
ALTER 1
INPUT GEOM1,,,, / G1,,,G4, / C,N,3 $
PARAM // C,N,NOP / V,N,TRUE=-1 $
EQUIV G1,GEOM1 / TRUE / G4,GEOM4 / TRUE $
COND LBLXXX,TRUE $
TABPT G1,G4,,, // $
LABEL LBLXXX $
ENDALTER
Remarks
1. This is an ALTER package that could be used by any Rigid Format.
2. The last three instructions are needed to avoid violating the equivalence
rule that a primary data block name must be referenced in a subsequent
functional module. A way to avoid using these three instructions is to move
the PARAM ahead of INPUT, in which case the EQUIV immediately follows the
module in which the primary data blocks are output. In this case the ALTER
package becomes
ALTER 1
PARAM // C,N,NOP / V,N,TRUE=-1 $
INPUT GEOM1,,,, / G1,,,G4, / C,N,3 $
EQUIV G1,GEOM1 / TRUE / G4,GEOM4 / TRUE $
ENDALTER
3. It is assumed that a user-written module INPUT exists which reads data
block GEOM1 (created by the Input File Processor of the NASTRAN Preface)
and creates data blocks G1 and G4. It is then desired to use G1 and G4 in
place of GEOM1 and GEOM4, the data blocks normally created by the NASTRAN
Preface.
4. ALTER is described in Section 2.1.
5.8.7 DMAP to Perform Real Eigenvalue Analysis Using Direct Input Matrices
BEGIN $
READ KTEST,MTEST,,,DYNAMICS,,CASECC / LAMA,PHIA,MI,OEIGS /
C,N,MODES / V,N,NE $
OFP LAMA,OEIGS,,,, // $
MATPRN PHIA,,,, // $
END $
Remarks
1. The echo of a test problem bulk data deck for the preceding DMAP sequence
follows.
. 1 .. 2 .. 3 .. 4 .. 5 .. 6 .. 7 .. 8 .. 9 .. 10 .
DMI KTEST 0 6 1 2 4 4
DMI KTEST 1 1 200.0 -100.0
DMI KTEST 2 1 -100.0 200.0 -100.0
DMI KTEST 3 2 -100.0 200.0 -100.0
DMI KTEST 4 3 -100.0 200.0
DMI MTEST 0 6 1 2 4 4
DMI MTEST 1 1 1.0
DMI MTEST 2 2 1.0
DMI MTEST 3 3 1.0
DMI MTEST 4 4 1.0
EIGR 1 INV .0 2.5 2 2 +1
+1 MAX
2. Data blocks DYNAMICS and CASECC are generated by the NASTRAN Preface (Input
File Processor) and contain the eigenvalue extraction data from the EIGR
card and the eigenvalue method selection data extracted from the METHOD
card in the Case Control Deck.
3. Data blocks KTEST and MTEST are generated by the NASTRAN Preface (Input
File Processor) from the DMI bulk data cards.
4. Data block MI is the modal mass matrix, which is not used in this DMAP
subsequent to READ, but which must appear as an output in READ. Parameter
NE is an output parameter whose value is the number of eigenvalues
extracted. If none are found NE will be set to -1.
An alternate DMAP to perform real eigenvalue analysis using Direct Input
Matrices, where the degrees of freedom are associated with grid points, is
shown below.
BEGIN $
GP1 GEOM1,GEOM2, / GPL,EQEXIN,GPDT,CSTM,BGPDT,SIL / V,N,LUSET /
C,N,0 / C,N,0 $
SAVE LUSET $
GP4 CASECC,,EQEXIN,SIL,GPDT,BGPDT,CSTM / ,,USET, / V,N,LUSET /
C,N,0 / C,N,0 / C,N,0 / C,N,0 / C,N,0 / C,N,0 / C,N,0 /
C,N,0 / C,N,0 / C,N,0 $
DPD DYNAMICS,GPL,SIL,USET / GPLD,SILD,USETD,,,,,,,EED,EQDYN /
V,N,LUSET / C,N,0 / C,N,0 / C,N,0 / C,N,0 / C,N,0 /
C,N,0 / C,N,0 / V,N,NOEED / C,N,0 / C,N,0 $
SAVE NOEED $
COND E1,NOEED $
READ KTEST,MTEST,,,EED,,CASECC / LAMA,PHIA,MI,OEIGS /
C,N,MODES / V,N,NEIGV $
SAVE NEIGV $
OFP LAMA,OEIGS,,,, // $
COND FINIS,NEIGV $
SDR1 USET,,PHIA,,,,,,,, / PHIG,, / C,N,1 / C,N,REIG $
SDR1 CASECC,,,,EQEXIN,SIL,,,BGPDT,LAMA,,PHIG,,, / ,,OPHIG,,, / C,N,REIG $
OFP OPHIG,,,,, // $
JUMP FINIS $
LABEL E1 $
PRTPARM // C,N,-2 / C,N,MODES $
LABEL FINIS $
END $
Remarks
1. The echo of a test problem bulk data deck for the preceding DMAP sequence
follows.
. 1 .. 2 .. 3 .. 4 .. 5 .. 6 .. 7 .. 8 .. 9 .. 10 .
DMI KTEST 0 6 1 2 4 4
DMI KTEST 1 1 200.0, -100.0
DMI KTEST 2 1 -100.0 200.0 -100.0
DMI KTEST 3 2 -100.0 200.0 -100.0
DMI KTEST 4 3 -100.0 200.0
DMI MTEST 0 6 1 2 4 4
DMI MTEST 1 1 1.0
DMI MTEST 2 2 1.0
DMI MTEST 3 3 1.0
DMI MTEST 4 4 1.0
EIGR 1 DET .0 2.5 2 2 +1
+1 MAX
SPOINT 1 THRU 4
2. Data block EED is generated by DPD, which copies the EIGR or EIGB cards
from data block DYNAMICS. The actual card used is selected in case control
by METHOD = SID.
3. Each degree-of-freedom defined by the DMI matrices must be associated with
some grid or scalar point in this version. In the example above, this is
done by defining four scalar points.
4. The EIGR card selected in the Case Control Deck will be used as explained
in Remark 2.
5. The use of module MTRXIN and DMIG bulk data cards will allow you to input
matrices via grid point identification numbers.
5.8.8 DMAP to Print and Plot a Topological Picture of Two Matrices
1. BEGIN $
2. SEEMAT KGG,KLL,,, // $
3. SEEMAT KGG,KLL,,, //*PLOT*/S,N,P=0 $
4. PRTPARM // 0 /*P* $
5. PARAM // *MPY* /P/0/1 $
6. SEEMAT KGG,KLL,,, //*PL0T*/S,N,P//*D*/0 $
7. PRTPARM //0/*P* $
8. END $
Remarks
1. Instruction number 2 causes the picture to be generated on the printer.
2. Instruction number 3 causes the picture to be generated on a microfilm
plotter without typing capability (the default).
3. The parameter P is initialized to zero by instruction number 3. The form
S,N,P would also have accomplished the same thing, since the MPL default
value is zero.
4. Instruction number 4 prints the current value of parameter P. Since P was
initially set to zero and instruction number 3 is the first instruction
executed which has P as an input, then P will have a zero value on input to
instruction number 3. P is incremented by one (1) for every frame generated
on the microfilm plotter. Since the value of the output parameter P was
automatically saved, the value printed by instruction number 4 will be the
number of frames generated by the execution of instruction number 3.
5. Instruction number 5 causes the value of P to be reset to zero (0), the
product of zero (0) and one (1). Since PARAM is the only module which does
its own SAVE, the parameter P need not be saved explicitly. This
illustrates a commonly used technique for setting parameter values in DMAP
programs.
6. Instructions 6 and 7 essentially repeat instructions 3 and 4 using a drum
plotter with typing capability in place of a microfilm plotter without
typing capability.
7. The END instruction, which is required, also acts as an EXIT instruction.
8. NASTRAN file PLT2 must be set up in order to execute this DMAP
successfully.
9. Matrix data blocks KGG and KLL are assumed to exist on the POOL file. This
will be the case if either DMI input is used or if a restart is being made
from a run in which KGG and KLL were generated and checkpointed.
5.8.9 DMAP to Compute the r-th Power of a Matrix [Q]
BEGIN $
MATPRN Q,,,, // $
PARAM // C,N,NOP / V,N,TRUE=-1 $
PARAM // C,N,SUB / V,N,RR / V,Y,R=-1 / C,N,2 $
PARAM // C,N,NOP / V,N,FALSE=+1 $
ADD Q, / QQ $
LABEL DOIT $
EQUIV QQ,P / FALSE $
MPYAD Q,QQ, / P / C,N,0 $
EQUIV P,QQ / TRUE $
PARAM // C,N,SUB / V,N,RR / V,N,RR / C,N,1 $
COND STOP,RR $
REPT DOIT,1000000 $
LABEL STOP $
MATPRN P,,,, // $
END $
or
BEGIN $
MATPRN Q // $
PARAM // *SUB* / RR / V,Y,R=-1 / 2 $
COPY Q / P $
LABEL TOP $
MPYAD Q,P / PP / 0 $
SWITCH P,PP // $
REPT TOP,RR $
MATPRN P // $
END $
Remarks
1. The matrix [Q] is assumed input via DMI bulk data cards.
2. The parameter R is assumed input on a PARAM bulk data card.
3. [DELETED]
4. The improved DMAP to perform the same operation can be done with
substantially fewer commands.
=PAGE=
5.8.10 Usage of UPARTN, VEC, and PARTN
In Rigid Format No. 7, the functional modules SMP1 and SMP2 (the latter used
three times) together perform the following matrix operations:
_
Kaa Kao
[Kff] =>
Koa Koo
-1
[Go] = -[Koo] [Koa]
_
Maa Mao
[Mff] =>
Moa Moo
[A] = [Moo] [Go] + [Moa]
T _
[B] = [Moa] [Go] + [Maa]
T
[Maa] = [Go] [A] + [B]
_4 4
4 Kaa Kao
[Kff] =>
4 4
Koa Koo
4 4
[A] = [Koo] [Go] + [Koa]
4 T _4
[B] = [Koa] [Go] + [Kaa]
4 T
[Kaa] = [Go] [A] + [B]
_
Baa Bao
[Bff] =>
Boa Boo
[A] = [Boo] [Go] + [Boa]
T _
[B] = [Boa] [Go] + [Baa]
T
[Baa] = [Go] [A] + [B]
This is far too many time-consuming matrix operations to perform within single
modules when the a-set and o-set are large. (Remember, checkpoint only occurs
after the module has done all its work.)
In order to subdivide the matrix operations, the partitions of the matrices
[Kff] etc. must be obtained. The following ALTER packet accomplishes this
objective by the use of the UPARTN nodule.
SMP1 and SMP2 using UPARTN for Rigid Format No. 7
ALTER n1,n2 $ (where n1 = DMAP statement number of the SMP1 module and n2 =
DMAP statement number of the third use of the SMP2 module)
$
UPARTN USET,KFF / KOO, ,KOA,KAAB / *F*/*O*/*A* $
SOLVE KOO,KOA / GO / 1 / -1 $
MPYAD KOA,GO,KAAB / KAA / 1 $
$
UPARTN USET,MFF / MOO, ,MOA,MAAB / *F*/*O*/*A* $
MPYAD MOO,GO,MOA / MAATEMP1 / O $
MPYAD MOA,GO,MAAB / MAATEMP2 / 1 $
MPYAD GO,MAATEMP1,MAATEMP2 / MAA / 1 $
$
UPARTN USET,K4FF / K4OO, ,K4OA,K4AAB / *F*/*O*/*A* $
MPYAD K4OO,GO,K4OA / K4AATMP1 / 0 $
MPYAD K4OA,GO,K4AAB / K4AATMP2 / 1 $
MPYAD GO,K4AATMP1,K4AATMP2 / K4AA / 1 $
$
UPARTN USET,BFF / BOO, ,BOA,BAAB / *F*/*O*/*A* $
MPYAD BOO,GO,BOA / BAATEMP1 / 0 $
MPYAD BOA,GO,BAAB / BAATEMP2 / 1 $
MPYAD GO,BAATEMP1,BAATEMP2 / BAA / 1 $
$
ENDALTER $
The matrix operations can be further subdivided by making the partitioning
information contained in USET available to the PARTN module. The following
ALTER packet accomplishes this by the use of the VEC and PARTN modules.
SMP1 and SMP2 using VEC and PARTN for Rigid Format No. 7
ALTER n1,n2 $ (where n1 = DMAP statement number of the SMP1 module and n2 =
DMAP statement number of the third use of the SMP2 module)
$
VEC USET / V / *F*/*O*/*A* $
$
PARTN KFF,V / KOO, ,KOA,KAAB / $
DECOMP KOO / LOO,UOO / 1 / 0 / S,N,MIND / S,N,DET / S,N,NDET / S,N,SING $
COND LSING,SING $
FBS LOO,UOO,KOA / GO / 1 / -1 $
MPYAD KOA,GO,KAAB / KAA / 1 $
$
PARTN MFF,V, / MOO, ,MOA,MAAB $
MPYAD MOO,GO,MOA / MAATEMP1 / 0 $
MPYAD MOA,GO,MAAB / MAATEMP2 / 1 $
MPYAD GO,MAATEMP1,MAATEMP2 / MAA / 1 $
$
PARTN K4FF,V, / K4OO, ,K4OA,K4AAB / $
MPYAD K4OO,GO,K4OA / K4AATMP1 / 0 $
MPYAD K4OA,GO,K4AAB / K4AATMP2 / 1 $
MPYAD GO,K4AATMP1,K4AATMP2 / K4AA / I $
$
PARTN BFF,V, / BOO, ,BOA,BAAB $
MPYAD BOO,GO,BOA / BAATEMP1 / 0 $
MPYAD BOA,GO,BAAB / BAATEMP2 / 1 $
MPYAD GO,BAATEMP1,BAATEMP2 / BAA / 1 $
$
ALTER n3 $ ADD ERROR TRAP FOR SINGULAR KOO MATRIX IN R.F. 7
(n3 = DMAP statement number of JUMP FINIS)
$
LABEL LSING $
PRTPARM // 0 / *SING* $
PRTPARM // -1 / *DMAP* $
EXIT $
$
ENDALTER $
5.8.11 DMAP to Perform Matrix Operations Using Conditional Logic
Let A, B, and C be matrices whose values are to be defined at execution time.
Let be a real constant whose value is to be defined at execution time. Let
be an integer constant whose value (defined at execution time) determines the
operations to be performed to compute matrix X as follows:
[A][B] + [C] , < 0
T
[X] = [[A] + [B]] , = 0
2 -1
[A] [C] , > O
Write a DMAP to accomplish the above, assuming A, B, and C will be defined by
DMI bulk data cards and that and will be defined on PARAM bulk data cards.
Print the inputs and outputs using the DMAP Utility Functional Modules MATPRN
and PRTPARM. Use the DMAP Utility Module SEEMAT to print a topology display of
[A] and [X].
A solution to this problem is given below along with data for an actual
example.
ID A,B
TIME 5
APP DMAP
BEGIN $
JUMP START $
PARAM // C,N,NOP / V,N,TRUE=-1 $ SET TRUE TO -1 (=.TRUE.)
LABEL START $
MATPRN A,B,C,, // $
COND ONE,ALPHA $
PARAM // C,N,NOT / V,N,CHOOSE / V,Y,ALPHA $
COND THREE,CHOOSE $
JUMP TWO $
LABEL ONE $ ALPHA .LT. 0
MPYAD A,B,C / X / C,N,0 $
JUMP FINIS $
LABEL TWO $ ALPHA .EQ. 0
ADD A,B / Y / C,Y,BETA=(0.0,0.0) $
TRNSP Y / X2 $
EQUIV X2,X / TRUE $
JUMP FINIS $
LABEL THREE $ ALPHA .GT. 0
SOLVE C, / Z $
MPYAD A,Z, / W / C,N,0 $
MPYAD A,W, / X3 / C,N,0 $
EQUIV X3,X / TRUE $
LABEL FINIS $
MATPRN X,,,, // $
SEEMAT A,X,,, // C,N,PRINT $
PRTPARM // C,N,0 $
END $
CEND
TITLE = TEST MPYAD
BEGIN BULK
DMI A 0 6 1 2 2 2
DMI A 1 1 1.01
DMI A 2 2 1.01
DMI B 0 6 1 2 2 2
DMI B 1 1 1.01
DMI B 2 2 1.01
DMI C 0 6 1 2 2 2
DMI C 1 1 1.01
DMI C 2 2 1.01
PARAM ALPHA -1
PARAM BETA 1.0 .0
ENDDATA
=PAGE=
5.9 AUTOMATIC SUBSTRUCTURE DMAP ALTERS
In the automated substructure process, your commands (described in Section
2.7) are converted to the form of DMAP instructions via ALTER card
equivalents. This section describes the resulting DMAP data for each command.
The raw DMAP data, stored in the program and modified according to your
input data, is listed by command type. The subcommand control cards are
identified by parentheses on the right side. For example, the (P only) for the
SUBSTRUCTURE command item 12, implies that this DMAP instruction is included
only if the OPTION request includes P (loads).
The ALTER card images are not true DMAP instructions but are used to locate
positions in the existing DMAP Rigid Format for replacement by or insertion of
the new DMAP instructions. The locations to be specified depend on the Rigid
Format selected by the SOL Executive Control Card and are listed in Volume II
for each Rigid Format. The relevant section of the Rigid Format for each ALTER
is indicated by the note in parentheses. For instance, "After GP4" in Rigid
Format 1 (statics) implies "ALTER nn" (where nn is the DMAP instruction number
of the GP4 module) for insertion of the corresponding DMAP instructions
following Rigid Format 1 DMAP instruction number nn. If an existing set of
DMAP instructions is to be removed, the parenthetical note may indicate
"Remove DECOMP", where DECOMP may be a set of NASTRAN modules related to the
entire decomposition process.
The descriptions given below are highly dependent on your input commands
and the Rigid Format selected. For an exact listing of all DMAP data generated
for the current set of substructure commands, the DIAG 23 Executive Control
Card may be input. Adding DIAG 24 will produce a punched deck of the actual
ALTER cards generated. This feature allows you to modify these ALTERs and
execute under APP DMAP,SUBS.
5.9.1 Index of Substructure DMAP ALTERs
ALTER Basic Function Page
BRECOVER Convert Phase 2 results to solution vectors 5.9-2
COMBINE Combine several substructures 5.9-3
CREDUCE Complex modal reduction of a substructure 5.9-4
DELETE
DESTROY
EDIT Internal utility commands 5.9-5
EQUIV
RENAME
SOFPRINT
MREDUCE Real modal reduction of a substructure 5.9-6
PLOT Plot substructures 5.9-7
RECOVER, MRECOVER Recover and output Phase 2 solution data or 5.9-8
Phase 1, 2 modal reduction data
REDUCE Initiate matrix partitioning operations 5.9-9
RUN Define the DRY parameter 5.9-10
SOFIN
SOFOUT
RESTORE File operators 5.9-11
DUMP
CHECK
SOLVE Provide data for execution of the solution phase5.9-12
SUBSTRUCTURE Initiate the automatic DMAP process 5.9-14
=PAGE=
DMAP for Command BRECOVER (Phase 3)
The BRECOVER command converts the results of a Phase 2 substructure
analysis to NASTRAN solution vectors for the detailed calculation of basic
structure (or an equivalent basic substructure) displacements, forces, loads,
and stresses. The same structure model of the primary substructure defined in
Phase 1 must be used in Phase 3. It is possible to perform the Phase 3
execution either as a restart of the Phase 1 run or as an independent run,
which recalculates the necessary data blocks.
Raw DMAP
1 ALTER (Remove solution)
2 PARAM //*NOP*/ALWAYS=-1 $
3 SSG1 SLT,BGPDT,CSTM,SIL,EST,MPT,GPTT,EDT,MGG,CASECC,DIT/
4 PG/LUSET/NSKIP $ (R.F. 9 only) (P or PA
5 SSG2 USET,GM,YS,KFS,GO,,PG/ only)
QR,PO,PS,PL $ (R.F. 1,2,3 or 9 only)
6 RCOVR3 ,PG,PS,PO,YS/UAS,QAS,PGS,PSS,POS,YSS,LAMA/SOLN/
7 *NAME*/NDUE $
8 EQUIV PGS,PG/ALWAYS $
9 EQUIV PSS,PS/ALWAYS $
10 EQUIV POS,PO/ALWAYS $
11 EQUIV YSS,YS/ALWAYS $ (R.F. 1 or 2 only) (P or PA only)
12 COND LBSSTP,OMIT $
13 FBS LOO,,POS/UOOV/1/1/PREC/0 $
14 LABEL LBSSTP $
15 OFP LAMA,,,,,//CARDNO $ (R.F. 3 only)
16 ALTER (After SDRI)
17 UMERGE USET,QAS,/QGS/*G*/*A*/*O* $
18 ADD QG,QGS/QGT $
19 EQUIV QGT,QG/ALWAYS $
20 EQUIV CASECC,CASEXX/ALWAYS $ (R.F. 8 or 9 only)
21 ALTER (Remove repeat logic)
Variables
YS,PO Remove if not P or PA, or if not R.F. 1 or 2.
PG,PS Remove if not P or PA, or if not R.F. 1, 2, or 9.
R.F. 1 2 3 8 9
UAS ULV ULV PHIA UDVF UDVT
PGS PGS PGS PPT
PSS PSS PSS PST
LAMA LAMA PPF TOL
QG QG QG QG QPC QP
POS Remove if not P or PA. or if not R.F. 1, 2, or 3.
SOLN Rigid Format solution number.
NAME Name of basic Phase 1 substructure, corresponding to
input data.
NOUE Remove if not R.F. 8 or 9.
STP Step number.
PREC Precision.
=PAGE=
DMAP for Command COMBINE
The COMBINE command initiates the process for combining several
substructures defined on the SOF files. The COMB1 module reads the control
deck and the bulk data cards and builds the tables and transformation matrices
for the combination structure. The COMB2 module performs the matrix
transformations using the matrices stored on the SOF file or currently defined
as NASTRAN data blocks. The resultant matrices are stored on the SOF file and
retained as NASTRAN data blocks.
Raw DMAP
1 COMB1 CASECC,GEOM4//STP/S,N,DRY/*PVEC* $
2 COND LBSTP,DRY $
3 COMB2 ,KN0l,KN02,KN03,KN04,KN05,KN06,KN07/KNSC/S,N,DRY
4 /*K*/* */*NAME0001*/*NAME0002*/*NAME0003*/ (K only)
5 *NAME0004*/*NAME0005*/*NAME0006*/*NAME0007* $
6 SOFO ,KNSC,,,,//S,N,DRY/*NAMEC */*KMTX* $
7 COMB2 ,MN01,MN02,MN03,MN04,MN05,MN06,MN07/MNSC/S,N,DRY/
8 *M*/* */*NAME000l*/*NAME0002*/*NAME0003*/ (M only)
9 *NAME0004*/*NAME0005*/*NAME0006*/*NAME0007* $
10 SOFO ,MNSC,,,,//S,N,DRY/*NAMEC */*MMTX* $
11 COMB2 ,PN01,PN02,PN03,PN04,PN05,PN06,PN07/PNSC/S,N.DRY/
12 *P*/*PVEC*/*NAME0001*/*NAME0002*/*NAME0003*/ (P or PA
13 *NAME0004*/*NAME0005*/*NAME0006*/*NAME0007* $ only)
14 SOFO ,PNSC,,,,//S,N,DRY/*NAMEC */*PVEC $
15 COMB2 ,BN0l,BN02,BN03,BN04,BN05,BN06,BN07/BNSC/S,N,DRY/
16 *B*/* */*NAME0001*/*NAME0002*/*NAME0003*/ (B only)
17 *NAME0004*/*NAME0005*/*NAME0006*/*NAME0007* $
18 SOFO ,BNSC,,,,//S,N,DRY/*NAMEC */*BMTX* $
19 COMB2 ,K4N01,K4N02,K4N03,K4N04,K4N05,K4N06,K4N07/K4NSC/
20 S,N,DRY/*K4*/* */*NAME000l*/*NAME0002*/*NAME0003*/ (K4 only)
21 *NAME0004*/*NAME0005*/*NAME0006*/*NAME0007* $
22 SOFO ,K4NSC,,,,//S,N,DRY/*NAMEC */*K4MX* $
23 LABEL LBSTP $
24 LODAPP PNSC,//*NAMEC */S,N,DRY $ (PA only)
Variables
STP Step number.
PVEC PVEC for P option, PAPP for PA option.
N01,N02,...etc. Internal numbers for structures to be combined.
NSC Internal number of combined structure.
NAME000l,NAME0002,...,etc. Names of pseudostructures to be combined.
NAMEC Name of combined structure.
=PAGE=
DMAP for Command CREDUCE
The CREDUCE command performs a complex modal synthesis reduction for a
component substructure. The resulting generalized coordinates for the reduced
substructure will consist of selected boundary point displacements and
generalized displacements of the eigenvectors. The MRED1 module produces dummy
USET and EED data blocks for the execution of the eigenvector extraction
procedure. The EQST data block is created for use by the CMRED2 module. The
CMRED2 module performs the actual matrix reduction. Note that, because the
number of modal degrees of freedom is a calculated value, the RUN = DRY option
is not allowed for complex modal reduction.
Raw DMAP
1 PARAM //*NOP*/ALWAYS=-1 $
2 MRED1 CASECC,GEOM4,DYNAMICS,CSTM/USETR,EEDR,EQST,DMR/*NAMEA */
3 S,N,DRY/STP/S,N,NOFIX/S,N,SKIPM/*COMPLEX* $
4 COND LBM3STP,DRY $
5 SOFI /KNOA,MNOA,PNOA,BNOA,K4NOA/S,N,DRY/*NAMEA */*KMTX*/*MNTX*/
6 *PVEC*/*BMTX*/*K4MX* $
7 COND LBM2STP,SKIPM $
8 EQUIV KNOA,KFFX/NOFIX $ (K only)
9 EQUIV MNOA,MFFX/NOFIX $ (M only)
10 EQUIV BNOA,BFFX/NOFIX $ (B only)
11 EQUIV K4NOA,K4FFX/NOFIX $ (K4 only)
12 COND LBM1STP,NOF1X $
13 SCE1 USETR,KNOA,MNOA,BNOA,K4NOA/KFFX,KFSX,KSSX,MFFX,
14 BFFX,K4FFX $ (Remove for
15 LABEL LBM1STP $ option PA)
16 PARAMR //*COMPLEX*//1,0/GPARAM /G $
17 ADD KFFX,K4FFX/KDD/G/(0,0,1,0) $
18 EQUIV KDD,KFFX/ALWAYS $
19 CEAD KFFX,BFFX,MFFX,EEDR,/PHIDR,CLAMA,OCEIGS,PHIDL
20 /NEIGVS $
21 OFP CLAMA,OCEIGS,,,,// $
22 EQUIV PHIDR,PHIFR/NOFIX $
23 EQUIV PHIDL,PHIFL/NOFIX $
24 COND LBM2STP,NOFIX $
25 UMERGE USETR,PHIDR,/PHIFR/*N*/*F*/*S* $
26 UMERGE USETR,PHIDL,/PHIFL/*N*/*F*/*S* $
27 LABEL LBM2STP $
28 CMRED2 CASECC,CLAMA,PHIFR,PHIFL,EQST,USETR,KNOA,MNOA,BNOA,K4NOA,PNOA/
29 KNOB,MNOB,BNOB,K4NOB,PNOB,PONOB/STP/S,N,DRY/*PVEC* $
30 LABEL LBM3STP $
31 LODAPP PNOB,PONOB//*NAMEB___*/S,N,DRY $ (PA only)
32 COND FINIS,DRY $
Variables
STP Step number.
PVEC PVEC for option P, PAPP for option PA.
NAMEA Name of input substructure, A.
NAMEB Name of output substructure, B.
NOA Internal number of substructure A.
NOB Internal number of substructure B.
KFFX,KFSX,KSSX K only.
MFFX M only.
BFFX B only.
K4FFX K4 only.
CLAMA,PHIFR,PHIFL Remove for option PA.
=PAGE=
DMAP for Utility Commands DELETE, DESTROY, EDIT, EQUIV, RENAME, SOFPRINT
Several internal operations of the SOF may be performed with the utility
commands which create various calls to the SOFUT module. Each of the commands
and associated data are inserted as parameters.
Raw DMAP
1 SOFUT //DRY/*NAME */*OPER*/OPT/*NAME0002*/*PREF*/*ITM1*/*ITM2*/
2 *ITM3*/*ITM4*/*ITM5* $
Variables
NAME Name of substructure.
OPER Operation to be performed (first four characters of
command, for example, EDIT).
OPT Integer option code.
NAME0002 Second substructure name for EQUIV and RENAME.
PREF Prefix for EQUIV operation.
ITM1,ITM2, etc. SOF data item names.
The following table describes the variables used for each command.
Ŀ
Command NAME OPER OPT NAME0002 PREF ITM1, etc.
Ĵ
DELETE X X X
DESTROY X X
EDIT X X X
EQUIV X X X X
RENAME X X X
SOFPRINT X X X X
=PAGE=
DMAP for Command MREDUCE
The MREDUCE command performs a modal synthesis reduction for a component
substructure. The resulting generalized coordinates for the reduced
substructure will consist of selected boundary point displacements and
generalized displacements of the modal coordinates. The MRED1 module produces
dummy USET and EED data blocks for the execution of the mode extraction
procedure. The EQST and DMR data blocks are created for use by the MRED2
module. The MRED2 module performs the actual matrix reduction. Note that,
because the number of modal degrees of freedom is a calculated value, the RUN
= DRY option is not allowed for modal reduction.
Raw DMAP
1 MRED1 CASECC,GEOM4,DYNAMICS,CSTM/USETR,EEDR,EQST,DMR/*NAMEA */
2 S,N,DRY/STP/S,N,NOFIX/S,N,SKIPM/*REAL* $
3 COND LBM3STP,DRY $
4 SOFI /KNOA,MNOA,PNOA,BNOA,K4NOA/S,N,DRY/*NAMEA */*KMTX*/*MMTX*/
5 *PVEC*/*BMTX*/*K4MX* $
6 COND LBM2STP,SKIPM $
7 EQUIV KNOA,KFFX/NOFIX $ (K only)
8 EQUIV MNOA,MFFX/NOFIX $ (M only)
9 EQUIV BN0A,BFFX/NOFIX $ (B only)
10 EQUIV K4NOA,K4FFX/NOFIX $ (K4 only)
11 COND LBM1STP,NOFIX $
12 SCE1 USETR,KNOA,MNOA,BNOA,K4NOA/KFFX,KFSX,KSSX, (Remove for
13 MFFX,BFFX,K4FFX $ PA)
14 LABEL LBM1STP $
15 READ KFFX,MFFX,BFFX,K4FFX,EEDR,USETR,/LAMAR,PHIR,
16 MIR,OEIGR/*MODES*/NEIGVS $
17 OFP LAMAR,OEIGR,,,,// $
18 EQUIV PHIR,PHIS/NOFIX $
19 COND LBM2STP,NOFIX $
20 UMERGE USETR,PHIR,/PHIS/*N*/*F*/*S* $
21 LABEL LBM2STP $
22 MRED2 CASECC,LAMAR,PHIS,EQST,USETR,KNOA,MNOA,BNOA,K4NOA,PNOA,DMR,
23 QSM/KNOB,MNOB,BNOB,K4NOB,PNOB,PONOB/STP/S,N,DRY/*PVEC* $
24 LABEL LBM3STP $
25 LODAPP PNOB,PONOB//*NAMEB */S,N,DRY $ (PA only)
26 COND FINIS,DRY $
Variables
STP Step number.
PVEC PVEC for option P, PAPP for option PA.
NAMEA Name of input substructure, A.
NAMEB Name of output substructure, B.
NOA Internal number of substructure A.
NOB Internal number of substructure B.
KFFX,KFSX,KSSX K only.
MFFX M only.
BFFX B only.
K4FFX K4 only.
LAMAR,PHIS Remove for option PA.
QSM Remove for R.F. 9.
=PAGE=
DMAP for Substructure Plots: PLOT
Any level of substructure may be plotted as an undeformed shape using the
existing NASTRAN plot logic. The plot sets generated in Phase 1 are combined
and transformed for that plotting.
Raw DMAP
1 PLTMRG CASECC,PCDB/PLTSTP,GPSTP,ELSTP,BGSTP,CASSTP,EQSTP/*NAME */
2 S,N,NGP/S,N,LSIL/S,N,NPSET $
3 SETVAL //S,N,PLTFLG/1/S,N,PFIL/0 $
4 PLOT PLTSTP,GPSTP,ELSTP,CASSTP,BGSTP,EQSTP,,,,,/PMSTP/NGP/LSIL/
5 S,N,NPSET/S,N,PLTFLG/S,N,PFIL $
6 PRTMSG PMSTP// $
Variables
NAME Name of substructure to be plotted.
STP Step number.
=PAGE=
DMAP for Commands RECOVER (Phase 2), MRECOVER (Phase 1, 2)
RECOVER performs the recovery and output of the Phase 2 solution data.
MRECOVER performs the recovery and output subsequent to a Phase 1 or 2 MREDUCE
or CREDUCE operation. The NASTRAN solution displacement vector (either
displacement vectors or eigenvectors) is transformed and expanded to
correspond to the degrees of freedom of the selected component substructures.
Each pass through the DMAP loop corresponds to a requested structure to be
processed. The RCOVR module selects the substructure to be processed with the
loop counter, ILOOP.
Raw DMAP
1 FILE U1=APPEND/U2=APPEND/U3=APPEND/U4=APPEND/U5=APPEND $
2 PARAM //*ADD*/ILOOP/0/0 $
3 LABEL LBSTP $
4 RCOVR CASESS,GEOM4,KGG,MGG,PGG,UGV,DIT,DLT,BGG,K4GG,PPF/OUGV1,
5 OPG1,OQG1,U1,U2,U3,U4,U5/S,N,DRY/S,N,ILOOP/STP/*NAMEFSS */
6 NSOL/NEIGV/S,N,LUI/S,N,U1N/S,N,U2N/S,N,U3N/S,N,U4N/S,N,U5N/
7 S,N,NOSORT2/V,Y,UTHRESH/V,Y,PTHRESH/V,Y,QTHRESH $
8 EQUIV OUGV1 ,OUGV /NOSORT2/OQG1,OQG/NOSORT2 $
9 EQUIV OPG1,OPG/NOSORT2 $ (R.F. 1, 2, 8, or 9 only)
1O COND NST2STP,NOSORT2 $
11 SDR3 OUGV1 ,OPG1,OQG1,,,/OUGV ,OPG,OQG,,, $
12 LABEL NST2STP $
13 OFP OUGV ,OPG,OQG,,,//S.N,CARDNO $
14 COND LBBSTP,ILOOP $
15 REPT LBSTP,100 $
16 LABEL LBBSTP $
17 SOFO ,U1,U2,U3,U4,U5//-1/*xxxxxxxx* $
Variables
KGG K option only.
MGG M option only.
BGG B option only.
K4GG K4 option only.
R.F. 1 2 3 8 9
GEOM4 GEOM4 GEOM4LAMA GEOM4 GEOM4
PGG PGG PGG PPF PPT
UGV UGV UGV PHIG UGV UGV
PPF PPF TOL
OUGV1 OUGV1 OUGV1OPHIG1 OUGV1 OUGV1
OUGV OUGV OUGV OPHIG OUGV OUGV
SS SS or CC (if after SOLVE step).
DIT, DLT Remove if not R.F. 1, 2, or 3.
OPG1, OPG Remove if R.F. 3.
NSOL Rigid Format solution number.
NEIGV R.F. 3 only.
NAMEFSS Name of solution structure.
=PAGE=
DMAP for Command REDUCE
The REDUCE command initiates the matrix partitioning operations to be
performed on the stiffness, mass, damping, and load vectors in order to
produce a set of matrices defined by a subset of the original degrees of
freedom. The REDUCE module generates the partitioning vector PV, a USET data
block US, and an identity matrix IN from the bulk data and the corresponding
substructure tables stored on the SOF. The remainder of the DMAP sequence
directs the actual matrix operations.
Raw DMAP
1 REDUCE CASECC,GEOM4/PVNOA,USSTP,INSTP/STP/S,N,DRY/*PVEC* $
2 COND LBRSTP,DRY $
3 SOFI /KNOA,MNOA,PNOA,BNOA,K4NOA/S,N,DRY/*NAME000A*/*KMTX*/*MMTX*/
4 *PVEC*/*BMTX*/*K4MX* $
5 COND LBRSTP,DRY $
6 SMP1 USSTP,KNOA,,,/GONOA,KNOB,KONOA,LONOA,,,,, $
7 MERGE GONOA,INSTP,,,,PVNOA/GNOA/1/TYP/2 $ (K only)
8 SOFO ,GNOA,LONOA,,,//DRY/*NAME000A*/*HORG*/*LMTX* $
9 SOFO ,KNOB,,,,//DRY/*NAME000B*/*KMTX* $
10 SOF1 /GNOA,,,,/S,N,DRY/*NAME000A*/*HORG* $ (all except K)
11 MPY3 GNOA,MNOA,/MNOB/0/0 $ (M only)
12 SOFO `MNOB,,,,//DRY/*NAME000B*/*MMTX* $
13 MPY3 GNOA,BNOA,/BNOB/0/0 $ (B only)
14 SOFO ,BNOB,,,,//DRY/*NAME000B*/*BMTX* $
15 MPY3 GNOA,K4NOA,/K4NOB/0/0 $ (K4 only)
16 SOFO ,K4NOB,,,,//DRY/*NAME000B*/*K4MX* $
17 PARTN PNOA,,PVNOA/PONOA,,,/1/1/2 $ (P or PA
18 MPYAD GNOA,PNOA,/PNOB/1/1/0/1 $ only)
19 SOFO ,PONOA,,,,//DRY/*NAME000A*/*POVE* $
20 SOFO ,PVNOA,,,,//DRY/*NAME000A*/*UPRT* $
21 S9F9 ,PNOB,,,,//DRY/*NAME000B*/*PVEC* $ (P or PA only)
22 LABEL LBRSTP $
23 LODAPP PNOB,PONOA//*NAME000B*/S,N,DRY $ (PA only)
Variables
STP Step number.
NAME000A Name of input structure, A.
NAME000B Name of output structure, B.
NOA,NOB Internal numbers of substructures A and B.
TYP Matrix precision flag (1 = single).
PVEC PVEC for P option, PAPP for PA option.
POVE POVE for P option, POAP for PA option.
=PAGE=
DMAP for Command RUN
The RUN command defines the DRY parameter for use by the subsequent DMAP
instructions. If you specify RUN = DRY, a special set of DMAP instructions is
placed at the end of the entire command sequence.
Raw DMAP
PARAM //*ADD*/DRY/I /0$
Variables
I Integer code for RUN option (DRY = -1, GO = 0, STEP =
1).
If RUN = DRYGO, I is set to (DRY) initially and the
following DMAP is inserted at the end of the complete
ALTER stream:
LABEL LBSEND $
PARAM //*ADD*/DRY/DRY/1 $
COND FINIS,DRY $
REPT LBSBEG,1 $
JUMP FINIS $
=PAGE=
DMAP for External I/O Commands SOFIN, SOFOUT, RESTORE, DUMP, CHECK
Several operations may be performed on the NASTRAN user files and the SOF
file using the EXIO module. The various input parameters are set by the
Substructure Commands.
Raw DMAP
EXIO //S,N,DRY/MACH/*DEVI*/*UNITNAME*/*FORM*/*MODE*/*POSI*/*ITEM*/
*NAME0001*/*NAME0002*/*NAME0003*/*NAME0004*/*NAME0005* $
Variables
MODE First four characters of command name (that is,
"SOFI", "REST").
DEVI Device used for I/O file ("TAPE" or "DISK").
UNITNAME Name of NASTRAN user file assigned to I/O file (that is,
INPT, INP1, etc.).
FORM Format of data ("EXTE" or "INTE").
POSI Position of file on device ("REWI", "NORE", or "EOF").
ITEM Name of SOF item or "ALL", "MATR", "TABL", or "PHAS".
NAME0001, etc. Names of substructures to be copied.
The following table describes the variables used for each command:
Ŀ
Command MODE DEVI UNITNAME FORM POSI ITEM NAME000i
Ĵ
SOFlN X X X X X X X
SOFOUT X X X X X X X
RESTORE X X X
DUMP X X X
CHECK X X X
=PAGE=
DMAP for Command SOLVE
The SOLVE command provides the necessary data for execution of the solution
phase of NASTRAN. Module SGEN replaces the NASTRAN GP1 module for the purpose
of defining an equivalent pseudostructure from data blocks. The new data
blocks GE3S and GE4S contain the load and constraint data in the form of
converted bulk data card images. The stiffness, mass, viscous damping, and
structural damping matrices are obtained from the SOF files and added to any
user matrix terms. The static and dynamic analysis rigid formats require
separate raw DMAP. Both sets of raw DMAP are shown below.
Raw DMAP, Rigid Formats 1-3
1 ALTER (Remove GP1)
2 PARAM //*NOP*/ALWAYS=-1 $
3 SGEN CASECC,GEOM3,GEOM4,DYNAMICS/CASESS,CASEI,GPL,EQUEXIN,GPDT,
4 BGPDT,SIL,GE3S,GE4S,DYNS/S,N,DRY/*NAMESOLS*/S,N,LUSET/
5 S,N,NOGPDT $
6 PURGE CSTM $
7 EQUIV GE3S,GEOM3/ALWAYS/GE4S,GEOM4/ALWAYS/CASEI,CASECC/ALWAYS/
8 DYNS,DYNAMICS/ALWAYS $
9 COND LBSTP,DRY $
10 ALTER (Remove PLOT)
11 ALTER (Remove NOSIMP COND)
12 COND LBSOL,NOSIMP $
13 ALTER (Remove Property Optimization EQUIV or NOMGG COND)
14 COND LBSOL,NOMGG $
15 ALTER (Remove SMA3)
16 LABEL LBSOL $
17 SOFI /KNOS,MNOS,,,/DRY/*NAMESOLS*/*KMTX*/*MMTX* $
18 EQUIV KNOS,KGG/NOSIMP $ (K only)
19 EQUIV MNOS,MGG/NOSIMP $ (M only)
20 COND LBSTP,NOSIMP $
21 ADD KGGX,KNOS/KGG $ (K only)
22 ADD MGG,MNOS/MGGX $ (M only)
23 EQUIV MGGX,MGG/ALWAYS $
24 LABEL LBSTP $
25 CHKPNT MGG $
26 ALTER (After GP4)
27 COND LBSEND,DRY $
28 ALTER (Remove SDR2 - PLOT)
Variables
NAMESOLS Name of solution structure.
NOS Internal number of solution structure.
STP Step number.
Raw DMAP, Rigid Formats 8, 9
1 ALTER (Remove GP1)
2 PARAM //*NOP*/ALWAYS=-1 $
3 SGEN CASECC,GEOM3,GEOM4,DYNAMICS/CASESS,CASEI,GPL,EQEXIN,GPDT,
4 BGPDT,SIL,GE3S,GE4S,DYNS/S,N,DRY/*NAMESOLS*/S,N,LUSET/
5 S,N,NOGPDT $
6 PURGE CSTM $
7 EQUIV GE3S,GEOM3/ALWAYS/GE4S,GEOM4/ALWAYS/CASEI,CASECC/ALWAYS
8 DYNS,DYNAMICS/ALWAYS $
9 COND LBSTP,DRY $
10 ALTER (Remove PLOT)
11 ALTER (Remove NOSIMP PURGE and COND)
12 ALTER (Remove GPWG and SMA3)
13 SOFI /KNOS,MNOS,BNOS,K4NOS,/DRY/*NAMESOLS*/*KMTX*/*MMTX*/*BMTX*/
14 *K4MX* $
15 EQUIV KNOS,KGG/NOKGGX $
16 COND LB2K,NOKGGX $ (K only)
17 ADD KGGX,KNOS/KGG $
18 LABEL LB2K $
19 EQUIV MNOS,MGG/NOMGG $
20 COND LB2M,NOMGG $
21 ADD MGG,MNOS/MGGX $ (M only)
22 EQUIV MGGX,MGG/ALWAYS $
23 LABEL LB2M $
24 EQUIV BN0S,BGG/NOBGG $
25 COND LB2B,NOBGG $
26 ADD BGG,BNOS/BGGX $ (B only)
27 EQUIV BGGX,BGG/ALWAYS $
28 LABEL LB2B $
29 EQUIV K4NOS,K4GG/NOK4GG $
30 COND LB2K4,NOK4GG $
31 ADD K4GG,K4NOS/K4GGX $ (K4 only)
32 EQUIV K4GGX,K4GG/ALWAYS $
33 LABEL LB2K4 $
34 LBSTP $
35 CHKPNT MGG,BGG,K4GG $
36 ALTER (Remove MDEMA, KDEK2 PARAM)
37 PARAM //*AND*/MDEMA/NQUE/NOM2PP $
3B PARAM //*ADD*/KDEK2/1/0 $ (K only)
39 PARAM //*ADD*/NOMGG/1/0 $ (M only)
40 PARAM //*ADD*/NOBGG/1/0 $ (B only)
41 PARAM //*ADD*/NOK4GG/1/0 $ (K4 only)
42 ALTER (Remove NOSIMP, NOGPDT EQUIV)
43 EQUIV K2DD,KDD/KDEK2 $
44 EQUIV M2DD,MDD/NOMGG $
45 EQUIV B2DD,BDD/NOBGG $
45 ALTER (Remove SDR2 and PLOT)
47 EQUIV UPVF,UPVC/NOA $
48 COND LBL19,NOA $
49 SDR1 USETD,,UDVF,,,GOD,GMD,,,,/UPVC,,/1/DYNAMICS $
50 LABEL LBL19 $
51 CMKPNT UPVC $
52 EQUIV UPVC,UGV/NOUE $
53 COND LBUE,NOUE $
54 UPARTN USET,UPVC/UGV,UEV,,/*P*/*G*/*E* $
55 LABEL LBUE $
Variables
NAMESOLS Name of solution structure.
NOS Internal number of solution structure.
STP Step number.
UDVF UDVF for R.F. 8, UDVT for R.F. 9.
=PAGE=
DMAP for Command SUBSTRUCTURE
The SUBSTRUCTURE command is necessary to initiate the automatic DMAP
process. In Phase 1, the SUBPH1 module is used to build the substructure
tables on the SOF from the NASTRAN grid point tables and the SOFO module is
used to copy the matrices onto the SOF. In Phase 2 and Phase 3, the initial
value of the DRY parameter is set and the DMAP sequence is initiated.
Raw DMAP
PHASE 1
1 ALTER 2,0
2 PARAM //*NOP*/ALWAYS=-1 $
3 SGEN CASECC,,,/CASESS,CASEI,,,,,,,,/S,N,DRY/*XXXXXXXX*/S,N,LUSET/
4 S,N,NOGPDT $
5 EQUIV CASEI,CASECC/ALWAYS $
6 ALTER (After GP4)
7 PARAM //*ADD*/DRY-1 /0 $
8 LABEL LBSBEG $
9 COND LBLIS,DRY $ (R.F. 1, 2, 3, and 9 only)
10 SSG1 SLT,BGPDT,CSTM,SIL,EST,MPT,GPTT,EDT,MGG,CASECC,DIT/ (R.F.
11 PG/LUSET/NSKIP $ 9 & P
12 CHKPNT PG $ or PA
13 ALTER (Remove DECOMP) only)
14 SSG2 USET,GM,,KFS,GO,,PG/QR,PO,PS,PL $ (R.F.
15 CHKPNT PO,PS,PL $ 9 & P
16 LABEL LBLIS $ (R.F. 1, 2, 3, and 9 only) or PA
17 ALTER (Remove solution) only)
18 SUBPH1 CASECC,EQEXIN,USET,BGPDT,CSTM,GPSETS,ELSETS//S,N,DRY/
19 *NAME */PLOTID /*PVEC* $
20 COND LBSEND,DRY $
21 EQUIV PG,PL/NOSET $ R.F. 1,
22 COND LBL10,NOSET $ 2, or 3
23 SSG2 USET,GM,YS,KFS,GO,,PG/QR,PO,PS,PL $ & P or
24 CHKPNT PO,PS,PL $ PA only)
25 LABEL LBL10 R
26 SOFO ,KAA,MAA,PL,BAA,K4AA//S,N,DRY/*NAME*/*KMTX*/*MMTX*/PVEC*/
27 *BMTX*/*K4MX* $
28 LODAPP PL,//*NAME */S,N,DRY $ (R.F. 1, 2, 3, or 9 and PA only)
29 EQUIV CASESS,CASECC/ALWAYS $
PHASE 2
1 ALTER 2,0
2 PARAM //*ADD*/DRY/I/0 $
3 LABEL LBSBEG $
PHASE 3
1 ALTER (Remove DECOMP or before dynamic solution)
2 PARAM //*ADD*/DRY/I/0 $
3 LABEL LBSBEG $
Variables
I Integer RUN option code (see RUN command).
NAME Phase 1 substructure name.
PLOTID Phase 1 Plot Set ID.
KAA, MAA, PL, BAA, K4AA Data blocks dependent on OPTION.
PVEC PVEC for option P, PAPP for option PA.
=PAGE=
5.10 SUPPLEMENTARY FUNCTIONAL MODULES
Module Basic Function Page
EMA1 Alternative Element Matrix Generator 5.10-2
GPSPC Automatically constrain potential stiffness
matrix singularities 5.10-3
These modules are fully described in Section 4 of the Programmer's Manual.
However, since they are not incorporated in any of the Rigid Formats, they are
included here for reference purposes. These modules must be ALTERed into Rigid
Formats.
=PAGE=
EMA1 - Element Matrix Assembler
Purpose
This module superimposes matrices corresponding to elements into a structural
matrix corresponding to all degrees of freedom at all grid points.
DMAP Calling Sequence
EMA1 GPECT, KDICT , KELM , SIL,ECT/ KGGX ,
MDICT MELM MGG
GPST/C,N,NOK4/C,N,WTMASS $
Input Data Blocks
GPECT Grid Point Element Connection Table.
KDICT, MDICT Element Matrix Dictionaries.
KELM, MELM Element Matrix Partitions.
SIL Scalar Index List.
ECT Element Connection Table.
Output Data Blocks
KGGX Assembled Structural Matrix.
MGG Assembled Mass Matrix.
GPST Grid Point Singularity Table.
NOTE: GPST may be purged.
Parameters
NOK4 Input-Integer, default = -1. Flag which specifies whether damping
factor is to be used in assembling matrix (-1 ignores factor).
WTMASS Input-Real, default = 1.0. Constant by which all element matrix
terms are multiplied.
Example
To replace the current module EMA with module EMA1 in DISP Static Analysis
(DISP Rigid Format 1), the following ALTERs must be made:
ALTER n1,n1 $ STRUCTURAL MATRIX (where n1 = DMAP statement number of the EMA
module corresponding to the stiffness matrix)
EMA1 GPECT,KDICT,KELM,SIL,ECT/KGGX,GPST $
ALTER n2,n2 $ MASS MATRIX (where n2 = DMAP statement number of the EMA module
corresponding to the mass matrix)
EMA1 GPECT,MDICT,MELM,SIL,ECT/MGG,/-1/C,Y,WTMASS=1.0 $
ENDALTER $
=PAGE=
GPSPC - Constrain Stiffness Matrix Singularities
Purpose
The GPST data block contains data on potential stiffness matrix singularities.
These singularities may have been removed through the application of single or
multipoint constraints. The GPSPC module checks each singularity against the
list of constraints, and if the singularity is not thereby removed, writes a
warning for you and on your option automatically constrains the singularity.
This module will not be used if GENELs are present.
DMAP Calling Sequence
GPSPC GPL,GPST,USET,SIL / OGPST,USETC / V,N,NOGPST / V,Y,SINCON / V,N,SINGLE /
V,N,OMIT / V,N,REACT / V,N,NOSET / V,N,NOL / V,N,NOA $
Input Data Blocks
GPL Grid Point List.
GPST Grid Point Singularity Table.
USET Displacement Set Definitions Table.
SIL Scalar Index List.
NOTE: No input data block can be purged.
Output Data Blocks
OGPST Tabular list of grid point singularities not removed by you. This
data block will be processed by the OFP (Output File Processor)
module.
USETC Displacement Set Definition Table with singularities constrained.
Parameters
NOGPST Output-Integer, default = 1. If positive, OGPST was created.
SINCON Input and Output-Integer, default = -1. If SINCON is negative on
input, remaining singularities are automatically constrained. On
output, same negative value if singularities existed, zero
otherwise.
SINGLE Input and Output-Integer, no default. See description of GP4
parameters of the same name in Programmer's Manual Section 4.31.
Values are corrected only if singularities were constrained.
OMIT Input and Output-Integer, no default. See description of GP4
parameters of the same name in Programmer's Manual Section 4.31.
Values are corrected only if singularities were constrained.
REACT Input and Output-Integer, no default. See description of GP4
parameters of the same name in Programmer's Manual Section 4.31.
Values are corrected only if singularities were constrained.
NOSET Input and Output-Integer, no default. See description of GP4
parameters of the same name in Programmer's Manual Section 4.31.
Values are corrected only if singularities were constrained.
NOL Input and Output-Integer, no default. See description of GP4
parameters of the same name in Programmer's Manual Section 4.31.
Values are corrected only if singularities were constrained.
NOA Input and Output-Integer, no default. See description of GP4
parameters of the same name in Programmer's Manual Section 4.31.
Values are corrected only if singularities were constrained.
Examples
1. To use the GPSPC module instead of the standard GPSP module in a static
analysis (DISP Rigid Format 1), module GPSP is replaced by module GPSPC and
the USET data block is replaced by the USETC data block. In this case, the
following ALTERs are required:
ALTER n1,n2 $ (where n1 and n2 are the DMAP statement numbers of the PARAM
and PURGE statements following the GP4 module)
ALTER n3,n3 $ (where n3 = DMAP statement number of the GPSP module)
GPSPC GPL,GPST,USET,SIL/OGPST,USETC/S,N,NOGPST/S,Y,SINCON=-1/
S,N,SINGLE/S,N,OMIT/S,N,REACT/S,N,NOSET/S,N,NOL/S,N,NOA $
EQUIV USETC,USET/SINCON $
ALTER n4 $ (where n4 = DMAP statement number of the OFP module immediately
following the GPSP module)
PARAM //*ADD*/SING/V,Y,SINCON/1 $
COND ERROR3,NOL $
COND ERROR,SING $
ALTER n5 $ (where n5 = DMAP statement number of LABEL LBL4)
PARAM //*AND*/NOSR/SINGLE/REACT $
PURGE KRR,KLR,QR,DM/REACT /GM/MPCF1 /GO,KOO,LOO,PO,UOOV,RUOV/OMIT
PS,KFS,KSS/SINGLE /QG/NOSR $
LABEL ERROR $
PRTPARM //0/*SINCON* $
ENDALTER $
The input parameter SINCON can be changed from the initial value
illustrated for the general case, either by using the form C,N,i or by
using a PARAM bulk data card with a different value. When SINCON = -1, the
strongest combination of possible singularities is automatically
constrained and noted in the GPST output.
2. To use the GPSPC module instead of the standard GPSP module in a real
eigenvalue analysis (DISP Rigid Format 3), module GPSP is replaced by
module GPSPC and the USET data block is replaced by the USETC data block.
In this case, the following ALTERs are required:
ALTER n1,n1 $ (where n1 = DMAP statement number of the PURGE module
following the GP4 module)
ALTER n2,n2 $ (where n2 = DMAP statement number of the GPSP module)
GPSPC GPL,GPST,USET,SIL/OGPST,USETC/S,N,NOGPST/S,Y,SINCON=-1/
S,N,SINGLE/S,N,OMIT/S,N,REACT/S,N,NOSET/S,N,NOL/S,N,NOA $
COND ERROR3,NOL $
EQUIV USETC,USET/SINCON $
ALTER n3 $ (where n3 = DMAP statement number of LABEL LBL4)
PARAM //*ADD*/SING/V,Y,SINCON/1 $
COND ERROR,SING $
PURGE KRR,KLR,DM,MLR,MR/REACT /GM/MPCF1 /GO/OMIT /KFS/SINGLE /
QG/NOSET $
LABEL ERROR $
PRTPARM //0/*SINCON* $
ENDALTER $
The input parameter SINCON can be changed from the initial value
illustrated for the general case, either by using the form C,N,i or by
using a PARAM bulk data card with a different value. When SINCON = -1, the
strongest combination of possible singularities is automatically
constrained and noted in the GPST output.
|