/usr/share/elmerfront/tcl/ecif_tk_initGlobalArries.tcl is in elmer-common 6.1.0.svn.5396.dfsg2-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #/*****************************************************************************/
# *
# * Elmer, A Finite Element Software for Multiphysical Problems
# *
# * Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland
# *
# * This program is free software; you can redistribute it and/or
# * modify it under the terms of the GNU General Public License
# * as published by the Free Software Foundation; either version 2
# * of the License, or (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with this program (in file fem/GPL-2); if not, write to the
# * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# * Boston, MA 02110-1301, USA.
# *
# *****************************************************************************/
#***********************************************************************
#Program: ELMER Front
#Module: ecif_tk_globParams.tcl
#Language: Tcl
#Date: 16.11.98
#Version: 1.00
#Author(s): Martti Verho
#Revisions:
#
#Abstract: Global variables
#
#************************************************************************
global UserSetting
# Solver keyword (SOLVER.KEYWORDS-file) sections
# and short names for them
# ========================
# NOTE: Keyword Type info is stored like:
# SKWD(BF,heatsource,0) if not given
# SKWD(BF,heatsource,1) if given
#
global SKWD
# Short names for sections
#
set SKWD(BodyForce) BF
set SKWD(Body) BO
set SKWD(BoundaryCondition) BC
set SKWD(Boundary) BA
set SKWD(Constant) CN
set SKWD(Equation) EQ
set SKWD(InitialCondition) IC
set SKWD(Material) MT
set SKWD(Simulation) SI
set SKWD(Solver) SL
#==========================================#
# #
# FRONT_INIT #
# #
#==========================================#
#
# Initialize global arries
#
#
proc FRONT_INIT {} {
# All Front global arries
# =======================
global Model ObjectTable MatcDefinitions
global Common Info Status ModelFlags
global BodyProperty BodyDisplay LabelDisplay
global Boundary BoundaryDisplay VertexDisplay MeshDefine MeshSelect PostFileSelect
global ProcessIds ProcessTable
global InputFileInfo ModelInfo BodyInfo
global RendererInfo SystemInfo SourceList TclCommand
global \
BodyParameter \
BoundaryParameter \
BodyForce \
BoundaryCondition \
Coordinate \
Calculator \
Constant \
Datafile \
Equation \
EquationVariable \
GridParameter \
GridH \
InitialCondition \
Material \
ModelParameter \
ModelProperty \
Processor \
SimulationParameter \
Solver \
SolverControl \
SolverOrder \
SolverSystem \
Timestep \
UserSetting \
Variables
# These are arries which are "panel" related
#
set Common(allPanelArries) {
BodyParameter BoundaryParameter ModelParameter SimulationParameter
BodyForce BoundaryCondition Boundary Calculator Constant Coordinate Datafile
Equation EquationVariable MeshDefine GridParameter GridH InitialCondition Material
ModelProperty Processor Solver SolverControl SolverOrder Timestep UserSetting Variables
}
# These panels are handled by "StandardPanel" procs. They need special
# calls for cancel etc. when called "outside"
#
set Common(standardPanelArries) {
BodyParameter BoundaryParameter
BodyForce BoundaryCondition Equation
GridParameter GridH InitialCondition Material
Calculator Solver
}
# These parameter arries must be checked when an equation
# has been changed
#
set Common(maskedParameters) {
BodyForce BoundaryCondition InitialCondition Material
}
set Common(currentArray) ""
set Common(currentStandardPanel) ""
#---Parameter panel arries menu names
#
set BodyForce(menuName) "Body forces"
set BodyParameter(menuName) "Body parameters"
set BoundaryCondition(menuName) "Boundary conditions"
set Boundary(menuName) "Boundaries"
set BoundaryParameter(menuName) "Boundary parameters"
set Coordinate(menuName) "Coordinate settings"
set Calculator(menuName) "Calculators"
set Constant(menuName) "Physical constants"
set Datafile(menuName) "Datafiles"
set Equation(menuName) "Equations"
set EquationVariable(menuName) "Equation variables"
set GridParameter(menuName) "Mesh structure"
set GridH(menuName) "Mesh density"
set InitialCondition(menuName) "Initial conditions"
set Material(menuName) "Materials"
set MeshDefine(menuName) "Mesh define"
set ModelParameter(menuName) "Model parameters"
set ModelProperty(menuName) "Model name and directories"
set SimulationParameter(menuName) "Simulation parameters"
set Solver(menuName) "Solver settings"
set SolverControl(menuName) "Solver control"
set Processor(menuName) "Processor settings"
set SolverOrder(menuName) "Equation solving order"
set Timestep(menuName) "Timestep settings"
set UserSetting(menuName) "Settings"
set Variables(menuName) "Variables"
#---Parameter panel array codes
set BodyForce(parameterType) "BF"
set BodyParameter(parameterType) "BodyP"
set BoundaryCondition(parameterType) "BC"
set Boundary(parameterType) "BA"
set BoundaryParameter(parameterType) "BndrP"
set Coordinate(parameterType) "CO"
set Calculator(parameterType) "CL"
set Constant(parameterType) "CN"
set Datafile(parameterType) "DF"
set Equation(parameterType) "EQ"
set EquationVariable(parameterType) "EV"
set GridParameter(parameterType) "GR"
set GridH(parameterType) "GH"
set InitialCondition(parameterType) "IC"
set Material(parameterType) "MT"
set MeshDefine(parameterType) "MD"
set ModelParameter(parameterType) "ModelP"
set ModelProperty(parameterType) "MP"
set SimulationParameter(parameterType) "SimuP"
set Solver(parameterType) "SL"
set SolverControl(parameterType) "SLC"
set Processor(parameterType) "PR"
set SolverOrder(parameterType) "SO"
set Timestep(parameterType) "TS"
set UserSetting(parameterType) "US"
set Variables(parameterType) "VA"
#
#---Panel array names in Common
set Common(panelArray,BF) "BodyForce"
set Common(panelArray,BodyP) "BodyParameter"
set Common(panelArray,BC) "BoundaryCondition"
set Common(panelArray,BA) "Boundary"
set Common(panelArray,BndrP) "BoundaryParameter"
set Common(panelArray,CL) "Calculator"
set Common(panelArray,CN) "Constant"
set Common(panelArray,CO) "Coordinate"
set Common(panelArray,DF) "Datafile"
set Common(panelArray,EQ) "Equation"
set Common(panelArray,EV) "EquationVariable"
set Common(panelArray,GR) "GridParameter"
set Common(panelArray,GH) "GridH"
set Common(panelArray,IC) "InitialCondition"
set Common(panelArray,MD) "MeshDefine"
set Common(panelArray,MT) "Material"
set Common(panelArray,ModelP) "ModelParameter"
set Common(panelArray,MP) "ModelProperty"
set Common(panelArray,PR) "Processor"
set Common(panelArray,SimuP) "SimulationParameter"
set Common(panelArray,SL) "Solver"
set Common(panelArray,SLC) "SolverControl"
set Common(panelArray,SO) "SolverOrder"
set Common(panelArray,TS) "Timestep"
set Common(panelArray,US) "UserSetting"
set Common(panelArray,VA) "Variables"
#==========================================================================#
#==========================================================================#
#---Status fields
set Status(useAbsoluteBase) 1 ;# Absolute base like Model(nofBodies); relative like Model(nofBodieWithEquation)
MenuExec::initStatusFields
#---Model environment, properties panel stuff, initial values
#
set Model(CASE_NAME) ""
set Model(GEOMETRY_DIMENSION) ""
set Model(SIMULATION_DIMENSION) ""
set Model(GEOMETRY_TYPE) "None"
set Model(cadPath) ""
set Model(cadFileType) 0 ;# Default: Elmer egf
set Model(meshPath) ""
set Model(meshFileType) 2 ;# Default: Elmer 2D
set Model(CAD_OPEN_DIR) ""
set Model(MESH_OPEN_DIR) ""
set Model(MESH_SAVE_DIR) ""
set Model(EMF_HOME) "" ;# Default directory for Ecf model files
set Model(EMF_PATH) "" ;# Ecf model file full name (dir + filename)
set Model(EMF_PATH_IN) "" ;# Ecf model infile full name (dir + filename)
set Model(EMF_FILE) "" ;# Ecf model file name (without directory)
set Model(EMF_SAVE_DIR) "" ;# Current save directory for Ecf model files
set Model(EMF_OPEN_DIR) "" ;# Current read directory for Ecf model files
set Model(outElmerPostMeshFile) ""
set Model(outThetisMeshFile) ""
set Model(meshInputUnit) 1.0 ;# External mesh scaling factor (1.0 <--> m, 0.001 <--> mm ect)
set Model(meshNames) "" ;# All meshdir names under MESHDIR
set Model(meshHs) "" ;# All meshH values
set Model(meshFs) "" ;# All meshF values
set Model(nofActiveMeshes) 0 ;# Nof different meshes in active solvers
set Model(status) 0 ;# Model status ok
set Model(statusMessage) ""
set Model(hasUserDefinitions) 0
set Model(hasMatcDefinitions) 0
set Model(inDefinitionFile) ""
set Model(inDefinitionFileDir) ""
set Model(outDefinitionFile) ""
set Model(allDefinitions) ""
set Model(newDefinitions) ""
set Model(removedFieldsList) ""
set Model(matcInputFile_emf) ""
set Model(matcInputFile_sif) ""
set Model(Solver,askNonExistingMesh) 1
set Model(Solver,solving) 0
set ModelFlags(GEOMETRY_TYPE_CAD) 0
set ModelFlags(GEOMETRY_TYPE_MESH) 0
set ModelFlags(DRAW_SOURCE_CAD) 0
set ModelFlags(DRAW_SOURCE_MESH) 0
set ModelFlags(DRAW_TARGET_BODIES) 0
set ModelFlags(DRAW_TARGET_SURFACES) 0
set ModelFlags(SELECT_OBJECTS_EXTEND) 0
set ModelFlags(LABEL_DISPLAY_NODE) 0
set ModelFlags(LABEL_DISPLAY_ELEMENT) 0
set ModelFlags(LABEL_DISPLAY_VERTEX) 0
set ModelFlags(LABEL_DISPLAY_EDGE) 0
set ModelFlags(LABEL_DISPLAY_FACE) 0
set ModelFlags(LABEL_DISPLAY_BODY) 0
# Init model directories
#set ModelProperty(MODEL_NAME) ""
#ModelProperty::initCaseDirectoryVariables
set MeshDefine(MESH_H,default) -1
set MeshDefine(MESH_F,default) 1.0
set PostFileSelect(postFile) ""
set PostFileSelect(addDirectory) ""
set PostFileSelect(fileList) ""
set PostFileSelect(serverId) 0
set RendererInfo(LINE_WIDTH_GRANULARITY) ""
set RendererInfo(LINE_WIDTH_RANGE) ""
#---Names for ELMER components starting scripts
# If process exec messages are shown is message area
set Info(displayExecMessages) 0
# If Matc definition should be drop from model file
set Info(dropModelMatcDefinitions) 0
#--Info array variable names for the processes
#
# NOTE: The variable name (the first part before comma) and the text
# MUST match, because the text is used as the array variable name!!!
#
# This (a bit stupid) indirective naming is used because we can call
# eg. solver-process stuff more safely like:
# set process_name $Info(Solver,processName)
# set exec_name $Info($process,proc,WIN32)
# and NOT like:
# set process_name "Solver"
# where erronous writing could go unnoticed!
#
#--Internal names for the processes
# Do NOT change these values, they are 'keys'!!!
#
set Info(Emf2Db,processName) "Emf2DB"
set Info(GebhardtFactors,processName) "GebhardtFactors"
set Info(Mesh2D,processName) "Mesh2D"
set Info(Mesh3D,processName) "Mesh3D"
set Info(Results,processName) "Results"
set Info(Post,processName) "Post"
set Info(Solver,processName) "Solver"
set Info(Viewfactors,processName) "Viewfactors"
set Info(F90,processName) "F90"
#--External executable names for the processes
set Info(Emf2Db,proc,WIN32) "Emf2Db.exe"
set Info(GebhardtFactors,proc,WIN32) "GebhardtFactors.exe"
set Info(Mesh2D,proc,WIN32) "ElmerMesh2D.exe"
set Info(Mesh3D,proc,WIN32) "ElmerMesh3D.exe" ;# Not in use:-)
set Info(Results,proc,WIN32) "ElmerPost.exe"
set Info(Post,proc,WIN32) "ElmerPost.exe"
set Info(Solver,proc,WIN32) "ElmerSolver.exe"
set Info(Viewfactors,proc,WIN32) "ViewFactors.exe"
set Info(F90,proc,WIN32) "f90.exe"
set Info(Emf2Db,proc,UNIX) "Emf2Db"
set Info(GebhardtFactors,proc,UNIX) "GebhardtFactors"
set Info(Mesh2D,proc,UNIX) "ElmerMesh2D"
set Info(Mesh3D,proc,UNIX) "Mesh3D"
set Info(Results,proc,UNIX) "ElmerPost"
set Info(Post,proc,UNIX) "ElmerPost"
set Info(Solver,proc,UNIX) "ElmerSolver"
set Info(Viewfactors,proc,UNIX) "ViewFactors"
set Info(F90,proc,UNIX) "f90"
#--Short display names for the processes
set Info(Emf2Db,processTag) "Emf2DB"
set Info(GebhardtFactors,processTag) "GebFact"
set Info(Mesh2D,processTag) "Mesh2D"
set Info(Mesh3D,processTag) "Mesh3D"
set Info(Results,processTag) "ElmerPost"
set Info(Post,processTag) "ElmerPost"
set Info(Solver,processTag) "Solver"
set Info(Viewfactors,processTag) "Viewfact"
set Info(F90,processTag) "F90Comp"
set Info(Emf2Db,checkAllDone) 0
set Info(GebhardtFactors,checkAllDone) 1
set Info(Mesh2D,checkAllDone) 1
set Info(Mesh3D,checkAllDone) 1
set Info(Results,checkAllDone) 0
set Info(Post,checkAllDone) 0
set Info(Solver,checkAllDone) 1
set Info(Viewfactors,checkAllDone) 1
set Info(F90,checkAllDone) 0
set Info(Results,tclServer) "ElmerPost-$Info(PID)"
set Info(Results,tclCommand) ""
set Info(defaultLogDirectoryName) "LOGDIR"
set Info(meshDirectoryName) "MESHDIR"
set Info(meshInfoFileName) "ELMERFRONT_MESHINFO"
#---Names for ELMER logfiles
set Info(Emf2Db,logfile) ElmerEmf2Db
set Info(GebhardtFactors,logfile) ElmerGebhardtFactors
set Info(Mesh2D,logfile) ElmerMesh2D
set Info(Mesh3D,logfile) ElmerMesh3D
set Info(Results,logfile) ElmerPost
set Info(Post,logfile) ElmerPost
set Info(Solver,logfile) ElmerSolver
set Info(Viewfactors,logfile) ElmerViewfactors
set Info(F90,logfile) ElmerF90Compiler
#---User entered procedure libraries settings in the
# procedure entry panel are stored here (Note this is
# gloabl value, common for all procedure panels during
# the session
set Info(procedureLibraries) ""
set Info(lastProcedureDir) ""
#---Background process priority levels (Mesh, Solver, *factors etc.)
set Info(ElmerRun,lowPriority) "LOW_PRIORITY"
set Info(ElmerRun,normalPriority) "NORMAL_PRIORITY"
set Info(ElmerRun,highPriority) "HIGH_PRIORITY"
set Info(bgPriorityLevel) $Info(ElmerRun,lowPriority)
#---Process run sequence nubers to identify log files
set Info(ElmerRun,runnumber) 0
set Info(browser,id) 0
set Info(browser,smallDelay) 50
set Info(browser,mediumDelay) 200
set Info(browser,largeDelay) 800
set Info(browser,maxCharCount) [expr 4*1000*1000] ;# Max text size (4MB) for a process browser window
set Info(processTableMonitorInterval) 50 ;# In milliseconds!
set Info(processTableRefreshInterval) 50 ;# In milliseconds!
#--Paths and timestamps for SOLVER.KEYWORDS files in use
# Elmer /lib; model file's directory
set Info(file_SKWD_lib) ""
set Info(mtime_SKWD_lib) 0
set Info(file_SKWD_model) ""
set Info(mtime_SKWD_model) 0
#---User levels
set Info(noviceUser) 1
set Info(advancedUser) 2
set Info(powerUser) 3
set Info(userLevel) $Info(advancedUser)
set Info(userLevel,new) $Info(advancedUser)
set Info(userLevel,prev) $Info(advancedUser)
#---Initially process list is empty
set ProcessIds ""
set Info(nofEquationedPanels) 4
set Info(outerType) 2
set Info(innerType) 4
#
set Info(defaultMatcPrecision) 8
set Info(NO_INDEX) -1
set Info(arguments) ""
set Info(results) ""
set Info(cmdSeparator) @
set Info(argSeparator) ^
set Info(objectSeparator) !
set Info(fieldSeparator) &
set Info(matcMarker) $
#
set Info(menuDots) "..."
set Info(dispListSeparatorIn) "|"
set Info(dispListSeparatorExtra1) ""
set Info(dispListSeparatorExtra2) ""
set Info(leftFieldSizeSep) "("
set Info(rightFieldSizeSep) ")"
set Info(valueFlag) "=="
set Info(fileFlag) "=:"
set Info(procFlag) "=."
set Info(tableFlag) "=="
set Info(matcFlag) "==$"
set Info(dispListSeparatorOut) "|" ;#-NOTE: outsep = extra1+insep+extra2
set Info(groupDataSeparator) ";"
set Info(arrayDataSeparator) ";"
set Info(dataListSeparator) ";"
set Info(includePathSeparator) ";"
#-NOTE: We keep inactive data to avoid loosing possibly
# complicated parameter definitions when an equation is
# turned off!!!
#
set Info(keepInactiveFields) 1
#
# NOTE: Keep these character unique!!!
set Info(maskStart) "¤"
set Info(variableMaskStart) "%"
set Info(variableMaskStop) "¥"
set Info(maskTrueMark) "½"
set Info(maskFalseMark) "§"
set Info(maskSepMark) "å"
set Info(inactiveMark) "-"
set Info(selectedMark) "#"
set Info(negationMark) "~"
set Info(paramMarked) "*"
set Info(paramUnmarked) " "
set Info(selectionBoxTrueMarker) "\[X\]"
set Info(selectionBoxFalseMarker) "\[ \]"
#
set Info(defaultApplyState) disabled
set Info(defaultCancelState) normal ;# NOTE: Cancel is active all the time!
set Info(messageIcon) info
set Info(anywayOk) "Click OK to continue anyway"
set Info(continueOk) "Click OK to continue"
set Info(noMoreNotifying) [join [list \
"Click Yes to continue and ignore the message for the session.\n\n" \
"Click No to continue and ignore the meassage only this time." ]]
set Info(setModelNameMsg) "You can set the name using menus: Problem/Name and dir..."
set Info(fieldMsg) "Data in the following field(s) is incorrect:\n"
set Info(numberFieldMsg) " (value for a number)"
set Info(fileFieldMsg) " (filename)"
set Info(showDataFormatErrorMsg) 1
set Info(messageWindow,maxSize) 100
#
set Info(markMainWindowTitle) 1
set Info(windowList) ""
set Info(thisWindow) {}
set Info(hasRadiation) 0
set Info(drawBodies) 0
set Info(drawBoundaries) 0
set Info(drawMesh) 0
set Info(cntrlDblSelected) 0
set Info(controlPressed) 0
set Info(NEXT_ACTIVE_SELECTION_TOLERANCE) ""
set Info(nextActiveSelectionTolerance) ""
set Info(lastAppliedSelectionMethod) ""
set Info(lastAppliedSelectionMode) ""
set Info(currentMoveAxis) ""
set Info(currentRotateAxis) ""
set Info(informAboutRemovedFields) 0
# Input file info lists
set Info(solverKeywordFiles) ""
set Info(matcFiles) ""
set Info(colorFiles) ""
set Info(definitionFiles) ""
set Info(browserDir) $Info(workingDirectory)
set Info(browserPath) ""
set Info(editorDir) $Info(workingDirectory)
set Info(editorPath) ""
# Id counters for creating unique widgets
#
set Info(directoryEntryId) 0
set Info(fileEntryId) 0
set Info(fileSelectPanelId) 0
set MatcDefinitions(defaultSaveFile) "./matc.txt"
#====================================================================================#
#====================================================================================#
#====================================================================================#
# FIELD PROPERTIES #
#====================================================================================#
#====================================================================================#
#====================================================================================#
#
#---PROPERTY fields in Common array
#
# NOTE for WidgetType: "grouper" are not real field types, they are for grouping:
# "data grouper" serves as a common name for all sub-fields
# "screen grouper" serves as frame through which sub-fields can be reached
#
set Common(WidgetClass) 01;#-Widget class:
# OutputField
# RadioButtonsContainer MemberOutputField
# ParentField MemberField
# PanelField WorkField
# NOTE: !!! Remeber to add any new widget type to the widget handling procs:
# Widget::setFieldStatus
# Widget::configureField
#
set Common(WidgetType) 02;#-WidgetType:
# -Panel widget types:
# BrowsableDirectory BrowsableFile IncludeFile
# Button CheckButton
# CheckBox Entry Label Separator ListBox
# OptionMenu RadioButton RadioButtonOptionMenu
# SelectionBox Text
# -Non-panel types:
# GroupData GroupScreen GroupDataAndScreen
set Common(WidgetPacking) 03;#-Widget packing: Horizontal (-side left), Vertical (-side top)
set Common(WidgetAnchor) 04;#-Widget anchor in packing: w(est) c(enter) e(ast) n(orth) nw etc
set Common(WidgetLabel) 05;#-Widget own label (not used in all cases!)
set Common(WidgetCommandProc) 06;#-Widget specific command proc (not used in all cases!)
set Common(WidgetWidth) 07;#-Widget length (not used in all cases!)
set Common(WidgetHeight) 08;#-Widget hight (not used in all cases!)
set Common(FieldClass) 09;#-Field class: Normal OutputOnly (ie. not used from model file!)
set Common(FieldValueType) 10;#-Value types:
# Integer Real Logical String
# File Directory
# Procedure Library Function Variable
set Common(FieldDataType) 11;#-Data type: Scalar Array
set Common(FieldDataSize) 12;#-Data size: 1, N, N 2, N N , DIM, (2*DIM), DIM DIM etc.
set Common(MinDataSize1) 13;#-Data size: possible minimum size1
set Common(MinDataSize2) 14;#-Data size: possible minimum size2
set Common(MaxDataSize1) 15;#-Data size: possible maximum size1
set Common(MaxDataSize2) 16;#-Data size: possible maximum size2
set Common(FieldDataSep) 17;#-Data separator: like space or ';' (default ;).
set Common(FieldFormat) 18;#-Field (tcl) format string
set Common(Label) 19;#-Field's label on the screen
set Common(LabelByCoordinate) 20;#-If coordinate label should be added to the label (0/1)
set Common(LabelWidth) 21;#-Field's label width on the screen (for aliging the left edges of the widgets!)
set Common(ScreenPadX) 22;#-Field's padx amount on the screen (default 4)
set Common(ScreenPadXMembers) 23;#-Field's padx amount on the screen for group members (default 0)
set Common(ScreenPadY) 24;#-Field's pady amount on the screen (default 2)
set Common(ScreenPadYMembers) 25;#-Field's padx amount on the screen for group members (default 0)
set Common(ScreenIndent) 26;#-Field's indent amount on the screen
set Common(ScreenIndentMembers) 27;#-Group field's memeber indent amount on the screen
set Common(ScreenMemberArea) 28;#-1 --> Group members are packed into separate area
set Common(UnitString) 29;#-Unit string
set Common(CoordinateIndex) 30;#-Coordinate index for the field ): 0=no coordinate index
set Common(Procedurable) 31;#-Procedure checkbutton: 0=no, 1=yes
set Common(Tableable) 32;#-Procedure checkbutton: 0=no, 1=yes
set Common(Variabled) 33;#-If field can have an argument variable (relevan only for Proc/Table)
set Common(HasAbsCheckBox) 34;#-Use abs-path checkbox: 0=no, 1=yes
set Common(HasUseCheckBox) 35;#-Use field value checkbox: 0=no, 1=yes
set Common(UseAppendMode) 36;#-Append mode for directories (like Include path) 0=no, 1=yes
set Common(Unit) 37;#-Field's unit (data stored as unit*value)
set Common(Limits) 38;#-Limits: Unlimited Interval Set Constant
set Common(InitialValue) 39;#-Field inital value
set Common(AlwaysInitialize) 40;#-Start always with initial value (overwrite "loaded" value)
set Common(DropInitialValued) 41;#-If field should from from output if it has initial value
set Common(AlwaysOutput) 42;#-If field should be always output to sif (even when value is None/False)
set Common(Display) 43;#-Display (displayed when active): 1/0
set Common(InitiallyActive) 44;#-InitiallyActive: 1/0
set Common(ActivitySlaves) 45;#-Which field are controlled {list-of-fields}
set Common(ActivityParents) 46;#-Who is controlling my acitivty {parent-name}
set Common(ActivityValues) 47;#-What values are controlling my acitivty {list-of-activity-is-true-values}
set Common(ActivityOnlyByMask) 48;#-Only mask controlled activity: 1/0
set Common(NeededLevel) 49;#-If field must be entered when active (0=not needed, 1=needed,but not with a parameter (INCLUDE) file, 2=always needed)
set Common(PanelPage) 50;#-Variable's panel page nbr (1 2 ...)
set Common(SubPanel) 51;#-Variable's sub panel nbr (0 1 2 ...) NOTE: 0 is special: not in values area
set Common(Mask) 52;#-Field mask to select fields by equation type
# NOTE If two mask:
# 1. mask = when field is displayed (packed) in the panel ("total" mask)
# 2. mask = when field is active in the panel ("case" or "state" mask)
# So ,2. mask specifies more, a field cannot be active if it is not packed!
set Common(EquationVars) 53;#-Stores directly sub equation names like Equation(ADVECTION_DIFFUSION_EQUATION_vars) for AD-equation
set Common(IndexVariable) 54;#-Indexing variable in EquationVariable-array like ADVECTION_DIFFUSION_EQUATION
set Common(IndexType) 55;#-Indexing type: Pre/Post like (Oxygen)DIFFUSIVITY or DIFFUSIVITY(Oxygen)
set Common(IndexAlsoMask) 56;#-If indexed variables should create also indexed masks like (¤AD3#1)
set Common(ChildWidgetClass) 57;#-Widget class for a child field (typically an indexed field)
set Common(ExcludeFromSif) 58;#-An otherwise normal output field is NOT ouput to Solver Input File
set Common(SifName) 59;#-Specially formed Sif-name (normally not needed!)
#-NOTE: it is defiend however for variables to be used in table/proc entries!
set Common(OutputSifType) 60;#-Normally true, but not for ex. Include is without (File) type kwd in Sif
set Common(TemplateVariable) 61;#-FieldProperty source variable for "indexed" variables like AD_VAR for <Oxygen>AD_VARA
# NOTE: This property is in proc DataField::selectArrayFields
# it is not meant to given explicitely to any field here!
set Common(FieldTarget) 62;#-Sif output block for the field. Only accepted value: Solver, used only for Equation panel fields
#====================================================================================#
#====================================================================================#
#====================================================================================#
# Set default values for each property
set prop ""
set vals ""
lappend prop {WidgetClass WidgetType WidgetPacking WidgetAnchor WidgetLabel WidgetCommandProc WidgetWidth WidgetHeight}
lappend vals {OutputField Entry Vertical e "" "" 12 1}
lappend prop {FieldClass FieldValueType FieldDataType}
lappend vals {Normal Real Scalar}
lappend prop {FieldDataSize MinDataSize1 MinDataSize2 MaxDataSize1 MaxDataSize2}
lappend vals {1 "" "" "" ""}
lappend prop {FieldDataSep FieldFormat}
lappend vals {";" "% -12.12g"}
lappend prop {Label LabelByCoordinate LabelWidth}
lappend vals {"" 0 0}
lappend prop {ScreenPadX ScreenPadXMembers ScreenPadY ScreenPadYMembers}
lappend vals {0 0 0 0}
lappend prop {ScreenIndent ScreenIndentMembers ScreenMemberArea UnitString}
lappend vals {0 0 1 ""}
lappend prop {CoordinateIndex Procedurable Tableable Variabled}
lappend vals {0 1 1 1}
lappend prop {HasAbsCheckBox HasUseCheckBox UseAppendMode}
lappend vals {0 0 0}
lappend prop {Unit Limits InitialValue AlwaysInitialize DropInitialValued AlwaysOutput}
lappend vals {1 {Unlimited} "" 0 0 0}
lappend prop {Display InitiallyActive ActivitySlaves ActivityParents ActivityValues ActivityOnlyByMask}
lappend vals {1 1 "" "" "" 1}
lappend prop {NeededLevel PanelPage SubPanel Mask}
lappend vals {0 1 1 ""}
lappend prop {EquationVars IndexVariable IndexType IndexAlsoMask ChildWidgetClass}
lappend vals {"" "" "" 1 OutputField}
lappend prop {ExcludeFromSif SifName OutputSifType FieldTarget}
lappend vals {0 "" 1 ""}
# Name of all field properties
set Common(allFieldProperties) [join $prop]
# Default values for each property
set Common(defaultFieldPropertyValues) [join $vals]
# ====================
# Set default values #
# ====================
#
DataField::setFieldProperties1 "" default \
$Common(allFieldProperties) \
$Common(defaultFieldPropertyValues)
# =========================================
# These properties are not by equation!!! #
# =========================================
#
set Common(propertiesNotByEquation) {
WidgetClass
WidgetType
FieldValueType
FieldDataType
Mask
}
#==============================================================================#
# Meaning of problem masks which control the state of the entry fields in panels
#
# FL (Navier-Stokes laminar flow)
# FT1 (Navier-Stokes flow, turbulent_ke)
# H HT1 HT2 HT3 (Heat, transfer: conduction, constant convection, computed convection)
# HP1 HP2 HP3(Heat phase change method: Spatial 1, Spatial 2, Temporal)
# SA SM1 ST1 (Stress analysis: mechanical, thermal)
# AD AD1 AD2 AD3 (Advection-Diffusion: conduction, constant convection, computed conv.)
# dimG2 dimG3 (geometry dimension masks)
# dimS2 dimS3 (simulation dimension masks)
# nB nP nF nE nV (n=id, for strictly by Body BodyPair Face Edge Vertex )
# bcD bcN2 bcN3 (Boundary Condition masks: bcD=Dirichlet bcN2=2D Neumann bcN3=3D Neumann)
# MG1 (Multigrid solver generated variable)
#==============================================================================#
# NOTE: Do not add this to the equation mask!
# This mask is based on Timestep Transient/Steady State value
# It is used currently only in the proc: Panel::getCurrentVariables
#
set Common(timeMask) "(¤T)"
# NOTE: first, empty row for index value 0
# which means: no coordinate dependency
#
# None, Cartesian, Axi and Cylindric, Polar
#
set Common(CoordinateSymbols) {
{ {} {} {} }
{ (X) (Y) (Z) }
{ (R) (Z) (P) }
{ (R) (T) (P) }
}
FRONT_SET_INITIAL_GENERIC_FIELD_PROPERTIES
FRONT_SET_INITIAL_PANEL_FIELD_PROPERTIES
FRONT_UPDATE_FIELD_PROPERTIES
FRONT_SET_PANEL_SETTINGS
}
### End FRONT_INIT proc
#===================================================#
# #
# FRONT SHOW INIT MESSAGES #
# #
#===================================================#
#
# This can be called when UI widget has been build!
#
#
proc FRONT_SHOW_INIT_MESSAGES {} {
global Info
# Check succes and display messages
# =================================
# If a settings-file was read
if { $Info(userSettingFilesReadInfo) != "" } {
foreach info $Info(userSettingFilesReadInfo) {
Message::showMessage $info $Info(remMsgColor)
}
}
# If something was wrong with the settings-file
if { $Info(userSettingFilesErrorInfo) != "" } {
Message::showMessage "WARNING when reading settings file:" $Info(wrnMsgColor)
foreach info $Info(userSettingFilesErrorInfo) {
Message::showMessage $info
}
Message::showMessage " "
}
# If some command line arguments
if { $Info(commandLineInfo) != "" } {
Message::showMessage "Command line arguments:" $Info(remMsgColor)
foreach info $Info(commandLineInfo) {
set msg [lindex $info 0]
set color [lindex $info 1]
Message::showMessage $msg $color
}
}
}
### End FRONT_SHOW_INIT_MESSAGES proc
#===================================================#
# #
# READ DEFAULT DEFINITION FILES #
# #
#===================================================#
#
# This can be called when UI widget has been build!
#
#
proc READ_DEFAULT_DEFINITION_FILES {} {
global Info Model
set Model(defaultDefinitions) ""
# Read default definition files
# NOTE: For each file, the result is collected to the global
# array: Model(newDefinitions)
#
foreach def_file $Model(defaultDefinitionFiles) {
UserDefined::readDefinitionFile $def_file
# Copy added definitions to the deafult definitions
# log-array
#
foreach def_line $Model(newDefinitions) {
lappend Model(defaultDefinitions) $def_line
}
}
}
### End READ_DEFAULT_DEFINITION_FILES proc
#===================================================#
# #
# FRONT_POST_INIT #
# #
#===================================================#
#
# This can be called when UI widget has been build!
#
#
proc FRONT_POST_INIT { {read_default_def_file 1 } {read_in_def_file 1} {preset_model_data 1} } {
global BoundaryCondition Common Equation Model
# Add user defined equations from default def files
# =================================================
if { $read_default_def_file } {
READ_DEFAULT_DEFINITION_FILES
}
# Add loaded user defined equations
# =================================
if { $read_in_def_file && $Model(inDefinitionFile) != "" } {
UserDefined::readDefinitionFile $Model(inDefinitionFile)
}
#-Check possible setting files data
UserSetting::checkData
# Create "allField"-vars, set some initial field properties
# =========================================================
foreach globArray $Common(allPanelArries) {
upvar #0 $globArray theArray
#-Work list for field name variables
# NOTE: (allFields) will be possibly expanded
# later by indexing variables!
if { ![info exists theArray(initialFields)] } {
set theArray(initialFields) ""
}
set theArray(allFields) $theArray(initialFields)
# Initialize some array fields properties
# NOTE: Indexed fields will get their properties from parent fields
# which are initialized (if needed) here
DataField::setDefaultFieldProperties $globArray $theArray(allFields)
}
#-Set finally those defaults which have not been defined via arries
DataField::setDefaultFieldProperties "#" $Common(allFieldNames)
# BoundaryCondition specific
# ==========================
set BoundaryCondition(dirichletVnames) $BoundaryCondition(initialDirichletVnames)
set BoundaryCondition(neumannVnames) $BoundaryCondition(initialNeumannVnames)
# Check parameter data
# ====================
if { [info exist Equation(ids)] &&
$Equation(ids) != ""
} {
#-Create Equation parameter masks
StdPanelInit::updateEquationDataAndMasks
#-Create ObjectTable masks
StdPanelInit::createObjectTableMasks
#-Set current problem mask value
Equation::constructProblemMask
#-Set problem indices based on body masks
Equation::updateEquationIndices
#-Clean Equation parameters
set modified1 0
#Panel::checkParameters Equation modified1
#-Clean all mask related arries
set modified2 0
Panel::checkMaskedParameters modified2
}
# Init equation index data
# ========================
Equation::setOwnEquationIndices
if { [info exists Equation(activeIndices)] &&
$Equation(activeIndices) != ""
} {
set modified 0
Solver::checkSolverData $Equation(activeIndices) modified
} else {
Solver::initSolverSystemData
}
if { $preset_model_data } {
MenuExec::presetModelData
} else {
#-User has possibly added some new constants!
Panel::initFields Constant
if { $Model(GEOMETRY_DIMENSION) != "" } {
Constant::panelSave 0
}
Panel::initFields Variables
# EquationVariable data needs special handling
#
if { $Model(GEOMETRY_DIMENSION) != "" } {
Panel::initFields EquationVariable
EquationVariable::updateFieldData
EquationVariable::formActiveParameter
Util::cpp_exec equationVariablesPanelOk
EquationVariable::updateAllVariableNames
}
}
# Load possible SOLVR.KEYWORDS files
# ==================================
UserDefined::loadSolverKeywordsFiles
}
### End FRONT_POST_INIT proc
####################################################################################
####################################################################################
#==============================================#
# #
# FRONT_SET_INITIAL_GENERIC_FIELD_PROPERTIES #
# #
#==============================================#
#
# Generic initial field property definitions #
#
proc FRONT_SET_INITIAL_GENERIC_FIELD_PROPERTIES {} {
global Common
#=============#
# Field names #
#=============#
#
set Common(allFieldNames) {
ACTIVE
ACTIVE_IN_MESHING
ADVECTION_DIFFUSION_EQUATION
ADVECTION_DIFFUSION_EQUATION_vars
AUTO_LOAD_MESH
AUTO_SAVE_MODEL
AUTO_SAVE_SOLVER_INPUT
BDF_ORDER
BM_GEBHARDT_FACTORS_LOG
BM_GEBHARDT_FACTORS_NONE
BM_GEBHARDT_FACTORS_SHELL
BM_MESH_LOG
BM_MESH_NONE
BM_MESH_SHELL
BM_PROCEDURE_COMPILER_LOG
BM_PROCEDURE_COMPILER_NONE
BM_PROCEDURE_COMPILER_SHELL
BM_SOLVER_LOG
BM_SOLVER_NONE
BM_SOLVER_SHELL
BM_VIEW_FACTORS_LOG
BM_VIEW_FACTORS_NONE
BM_VIEW_FACTORS_SHELL
BOUNDARY_LAYER_THICKNESS
BOUSSINESQ
BROWSER_COMMAND
BROWSE_MODE_GEBHARDT_FACTORS
BROWSE_MODE_MESH
BROWSE_MODE_PROCEDURE_COMPILER
BROWSE_MODE_SOLVER
BROWSE_MODE_VIEW_FACTORS
BUBBLES
CHECK_KEYWORDS
CHECK_LATENT_HEAT_RELEASE
CLEAR_ENTRY_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_PANELS_BUTTON
COMPRESSIBILITY_MODEL
CONVECTION
CONVECTION_VELOCITY_1
CONVECTION_VELOCITY_2
CONVECTION_VELOCITY_3
CONV_COMPUTED
CONV_CONSTANT
CONV_NONE
COORDINATE
COORDINATE_1
COORDINATE_2
COORDINATE_3
COORDINATE_MAPPING
COORDINATE_MAPPING_1
COORDINATE_MAPPING_2
COORDINATE_MAPPING_3
COORDINATE_SYSTEM
CURRENT_MESH_DIRECTORY
DEFAULT_AUTO_SAVE_EXTERNAL_MESH
DEFAULT_CAD_FILES_DIRECTORY
DEFAULT_INCLUDE_PATH
DEFAULT_RESULTS_DIRECTORY
DEFAULT_EXTERNAL_MESH_FILES_DIRECTORY
DEFAULT_MODEL_DIRECTORY
DEFAULT_LOG_DIRECTORY
DEFAULT_USE_MODEL_SETTINGS
DENSITY
DIFFUSION
DIFFUSION_FLUX
DIFFUSION_SOURCE
DIFFUSIVITY
DISPLACEMENT
DISPLACEMENT_1
DISPLACEMENT_2
DISPLACEMENT_3
ECHO_ON
EDIT_BUTTON
EDITOR_COMMAND
EMISSIVITY
ENTHALPY
EQUATION
EQUATION_LIST
EXEC_SOLVER
EXTERNAL_PRESSURE
EXTERNAL_TEMPERATURE
FLOW_BODYFORCE_1
FLOW_BODYFORCE_2
FLOW_BODYFORCE_3
FLOW_FORCE_BC
FONT_SIZES
FORCE_1
FORCE_2
FORCE_3
FREE_MOVING
FREE_SURFACE
FUNCTION_NAME
GEBHARDT_FACTORS
GRAVITY
GRAVITY_1
GRAVITY_2
GRAVITY_3
GRAVITY_ABS
HEAT_CAPACITY
HEAT_CONDUCTIVITY
HEAT_EQUATION
HEAT_EQUATION_vars
HEAT_EXPANSION_COEFFICIENT
HEAT_FLUX
HEAT_FLUX_BC
HEAT_SOURCE
HEAT_TRANSFER_COEFFICIENT
HYDROSTATIC_PRESSURE
INCLUDE
INCLUDE,Browse
INCLUDE,Use
INCLUDE_PATH
KE_C1
KE_C2
KE_CLIP
KE_CMU
KE_SIGMAE
KE_SIGMAK
KE_TURBULENCE
KE_TURBULENCE_vars
KINETIC_DISSIPATION
KINETIC_ENERGY
LATENT_HEAT
LIBARY_NAME
LINEAR_SYSTEM_ABORT_NOT_CONVERGED
LINEAR_SYSTEM_CONVERGENCE_TOLERANCE
LINEAR_SYSTEM_DIRECT_METHOD
LINEAR_SYSTEM_ILUT_TOLERANCE
LINEAR_SYSTEM_ITERATIVE_METHOD
LINEAR_SYSTEM_MAX_ITERATIONS
LINEAR_SYSTEM_METHOD
LINEAR_SYSTEM_MULTIGRID_METHOD
LINEAR_SYSTEM_PRECONDITIONING
LINEAR_SYSTEM_RESIDUAL_OUTPUT
LINEAR_SYSTEM_SOLVER
LISTBOX1
LISTBOX2
LISTBOX3
LISTBOX4
LUMPED_MASS_MATRIX
MAX_OUTPUT_LEVEL
MESH
MESH_BG_MESH
MESH_BG_MESH_FILE
MESH_BG_MESH_ACTIVE
MESH_BG_MESH_CONTROL
MESH_DENSITY_TYPE
MESH_DT_H
MESH_DT_N
MESH_DT_R
MESH_DT_NONE
MESH_ELEMENT_ORDER
MESH_ELEMENT_TYPE
MESH_ET_LINE
MESH_ET_TRIANGLE
MESH_ET_QUAD
MESH_ET_TETRA
MESH_ET_BRICK
MESH_F
MESH_H
MESH_N
MESH_R
MESH_INDEX
MESH_INPUT_FILE
MESH_NAME
MESH_NAME_LIST
MESH_LAYER_TYPE
MESH_QUADGRID_N1
MESH_QUADGRID_N2
MESH_SEED_TYPE
MESH_ST_EXPLICIT
MESH_ST_IMPLICIT
MESH_SEED_EDGE
MESH_SEED_DIRECTION
MESH_SEED_VERTEX
MG_CONVERGENCE_TOLERANCE
MG_EQUAL_SPLIT
MG_LEVELS
MG_MAX_ITERATIONS
MG_MESH_NAME
MG_PRECONDITIONING
MG_PRE_SMOOTHING_ITERATIONS
MG_POST_SMOOTHING_ITERATIONS
MG_SMOOTHER
MIN_OUTPUT_LEVEL
MODEL_DESCRIPTION
MODEL_DIRECTORY
MODEL_NAME
NAVIER-STOKES
NAVIER-STOKES_vars
NEWMARK_BETA
NOF_PROCESSORS
NONLINEAR_SYSTEM_CONVERGENCE_TOLERANCE
NONLINEAR_SYSTEM_MAX_ITERATIONS
NONLINEAR_SYSTEM_NEWTON_AFTER_ITERATIONS
NONLINEAR_SYSTEM_NEWTON_AFTER_TOLERANCE
NONLINEAR_SYSTEM_RELAXATION_FACTOR
NON_BLOCKING
NORMAL_FORCE
NORMAL-TANGENTIAL_DISPLACEMENT
NORMAL-TANGENTIAL_VELOCITY
OUTPUT_CALLER
OUTPUT_FILE
OUTPUT_INTERVALS
OUTPUT_LEVEL
OUTPUT_PREFIX
PCM_NONE
PCM_SPATIAL_1
PCM_SPATIAL_2
PCM_TEMPORAL
PERIODIC_BOUNDARIES
PHASE_CHANGE_INTERVALS
PHASE_CHANGE_MODEL
PLANE_STRESS
POISSON_RATIO
POST_FILE
PRESSURE
PRESSURE_1
PRESSURE_2
PRESSURE_3
PROBLEM_DESCRIPTION
PROBLEM_NAME
PROCEDURE
PROCEDURE_BUTTON
RADIATION
RADIATION_BOUNDARIES
RADIATION_TARGET_BODY
RADIATION_TARGET_BODIES
RADIATION_TARGET_BODY_NAME
RD_DIFFUSE_GRAY
RD_IDEALIZED
RD_NONE
REFERENCE_PRESSURE
REFERENCE_TEMPERATURE
RELOAD_INPUT_FILE
RESTART_FILE
RESTART_POSITION
RESULT_MESH_NAME
RESULTS_DIRECTORY
SIMULATION_TYPE
SM_MECHANICAL
SM_THERMAL
SOLVER_INPUT_FILE
SOLVING_ORDER
SORET_DIFFUSIVITY
SPECIFIC_HEAT_RATIO
STABILIZE
STEADY_STATE_CONVERGENCE_TOLERANCE
STEADY_STATE_MAX_ITERATIONS
STEADY_STATE_OUTPUT_INTERVAL
STEFAN_BOLTZMANN
STRESS_ANALYSIS
STRESS_ANALYSIS_vars
STRESS_BODYFORCE_1
STRESS_BODYFORCE_2
STRESS_BODYFORCE_3
STRESS_MODEL
SURFACE_ROUGHNESS
SURFACE_TENSION_COEFFICIENT
SURFACE_TENSION_EXPANSION_COEFFICIENT
TABLE_BUTTON
TEMPERATURE
LOG_DIRECTORY
TIME
TIME_DERIVATIVE_ORDER
TIMESTEPPING_METHOD
TIMESTEP_INTERVALS
TIMESTEP_SIZES
TM_KE
TM_NONE
TURBULENCE_MODEL
VARIABLE
VARIABLE_DOFS
VARIABLE_DOFS_ALL
VARIABLE_LIST
VARIABLE_BUTTON
VELOCITY
VELOCITY_1
VELOCITY_2
VELOCITY_3
VIEW_FACTORS
VISCOSITY
WALL_LAW
YOUNGS_MODULUS
}
# These specific property values are needed for nearly all fields
#
set stdProp2 { Label UnitString SubPanel Mask }
set stdPropLUFM { Label UnitString SubPanel Mask }
set stdPropLUF { Label UnitString SubPanel }
set stdPropLUM { Label UnitString Mask }
set stdPropLFM { Label SubPanel Mask }
set stdPropLU { Label UnitString }
set stdPropLF { Label SubPanel }
set stdPropLM { Label Mask }
set stdPropL { Label }
set stdPropUFM { UnitString SubPanel Mask }
set stdPropUM { UnitString Mask }
set stdPropFM { SubPanel Mask }
set stdPropF { SubPanel }
set stdPropM { Mask }
namespace import DataField::getFieldPropert* DataField::setFieldPropert*
#===========================#
# Field specific properties #
#===========================#
set fn ACTIVE
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Logical }
{ InitialValue True }
{ ExcludeFromSif 1}
}
set fn ACTIVE_IN_MESHING
setFieldProperties1 "" $fn $stdPropLF {"Include body in mesh" 0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType CheckBox }
{ WidgetPacking Horizontal }
{ WidgetWidth 0 }
{ Limits {Set {1 0}} }
{ InitialValue 1 }
}
set fn ADVECTION_DIFFUSION_EQUATION
setFieldProperties1 "" $fn $stdPropL {"ADVECTION DIFFUSION EQ."}
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue "" }
}
# Stores list of active AddDiff variables in the equation parameter
# like ADVECTION_DIFFUSION_EQUATION_vars=Oxygen;Nitrogen;...
#
set fn ADVECTION_DIFFUSION_EQUATION_vars
#setFieldProperties1 "" $fn $stdPropM {(¤AD)}
setFieldProperties2 "" $fn \
{ { WidgetClass OutputField }
{ Display 0 }
{ FieldValueType String }
{ ExcludeFromSif 1 }
}
set fn AUTO_LOAD_MESH
setFieldProperties1 "" $fn $stdPropL {"Auto load mesh"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ Limits {Set {1 0}} }
{ InitialValue 1 }
}
set fn AUTO_SAVE_MODEL
setFieldProperties1 "" $fn $stdPropL {"Auto save model file"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ Limits {Set {1 0}} }
{ ActivityOnlyByMask 0 }
{ InitialValue 1 }
}
set fn AUTO_SAVE_SOLVER_INPUT
setFieldProperties1 "" $fn $stdPropL {"Auto save solver input file"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ Limits {Set {1 0}} }
{ ActivityOnlyByMask 0 }
{ InitialValue 1 }
}
set fn BDF_ORDER
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn InitialValue 1
set fn BOUNDARY_LAYER_THICKNESS
setFieldProperties1 "" $fn $stdPropLUFM {"Bndr layer thickness" "\[m\]" 1 (¤FT1) }
set fn BOUSSINESQ
setFieldProperties1 "" $fn $stdPropLUFM {"Boussinesq" "(Yes/No)" 1 (¤FL) }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn BROWSER_COMMAND
setFieldProperties1 "" $fn $stdPropL {"Browser command"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 40 }
{ FieldValueType String }
{ FieldDataSize "N" }
{ FieldFormat "% -39s" }
}
set fn BROWSE_MODE_GEBHARDT_FACTORS
setFieldProperties1 "" $fn $stdPropL {"Gebhardt factors browse:"}
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ ScreenMemberArea 0}
{ InitialValue "Logfile" }
}
set fn BM_GEBHARDT_FACTORS_LOG
setFieldProperties1 "" $fn $stdPropL {"Log wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Logfile"} }
}
set fn BM_GEBHARDT_FACTORS_SHELL
setFieldProperties1 "" $fn $stdPropL {"Shell wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Shell"} }
}
set fn BM_GEBHARDT_FACTORS_NONE
setFieldProperties1 "" $fn $stdPropL {"None"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "None"} }
}
set fn BROWSE_MODE_MESH
setFieldProperties1 "" $fn $stdPropL {"Mesh generating browse:"}
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ ScreenMemberArea 0}
{ InitialValue "Logfile" }
}
set fn BM_MESH_LOG
setFieldProperties1 "" $fn $stdPropL {"Log wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Logfile"} }
}
set fn BM_MESH_SHELL
setFieldProperties1 "" $fn $stdPropL {"Shell wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Shell"} }
}
set fn BM_MESH_NONE
setFieldProperties1 "" $fn $stdPropL {"None"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "None"} }
}
set fn BROWSE_MODE_PROCEDURE_COMPILER
setFieldProperties1 "" $fn $stdPropL {"Procedure compiler browse:"}
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ ScreenMemberArea 0}
{ InitialValue "Logfile" }
}
set fn BM_PROCEDURE_COMPILER_LOG
setFieldProperties1 "" $fn $stdPropL {"Log wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Logfile"} }
}
set fn BM_PROCEDURE_COMPILER_SHELL
setFieldProperties1 "" $fn $stdPropL {"Shell wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Shell"} }
}
set fn BM_PROCEDURE_COMPILER_NONE
setFieldProperties1 "" $fn $stdPropL {"None"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "None"} }
}
set fn BROWSE_MODE_SOLVER
setFieldProperties1 "" $fn $stdPropL {"Solver browse:"}
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ ScreenMemberArea 0}
{ InitialValue "Logfile" }
}
set fn BM_SOLVER_LOG
setFieldProperties1 "" $fn $stdPropL {"Log wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Logfile"} }
}
set fn BM_SOLVER_SHELL
setFieldProperties1 "" $fn $stdPropL {"Shell wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Shell"} }
}
set fn BM_SOLVER_NONE
setFieldProperties1 "" $fn $stdPropL {"None"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "None"} }
}
set fn BROWSE_MODE_VIEW_FACTORS
setFieldProperties1 "" $fn $stdPropL {"View Factors browse:"}
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ ScreenMemberArea 0}
{ InitialValue "Logfile" }
}
set fn BM_VIEW_FACTORS_LOG
setFieldProperties1 "" $fn $stdPropL {"Log wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Logfile"} }
}
set fn BM_VIEW_FACTORS_SHELL
setFieldProperties1 "" $fn $stdPropL {"Shell wind."}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Shell"} }
}
set fn BM_VIEW_FACTORS_NONE
setFieldProperties1 "" $fn $stdPropL {"None"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "None"} }
}
set fn BUBBLES
setFieldProperties1 "" $fn $stdPropL {"Bubbles"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn CHECK_KEYWORDS
setFieldProperties1 "" $fn $stdPropLF {"When unknown sif keyword:" 1 }
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ WidgetWidth 12 }
{ FieldValueType String }
{ Limits {Set {"Ignore" "Warn" "Abort"}} }
{ InitialValue "Warn" }
{ OutputSifType 0 }
}
set fn CHECK_LATENT_HEAT_RELEASE
setFieldProperties1 "" $fn $stdPropLFM {"Latent heat release:" 3 {(¤H) (¤HP)} }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue False }
{ ScreenIndent 3 }
}
set fn CLEAR_ENTRY_BUTTON
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType Button }
{ WidgetCommandProc Panel::clearEntryButtonCommandProc }
{ WidgetLabel "Clear entry" }
{ WidgetWidth 0 }
{ WidgetPacking Horizontal }
}
set fn CLEAR_PANEL_BUTTON
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType Button }
{ WidgetCommandProc Panel::clearPanelButtonCommandProc }
{ WidgetLabel "Clear panel" }
{ WidgetWidth 0 }
{ WidgetPacking Horizontal }
}
set fn CLEAR_PANELS_BUTTON
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType Button }
{ WidgetCommandProc Panel::clearPanelsButtonCommandProc }
{ WidgetLabel "Clear all" }
{ WidgetWidth 0 }
{ WidgetPacking Horizontal }
}
set fn CLEAR_UNDO
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType Button }
{ WidgetCommandProc Panel::undoClearButtonCommandProc }
{ WidgetLabel "Undo clear" }
{ WidgetWidth 0 }
{ WidgetPacking Horizontal }
}
set fn COMPRESSIBILITY_MODEL
setFieldProperties1 "" $fn $stdPropLFM {"Compressibility model" 2 (¤FL)|(¤HT2)|(¤HT3)|(¤AD2)|(¤AD3) }
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ WidgetWidth 18 }
{ FieldValueType String }
{ Limits {Set {"Incompressible" "Perfect Gas Equation 1" } } }
{ InitialValue "Incompressible" }
{ DropInitialValued 1 }
}
# This list is not in use!
# { Limits {Set {"Incompressible" "User Defined 1" "User Defined 2"
# "Perfect Gas Equation 1" "Perfect Gas Equation 2" "Perfect Gas Equation 3" } } }
set fn CONVECTION
setFieldProperties1 "" $fn $stdPropLFM {"Convection:" 2 (¤H)|(¤AD) }
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ WidgetPacking Vertical }
{ FieldValueType String }
{ InitialValue "None" }
}
set fn CONV_NONE
setFieldProperties1 "" $fn $stdPropLFM {"None" 2 (¤H)|(¤AD) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 12 }
{ Limits {Constant "None"} }
{ ScreenIndent 6 }
}
set fn CONV_COMPUTED
setFieldProperties1 "" $fn $stdPropLFM {"Computed" 2 (¤H)|(¤AD) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 12 }
{ Limits {Constant "Computed"} }
{ ScreenIndent 6 }
}
set fn CONV_CONSTANT
setFieldProperties1 "" $fn $stdPropLFM {"Constant" 2 (¤H)|(¤AD) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 12 }
{ Limits {Constant "Constant"} }
{ ScreenIndent 6 }
}
set fn CONVECTION_VELOCITY_
foreach i {1 2 3} {
setFieldProperties1 "" $fn$i $stdPropLUFM {"Convection Velocity" "\[m/s\]" 2 {(¤H)|(¤AD) (¤HT2)|(¤AD2)} }
setFieldProperty "" $fn$i SifName "Convection Velocity $i"
setFieldProperty "" $fn$i CoordinateIndex $i
setFieldProperty "" $fn$i LabelByCoordinate 1
setFieldProperty "" $fn$i InitialValue 0
}
setFieldProperty "" CONVECTION_VELOCITY_2 Mask {(¤H)|(¤AD) ((¤HT2)|(¤AD2))&((¤dimS2)|(¤dimS3))}
setFieldProperty "" CONVECTION_VELOCITY_3 Mask {(¤H)|(¤AD) ((¤HT2)|(¤AD2))&(¤dimS3)}
set fn COORDINATE
setFieldProperties1 "" $fn $stdPropLUM {"Coordinate" "\[m\]" ""}
setFieldProperty "" $fn FieldDataSize "DIM"
setFieldProperty "" $fn FieldDataType Array
set fn COORDINATE_
foreach i {1 2 3} {
setFieldProperties1 "" $fn$i $stdPropLUF {"Coordinate" "\[m\]" 0}
setFieldProperty "" $fn$i SifName "Coordinate $i"
setFieldProperty "" $fn$i CoordinateIndex $i
setFieldProperty "" $fn$i LabelByCoordinate 1
}
setFieldProperty "" COORDINATE_2 Mask ((¤dimS2)|(¤dimS3))
setFieldProperty "" COORDINATE_3 Mask (¤dimS3)
set fn COORDINATE_MAPPING
setFieldProperty "" $fn FieldDataType Array
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn InitialValue {1 2 3}
set fn COORDINATE_SYSTEM
setFieldProperty "" $fn FieldValueType String
setFieldProperty "" $fn InitialValue "None"
set fn CURRENT_MESH_DIRECTORY
setFieldProperty "" $fn FieldValueType File
set fn DEFAULT_MODEL_DIRECTORY
setFieldProperties1 "" $fn $stdPropL {"Model directory"}
setFieldProperties2 "" $fn \
{ { FieldClass OutputOnly }
{ WidgetWidth 40 }
{ WidgetType BrowsableDirectory }
{ FieldValueType String }
{ FieldFormat "% -39s" }
{ InitialValue "\$Info(ELMER_MODEL_DIRECTORY)" }
}
set fn DEFAULT_CAD_FILES_DIRECTORY
setFieldProperties1 "" $fn $stdPropL {"Cad files directory"}
setFieldProperties2 "" $fn \
{ { FieldClass OutputOnly }
{ WidgetWidth 40 }
{ WidgetType BrowsableDirectory }
{ FieldValueType String }
{ FieldFormat "% -39s" }
}
set fn DEFAULT_INCLUDE_PATH
setFieldProperties1 "" $fn $stdPropL {"Include path"}
setFieldProperties2 "" $fn \
{ { FieldClass OutputOnly }
{ WidgetWidth 40 }
{ WidgetType BrowsableDirectory }
{ UseAppendMode 1 }
{ FieldValueType String }
{ FieldFormat "% -39s" }
{ InitialValue "\$Info(ELMER_INCLUDE_PATH)" }
}
set fn DEFAULT_LOG_DIRECTORY
setFieldProperties1 "" $fn $stdPropL {"Log directory"}
setFieldProperties2 "" $fn \
{ { FieldClass OutputOnly }
{ WidgetWidth 40 }
{ WidgetType BrowsableDirectory }
{ FieldValueType String }
{ FieldFormat "% -39s" }
{ InitialValue "\$Info(LOG_DIRECTORY)" }
}
set fn DEFAULT_EXTERNAL_MESH_FILES_DIRECTORY
setFieldProperties1 "" $fn $stdPropL {"External mesh files directory"}
setFieldProperties2 "" $fn \
{ { FieldClass OutputOnly }
{ WidgetWidth 40 }
{ WidgetType BrowsableDirectory }
{ FieldValueType String }
{ FieldFormat "% -39s" }
}
set fn DEFAULT_RESULTS_DIRECTORY
setFieldProperties1 "" $fn $stdPropL {"Results directory"}
setFieldProperties2 "" $fn \
{ { FieldClass OutputOnly }
{ WidgetWidth 40 }
{ WidgetType BrowsableDirectory }
{ FieldValueType String }
{ FieldFormat "% -39s" }
{ InitialValue "\$Info(ELMER_RESULTS_DIRECTORY)" }
}
set fn DEFAULT_USE_MODEL_SETTINGS
setFieldProperties1 "" $fn $stdPropL {"Apply model file settings"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ Limits {Set {1 0}} }
{ InitialValue 1 }
}
set fn DEFAULT_AUTO_SAVE_EXTERNAL_MESH
setFieldProperties1 "" $fn $stdPropL {"Auto save external mesh in Elmer format"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ Limits {Set {1 0}} }
{ InitialValue 1 }
}
set fn DENSITY
setFieldProperties1 "" $fn $stdPropLUM {"Density" "\[kg/m3]" (¤FL)|(¤H)|(¤S)|(¤AD) }
setFieldProperty "" $fn NeededLevel 1
# NOTE: SifName="" --> creates names like Oxygen
set fn DIFFUSION
setFieldProperties1 "" $fn $stdPropUM {"\[kg/m3\]" (¤AD) }
setFieldProperty "" $fn SifName ""
setFieldProperty "" $fn IndexType "Pre"
setFieldProperty "" $fn IndexVariable ADVECTION_DIFFUSION_EQUATION
setFieldProperty "" $fn WidgetClass ParentField
# NOTE: SifName="Flux" --> creates names like Oxygen Flux
set fn DIFFUSION_FLUX
setFieldProperties1 "" $fn $stdPropLUFM {"Flux" "\[kg/m2s\] " 2 (¤AD) }
setFieldProperty "" $fn SifName "Flux"
setFieldProperty "" $fn IndexType "Pre"
setFieldProperty "" $fn IndexVariable ADVECTION_DIFFUSION_EQUATION
setFieldProperty "" $fn WidgetClass ParentField
# NOTE: SifName="Source" --> creates names like Oxygen Source
set fn DIFFUSION_SOURCE
setFieldProperties1 "" $fn $stdPropLUM {"Source" "\[kg/m3s\]" (¤AD) }
setFieldProperty "" $fn SifName "Source"
setFieldProperty "" $fn IndexType "Pre"
setFieldProperty "" $fn IndexVariable ADVECTION_DIFFUSION_EQUATION
setFieldProperty "" $fn WidgetClass ParentField
# NOTE: SifName="Diffusivity" --> creates names like Oxygen Diffusivity
set fn DIFFUSIVITY
setFieldProperties1 "" $fn $stdPropLUM {"Diffusivity" "\[kg/m\]" (¤AD) }
setFieldProperty "" $fn SifName "Diffusivity"
setFieldProperties2 "" $fn \
{ {WidgetClass ParentField}
{FieldDataSize "DIM DIM"}
{IndexType "Pre"}
{IndexVariable ADVECTION_DIFFUSION_EQUATION }
{NeededLevel 1}
}
set fn DISPLACEMENT
setFieldProperties1 "" $fn $stdPropLUM {"Displacement" "\[m\]" (¤S)}
setFieldProperty "" $fn FieldDataSize "DIM"
setFieldProperty "" $fn FieldDataType Array
set fn DISPLACEMENT_
foreach i {1 2 3} {
setFieldProperties1 "" $fn$i $stdPropLUM {"Displacement" "\[m\]" (¤S) }
setFieldProperty "" $fn$i SifName "Displacement $i"
setFieldProperty "" $fn$i CoordinateIndex $i
setFieldProperty "" $fn$i LabelByCoordinate 1
}
setFieldProperty "" DISPLACEMENT_2 Mask {(¤S) (¤S)&((¤dimS2)|(¤dimS3))}
setFieldProperty "" DISPLACEMENT_3 Mask {(¤S) (¤S)&(¤dimS3)}
set fn ECHO_ON
setFieldProperties1 "" $fn $stdPropLF {"Echo solver input file:" 1 }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue False }
{ OutputSifType 0 }
}
set fn EDIT_BUTTON
setFieldProperties1 "" $fn $stdPropLF {" " 0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType Button }
{ WidgetCommandProc Panel::editButtonCommandProc }
{ WidgetLabel "Edit" }
{ WidgetWidth 0 }
{ WidgetPacking Horizontal }
}
set fn EDITOR_COMMAND
setFieldProperties1 "" $fn $stdPropL {"Editor command"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 40 }
{ FieldValueType String }
{ FieldFormat "% -39s" }
}
set fn EMISSIVITY
setFieldProperties1 "" $fn $stdPropLUFM {"Emissivity" "(0...1)" 2 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetWidth 10 }
{ Limits {Interval {0.0 1.0} } }
{ NeededLevel 2 }
{ ActivityOnlyByMask 0 }
{ ActivityParents RADIATION }
{ ActivityValues {"Diffuse gray"} }
}
set fn ENTHALPY
setFieldProperties1 "" $fn $stdPropLUM {"Enthalpy" "\[J/m3]" (¤H) }
set fn EQUATION
setFieldProperty "" $fn FieldValueType String
set fn EQUATION_LIST
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType SelectionBox }
{ WidgetLabel "Active equations:" }
{ WidgetHeight 8 }
{ WidgetWidth 24 }
{ WidgetPacking Vertical }
{ Limits {Set {@Equation::updateEquationList}} }
{ ActivityOnlyByMask 0 }
}
set fn EXEC_SOLVER
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ WidgetWidth 15 }
{ FieldValueType String }
{ Limits {Set { "Always" "Before Simulation" "After Simulation"
"Before Timestep" "After Timestep" "Never" } }}
}
set fn EXTERNAL_PRESSURE
setFieldProperties1 "" $fn $stdPropLUFM {"External pressure" "\[Pa\]" 2 (¤FL) }
set fn EXTERNAL_TEMPERATURE
setFieldProperties1 "" $fn $stdPropLUM {"External temperature" "\[K\]" (¤H) }
set fn FLOW_BODYFORCE_
foreach i {1 2 3} {
setFieldProperties1 "" $fn$i $stdPropLUM {"Flow Bodyforce" "\[N/m3]" (¤FL) }
setFieldProperty "" $fn$i SifName "Flow Bodyforce $i"
setFieldProperty "" $fn$i CoordinateIndex $i
setFieldProperty "" $fn$i LabelByCoordinate 1
}
setFieldProperty "" FLOW_BODYFORCE_2 Mask {(¤FL) (¤FL)&((¤dimS2)|(¤dimS3))}
setFieldProperty "" FLOW_BODYFORCE_3 Mask {(¤FL) (¤FL)&(¤dimS3)}
set fn FLOW_FORCE_BC
setFieldProperties1 "" $fn $stdPropFM {0 (¤FL) }
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Logical }
}
set fn FONT_SIZES
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn FieldDataType Array
setFieldProperty "" $fn FieldDataSize 3
set fn FORCE_
foreach i {1 2 3} {
setFieldProperties1 "" $fn$i $stdPropLUFM {"Force" "\[N/m2\]" 2 (¤S) }
setFieldProperty "" $fn$i SifName "Force $i"
setFieldProperty "" $fn$i CoordinateIndex $i
setFieldProperty "" $fn$i LabelByCoordinate 1
}
setFieldProperty "" FORCE_2 Mask {(¤S) (¤S)&((¤dimS2)|(¤dimS3))}
setFieldProperty "" FORCE_3 Mask {(¤S) (¤S)&(¤dimS3)}
set fn FREE_MOVING
setFieldProperties1 "" $fn $stdPropLUM {"Free moving" "(Yes/No)" (¤FL) }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn FREE_SURFACE
setFieldProperties1 "" $fn $stdPropLUM {"Free surface" "(Yes/No)" (¤FL) }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn FUNCTION_NAME
setFieldProperties1 "" $fn $stdPropL "Function name"
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ FieldValueType Function }
{ FieldDataSize 1 }
}
set fn GRAVITY
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldDataType Array }
{ InitialValue {0 -1 0 9.82} }
}
set fn GRAVITY_1
setFieldProperties1 "" $fn $stdPropL {"X-direction"}
setFieldProperty "" $fn WidgetClass PanelField
setFieldProperty "" $fn Procedurable 0
set fn GRAVITY_2
setFieldProperties1 "" $fn $stdPropL {"Y-direction"}
setFieldProperty "" $fn WidgetClass PanelField
setFieldProperty "" $fn Procedurable 0
set fn GRAVITY_3
setFieldProperties1 "" $fn $stdPropL {"Z-direction"}
setFieldProperty "" $fn WidgetClass PanelField
setFieldProperty "" $fn Procedurable 0
set fn GRAVITY_ABS
setFieldProperties1 "" $fn $stdPropLU {"Intensity" "\[m/s2\]"}
setFieldProperty "" $fn WidgetClass PanelField
setFieldProperty "" $fn Procedurable 0
set fn GEBHARDT_FACTORS
setFieldProperty "" $fn FieldValueType File
setFieldProperty "" $fn InitialValue "GebhardtFactors.dat"
# Note: This is needed also for compressible flow!
# Activity is controled in Material(COMP...) edit and fillProcs
set fn HEAT_CAPACITY
setFieldProperties1 "" $fn $stdPropLUFM {"Heat capacity" "\[J/kgK]" { {#0 2} {#2 1} {#4 2} } (¤FL)|(¤H)|(¤AD2)|(¤AD3) }
setFieldProperties2 "" $fn \
{ { ActivityOnlyByMask 0 }
}
set fn HEAT_CONDUCTIVITY
setFieldProperties1 "" $fn $stdPropLUM {"Heat conductivity" "\[W/mK]" (¤H) }
setFieldProperties2 "" $fn \
{ { FieldDataSize "DIM DIM" }
{ NeededLevel 1 }
}
set fn HEAT_EQUATION
setFieldProperties1 "" $fn $stdPropL {"HEAT EQUATION"}
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue False }
}
set fn HEAT_EQUATION_vars
setFieldProperties1 "" $fn $stdPropM {(¤H)}
setFieldProperties2 "" $fn \
{ { WidgetClass OutputField }
{ Display 0 }
{ FieldValueType String }
{ ExcludeFromSif 1 }
}
set fn HEAT_EXPANSION_COEFFICIENT
setFieldProperties1 "" $fn $stdPropLUM {"Heat expansion coeff." "\[1/K\]" (¤FL) }
set fn HEAT_FLUX
setFieldProperties1 "" $fn $stdPropLUM {"Heat flux" "\[W/m2\]" (¤H) }
set fn HEAT_FLUX_BC
setFieldProperties1 "" $fn $stdPropFM {0 (¤H) }
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Logical }
}
set fn HEAT_SOURCE
setFieldProperties1 "" $fn $stdPropLUM {"Heat Source" "\[W/kg]" (¤H) }
set fn HEAT_TRANSFER_COEFFICIENT
setFieldProperties1 "" $fn $stdPropLUM {"Heat transfer coeff." "\[W/m2K\]" (¤H) }
set fn HYDROSTATIC_PRESSURE
setFieldProperties1 "" $fn $stdPropLFM {"Calc hydrostatic pressure" 2 (¤FL) }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue False }
}
set fn INCLUDE
setFieldProperties1 "" $fn $stdPropLF {"Include file" 0}
setFieldProperties2 "" $fn \
{ { WidgetType IncludeFile }
{ WidgetWidth 40 }
{ FieldValueType File }
{ OutputSifType 0 }
{ FieldFormat "% -39s" }
{ ActivityOnlyByMask 0 }
{ InitiallyActive 0 }
{ HasUseCheckBox 1 }
{ Procedurable 0 }
{ Tableable 0 }
{ NeededLevel 3 }
}
set fn INCLUDE,Browse
setFieldProperties2 "" $fn \
{ { WidgetClass WorkField }
{ WidgetType Button }
}
set fn INCLUDE,Use
setFieldProperties2 "" $fn \
{ { WidgetClass WorkField }
{ FieldValueType Logical }
{ InitialValue 0 }
{ AlwaysInitialize 1 }
{ WidgetType CheckBox }
{ ActivityOnlyByMask 0 }
{ ExcludeFromSif 1 }
}
set fn INCLUDE_PATH
setFieldProperties1 "" $fn $stdPropL {"Include path"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 40 }
{ FieldValueType String }
{ FieldFormat "% -39s" }
}
set fn KE_TURBULENCE
setFieldProperties1 "" $fn $stdPropFM {0 (¤FT1) }
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue "" }
}
set fn KE_TURBULENCE_vars
setFieldProperties1 "" $fn $stdPropM {(¤FT1)}
setFieldProperties2 "" $fn \
{ { WidgetClass OutputField }
{ Display 0 }
{ FieldValueType String }
{ ExcludeFromSif 1 }
}
set fn KE_CLIP
setFieldProperties1 "" $fn $stdPropLFM {"KE Clip" 2 {(¤FL) (¤FT1)} }
setFieldProperties2 "" $fn \
{ { InitialValue 1.0e-06 }
{ NeededLevel 1 }
{ ScreenIndent 6 }
}
set fn KE_C1
setFieldProperties1 "" $fn $stdPropLM {"KE C1" (¤FT1) }
setFieldProperty "" $fn InitialValue 1.44
set fn KE_C2
setFieldProperties1 "" $fn $stdPropLM {"KE C2" (¤FT1) }
setFieldProperty "" $fn InitialValue 1.92
set fn KE_CMU
setFieldProperties1 "" $fn $stdPropLM {"KE Cmu" (¤FT1) }
setFieldProperty "" $fn InitialValue 0.09
set fn KE_SIGMAE
setFieldProperties1 "" $fn $stdPropLM {"KE SigmaE" (¤FT1) }
setFieldProperty "" $fn InitialValue 1.30
setFieldProperty "" $fn SifName "KE SigmaE"
set fn KE_SIGMAK
setFieldProperties1 "" $fn $stdPropLM {"KE SigmaK" (¤FT1) }
setFieldProperty "" $fn InitialValue 1.00
setFieldProperty "" $fn SifName "KE SigmaK"
set fn KINETIC_ENERGY
setFieldProperties1 "" $fn $stdPropLUM { "Kinetic energy" "\[J\]" (¤FT1) }
setFieldProperty "" $fn SifName "Kinetic energy"
set fn KINETIC_DISSIPATION
setFieldProperties1 "" $fn $stdPropLUM {"Kinetic dissipation" "\[J\]" (¤FT1) }
setFieldProperty "" $fn SifName "Kinetic dissipation"
set fn LATENT_HEAT
setFieldProperties1 "" $fn $stdPropLUFM {"Latent heat" "\[J/m3\]" 2 (¤HP) }
set fn LIBRARY_FILE
setFieldProperties1 "" $fn $stdPropL "Library file"
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType BrowsableFile }
{ HasAbsCheckBox 1 }
{ FieldValueType Library }
{ FieldDataSize 1 }
}
set fn LINEAR_SYSTEM_ABORT_NOT_CONVERGED
setFieldProperties1 "" $fn $stdPropLF {"Abort when not converged" 2}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
}
set fn LINEAR_SYSTEM_CONVERGENCE_TOLERANCE
setFieldProperties1 "" $fn $stdPropLF {"Tolerance" 2}
setFieldProperty "" $fn Procedurable 0
set fn LINEAR_SYSTEM_DIRECT_METHOD
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType String }
{ Limits {Set { "BANDED" "UMFPack" } }}
}
set fn LINEAR_SYSTEM_ITERATIVE_METHOD
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType String }
{ Limits {Set { "BiCGStab" "TFQMR" "CGS" "CG" "GMRES" } }}
}
set fn LINEAR_SYSTEM_MAX_ITERATIONS
setFieldProperties1 "" $fn $stdPropLF {"Max iterations" 2}
setFieldProperty "" $fn FieldValueType Integer
set fn LINEAR_SYSTEM_METHOD
setFieldProperties1 "" $fn $stdPropLF {"Solving method" 2}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType OptionMenu }
{ WidgetWidth 12 }
{ FieldValueType String }
}
# NOTE: This field is needed to store a different method list
# for the multigrid solver, it is output as "Iterative Method" in Sif!
#
set fn LINEAR_SYSTEM_MULTIGRID_METHOD
setFieldProperties2 "" $fn \
{ { Display 0 }
{ SifName "Linear System Iterative Method" }
{ FieldValueType String }
{ Limits {Set { "Jacobi" "CG" "BiCGStab" } }}
}
set fn LINEAR_SYSTEM_PRECONDITIONING
setFieldProperties1 "" $fn $stdPropLF {"Preconditioning" 2}
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ WidgetWidth 10 }
{ FieldValueType String }
{ Limits {Set {
"None" "Diagonal" "Multigrid"
"ILU0" "ILU1" "ILU2" "ILU3" "ILU4" "ILU5" "ILU6" "ILU7" "ILU8" "ILU9" "ILUT"} }}
}
set fn LINEAR_SYSTEM_ILUT_TOLERANCE
setFieldProperties1 "" $fn $stdPropLF {"ILUT Tolerance" 2}
setFieldProperty "" $fn InitiallyActive 0
setFieldProperty "" $fn ActivityOnlyByMask 0
setFieldProperty "" $fn Procedurable 0
set fn LINEAR_SYSTEM_RESIDUAL_OUTPUT
setFieldProperties1 "" $fn $stdPropLF {"Residual output" 2}
setFieldProperty "" $fn FieldValueType Integer
set fn LINEAR_SYSTEM_SOLVER
setFieldProperties1 "" $fn $stdPropLF {"Solver type" 2}
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ WidgetWidth 12 }
{ FieldValueType String }
{ Limits {Set { "Direct" "Iterative" "Multigrid"} }}
}
set fn LISTBOX1
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetType ListBox }
{ WidgetHeight 6 }
{ WidgetWidth 25 }
{ InitialValue "" }
}
set fn LISTBOX2
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetType ListBox }
{ WidgetHeight 6 }
{ WidgetWidth 25 }
{ InitialValue "" }
}
set fn LISTBOX3
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetType ListBox }
{ WidgetHeight 6 }
{ WidgetWidth 25 }
{ InitialValue "" }
}
set fn LISTBOX4
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetType ListBox }
{ WidgetHeight 6 }
{ WidgetWidth 25 }
{ InitialValue "" }
}
set fn LOG_DIRECTORY
setFieldProperties1 "" $fn $stdPropL {"Log directory"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 40 }
{ FieldValueType String }
{ FieldFormat "% -39s" }
}
set fn LUMPED_MASS_MATRIX
setFieldProperties1 "" $fn $stdPropL {"Lumped mass matrix"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
}
set fn MAX_OUTPUT_LEVEL
setFieldProperties1 "" $fn $stdPropLF {"Max info output level" 1}
setFieldProperties2 "" $fn \
{ { FieldValueType Integer }
{ Limits {Interval {0 31}} }
{ InitialValue 31 }
}
set fn MESH
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ FieldValueType File }
}
set fn MESH_BG_MESH
setFieldProperties1 "" $fn $stdPropL {"Background mesh"}
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ ScreenPadY 2 }
{ WidgetWidth 16 }
{ FieldValueType String }
{ Limits {Set {"Delaunay" "Grid" "SparseGrid" "DenseGrid" "External"} } }
{ InitialValue "Delaunay" }
}
set fn MESH_BG_MESH_FILE
setFieldProperties1 "" $fn $stdPropL {"Bg mesh file"}
setFieldProperties2 "" $fn \
{ { WidgetType BrowsableFile }
{ HasAbsCheckBox 1 }
{ ScreenPadY 2 }
{ WidgetWidth 15 }
}
set fn MESH_BG_MESH_ACTIVE
setFieldProperties1 "" $fn $stdPropL {"Use bg mesh file"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ InitialValue 0 }
}
set fn MESH_BG_MESH_CONTROL
setFieldProperties1 "" $fn $stdPropL {"Use as control file"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ InitialValue 0 }
}
set fn MESH_DENSITY_TYPE
setFieldProperties1 "" $fn $stdPropL {"Mesh density value type"}
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ InitialValue "R" }
}
set fn MESH_DT_H
setFieldProperties1 "" $fn $stdPropL {"Mesh H"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 6 }
{ Limits {Constant "H"} }
}
set fn MESH_DT_R
setFieldProperties1 "" $fn $stdPropL {"Relative"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 6 }
{ Limits {Constant "R"} }
}
set fn MESH_DT_N
setFieldProperties1 "" $fn $stdPropL {"Nof elements"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 9 }
{ Limits {Constant "N"} }
}
set fn MESH_DT_NONE
setFieldProperties1 "" $fn $stdPropL {"None"}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 4 }
{ Limits {Constant "None"} }
}
set fn MESH_F
setFieldProperties1 "" $fn $stdPropL {"Mesh F"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 16 }
{ InitialValue 1.0 }
{ NeededLevel 3 }
{ Limits {Interval {0 Inf}} }
{ Procedurable 0 }
{ Tableable 0 }
}
set fn MESH_H
setFieldProperties1 "" $fn $stdPropLU {"Mesh H" "\[m\]"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 16 }
{ InitialValue "\$MeshDefine(MESH_H,default)" }
{ NeededLevel 3 }
{ FieldDataSize N }
{ MaxDataSize1 2 }
{ Limits {Interval {0 Inf}} }
{ Procedurable 0 }
{ Tableable 0 }
{ ActivityOnlyByMask 0 }
}
set fn MESH_N
setFieldProperties1 "" $fn $stdPropL {"Nof elements"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 16 }
{ InitialValue "" }
{ NeededLevel 3 }
{ Limits {Interval {(0 Inf)}} }
{ FieldFormat "%16d" }
{ Procedurable 0 }
{ Tableable 0 }
{ ActivityOnlyByMask 0 }
}
set fn MESH_R
setFieldProperties1 "" $fn $stdPropL {"Relative mesh H"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 16 }
{ InitialValue 1.0 }
{ NeededLevel 3 }
{ FieldDataType Array }
{ FieldDataSize N 1}
{ MaxDataSize1 2 }
{ Procedurable 0 }
{ Tableable 0 }
{ ActivityOnlyByMask 0 }
}
set fn MESH_ELEMENT_ORDER
setFieldProperties1 "" $fn $stdPropL {"Element order"}
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ ScreenPadY 2 }
{ WidgetWidth 8 }
{ FieldValueType String }
{ Limits {Set {"Linear" "Parabolic" } } }
{ InitialValue "Linear" }
}
set fn MESH_ELEMENT_TYPE
setFieldProperties1 "" $fn $stdPropL {"Element type"}
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ InitialValue "Triangle" }
}
set fn MESH_ET_LINE
setFieldProperties1 "" $fn $stdPropLM {"Line" (¤dimG2) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 4 }
{ Limits {Constant "Line"} }
}
set fn MESH_ET_TRIANGLE
setFieldProperties1 "" $fn $stdPropLM {"Triangle" (¤dimG2) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Triangle"} }
}
set fn MESH_ET_QUAD
setFieldProperties1 "" $fn $stdPropLM {"Quad" (¤dimG2) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 4 }
{ Limits {Constant "Quad"} }
}
set fn MESH_ET_TETRA
setFieldProperties1 "" $fn $stdPropLM {"Tetra" (¤dimG3) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 5 }
{ Limits {Constant "Tetra"} }
}
set fn MESH_ET_BRICK
setFieldProperties1 "" $fn $stdPropLM {"Brick" (¤dimG3) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 5 }
{ Limits {Constant "Brick"} }
}
set fn MESH_INDEX
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { Display 0 }
{ WidgetClass PanelField }
{ InitialValue $Info(NO_INDEX) }
}
set fn MESH_INPUT_FILE
setFieldProperty "" $fn FieldValueType File
setFieldProperty "" $fn InitialValue "\@Datafile::getDefaultMeshInputFile"
setFieldProperty "" $fn ExcludeFromSif 1
set fn MESH_NAME
setFieldProperties1 "" $fn $stdPropLF {"Mesh name" 0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetWidth 24 }
{ FieldValueType String }
{ ScreenPadY 3 }
{ InitiallyActive 0 }
{ InitialValue "" }
{ Procedurable 0 }
{ Tableable 0 }
}
set fn MESH_NAME_LIST
setFieldProperties1 "" $fn $stdPropLF {"Select mesh" 0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType OptionMenu }
{ WidgetWidth 9 }
{ FieldValueType String }
{ Limits {Set {$Model(meshNames)} } }
{ InitialValue "Mesh1" }
}
set fn MESH_LAYER_TYPE
setFieldProperties1 "" $fn $stdPropL {"Meshing method"}
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ ScreenPadY 3 }
{ WidgetWidth 16 }
{ WidgetPacking Vertical }
{ FieldValueType String }
{ Limits {Set {
{"BoundaryMesh"}
{"MovingFront" "VoronoiVertex" "SSSFMovingFront" "SSMFMovingFront"}
{"TriangleNEGrid" "TriangleNWGrid" "TriangleUJNEGrid" "TriangleUJNWGrid" "TriangleFBNEGrid" "TriangleFBNWGrid"}
{"QuadGrid"}
{"TetraOctree"}
{"BrickOctree"} }}}
{ InitialValue "MovingFront" }
}
set fn MESH_QUADGRID_N1
setFieldProperties1 "" $fn $stdPropLFM {"Nof elements (1st and 3rd edge)" 2 {(¤dimG2) (¤dimG2)} }
setFieldProperties2 "" $fn \
{ { WidgetWidth 12 }
{ ScreenPadY 8 }
{ NeededLevel 3 }
{ Limits {Interval {(0 Inf)} } }
{ FieldFormat "%12d" }
{ Procedurable 0 }
{ Tableable 0 }
{ ActivityOnlyByMask 0 }
}
set fn MESH_QUADGRID_N2
setFieldProperties1 "" $fn $stdPropLFM {"Nof elements (2nd and 4th edge)" 2 {(¤dimG2) (¤dimG2)} }
setFieldProperties2 "" $fn \
{ { WidgetWidth 12 }
{ ScreenPadY 8 }
{ NeededLevel 3 }
{ Limits {Interval {(0 Inf)} } }
{ FieldFormat "%12d" }
{ Procedurable 0 }
{ Tableable 0 }
{ ActivityOnlyByMask 0 }
}
set fn MESH_SEED_EDGE
setFieldProperties1 "" $fn $stdPropLFM {"Meshing seed edge" 2 (¤dimG2) }
setFieldProperties2 "" $fn \
{ { FieldValueType Integer }
{ WidgetWidth 20 }
{ ScreenPadY 8 }
{ NeededLevel 3 }
{ Procedurable 0 }
{ InitialValue "" }
{ ActivityOnlyByMask 0 }
}
# Not in use
set fn MESH_SEED_DIRECTION
setFieldProperties1 "" $fn $stdPropLUFM {"Direction" "(x,y)" 2 (¤dimG2) }
setFieldProperties2 "" $fn \
{ { FieldDataType Array }
{ FieldDataSize 3 }
{ WidgetWidth 20 }
{ Procedurable 0 }
{ InitialValue "" }
{ ActivityOnlyByMask 0 }
}
# Not in use
set fn MESH_SEED_VERTEX
setFieldProperties1 "" $fn $stdPropLUFM {"Inner node" "(x,y)" 2 (¤dimG2) }
setFieldProperties2 "" $fn \
{ { FieldDataType Array }
{ FieldDataSize 3 }
{ ScreenPadY 5 }
{ WidgetWidth 20 }
{ Procedurable 0 }
{ InitialValue "" }
{ ActivityOnlyByMask 0 }
}
set fn MESH_SEED_TYPE
setFieldProperties1 "" $fn $stdPropLFM {"Mesh seed type" 2 (¤dimG2) }
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ InitialValue "Implicit" }
{ ActivityOnlyByMask 0 }
}
# Not in use
set fn MESH_ST_EXPLICIT
setFieldProperties1 "" $fn $stdPropLF {"Inner node" 2}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 8 }
{ Limits {Constant "Explicit"} }
}
# Not in use
set fn MESH_ST_IMPLICIT
setFieldProperties1 "" $fn $stdPropLF {"Boundary" 2}
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Implicit"} }
}
set fn MG_EQUAL_SPLIT
setFieldProperties1 "" $fn $stdPropLF {"MG equal split" 2}
setFieldProperty "" $fn WidgetType CheckBox
setFieldProperty "" $fn FieldValueType Logical
set fn MG_LEVELS
setFieldProperties1 "" $fn $stdPropLF {"MG levels" 2}
setFieldProperty "" $fn FieldValueType Integer
set fn MG_MESH_NAME
setFieldProperties1 "" $fn $stdPropLF {"MG mesh name" 2}
setFieldProperty "" $fn WidgetWidth 18
setFieldProperty "" $fn FieldValueType File
set fn MG_CONVERGENCE_TOLERANCE
setFieldProperties1 "" $fn $stdPropLF {"MG tolerance" 2}
setFieldProperty "" $fn Procedurable 0
set fn MG_MAX_ITERATIONS
setFieldProperties1 "" $fn $stdPropLF {"MG max iterations" 2}
setFieldProperty "" $fn FieldValueType Integer
set fn MG_PRECONDITIONING
setFieldProperties1 "" $fn $stdPropLF {"MG preconditioning" 2}
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ WidgetWidth 10 }
{ FieldValueType String }
{ Limits {Set {
"None"
"ILU0" "ILU1" "ILU2" "ILU3" "ILU4" "ILU5" "ILU6" "ILU7" "ILU8" "ILU9" "ILUT"} }}
}
set fn MG_ILUT_TOLERANCE
setFieldProperties1 "" $fn $stdPropLF {"MG ILUT Tolerance" 2}
setFieldProperty "" $fn InitiallyActive 0
setFieldProperty "" $fn ActivityOnlyByMask 0
setFieldProperty "" $fn Procedurable 0
set fn MG_SMOOTHER
setFieldProperties1 "" $fn $stdPropLF {"MG smoother" 2}
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ WidgetWidth 10 }
{ FieldValueType String }
{ Limits {Set { "Jacobi" "CG" "BiCGStab" } }}
}
set fn MG_PRE_SMOOTHING_ITERATIONS
setFieldProperties1 "" $fn $stdPropLF {"MG pre smoothing iters." 2}
setFieldProperty "" $fn FieldValueType Integer
set fn MG_POST_SMOOTHING_ITERATIONS
setFieldProperties1 "" $fn $stdPropLF {"MG post smoothing iters." 2}
setFieldProperty "" $fn FieldValueType Integer
set fn MIN_OUTPUT_LEVEL
setFieldProperties1 "" $fn $stdPropLF {"Min info output level" 1}
setFieldProperties2 "" $fn \
{ { FieldValueType Integer }
{ Limits {Interval {0 31}} }
{ InitialValue 0 }
}
set fn MODEL_DESCRIPTION
setFieldProperty "" $fn FieldValueType String
set fn MODEL_DIRECTORY
setFieldProperty "" $fn FieldValueType File
set fn MODEL_NAME
setFieldProperty "" $fn FieldValueType String
set fn NAVIER-STOKES
setFieldProperties1 "" $fn $stdPropL {"NAVIER-STOKES EQUATION"}
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue False }
}
set fn NAVIER-STOKES_vars
setFieldProperties1 "" $fn $stdPropM {(¤FL1)}
setFieldProperties2 "" $fn \
{ { WidgetClass OutputField }
{ Display 0 }
{ FieldValueType String }
{ ExcludeFromSif 1 }
}
set fn NEWMARK_BETA
setFieldProperty "" $fn FieldValueType Real
setFieldProperty "" $fn InitialValue 1.0
set fn NOF_PROCESSORS
setFieldProperties1 "" $fn $stdPropL {"Number of processors:"}
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn InitialValue 1
set fn NON_BLOCKING
setFieldProperties1 "" $fn $stdPropLUFM {"Non blocking surface" "(Yes/No)" 2 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn NONLINEAR_SYSTEM_CONVERGENCE_TOLERANCE
setFieldProperty "" $fn Label "Tolerance"
setFieldProperty "" $fn Procedurable 0
set fn NONLINEAR_SYSTEM_MAX_ITERATIONS
setFieldProperty "" $fn Label "Max iterations"
setFieldProperty "" $fn FieldValueType Integer
set fn NONLINEAR_SYSTEM_NEWTON_AFTER_ITERATIONS
setFieldProperty "" $fn Label "Newton after iteration"
setFieldProperty "" $fn FieldValueType Integer
set fn NONLINEAR_SYSTEM_NEWTON_AFTER_TOLERANCE
setFieldProperty "" $fn Label "Newton after tolerance"
setFieldProperty "" $fn Procedurable 0
set fn NONLINEAR_SYSTEM_RELAXATION_FACTOR
setFieldProperty "" $fn Label "Relaxation factor"
setFieldProperty "" $fn Procedurable 0
set fn NORMAL_FORCE
setFieldProperties1 "" $fn $stdPropLUFM {"Normal force" "\[N/m2\]" 2 (¤S) }
set fn NORMAL-TANGENTIAL_DISPLACEMENT
setFieldProperties1 "" $fn $stdPropLUM {"Normal tangential displ." "(Yes/No)" (¤S) }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn NORMAL-TANGENTIAL_VELOCITY
setFieldProperties1 "" $fn $stdPropLUM {"Normal tangential veloc." "(Yes/No)" (¤FL) }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn OUTPUT_CALLER
setFieldProperties1 "" $fn $stdPropLF {"Output calling subroutine info" 1}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue True }
{ AlwaysOutput 1 }
}
set fn OUTPUT_FILE
setFieldProperty "" $fn FieldValueType File
setFieldProperty "" $fn InitialValue "\@Datafile::getDefaultOutputFile"
set fn OUTPUT_INTERVALS
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn FieldDataType Array
set fn OUTPUT_LEVEL
setFieldProperties1 "" $fn $stdPropLF {"Info output level" 1}
setFieldProperties2 "" $fn \
{ { FieldValueType Integer }
{ FieldDataType Array }
{ FieldDataSize "N" }
{ MaxDataSize1 32 }
{ WidgetWidth 20 }
{ InitialValue "" }
{ Limits {Set {0 1}} }
{ Tableable 1 }
{ Variabled 0 }
}
set fn PCM_NONE
setFieldProperties1 "" $fn $stdPropLFM {"None" 3 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 7 }
{ Limits {Constant "None"} }
{ ScreenIndent 6 }
}
set fn PCM_SPATIAL_1
setFieldProperties1 "" $fn $stdPropLFM {"Spatial 1" 3 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 7 }
{ Limits {Constant "Spatial 1"} }
{ ScreenIndent 6 }
}
set fn PCM_SPATIAL_2
setFieldProperties1 "" $fn $stdPropLFM {"Spatial 2" 3 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 7 }
{ Limits {Constant "Spatial 2"} }
{ ScreenIndent 6 }
}
set fn PCM_TEMPORAL
setFieldProperties1 "" $fn $stdPropLFM {"Temporal" 3 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 7 }
{ Limits {Constant "Temporal"} }
{ ScreenIndent 6 }
}
set fn PERIODIC_BOUNDARIES
setFieldProperty "" $fn FieldDataType Array
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn FieldFormat ""
set fn PHASE_CHANGE_INTERVALS
setFieldProperties1 "" $fn $stdPropLUM {"Phase change intervals" "\[K\]" (¤HP) }
setFieldProperties2 "" $fn \
{ { FieldDataType Array }
{ FieldDataSize "2 N" }
}
set fn PHASE_CHANGE_MODEL
setFieldProperties1 "" $fn $stdPropLFM {"Phase change model:" 3 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ WidgetPacking Vertical }
{ FieldValueType String }
{ InitialValue "None" }
{ ScreenIndent 0 }
}
set fn PLANE_STRESS
setFieldProperties1 "" $fn $stdPropLFM {"Plane stress" 2 {(¤S) (¤dimS2)&(¤S)} }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue False }
{ ScreenIndent 0 }
}
set fn POISSON_RATIO
setFieldProperties1 "" $fn $stdPropLM {"Poisson ratio" (¤S) }
setFieldProperty "" $fn NeededLevel 1
set fn POST_FILE
setFieldProperty "" $fn FieldValueType File
setFieldProperty "" $fn InitialValue "\@Datafile::getDefaultPostFile"
set fn PRESSURE
setFieldProperties1 "" $fn $stdPropLUM {"Pressure" "\[Pa\]" (¤FL) }
setFieldProperty "" $fn SifName "Pressure"
set fn PRESSURE_
foreach i {1 2 3} {
setFieldProperties1 "" $fn$i $stdPropLUFM {"Pressure" "\[N/m2\]" 2 (¤FL) }
setFieldProperty "" $fn$i SifName "Pressure $i"
setFieldProperty "" $fn$i CoordinateIndex $i
setFieldProperty "" $fn$i LabelByCoordinate 1
}
setFieldProperty "" PRESSURE_2 Mask {(¤FL) (¤FL)&((¤dimS2)|(¤dimS3))}
setFieldProperty "" PRESSURE_3 Mask {(¤FL) (¤FL)&(¤dimS3)}
set fn PROBLEM_DESCRIPTION
setFieldProperty "" $fn FieldValueType String
set fn PROBLEM_NAME
setFieldProperty "" $fn FieldValueType String
set fn PROCEDURE
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType File }
{ FieldDataSize 2 }
}
set fn PROCEDURE_BUTTON
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType CheckBox }
{ WidgetPacking Horizontal }
{ WidgetLabel "Proc" }
{ WidgetCommandProc Panel::procedureCheckBoxCommandProc }
{ WidgetWidth 0 }
{ Limits {Set {1 0}} }
{ InitialValue 0 }
{ InitiallyActive 0 }
{ ActivityOnlyByMask 0}
}
set fn RADIATION
setFieldProperties1 "" $fn $stdPropLFM {"Radiation" 2 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ FieldValueType String }
{ InitialValue "" }
}
# Not in use!
set fn RADIATION_BOUNDARIES
setFieldProperties1 "" $fn $stdPropFM {2 (¤H) }
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Integer }
{ ActivityOnlyByMask 0 }
{ InitialValue "" }
}
set fn RADIATION_TARGET_BODY
setFieldProperties1 "" $fn $stdPropFM {2 (¤H) }
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Integer }
{ ActivityOnlyByMask 0 }
{ ActivityParents RADIATION }
{ ActivityValues {"Diffuse gray"} }
{ InitialValue "" }
}
# Experimental, no in use!
set fn RADIATION_TARGET_BODIES
setFieldProperties1 "" $fn $stdPropFM {2 (¤H) }
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Integer }
{ ActivityOnlyByMask 0 }
{ InitialValue "" }
}
set fn RADIATION_TARGET_BODY_NAME
setFieldProperties1 "" $fn $stdPropLFM {"Radiation target body" 2 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType OptionMenu }
{ WidgetWidth 9 }
{ FieldValueType String }
{ Limits {Set {""} } }
{ InitialValue "" }
{ ActivityOnlyByMask 0 }
}
set fn RD_IDEALIZED
setFieldProperties1 "" $fn $stdPropLFM {"Idealized" 2 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 7 }
{ Limits {Constant "Idealized"} }
}
set fn RD_NONE
setFieldProperties1 "" $fn $stdPropLFM {"None" 2 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 4 }
{ Limits {Constant ""} }
}
set fn RD_DIFFUSE_GRAY
setFieldProperties1 "" $fn $stdPropLFM {"Diffuse gray" 2 (¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetPacking Horizontal }
{ WidgetWidth 9 }
{ Limits {Constant "Diffuse gray"} }
}
set fn REFERENCE_PRESSURE
setFieldProperties1 "" $fn $stdPropLUFM {"Reference pressure" "\[Pa\]" 2 (¤FL)|(¤HT2)|(¤HT3)|(¤AD2)|(¤AD3) }
setFieldProperties2 "" $fn \
{ { InitialValue 0.0 }
{ NeededLevel 2 }
{ ActivityOnlyByMask 0 }
{ InitiallyActive 0 }
{ ActivityParents COMPRESSIBILITY_MODEL }
{ ActivityValues {"~Incompressible"} }
}
set fn REFERENCE_TEMPERATURE
setFieldProperties1 "" $fn $stdPropLUM {"Reference temperature" "\[K\]" (¤FL)|(¤HT2)|(¤HT3)|(¤AD2)|(¤AD3)|(¤S) }
set fn RELOAD_INPUT_FILE
setFieldProperties1 "" $fn $stdPropL "ReloadInput file"
setFieldProperties2 "" $fn \
{ { WidgetType BrowsableFile }
{ HasAbsCheckBox 1 }
{ HasUseCheckBox 1 }
{ FieldValueType File }
{ FieldDataSize 1 }
{ WidgetWidth 25 }
}
set fn RESTART_FILE
setFieldProperty "" $fn FieldValueType File
set fn RESTART_POSITION
setFieldProperties2 "" $fn {
{ FieldValueType Integer }
{ FieldFormat "%10d" }
{ Procedurable 0 }
{ Tableable 0 }
}
set fn RESULT_MESH_NAME
setFieldProperties1 "" $fn $stdPropLF {"Result mesh name" 0}
setFieldProperty "" $fn FieldValueType File
setFieldProperty "" $fn InitialValue ""
set fn RESULTS_DIRECTORY
setFieldProperties1 "" $fn $stdPropL {"Results directory"}
setFieldProperties2 "" $fn \
{ { WidgetWidth 40 }
{ FieldValueType File }
{ FieldFormat "% -39s" }
}
set fn SELECT_MESH_WIDGET
setFieldProperties1 "" $fn $stdPropLF {"Select mesh" 0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType OptionMenu }
{ WidgetWidth 9 }
{ FieldValueType String }
{ Limits {Set {$Model(meshNames)} } }
{ InitialValue "\$Model(currentMeshName)" }
}
set fn SIF_MODEL_INCLUDE_FILE
setFieldProperties1 "" $fn $stdPropL {"General include file"}
setFieldProperties2 "" $fn \
{ { WidgetType IncludeFile }
{ HasUseCheckBox 1 }
{ WidgetWidth 40 }
{ FieldValueType File }
{ FieldFormat "% -39s" }
}
set fn SIF_SIMULATION_INCLUDE_FILE
setFieldProperties1 "" $fn $stdPropL {"Simulation include file"}
setFieldProperties2 "" $fn \
{ { WidgetType IncludeFile }
{ HasUseCheckBox 1 }
{ WidgetWidth 40 }
{ FieldValueType File }
{ FieldFormat "% -39s" }
}
set fn SIMULATION_TYPE
setFieldProperty "" $fn FieldValueType String
setFieldProperty "" $fn InitialValue "Steady State"
set fn SM_MECHANICAL
setFieldProperties1 "" $fn $stdPropLFM {"Mechanical" 2 (¤S) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 9 }
{ Limits {Constant "Mechanical"} }
{ ScreenIndent 6 }
}
set fn SM_THERMAL
setFieldProperties1 "" $fn $stdPropLFM {"Thermal" 2 (¤S)&(¤H) }
setFieldProperties2 "" $fn \
{ { WidgetClass MemberOutputField }
{ WidgetType RadioButton }
{ WidgetWidth 9 }
{ Limits {Constant "Thermal"} }
{ ScreenIndent 6 }
}
set fn SOLVER_INPUT_FILE
setFieldProperty "" $fn FieldValueType File
setFieldProperty "" $fn InitialValue "\@Datafile::getDefaultSolverInputFile"
set fn SOLVING_ORDER
setFieldProperty "" $fn FieldValueType Integer
set fn SORET_DIFFUSIVITY
setFieldProperties1 "" $fn $stdPropLUM {" Soret Diffusivity" "\[kg/m\]" (¤AD) }
setFieldProperty "" $fn IndexType "Pre"
setFieldProperty "" $fn IndexVariable ADVECTION_DIFFUSION_EQUATION
setFieldProperty "" $fn WidgetClass ParentField
set fn SPECIFIC_HEAT_RATIO
setFieldProperties1 "" $fn $stdPropLFM {"Specific Heat Ratio" 2 (¤FL)|(¤HT2)|(¤HT3)|(¤AD2)|(¤AD3) }
setFieldProperties2 "" $fn \
{ { InitialValue 1.4 }
{ NeededLevel 2 }
{ ActivityOnlyByMask 0 }
{ InitiallyActive 0 }
{ ActivityParents COMPRESSIBILITY_MODEL }
{ ActivityValues {"~Incompressible"} }
}
set fn STABILIZE
setFieldProperties1 "" $fn $stdPropL {"Stabilize"}
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn STEADY_STATE_CONVERGENCE_TOLERANCE
setFieldProperties1 "" $fn $stdPropLF {"Steady state tolerance" 2}
setFieldProperty "" $fn Procedurable 0
set fn STEADY_STATE_MAX_ITERATIONS
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn InitialValue 20
set fn STEADY_STATE_OUTPUT_INTERVAL
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn InitialValue 1
setFieldProperty "" $fn SifName "Output Intervals"
set fn STEFAN_BOLTZMANN
setFieldProperties1 "" $fn $stdPropLUF { "Stefan-Boltzmann constant" "\[W/m2K4\]" 2}
setFieldProperty "" $fn InitialValue 5.67e-08
setFieldProperty "" $fn Procedurable 0
set fn STRESS_ANALYSIS
setFieldProperties1 "" $fn $stdPropL {"STRESS ANALYSIS"}
setFieldProperties2 "" $fn \
{ { Display 0 }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
{ InitialValue False }
}
set fn STRESS_ANALYSIS_vars
setFieldProperties1 "" $fn $stdPropM {(¤S)}
setFieldProperties2 "" $fn \
{ { WidgetClass OutputField }
{ Display 0 }
{ FieldValueType String }
{ ExcludeFromSif 1 }
}
set fn STRESS_BODYFORCE_
foreach i {1 2 3} {
setFieldProperties1 "" $fn$i $stdPropLUM {"Stress Bodyforce" "\[N/m3]" (¤S) }
setFieldProperty "" $fn$i SifName "Stress Bodyforce $i"
setFieldProperty "" $fn$i CoordinateIndex $i
setFieldProperty "" $fn$i LabelByCoordinate 1
}
setFieldProperty "" STRESS_BODYFORCE_2 Mask {(¤S) (¤S)&((¤dimS2)|(¤dimS3))}
setFieldProperty "" STRESS_BODYFORCE_3 Mask {(¤S) (¤S)&(¤dimS3)}
set fn STRESS_MODEL
setFieldProperties1 "" $fn $stdPropFM {2 (¤S) }
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ WidgetPacking Vertical }
{ FieldValueType String }
}
set fn SURFACE_ROUGHNESS
setFieldProperties1 "" $fn $stdPropLM {"Surface roughness" (¤FT1) }
setFieldProperty "" $fn InitialValue 9
set fn SURFACE_TENSION_COEFFICIENT
setFieldProperties1 "" $fn $stdPropLUFM {"Surf. tension coeff." "\[N/m\]" 2 (¤FL) }
set fn SURFACE_TENSION_EXPANSION_COEFFICIENT
setFieldProperties1 "" $fn $stdPropLUFM {"Surf. tension exp. coeff" "\[1/K\]" 2 (¤FL) }
set fn TABLE_BUTTON
setFieldProperties1 "" $fn $stdPropF {0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType CheckBox }
{ WidgetPacking Horizontal }
{ WidgetLabel "Table" }
{ WidgetCommandProc Panel::tableCheckBoxCommandProc }
{ WidgetWidth 0 }
{ Limits {Set {1 0}} }
{ InitialValue 0 }
{ InitiallyActive 0 }
{ ActivityOnlyByMask 0}
}
set fn TEMPERATURE
setFieldProperties1 "" $fn $stdPropLUM {"Temperature" "\[K\]" (¤H) }
setFieldProperty "" $fn SifName "Temperature"
setFieldProperty "" $fn SifTypeGiven 1
# NOTE: We do not set (¤T) mask, because time-variable
# used as step counter for Steady-state problems!!!
set fn TIME
setFieldProperties1 "" $fn $stdPropLUF {"Time" "\[s\]" 0 }
setFieldProperty "" $fn SifName "Time"
set fn TIME_DERIVATIVE_ORDER
setFieldProperty "" $fn FieldValueType Integer
set fn TIMESTEPPING_METHOD
setFieldProperties1 "" $fn $stdPropL {"Time stepping method:"}
setFieldProperties2 "" $fn \
{ { WidgetType OptionMenu }
{ WidgetWidth 18 }
{ FieldValueType String }
{ Limits {Set {"Newmark" "BDF" } } }
{ InitialValue "Newmark" }
}
set fn TIMESTEP_INTERVALS
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn FieldDataType Array
setFieldProperty "" $fn Tableable 0
set fn TIMESTEP_SIZES
setFieldProperty "" $fn FieldDataType Array
setFieldProperty "" $fn Tableable 0
set fn TM_NONE
setFieldProperties1 "" $fn $stdPropLFM {"None" 2 (¤FL) }
setFieldProperties2 "" $fn \
{ { WidgetType RadioButton }
{ WidgetWidth 7 }
{ Limits {Constant ""} }
{ ScreenIndent 6 }
}
set fn TM_KE
setFieldProperties1 "" $fn $stdPropLFM {"KE" 2 (¤FL) }
setFieldProperties2 "" $fn \
{ { WidgetType RadioButton }
{ WidgetWidth 7 }
{ Limits {Constant "KE"} }
{ ScreenIndent 6 }
}
set fn TURBULENCE_MODEL
setFieldProperties1 "" $fn $stdPropLFM {"Turbulence model:" 2 (¤FL) }
setFieldProperties2 "" $fn \
{ { WidgetClass RadioButtonsContainer }
{ WidgetType GroupDataAndScreen }
{ WidgetPacking Vertical }
{ InitialValue "" }
{ ExcludeFromSif 1}
}
set fn VARIABLE
setFieldProperty "" $fn FieldDataSize "N N"
setFieldProperty "" $fn FieldValueType String
set fn VARIABLE_DOFS
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn Display 0
# NOTE: This is used for Calculators for storing
# dofs-array entered by the user. The actual (possibly dimension
# dependent dof-value is stored in VARIABLE_DOFS)
set fn VARIABLE_DOFS_ALL
setFieldProperty "" $fn FieldValueType Integer
setFieldProperty "" $fn ExcludeFromSif 1
set fn VARIABLE_BUTTON
setFieldProperties1 "" $fn $stdPropLF {" " 0}
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType Button }
{ WidgetCommandProc "EquationVariable::openPanel" }
{ WidgetLabel "Variables" }
{ WidgetWidth 0 }
{ WidgetPacking Horizontal }
{ InitiallyActive 0 }
{ ActivityOnlyByMask 0 }
}
set fn VARIABLE_LIST
setFieldProperties2 "" $fn \
{ { WidgetClass PanelField }
{ WidgetType SelectionBox }
{ WidgetLabel "Variables:" }
{ WidgetHeight 6 }
{ WidgetWidth 16 }
{ WidgetPacking Vertical }
{ SubPanel 3 }
{ Limits {Set {@Equation::updateVariableList}} }
{ ActivityOnlyByMask 0 }
{ Mask {(¤AD) (¤AD2)} }
}
set fn VELOCITY
setFieldProperties1 "" $fn $stdPropLUM {"Velocity" "\[m/s\]" (¤FL)}
setFieldProperty "" $fn FieldDataSize "DIM"
setFieldProperty "" $fn FieldDataType Array
set fn VELOCITY_
foreach i { 1 2 3 } {
setFieldProperties1 "" $fn$i $stdPropLUM {"Velocity" "\[m/s\]" (¤FL) }
setFieldProperty "" $fn$i SifName "Velocity $i"
setFieldProperty "" $fn$i CoordinateIndex $i
setFieldProperty "" $fn$i LabelByCoordinate 1
}
setFieldProperty "" VELOCITY_2 Mask {(¤FL) (¤FL)&((¤dimS2)|(¤dimS3))}
setFieldProperty "" VELOCITY_3 Mask {(¤FL) (¤FL)&(¤dimS3)}
set fn VIEW_FACTORS
setFieldProperty "" $fn FieldValueType File
setFieldProperty "" $fn InitialValue "Viewfactors.dat"
set fn VISCOSITY
setFieldProperties1 "" $fn $stdPropLUM {"Viscosity" "\[kg/ms\]" (¤FL) }
setFieldProperty "" $fn NeededLevel 1
set fn WALL_LAW
setFieldProperties1 "" $fn $stdPropLUM {"Wall law" "(Yes/No)" (¤FT) }
setFieldProperties2 "" $fn \
{ { WidgetType CheckBox }
{ FieldValueType Logical }
{ Limits {Set {True False}} }
}
set fn YOUNGS_MODULUS
setFieldProperties1 "" $fn $stdPropLM {"Young's modulus" (¤S) }
setFieldProperty "" $fn NeededLevel 1
namespace forget DataField::getFieldPropert* DataField::setFieldPropert*
}
### End FRONT_SET_INITIAL_GENERIC_FIELD_PROPERITES proc
#===================================================#
# #
# FRONT_SET_INITIAL_PANEL_FIELD_PROPERTIES #
# #
#===================================================#
#
# Panel specific field property definitions
#
proc FRONT_SET_INITIAL_PANEL_FIELD_PROPERTIES {} {
global Common Info Model
foreach arr $Common(allPanelArries) {
global $arr
}
# These specific propertiy values are needed for nearly all fields
#
set stdProp2 { Label UnitString SubPanel Mask }
set stdPropLUFM { Label UnitString SubPanel Mask }
set stdPropLUF { Label UnitString SubPanel }
set stdPropLUM { Label UnitString Mask }
set stdPropLFM { Label SubPanel Mask }
set stdPropLU { Label UnitString }
set stdPropLF { Label SubPanel }
set stdPropLM { Label Mask }
set stdPropL { Label }
set stdPropUFM { UnitString SubPanel Mask }
set stdPropUM { UnitString Mask }
set stdPropFM { SubPanel Mask }
set stdPropF { SubPanel }
set stdPropM { Mask }
namespace import DataField::getFieldPropert* DataField::setFieldPropert*
#============#
# BodyForce #
#============#
#-Panel variables
set BodyForce(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
BOUSSINESQ
FLOW_BODYFORCE_1 FLOW_BODYFORCE_2 FLOW_BODYFORCE_3
STRESS_BODYFORCE_1 STRESS_BODYFORCE_2 STRESS_BODYFORCE_3
HEAT_SOURCE
DIFFUSION_SOURCE
}
set bf BodyForce
set BF $BodyForce(parameterType)
set fn INCLUDE
set Common($BF,$fn,editProc) exists
setFieldProperties1 $bf $fn $stdPropLF {"Parameter file" 0}
#===============#
# BodyParameter #
#===============#
set BodyParameter(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
}
#==========#
# Boundary #
#==========#
set Boundary(initialFields) ""
#====================#
# Boundary Condition #
#====================#
#-Panel variables
set BoundaryCondition(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
VELOCITY_1 VELOCITY_2 VELOCITY_3
NORMAL-TANGENTIAL_VELOCITY
DISPLACEMENT_1 DISPLACEMENT_2 DISPLACEMENT_3
NORMAL-TANGENTIAL_DISPLACEMENT
FORCE_1 FORCE_2 FORCE_3
NORMAL_FORCE
PRESSURE_1 PRESSURE_2 PRESSURE_3
PRESSURE
EXTERNAL_PRESSURE
FREE_MOVING
FREE_SURFACE
KINETIC_ENERGY
KINETIC_DISSIPATION
SURFACE_ROUGHNESS
WALL_LAW
BOUNDARY_LAYER_THICKNESS
SURFACE_TENSION_COEFFICIENT
SURFACE_TENSION_EXPANSION_COEFFICIENT
TEMPERATURE
HEAT_FLUX
HEAT_TRANSFER_COEFFICIENT
EXTERNAL_TEMPERATURE
RADIATION
EMISSIVITY
RADIATION_TARGET_BODY
RADIATION_TARGET_BODY_NAME
FLOW_FORCE_BC
HEAT_FLUX_BC
DIFFUSION
DIFFUSION_FLUX
}
set bc BoundaryCondition
set BC $BoundaryCondition(parameterType)
set fn INCLUDE
set Common($BC,$fn,editProc) exists
setFieldProperties1 $bc $fn $stdPropLF {"Parameter file" 0}
set fn RADIATION
set Common($BC,$fn,fillProc) exits
set Common($BC,$fn,group) {RD_NONE RD_IDEALIZED RD_DIFFUSE_GRAY}
set BoundaryCondition(initialDirichletVnames) {
VELOCITY_1
VELOCITY_2
VELOCITY_3
NORMAL-TANGENTIAL_VELOCITY
PRESSURE
TEMPERATURE
DISPLACEMENT_1
DISPLACEMENT_2
DISPLACEMENT_3
NORMAL-TANGENTIAL_DISPLACEMENT
DIFFUSION
}
set BoundaryCondition(initialNeumannVnames) {
FORCE_1 FORCE_2 FORCE_3
NORMAL_FORCE
PRESSURE_1 PRESSURE_2 PRESSURE_3
EXTERNAL_PRESSURE
FREE_MOVING
FREE_SURFACE
KINETIC_ENERGY
KINETIC_DISSIPATION
SURFACE_ROUGHNESS
WALL_LAW
BOUNDARY_LAYER_THICKNESS
SURFACE_TENSION_COEFFICIENT
SURFACE_TENSION_EXPANSION_COEFFICIENT
HEAT_FLUX
HEAT_TRANSFER_COEFFICIENT
EXTERNAL_TEMPERATURE
RADIATION
RD_NONE
RD_IDEALIZED
RD_DIFFUSE_GRAY
EMISSIVITY
RADIATION_TARGET_BODY
RADIATION_TARGET_BODY_NAME
FLOW_FORCE_BC
HEAT_FLUX_BC
DIFFUSION_FLUX
}
set BoundaryCondition(subElementFields) $BoundaryCondition(initialDirichletVnames)
#===================#
# BoundaryParameter #
#===================#
set BoundaryParameter(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
}
#============#
# Calculator #
#============#
# Panel variables
set Calculator(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
ACTIVE
EXEC_SOLVER
EQUATION
LIBRARY_FILE
FUNCTION_NAME
PROCEDURE
VARIABLE
VARIABLE_DOFS
VARIABLE_DOFS_ALL
SOLVING_ORDER
}
set cl Calculator
set CL $Calculator(parameterType)
set lw 14
set ww 32
set fn EQUATION
setFieldProperty $cl $fn WidgetType Entry
setFieldProperty $cl $fn FieldType String
setFieldProperty $cl $fn SubPanel 1
setFieldProperty $cl $fn Label "Equation"
setFieldProperty $cl $fn LabelWidth $lw
setFieldProperty $cl $fn WidgetWidth 40
setFieldProperty $cl $fn WidgetAnchor w
setFieldProperty $cl $fn NeededLevel 0
set fn ACTIVE
setFieldProperty $cl $fn WidgetType CheckBox
setFieldProperty $cl $fn SubPanel 1
setFieldProperty $cl $fn Label "Active"
setFieldProperty $cl $fn LabelWidth $lw
setFieldProperty $cl $fn WidgetAnchor w
set fn LIBRARY_FILE
setFieldProperty $cl $fn LabelWidth $lw
setFieldProperty $cl $fn WidgetAnchor w
setFieldProperty $cl $fn WidgetWidth $ww
setFieldProperty $cl $fn NeededLevel 2
set fn FUNCTION_NAME
setFieldProperty $cl $fn LabelWidth $lw
setFieldProperty $cl $fn WidgetAnchor w
setFieldProperty $cl $fn WidgetWidth $ww
setFieldProperty $cl $fn NeededLevel 2
set fn VARIABLE
setFieldProperty $cl $fn Label "Variable name"
setFieldProperty $cl $fn LabelWidth $lw
setFieldProperty $cl $fn SubPanel 1
setFieldProperty $cl $fn WidgetType Entry
setFieldProperty $cl $fn WidgetWidth $ww
setFieldProperty $cl $fn WidgetAnchor w
setFieldProperty $cl $fn FieldType String
setFieldProperty $cl $fn InitialValue ""
setFieldProperty $cl $fn NeededLevel 0
set fn VARIABLE_DOFS_ALL
setFieldProperty $cl $fn Label "Variable DOFs"
setFieldProperty $cl $fn LabelWidth $lw
setFieldProperty $cl $fn SubPanel 1
setFieldProperty $cl $fn WidgetType Entry
setFieldProperty $cl $fn WidgetWidth 10
setFieldProperty $cl $fn WidgetAnchor w
setFieldProperty $cl $fn Display 1
setFieldProperty $cl $fn FieldDataType Array
setFieldProperty $cl $fn FieldDataSize "N"
setFieldProperty $cl $fn MaxDataSize1 3
setFieldProperty $cl $fn NeededLevel 0
setFieldProperty $cl $fn Tableable 0
set fn EXEC_SOLVER
setFieldProperties1 $cl $fn $stdPropLF {"Exec calculator" 1}
setFieldProperty $cl $fn InitialValue { "Always" }
setFieldProperty $cl $fn LabelWidth $lw
setFieldProperty $cl $fn WidgetAnchor w
set fn SOLVING_ORDER
setFieldProperty $cl $fn Display 0
setFieldProperty $cl $fn ExcludeFromSif 1
#==========#
# Constant #
#==========#
set cn Constant
set CN $Constant(parameterType)
set fn GRAVITY_HEADER
setFieldProperties1 $cn $fn $stdPropL {"Gravity vector:"}
setFieldProperty $cn $fn WidgetType Label
set fn PHYSICAL_CONSTANTS_HEADER
setFieldProperties1 $cn $fn $stdPropLF {"Physical constants:" 2}
setFieldProperty $cn $fn WidgetType Label
set Constant(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
GRAVITY_HEADER
GRAVITY_1
GRAVITY_2
GRAVITY_3
GRAVITY_ABS
GRAVITY
STEFAN_BOLTZMANN
}
#============#
# Coordinate #
#============#
set Coordinate(initialFields) {
COORDINATE_SYSTEM
COORDINATE_MAPPING
}
set Coordinate(coordinateLabelIndex) 0
set Coordinate(coordinateLabels) {
{ X Y Z }
{ R Z P }
{ R T P }
}
#==========#
# Datafile #
#==========#
set Datafile(initialFields) {
SOLVER_INPUT_FILE
MESH_INPUT_FILE
OUTPUT_FILE
RESTART_FILE
RESTART_POSITION
POST_FILE
GEBHARDT_FACTORS
VIEW_FACTORS
}
#==========#
# Equation #
#==========#
# Predefined equation indices
# 0 = Navier-Stokes
# 1 = KE Turbulence
# 2 = Heat equation
# 3 = Stress Analysis
# 4 = Advection Diffusion Equation
set Equation(predefinedIndices) {0 1 2 3 4}
set Equation(indices) {0 1 2 3 4}
set Equation(equationIndices) ""
#-Panel variables
# NOTE: STRESS_MODEL /Mechanical/Thermal)removed 01.10.99 /Mve
# There is no support for these keywords in Solver!
set Equation(STRESS_MODEL) ""
#
set Equation(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
VARIABLE_BUTTON
EQUATION_LIST
VARIABLE_LIST
NAVIER-STOKES
NAVIER-STOKES_vars
HYDROSTATIC_PRESSURE
TURBULENCE_MODEL
KE_TURBULENCE
KE_TURBULENCE_vars
KE_CLIP
HEAT_EQUATION
HEAT_EQUATION_vars
CONVECTION
PHASE_CHANGE_MODEL
CHECK_LATENT_HEAT_RELEASE
STRESS_ANALYSIS
STRESS_ANALYSIS_vars
PLANE_STRESS
ADVECTION_DIFFUSION_EQUATION
ADVECTION_DIFFUSION_EQUATION_vars
}
set eq Equation
set EQ $Equation(parameterType)
#--------------
# NAVIER-STOKES
#--------------
setFieldProperties2 Equation NAVIER-STOKES \
{ { EquationIndex 0 }
{ EquationMask (¤FL1) }
{ EquationLabel "Navier-Stokes" }
{ EquationField NAVIER-STOKES }
{ EquationVars NAVIER-STOKES_vars }
{ IsMultiVar 0 }
{ Variable "Flow Solution" }
{ VariableComponents {Velocity; Pressure} }
{ VariableDofs { 1 2 3; 1 } }
{ IncludeInEquationPanel 1 }
{ SystemInfoIndices 0 }
{ SifName "Navier-Stokes" }
{ StatusLineName "Flow" }
{ ProcessTableName NS }
}
#--------------
# KE TURBULENCE
#--------------
setFieldProperties2 Equation KE_TURBULENCE \
{ { EquationIndex 1 }
{ EquationMask (¤FT1) }
{ EquationLabel "KE turbulence" }
{ EquationField KE_TURBULENCE}
{ EquationVars KE_TURBULENCE_vars}
{ IsMultiVar 0 }
{ Variable "KE Solution" }
{ VariableComponents {Kinetic Energy; Kinetic Dissipation} }
{ VariableDofs { 1; 1 } }
{ IncludeInEquationPanel 0 }
{ SystemInfoIndices {0 1} }
{ SifName "KE Turbulence" }
{ StatusLineName "KE-Turb" }
{ ProcessTableName {KE KE-D} }
}
# NOTE: We store this variable in the model data, but it is
# not in the Solver-input file
# This variable is needed to get value for the variables
# like KE_TURBULENCE
#
set fn TURBULENCE_MODEL
set Common($EQ,$fn,group) {TM_NONE TM_KE}
set Common($EQ,$fn,groupEditProc) exists
#--------------
# HEAT EQUATION
#--------------
setFieldProperties2 Equation HEAT_EQUATION \
{ { EquationIndex 2 }
{ EquationMask (¤H) }
{ EquationLabel "Heat equation" }
{ EquationField HEAT_EQUATION}
{ EquationVars HEAT_EQUATION_vars}
{ IsMultiVar 0 }
{ Variable "Temperature" }
{ VariableComponents "" }
{ VariableDofs 1 }
{ IncludeInEquationPanel 1 }
{ SystemInfoIndices 0 }
{ SifName "Heat Equation" }
{ StatusLineName "Heat" }
{ ProcessTableName DC }
}
set fn CONVECTION
set Common($EQ,$fn,group) {CONV_NONE CONV_CONSTANT CONV_COMPUTED}
set Common($EQ,$fn,groupEditProc) exists
set fn PHASE_CHANGE_MODEL
set Common($EQ,$fn,group) {PCM_NONE PCM_SPATIAL_1 PCM_SPATIAL_2 PCM_TEMPORAL}
set Common($EQ,$fn,groupEditProc) exists
#----------------
# STRESS ANALYSIS
#----------------
setFieldProperties2 Equation STRESS_ANALYSIS \
{ { EquationIndex 3 }
{ EquationMask (¤S) }
{ EquationLabel "Stress analysis" }
{ EquationField STRESS_ANALYSIS}
{ EquationVars STRESS_ANALYSIS_vars}
{ IsMultiVar 0 }
{ Variable "Displacement" }
{ VariableComponents "" }
{ VariableDofs {1 2 3} }
{ IncludeInEquationPanel 1 }
{ SystemInfoIndices 0 }
{ SifName "Stress Analysis" }
{ StatusLineName "Stress" }
{ ProcessTableName SA }
}
# NOTE: not in use currently
# MVe 09/99
set fn STRESS_MODEL
set Common($EQ,$fn,group) {SM_MECHANICAL SM_THERMAL}
set Common($EQ,$fn,groupEditProc) exists
#-----------------------------
# ADVECTION DIFFUSION EQUATION
#-----------------------------
setFieldProperties2 Equation ADVECTION_DIFFUSION_EQUATION \
{ { EquationIndex 4 }
{ EquationMask (¤AD) }
{ EquationLabel "Advection diffusion" }
{ EquationField ADVECTION_DIFFUSION_EQUATION }
{ EquationVars ADVECTION_DIFFUSION_EQUATION_vars }
{ IsMultiVar 1 }
{ Variable "" }
{ VariableComponents "" }
{ VariableDofs 1 }
{ IncludeInEquationPanel 1 }
{ SystemInfoIndices 0 }
{ SifName "Advection Diffusion Equation" }
{ StatusLineName "AdvDiff" }
{ ProcessTableName AD }
}
set fn ADVECTION_DIFFUSION_EQUATION
set Common($EQ,$fn,fillProc) exists
#===================#
# EquationVariable #
#===================#
# NOTE: AlwaysAddInitialValue is needed to prevent a "real" initial
# like Species for AdvDiff to be added always to the list of varaibles
# In conratry, user defined varaibles are always added, otherwise they
# would not been seen at all, if the user would add a differently named
# variable compared to waht is stored in model file.
# Ref. proc EquationVariable::updateFieldData
#
set EquationVariable(initialFields) {
NAVIER-STOKES
KE_TURBULENCE
HEAT_EQUATION
STRESS_ANALYSIS
ADVECTION_DIFFUSION_EQUATION
}
set ev EquationVariable
set fn NAVIER-STOKES
setFieldProperties2 $ev $fn \
{ { Display 0 }
{ FieldValueType String }
{ InitialValue "" }
{ AlwaysAddInitialValue 0 }
}
set fn KE_TURBULENCE
setFieldProperties2 $ev $fn \
{ { Display 0 }
{ FieldValueType String }
{ InitialValue "" }
{ AlwaysAddInitialValue 0 }
}
set fn HEAT_EQUATION
setFieldProperties2 $ev $fn \
{ { Display 0 }
{ FieldValueType String }
{ InitialValue "" }
{ AlwaysAddInitialValue 0 }
}
set fn STRESS_ANALYSIS
setFieldProperties2 $ev $fn \
{ { Display 0 }
{ FieldValueType String }
{ InitialValue "" }
{ AlwaysAddInitialValue 0 }
}
# NOTE: Only AdvDiff has here a value!!!
#
set fn ADVECTION_DIFFUSION_EQUATION
setFieldProperties2 $ev $fn \
{ { Display 0 }
{ FieldValueType String }
{ InitialValue "Species" }
{ AlwaysAddInitialValue 0 }
}
#=======#
# GridH #
#=======#
set gh GridH
set GH $GridH(parameterType)
set fn MESH_DENSITY_TYPE
set Common($GH,$fn,group) {MESH_DT_NONE MESH_DT_H MESH_DT_R MESH_DT_N}
#-Panel variables
set GridH(initialFields) {
MESH_NAME
MESH_DENSITY_TYPE
MESH_H
MESH_R
MESH_N
}
#===============#
# GridParameter #
#===============#
#-Panel variables
set GridParameter(initialFields) {
ACTIVE_IN_MESHING
MESH_NAME
MESH_ELEMENT_TYPE
MESH_ELEMENT_ORDER
MESH_LAYER_TYPE
MESH_BG_MESH
MESH_BG_MESH_FILE
MESH_DENSITY_TYPE
MESH_H
MESH_R
MESH_QUADGRID_N1
MESH_QUADGRID_N2
LISTBOX1
MESH_SEED_EDGE
MESH_SEED_TYPE
}
# End of list will be like this
# when vertex/direction is implemented
#MESH_QUADGRID_N2
#MESH_SEED_TYPE
#LISTBOX1
#MESH_SEED_EDGE
#MESH_SEED_VERTEX
#MESH_SEED_DIRECTION
set GridParameter(lineGroup) {
MESH_H MESH_R
MESH_DT_NONE MESH_DT_H MESH_DT_R
}
set GridParameter(triangleGroup) {
MESH_LAYER_TYPE MESH_BG_MESH
MESH_H MESH_R
MESH_DT_NONE MESH_DT_H MESH_DT_R
}
set GridParameter(seededTriangleGroup) {
MESH_SEED_TYPE MESH_SEED_EDGE
}
# Not in use. This is the "future" group!
set GridParameter(seededTriangleGroup2) {
MESH_SEED_EDGE MESH_SEED_VERTEX MESH_SEED_DIRECTION
MESH_SEED_TYPE MESH_ST_IMPLICIT MESH_ST_EXPLICIT
}
set GridParameter(quadGridGroup) {
MESH_QUADGRID_N1 MESH_QUADGRID_N2
}
# Not in use!
set GridParameter(meshMethodIndices,LINE) 0
set GridParameter(meshMethodIndices,TRIANGLE) 1
set GridParameter(meshMethodIndices,TRIANGLE_GRID) 2
set GridParameter(meshMethodIndices,QUAD_GRID) 3
set GridParameter(meshMethodIndices,TETRA) 4
set GridParameter(meshMethodIndices,BRICK) 5
set gr GridParameter
set GR $GridParameter(parameterType)
set fn MESH_ELEMENT_TYPE
set Common($GR,$fn,group) {MESH_ET_LINE MESH_ET_TRIANGLE MESH_ET_QUAD MESH_ET_TETRA MESH_ET_BRICK}
set fn MESH_DENSITY_TYPE
set Common($GR,$fn,group) {MESH_DT_NONE MESH_DT_H MESH_DT_R}
# NOTE!!!
# This is currently only output data, value is always the default
# value, ie. "Implicit"
set fn MESH_SEED_TYPE
set Common($GR,$fn,group) {MESH_ST_IMPLICIT MESH_ST_EXPLICIT}
setFieldProperty $gr $fn WidgetClass OutputField
setFieldProperty $gr $fn Display 0
set fn MESH_SEED_VERTEX
setFieldProperty $gr $fn Display 0
set fn MESH_SEED_DIRECTION
setFieldProperty $gr $fn Display 0
set fn LISTBOX1
setFieldProperties1 $gr $fn $stdPropLFM {"Edges" 2 (¤dimG2) }
setFieldProperty $gr $fn WidgetHeight 5
set fn MESH_BG_MESH_FILE
setFieldProperty $gr $fn ActivityOnlyByMask 0
#===================#
# Initial condition #
#===================#
#-Panel variables
set InitialCondition(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
VELOCITY_1 VELOCITY_2 VELOCITY_3
KINETIC_ENERGY
KINETIC_DISSIPATION
PRESSURE
TEMPERATURE
DISPLACEMENT_1 DISPLACEMENT_2 DISPLACEMENT_3
DIFFUSION
}
set ic InitialCondition
set IC $InitialCondition(parameterType)
set fn INCLUDE
set Common($IC,$fn,editProc) exists
setFieldProperties1 $ic $fn $stdPropLF {"Parameter file" 0}
#====================#
# Material Parameter #
#====================#
#-Panel variables
set Material(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
DENSITY
VISCOSITY
HEAT_EXPANSION_COEFFICIENT
REFERENCE_TEMPERATURE
KE_CMU
KE_C1
KE_C2
KE_SIGMAK
KE_SIGMAE
COMPRESSIBILITY_MODEL
REFERENCE_PRESSURE
SPECIFIC_HEAT_RATIO
HEAT_CAPACITY
HEAT_CONDUCTIVITY
ENTHALPY
PHASE_CHANGE_INTERVALS
CONVECTION_VELOCITY_1 CONVECTION_VELOCITY_2 CONVECTION_VELOCITY_3
YOUNGS_MODULUS
POISSON_RATIO
DIFFUSIVITY
}
set mt Material
set MT $Material(parameterType)
set fn INCLUDE
set Common($MT,$fn,editProc) exists
setFieldProperties1 $mt $fn $stdPropLF {"Parameter file" 0}
#============#
# MeshDefine #
#============#
set MeshDefine(initialFields) {
MESH_NAME
MESH_INDEX
MESH_H
MESH_F
MESH_BG_MESH_FILE
MESH_BG_MESH_ACTIVE
MESH_BG_MESH_CONTROL
}
set md MeshDefine
set MD $MeshDefine(parameterType)
# These variable names are used to make it easier to handlee MeshDefine panel
# updates etc.
#
set MeshDefine(fieldNames) {
MESH_NAME MESH_H MESH_F
MESH_BG_MESH_FILE MESH_BG_MESH_ACTIVE MESH_BG_MESH_CONTROL
}
set MeshDefine(listNames) {
meshNames meshHs meshFs
meshBgMeshFiles meshBgMeshActives meshBgMeshControls
}
#================#
# ModelParameter #
#================#
set ModelParameter(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
}
#===============#
# ModelProperty #
#===============#
# Problem directory value types
# Directories are: INCLIDE_PATH, RESULTS_DIRECTORY, LOG_DIRECTORY
#
set ModelProperty(valueTypes) {Session Model Settings}
set ModelProperty(initialFields) {
MODEL_NAME
MODEL_DESCRIPTION
PROBLEM_NAME
PROBLEM_DESCRIPTION
MODEL_DIRECTORY
CURRENT_MESH_DIRECTORY
INCLUDE_PATH
RESULTS_DIRECTORY
LOG_DIRECTORY
}
#===========#
# Processor #
#===========#
set Processor(initialFields) {
NOF_PROCESSORS
}
set Processor(max_nof_processors) 192
#=====================#
# SimulationParameter #
#=====================#
set SimulationParameter(initialFields) {
INCLUDE,Use
INCLUDE,Browse
INCLUDE
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
PROCEDURE_BUTTON
TABLE_BUTTON
}
#========#
# Solver #
#========#
# This was after Variable-Dofs TIME_DERIVATIVE_ORDER
# Panel variables
#
# NOTE: This is Sif output order, not screen order
#
set Solver(initialFields) {
ACTIVE
EXEC_SOLVER
EQUATION
SOLVING_ORDER
MESH
VARIABLE
VARIABLE_DOFS
LIBRARY_FILE
FUNCTION_NAME
PROCEDURE
INCLUDE
INCLUDE,Use
INCLUDE,Browse
LINEAR_SYSTEM_LABEL
LINEAR_SYSTEM_SOLVER
LINEAR_SYSTEM_METHOD
LINEAR_SYSTEM_DIRECT_METHOD
LINEAR_SYSTEM_ITERATIVE_METHOD
LINEAR_SYSTEM_MULTIGRID_METHOD
LINEAR_SYSTEM_MAX_ITERATIONS
LINEAR_SYSTEM_CONVERGENCE_TOLERANCE
LINEAR_SYSTEM_ABORT_NOT_CONVERGED
LINEAR_SYSTEM_PRECONDITIONING
LINEAR_SYSTEM_ILUT_TOLERANCE
LINEAR_SYSTEM_RESIDUAL_OUTPUT
STEADY_STATE_CONVERGENCE_TOLERANCE
MG_LABEL
MG_LEVELS
MG_EQUAL_SPLIT
MG_MESH_NAME
MG_SMOOTHER
MG_PRE_SMOOTHING_ITERATIONS
MG_POST_SMOOTHING_ITERATIONS
MG_MAX_ITERATIONS
MG_CONVERGENCE_TOLERANCE
MG_PRECONDITIONING
MG_ILUT_TOLERANCE
STABILIZE
BUBBLES
LUMPED_MASS_MATRIX
NONLINEAR_SYSTEM_LABEL
NONLINEAR_SYSTEM_CONVERGENCE_TOLERANCE
NONLINEAR_SYSTEM_MAX_ITERATIONS
NONLINEAR_SYSTEM_NEWTON_AFTER_ITERATIONS
NONLINEAR_SYSTEM_NEWTON_AFTER_TOLERANCE
NONLINEAR_SYSTEM_RELAXATION_FACTOR
}
set sl Solver
set SL $Solver(parameterType)
#-Default values per system and other Solver specific settings
#
# Predefined equation indices
# 0 = Navier-Stokes
# 1 = KE Turbulence
# 2 = Heat equation
# 3 = Stress Analysis
# 4 = Advection Diffusion Equation
# NOTE: The first property value (without the #n system index)
# is a generic value which is applied if nothing is specified for
# the solver with #n index or through edf-file!!!
set iv InitialValue
set ia InitiallyActive
set lw 12
set fn EQUATION
setFieldProperty $sl $fn SubPanel 0
setFieldProperty $sl $fn $iv { @Solver::getEquationSifName }
setFieldProperty $sl $fn Display 0
set fn VARIABLE
setFieldProperty $sl $fn SubPanel 0
setFieldProperty $sl $fn $iv { @Solver::getEquationVariable }
setFieldProperty $sl $fn Display 0
set fn VARIABLE_DOFS
setFieldProperty $sl $fn $iv { @Solver::getEquationVariableDofs }
setFieldProperty $sl $fn Display 0
set fn LIBRARY_FILE
setFieldProperty $sl $fn Label "Library file"
setFieldProperty $sl $fn LabelWidth $lw
setFieldProperty $sl $fn WidgetAnchor w
setFieldProperty $sl $fn WidgetWidth 32
setFieldProperty $sl $fn SubPanel 0
setFieldProperty $sl $fn NeedeLevel 1
setFieldProperty $sl $fn InitiallyActive { 1 {#0 0} {#1 0} {#2 0} {#3 0} }
set fn FUNCTION_NAME
setFieldProperty $sl $fn Label "Function name"
setFieldProperty $sl $fn LabelWidth $lw
setFieldProperty $sl $fn WidgetAnchor w
setFieldProperty $sl $fn WidgetWidth 32
setFieldProperty $sl $fn SubPanel 0
setFieldProperty $sl $fn NeedeLevel 1
setFieldProperty $sl $fn InitiallyActive { 1 {#0 0} {#1 0} {#2 0} {#3 0} }
set fn PROCEDURE
setFieldProperty $sl $fn $iv { {#4 "AdvectionDiffusion;AdvectionDiffusionSolver"} }
set fn EXEC_SOLVER
setFieldProperties1 $sl $fn $stdPropLF {"Exec solver" 1}
setFieldProperty $sl $fn $iv { "Always" }
set fn SOLVING_ORDER
setFieldProperty $sl $fn $iv { {#0 2} {#1 3} {#2 1} {#3 4} {#4 5} }
setFieldProperty $sl $fn ExcludeFromSif 1
setFieldProperty $sl $fn Display 0
set fn MESH
setFieldProperty $sl $fn SubPanel 0
setFieldProperty $sl $fn $iv {"@Solver::getDefaultMesh"}
setFieldProperty $sl $fn Display 0
set fn ACTIVE
setFieldProperty $sl $fn $iv {False}
set fn INCLUDE
setFieldProperty $sl $fn $iv {""}
setFieldProperty $sl $fn LabelWidth $lw
set fn LINEAR_SYSTEM_LABEL
setFieldProperty $sl $fn Label "LINEAR SYSTEM SETTINGS"
setFieldProperty $sl $fn WidgetType Label
setFieldProperty $sl $fn PanelPage 1
setFieldProperty $sl $fn SubPanel 2
set fn LINEAR_SYSTEM_SOLVER
setFieldProperty $sl $fn $iv { Iterative }
setFieldProperty $sl $fn $ia { 1 }
set fn LINEAR_SYSTEM_DIRECT_METHOD
setFieldProperty $sl $fn $iv { "BANDED" }
setFieldProperty $sl $fn $ia { 0 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"Direct"}
set fn LINEAR_SYSTEM_ITERATIVE_METHOD
setFieldProperty $sl $fn $iv { BiCGStab }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"Iterative"}
set fn LINEAR_SYSTEM_METHOD
setFieldProperty $sl $fn $iv { BiCGStab }
set fn LINEAR_SYSTEM_MULTIGRID_METHOD
setFieldProperty $sl $fn $iv { Jacobi }
setFieldProperty $sl $fn $ia { 0 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"Multigrid"}
set fn LINEAR_SYSTEM_CONVERGENCE_TOLERANCE
setFieldProperty $sl $fn $iv { 1.0e-08 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"~Multigrid"}
set fn LINEAR_SYSTEM_MAX_ITERATIONS
setFieldProperty $sl $fn $iv { 300 {#0 500} {#1 500} {#2 350} {#3 300} {#4 300} }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"~Multigrid"}
set fn LINEAR_SYSTEM_ABORT_NOT_CONVERGED
setFieldProperty $sl $fn $iv { True }
setFieldProperty $sl $fn AlwaysOutput { 1 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"~Multigrid"}
set fn LINEAR_SYSTEM_PRECONDITIONING
setFieldProperty $sl $fn $iv { ILU0 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"~Multigrid"}
set fn LINEAR_SYSTEM_ILUT_TOLERANCE
setFieldProperty $sl $fn $iv { 1.0e-03 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"~Multigrid"}
set fn LINEAR_SYSTEM_RESIDUAL_OUTPUT
setFieldProperty $sl $fn $iv { 1 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER}
setFieldProperty $sl $fn ActivityValues {"~Multigrid"}
set fn STEADY_STATE_CONVERGENCE_TOLERANCE
setFieldProperty $sl $fn $iv { 1.0e-05 }
set fn STABILIZE
setFieldProperty $sl $fn $iv { True }
setFieldProperty $sl $fn $ia { 1 {#1 0} {#3 0} }
setFieldProperty $sl $fn Display { 1 {#1 0} {#3 0} }
set fn BUBBLES
setFieldProperty $sl $fn $iv { False }
setFieldProperty $sl $fn $ia { 1 {#1 0} {#3 0} }
setFieldProperty $sl $fn Display { 1 {#1 0} {#3 0} }
set fn LUMPED_MASS_MATRIX
setFieldProperty $sl $fn $iv { False }
set fn MG_LABEL
setFieldProperty $sl $fn Label "MULTIGRID SETTINGS"
setFieldProperty $sl $fn WidgetType Label
setFieldProperty $sl $fn PanelPage 2
setFieldProperty $sl $fn SubPanel 2
set fn MG_LEVELS
setFieldProperty $sl $fn $iv { 1 }
setFieldProperty $sl $fn $ia { 0 }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_EQUAL_SPLIT
setFieldProperty $sl $fn $iv { True }
setFieldProperty $sl $fn $ia { 0 }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_MESH_NAME
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_SMOOTHER
setFieldProperty $sl $fn $iv { Jacobi }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_PRE_SMOOTHING_ITERATIONS
setFieldProperty $sl $fn $iv { 5 }
setFieldProperty $sl $fn $ia { 0 }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_POST_SMOOTHING_ITERATIONS
setFieldProperty $sl $fn $iv { 5 }
setFieldProperty $sl $fn $ia { 0 }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_CONVERGENCE_TOLERANCE
setFieldProperty $sl $fn $iv { 1.0e-08 }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_MAX_ITERATIONS
setFieldProperty $sl $fn $iv { 300 }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_PRECONDITIONING
setFieldProperty $sl $fn $iv { ILU0 }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn MG_ILUT_TOLERANCE
setFieldProperty $sl $fn $iv { 1.0e-03 }
setFieldProperty $sl $fn PanelPage { 2 }
setFieldProperty $sl $fn ActivityParents {LINEAR_SYSTEM_SOLVER LINEAR_SYSTEM_PRECONDITIONING}
setFieldProperty $sl $fn ActivityValues { {"Multigrid"} {"Multigrid"} }
set fn NONLINEAR_SYSTEM_LABEL
setFieldProperty $sl $fn Label "LINEARIZATION SETTINGS"
setFieldProperty $sl $fn WidgetType Label
setFieldProperty $sl $fn PanelPage 1
setFieldProperty $sl $fn SubPanel 1
set fn NONLINEAR_SYSTEM_CONVERGENCE_TOLERANCE
setFieldProperty $sl $fn $iv { 1.0e-05 }
set fn NONLINEAR_SYSTEM_MAX_ITERATIONS
setFieldProperty $sl $fn $iv { 1 {#0 5} }
set fn NONLINEAR_SYSTEM_NEWTON_AFTER_ITERATIONS
setFieldProperty $sl $fn $iv { 3 }
set fn NONLINEAR_SYSTEM_NEWTON_AFTER_TOLERANCE
setFieldProperty $sl $fn $iv { 1.0e-02 }
set fn NONLINEAR_SYSTEM_RELAXATION_FACTOR
setFieldProperty $sl $fn $iv { 1.0 }
set fn TIME_DERIVATIVE_ORDER
setFieldProperty $sl $fn Display 0
setFieldProperty $sl $fn $iv {{#3 2}}
#==============================================================================#
# Meaning of the system indices
#
# 0 = Navier-Stokes
# 1 = KE Turbulence
# 2 = Heat equation
# 3 = Stress Equations
# 3 = Advection Diffusion
#==============================================================================#
#set SolverSystem(indices) {0 1 2 3 4}
#set SolverSystem(labels) {"Navier-Stokes" "KE Turbulence" "Heat equation" "Stress analysis" "Advection Diffusion"}
#set SolverSystem(names) {NAVIER-STOKES KE_TURBULENCE HEAT_EQUATION STRESS_ANALYSIS ADVECTION_DIFFUSION_EQUATION}
#set SolverSystem(outNames) {"Navier-Stokes" "KE Turbulence" "Heat Equation" "Stress Analysis" "Advection Diffusion Equation"}
set Solver(direct_group) {
LINEAR_SYSTEM_DIRECT_METHOD
}
set Solver(iter_group) {
LINEAR_SYSTEM_ITERATIVE_METHOD
LINEAR_SYSTEM_MAX_ITERATIONS
LINEAR_SYSTEM_CONVERGENCE_TOLERANCE
LINEAR_SYSTEM_ABORT_NOT_CONVERGED
LINEAR_SYSTEM_PRECONDITIONING
LINEAR_SYSTEM_ILUT_TOLERANCE
LINEAR_SYSTEM_RESIDUAL_OUTPUT
}
set Solver(multigrid_group) {
LINEAR_SYSTEM_MULTIGRID_METHOD
MG_LEVELS
MG_EQUAL_SPLIT
MG_SMOOTHER
MG_PRE_SMOOTHING_ITERATIONS
MG_POST_SMOOTHING_ITERATIONS
MG_MESH_NAME
MG_CONVERGENCE_TOLERANCE
MG_MAX_ITERATIONS
MG_PRECONDITIONING
MG_ILUT_TOLERANCE
}
set Solver(commonFields) {
EXEC_SOLVER
STABILIZE
BUBBLES
LUMPED_MASS_MATRIX
}
set Solver(linearSystemFields) {
LINEAR_SYSTEM_LABEL
LINEAR_SYSTEM_SOLVER
LINEAR_SYSTEM_METHOD
LINEAR_SYSTEM_DIRECT_METHOD
LINEAR_SYSTEM_ITERATIVE_METHOD
LINEAR_SYSTEM_MAX_ITERATIONS
LINEAR_SYSTEM_CONVERGENCE_TOLERANCE
LINEAR_SYSTEM_ABORT_NOT_CONVERGED
LINEAR_SYSTEM_PRECONDITIONING
LINEAR_SYSTEM_ILUT_TOLERANCE
LINEAR_SYSTEM_RESIDUAL_OUTPUT
STEADY_STATE_CONVERGENCE_TOLERANCE
}
set Solver(nonlinearSystemFields) {
NONLINEAR_SYSTEM_LABEL
NONLINEAR_SYSTEM_CONVERGENCE_TOLERANCE
NONLINEAR_SYSTEM_MAX_ITERATIONS
NONLINEAR_SYSTEM_NEWTON_AFTER_ITERATIONS
NONLINEAR_SYSTEM_NEWTON_AFTER_TOLERANCE
NONLINEAR_SYSTEM_RELAXATION_FACTOR
}
set Solver(multigridFields) {
MG_LABEL
MG_LEVELS
MG_EQUAL_SPLIT
MG_SMOOTHER
MG_PRE_SMOOTHING_ITERATIONS
MG_POST_SMOOTHING_ITERATIONS
MG_MESH_NAME
MG_CONVERGENCE_TOLERANCE
MG_MAX_ITERATIONS
MG_PRECONDITIONING
MG_ILUT_TOLERANCE
LINEAR_SYSTEM_MULTIGRID_METHOD
}
# Make the common fields visible for all predefined solvers!!!
#
set m1 ((¤H)|(¤F)|(¤S)|(¤AD))
set m2 ((¤H)|(¤F)|(¤S)|(¤AD))
foreach fn $Solver(commonFields) {
setFieldProperty Solver $fn Mask [list $m1 $m2]
}
foreach fn $Solver(linearSystemFields) {
setFieldProperty Solver $fn Mask [list $m1 $m2]
}
foreach fn $Solver(nonlinearSystemFields) {
setFieldProperty Solver $fn Mask [list $m1 $m2]
}
foreach fn $Solver(multigridFields) {
setFieldProperty Solver $fn Mask [list $m1 $m2]
}
#================#
# SolverControl #
#================#
set sc SolverControl
set SC $SolverControl(parameterType)
set fn EXEC_SOLVER
setFieldProperties1 $sc $fn $stdPropLF {"Reload file" 1}
setFieldProperty $sc $fn $iv { "Always" }
setFieldProperty $sc $fn "ExcludeFromSif" { 1 }
set SolverControl(initialFields) {
CLEAR_PANELS_BUTTON
CLEAR_PANEL_BUTTON
CLEAR_ENTRY_BUTTON
EDIT_BUTTON
TABLE_BUTTON
ECHO_ON
CHECK_KEYWORDS
MIN_OUTPUT_LEVEL
MAX_OUTPUT_LEVEL
OUTPUT_LEVEL
OUTPUT_CALLER
RELOAD_INPUT_FILE
EXEC_SOLVER
}
#==========#
# Timestep #
#==========#
set Timestep(initialFields) {
ACTIVE
TIMESTEPPING_METHOD
NEWMARK_BETA
BDF_ORDER
TIMESTEP_INTERVALS
TIMESTEP_SIZES
OUTPUT_INTERVALS
SIMULATION_TYPE
STEADY_STATE_MAX_ITERATIONS
STEADY_STATE_OUTPUT_INTERVAL
}
#===============#
# User settings #
#===============#
set UserSetting(initialFields) {
DEFAULT_MODEL_DIRECTORY
DEFAULT_CAD_FILES_DIRECTORY
DEFAULT_EXTERNAL_MESH_FILES_DIRECTORY
DEFAULT_INCLUDE_PATH
DEFAULT_RESULTS_DIRECTORY
DEFAULT_LOG_DIRECTORY
DEFAULT_USE_MODEL_SETTINGS
DEFAULT_AUTO_SAVE_EXTERNAL_MESH
AUTO_LOAD_MESH
AUTO_SAVE_MODEL
AUTO_SAVE_SOLVER_INPUT
BROWSER_COMMAND
EDITOR_COMMAND
BROWSE_MODE_GEBHARDT_FACTORS
BROWSE_MODE_MESH
BROWSE_MODE_SOLVER
BROWSE_MODE_VIEW_FACTORS
BROWSE_MODE_PROCEDURE_COMPILER
FONT_SIZES
}
set us UserSetting
set US $UserSetting(parameterType)
set fn BROWSE_MODE_GEBHARDT_FACTORS
set Common($US,$fn,fillProc) exists
set Common($US,$fn,group) {BM_GEBHARDT_FACTORS_LOG BM_GEBHARDT_FACTORS_SHELL BM_GEBHARDT_FACTORS_NONE }
set fn BROWSE_MODE_MESH
set Common($US,$fn,fillProc) exists
set Common($US,$fn,group) {BM_MESH_LOG BM_MESH_SHELL BM_MESH_NONE }
set fn BROWSE_MODE_PROCEDURE_COMPILER
set Common($US,$fn,fillProc) exists
set Common($US,$fn,group) {BM_PROCEDURE_COMPILER_LOG BM_PROCEDURE_COMPILER_SHELL BM_PROCEDURE_COMPILER_NONE }
set fn BROWSE_MODE_SOLVER
set Common($US,$fn,fillProc) exists
set Common($US,$fn,group) {BM_SOLVER_LOG BM_SOLVER_SHELL BM_SOLVER_NONE }
set fn BROWSE_MODE_VIEW_FACTORS
set Common($US,$fn,fillProc) exists
set Common($US,$fn,group) {BM_VIEW_FACTORS_LOG BM_VIEW_FACTORS_SHELL BM_VIEW_FACTORS_NONE }
# Not shown on settings screen!
set fn FONT_SIZES
setFieldProperty UserSetting $fn Display 0
#===========#
# Variables #
#===========#
set Variables(initialFields) {
COORDINATE COORDINATE_1 COORDINATE_2 COORDINATE_3
DISPLACEMENT DISPLACEMENT_1 DISPLACEMENT_2 DISPLACEMENT_3
KINETIC_ENERGY KINETIC_DISSIPATION
PRESSURE
TEMPERATURE
TIME
VELOCITY VELOCITY_1 VELOCITY_2 VELOCITY_3
}
# Check that both problem and display masks will be set
#======================================================
foreach fn $Common(allFieldNames) {
set masks [getFieldProperty "" $fn Mask]
if { 1 == [llength $masks] } {
lappend masks $masks
setFieldProperty "" $fn Mask $masks
}
}
# Set BoundaryCondition specific masks
# ====================================
# NOTE: This cannot be done until BOTH problem and display masks are set!!
set m ""
lappend m {}
lappend m &(¤bcD)
DataField::addFieldMaskItem BoundaryCondition \
$BoundaryCondition(initialDirichletVnames) \
$m
# NOTE: Neumann type conditions can be set to
# faces and edges in 3D.
# The user must know what to do with edges!
#
set m ""
lappend m {}
lappend m &(¤bcN)
DataField::addFieldMaskItem BoundaryCondition \
$BoundaryCondition(initialNeumannVnames) \
$m
namespace forget DataField::getFieldPropert* DataField::setFieldPropert*
}
### End FRONT_SET_INITIAL_PANEL_FIELD_PROPERITES proc
#=================================#
# #
# FRONT_UPDATE_FIELD_PROPERTIES #
# #
#=================================#
#
# Update field property definitions after generic settings #
#
proc FRONT_UPDATE_FIELD_PROPERTIES {} {
global Common
#=========================#
# Field's activity slaves #
#=========================#
#
# NOTE: Only standard arries processed here!
#
foreach arr $Common(standardPanelArries) {
upvar #0 $arr theArr
foreach fld $theArr(initialFields) {
set parents [DataField::getFieldProperty $arr $fld ActivityParents]
foreach parent $parents {
set slaves [DataField::getFieldProperty $arr $parent ActivitySlaves]
lappend slaves $fld
DataField::setFieldProperty $arr $parent ActivitySlaves $slaves
}
}
}
}
### End FRONT_UPDATE_FIELD_PROPERITES proc
#==========================================#
# #
# FRONT_SET_PANEL_SETTINGS #
# #
#==========================================#
#
# Set panel screen and other control values
#
proc FRONT_SET_PANEL_SETTINGS {} {
global Common Info Model ObjectTable MatcDefinitions
global Status ModelFlags
global BodyProperty BodyDisplay LabelDisplay
global Boundary BoundaryDisplay VertexDisplay MeshDefine MeshSelect PostFileSelect
global ProcessIds ProcessTable
global InputFileInfo ModelInfo BodyInfo
global RendererInfo SystemInfo SourceList TclCommand
# Create some more global arrynames
foreach arr $Common(allPanelArries) {
global $arr
}
#--Fixed size for values area in the standard panels
set wid [ expr ceil( (450.0 / 1024) * $Info(maxWinSizeX) )]
if { $wid < 450 } {
set wid 450
}
set hig [ expr ceil( (250.0 / 768) * $Info(maxWinSizeY) ) ]
if { $hig < 250 } {
set hig 250
}
set Common(valuesFrameW) $wid
set Common(valuesFrameH) $hig
#====================================================================
# Set deafult values for panel array vars
# =======================================
#
foreach arr $Common(allPanelArries) {
upvar #0 $arr theArr
set theArr(panelEqNbr) 0
set theArr(panelPageNbr) 1
set theArr(labelLength) 17
set theArr(hasProcButton) 0
set theArr(hasTableButton) 0
set theArr(panelsByEquation) 0
set theArr(hasBodies) 0
set theArr(hasBoundaries) 0
set theArr(hasParameters) 0
set theArr(hasTarget) 0
set theArr(hasMaskedFields) 0
set theArr(hasMaskedParameter) 0
set theArr(hasMaskedTarget) 0
set theArr(acceptEmptyMask) 0
set theArr(canMultiSelectObjects) 0
set theArr(canMultiSelectBoundaries) 0
set theArr(hasAddProc) 0
set theArr(hasApplyProc) 0
set theArr(panelSizeKnown) 0
set theArr(currentProcedureDir) ""
}
#-----------------
# BODY FORCE panel
#-----------------
set BodyForce(winTitle) "Body forces"
set BodyForce(winName) .bfw
set BodyForce(winId) -1
set BodyForce(winGeometry) -20+35
set BodyForce(hasProcButton) 1
set BodyForce(hasTableButton) 1
set BodyForce(parameterName) "body force definition"
set BodyForce(parameterEntryName) "A body force definition"
set BodyForce(objectHdr) "Bodies:"
set BodyForce(valuesHdrBase) "body forces:"
set BodyForce(paramsHdr) "Body force sets:"
set BodyForce(panelsByEquation) 1
set BodyForce(hasBodies) 1
set BodyForce(hasParameters) 1
set BodyForce(canMultiSelectObjects) 1
set BodyForce(hasTarget) 1
set BodyForce(hasMaskedFields) 1
set BodyForce(hasMaskedParameter) 1
set BodyForce(hasMaskedTarget) 1
set BodyForce(panelOkProc) bodyForcePanelOk
set BodyForce(parameterId) "-Force"
set BodyForce(defaultName) "BodyForce"
#---------------------
# BODY PARAMETER panel
#---------------------
set BodyParameter(winTitle) "Body parameters"
set BodyParameter(winName) .bParamw
set BodyParameter(winId) -1
set BodyParameter(winGeometry) -20+35
set BodyParameter(hasProcButton) 1
set BodyParameter(hasTableButton) 1
set BodyParameter(parameterName) "body parameter definition"
set BodyParameter(parameterEntryName) "A body parameter"
set BodyParameter(objectHdr) "Bodies:"
set BodyParameter(valuesHdrBase) "Body parameters:"
set BodyParameter(paramsHdr) "Body paramerter sets:"
set BodyParameter(hasBodies) 1
set BodyParameter(hasParameters) 1
set BodyParameter(canMultiSelectObjects) 1
set BodyParameter(hasTarget) 1
set BodyParameter(panelOkProc) bodyParameterPanelOk
set BodyParameter(parameterId) "-Parameter"
set BodyParameter(defaultName) "BodyParameter"
#-------------
# BODIES panel
#-------------
set BodyProperty(winTitle) "Bodies"
set BodyProperty(winName) .bw
set BodyProperty(winId) -1
set BodyProperty(winGeometry) -100+100
#-------------------
# BODY DISPLAY panel
#-------------------
set BodyDisplay(winTitle) "Display bodies"
set BodyDisplay(winName) .bodyDispw
set BodyDisplay(winId) -1
set BodyDisplay(winGeometry) -100+100
#----------------
# BODY INFO panel
#----------------
set BodyInfo(winTitle) "Body info"
set BodyInfo(winName) .biw
set BodyInfo(winId) -1
set BodyInfo(winGeometry) +420+120
#-------------------------
# BOUNDARY CONDITION panel
#-------------------------
set BoundaryCondition(winTitle) "Boundary conditions"
set BoundaryCondition(winName) .bcw
set BoundaryCondition(winGeometry) -15+10
set BoundaryCondition(winId) -1
set BoundaryCondition(hasProcButton) 1
set BoundaryCondition(hasTableButton) 1
set BoundaryCondition(parameterName) "boundary condition"
set BoundaryCondition(parameterEntryName) "A boundary condition"
set BoundaryCondition(objectHdr) "Bodies:"
set BoundaryCondition(boundaryHdr) "Boundaries:"
set BoundaryCondition(valuesHdrBase) "boundary conditions:"
set BoundaryCondition(paramsHdr) "Boundary condition sets:"
set BoundaryCondition(labelLength) 25
set BoundaryCondition(panelsByEquation) 1
set BoundaryCondition(hasBodies) 1
set BoundaryCondition(hasBoundaries) 1
set BoundaryCondition(hasParameters) 1
set BoundaryCondition(canMultiSelectBoundaries) 1
set BoundaryCondition(hasTarget) 1
set BoundaryCondition(hasMaskedFields) 1
set BoundaryCondition(hasMaskedParameter) 1
set BoundaryCondition(hasMaskedTarget) 1
set BoundaryCondition(hasParameterTargetCheckProc) 1 ;# For RADIATION check!
set BoundaryCondition(panelOkProc) boundaryConditionPanelOk
set BoundaryCondition(parameterId) "-Cond"
set BoundaryCondition(defaultName) "Constraint"
#-----------------
# BOUNDARIES panel
#-----------------
set Boundary(winTitle) "Boundaries"
set Boundary(winName) .bndrw
set Boundary(winId) -1
set Boundary(winGeometry) -15+10
#set Boundary(winGeometry) -100+100
set Boundary(parameterName) ""
set Boundary(objectHdr) "Bodies:"
set Boundary(boundaryHdr) "Boundaries:"
set Boundary(valuesHdrBase) ""
set Boundary(paramsHdr) ""
set Boundary(labelLength) 25
set Boundary(defaultName) "Boundary"
set Boundary(hasBodies) 1
set Boundary(hasBoundaries) 1
set Boundary(canMultiSelectBoundaries) 1
set Boundary(hasTarget) 1
set Boundary(panelOkProc) boundaryPanelOk
set Boundary(parameterId) ""
#-----------------------
# BOUNDARY DISPLAY panel
#-----------------------
set BoundaryDisplay(winTitle) "Display boundaries"
set BoundaryDisplay(winName) .bndrDispw
set BoundaryDisplay(winId) -1
set BoundaryDisplay(winGeometry) -100+100
#-------------------------
# BOUNDARY PARAMETER panel
#-------------------------
set BoundaryParameter(winTitle) "Boundary parameters"
set BoundaryParameter(winName) .bndrParamw
set BoundaryParameter(winGeometry) -15+10
set BoundaryParameter(winId) -1
set BoundaryParameter(hasProcButton) 1
set BoundaryParameter(hasTableButton) 1
set BoundaryParameter(parameterName) "boundary parameter"
set BoundaryParameter(parameterEntryName) "A boundary parameter"
set BoundaryParameter(objectHdr) "Bodies:"
set BoundaryParameter(boundaryHdr) "Boundaries:"
set BoundaryParameter(valuesHdrBase) "Boundary parameters:"
set BoundaryParameter(paramsHdr) "Boundary parameter sets:"
set BoundaryParameter(labelLength) 25
set BoundaryParameter(hasBodies) 1
set BoundaryParameter(hasBoundaries) 1
set BoundaryParameter(hasParameters) 1
set BoundaryParameter(canMultiSelectBoundaries) 1
set BoundaryParameter(hasTarget) 1
set BoundaryParameter(panelOkProc) boundaryParameterPanelOk
set BoundaryParameter(parameterId) "-Param"
set BoundaryParameter(defaultName) "BoundaryParameter"
#-----------------
# CALCULATOR panel
#-----------------
set Calculator(winTitle) "Calculators"
set Calculator(winName) .clw
set Calculator(winId) -1
set Calculator(winGeometry) +400+100
set Calculator(parameterName) "calculator"
set Calculator(parameterEntryName) "A calculator"
set Calculator(paramsHdr) "Calculators"
set Calculator(valuesHdr) "Calculator settings:"
set Calculator(defaultName) "Calculator"
set Calculator(hasParameters) 1
set Calculator(acceptEmptyMask) 1
set Calculator(panelOkProc) calculatorPanelOk
#---------------
# CONSTANT panel
#---------------
set Constant(winTitle) "Physical constants"
set Constant(winName) .cnw
set Constant(winId) -1
set Constant(winGeometry) +400+100
set Constant(valuesHdr) "Physical constants and parameters"
set Constant(defaultName) "Constant"
set Constant(parameterId) 1
set Constant(acceptEmptyMask) 1
set Constant(panelOkProc) constantPanelOk
#-----------------
# COORDINATE panel
#-----------------
set Coordinate(winTitle) "Coordinate settings"
set Coordinate(winName) .crdw
set Coordinate(winId) -1
set Coordinate(winGeometry) +400+100
#---------------
# DATAFILE panel
#---------------
set Datafile(winTitle) "Datafiles"
set Datafile(winName) .dfw
set Datafile(winId) -1
set Datafile(winGeometry) +400+100
set Datafile(defaultName) "Datafile"
#---------------
# EQUATION panel
#---------------
set Equation(winTitle) "Equations"
set Equation(winName) .eqw
set Equation(winId) -1
set Equation(winGeometry) -20+35
set Equation(hasProcButton) 1
set Equation(hasTableButton) 1
set Equation(parameterName) "body equation definition"
set Equation(parameterEntryName) "An equation definition"
set Equation(objectHdr) "Bodies:"
set Equation(valuesHdrBase) "settings:"
set Equation(paramsHdr) "Equation sets:"
set Equation(panelsByEquation) 1
set Equation(hasBodies) 1
set Equation(hasParameters) 1
set Equation(canMultiSelectObjects) 1
set Equation(hasTarget) 1
set Equation(hasMaskedFields) 1
set Equation(hasMaskedTarget) 1
set Equation(hasAddProc) 1
set Equation(hasApplyProc) 1
set Equation(panelOkProc) equationPanelOk
set Equation(parameterId) "-Eq"
set Equation(defaultName) "Equation"
#-----------------------
# EQUATIONVARIABLE panel
#-----------------------
set EquationVariable(winTitle) "Equation Variables"
set EquationVariable(winName) .eqvw
set EquationVariable(winId) -1
set EquationVariable(winGeometry) +400+100
set EquationVariable(parameterId) 1
set EquationVariable(defaultName) "EquationVariable"
set EquationVariable(dataWasChanged) 0
#-------------
# GRID H panel
#-------------
set GridH(winTitle) "Mesh density"
set GridH(winName) .ghw
set GridH(winId) -1
set GridH(winGeometry) -20+35
set GridH(hasParameterTargetCheckProc) 1 ;# For MESH_N and vertices!
set GridH(parameterName) "mesh density parameter"
set GridH(parameterEntryName) "A mesh density parameter"
set GridH(objectHdr) "Bodies:"
set GridH(boundaryHdr) "Boundaries:"
set GridH(valuesHdrBase) "Values for mesh density parameter:"
set GridH(paramsHdr) "Mesh density sets:"
set GridH(hasBodies) 1
set GridH(hasBoundaries) 1
set GridH(hasParameters) 1
set GridH(canMultiSelectBoundaries) 1
set GridH(hasTarget) 1
set GridH(hasMaskedFields) 1
set GridH(hasMaskedParameter) 1
set GridH(hasMaskedTarget) 1
set GridH(acceptEmptyMask) 1
set GridH(hasAddProc) 1
set GridH(hasApplyProc) 1
set GridH(panelOkProc) gridHPanelOk
set GridH(parameterId) "-MeshC"
set GridH(defaultName) "MeshDensity"
#---------------------
# GRID PARAMETER panel
#---------------------
set GridParameter(winTitle) "Mesh structure"
set GridParameter(winName) .grw
set GridParameter(winId) -1
set GridParameter(winGeometry) -20+35
set GridParameter(hasParameterTargetCheckProc) 1 ;# For STRUCTURED mesh check!
set GridParameter(parameterName) "mesh structure parameter"
set GridParameter(parameterEntryName) "A mesh structure parameter"
set GridParameter(objectHdr) "Bodies:"
set GridParameter(valuesHdrBase) "Values for mesh structure parameter:"
set GridParameter(paramsHdr) "Mesh structure sets:"
set GridParameter(hasBodies) 1
set GridParameter(hasParameters) 1
set GridParameter(hasTarget) 1
set GridParameter(hasMaskedFields) 1
set GridParameter(hasMaskedParameter) 1
set GridParameter(hasMaskedTarget) 1
set GridParameter(hasAddProc) 1
set GridParameter(hasApplyProc) 1
set GridParameter(panelOkProc) gridParameterPanelOk
set GridParameter(parameterId) "-Mesh"
set GridParameter(defaultName) "MeshStructure"
#------------------------
# INITIAL CONDITION panel
#------------------------
set InitialCondition(winTitle) "Initial conditions"
set InitialCondition(winName) .icw
set InitialCondition(winId) -1
set InitialCondition(winGeometry) -20+35
set InitialCondition(parameterName) "initial condition"
set InitialCondition(parameterEntryName) "An initial condition"
set InitialCondition(objectHdr) "Bodies:"
set InitialCondition(valuesHdrBase) "initial conditions:"
set InitialCondition(paramsHdr) "Initial condition sets:"
set InitialCondition(hasProcButton) 1
set InitialCondition(hasTableButton) 1
set InitialCondition(panelsByEquation) 1
set InitialCondition(hasBodies) 1
set InitialCondition(hasParameters) 1
set InitialCondition(canMultiSelectObjects) 1
set InitialCondition(hasTarget) 1
set InitialCondition(hasMaskedFields) 1
set InitialCondition(hasMaskedParameter) 1
set InitialCondition(hasMaskedTarget) 1
set InitialCondition(panelOkProc) initialConditionPanelOk
set InitialCondition(parameterId) "-Cond"
set InitialCondition(defaultName) "InitialCondition"
#----------------------
# INPUT FILE INFO panel
#----------------------
set InputFileInfo(winTitle) "Input file info"
set InputFileInfo(winName) .miw
set InputFileInfo(winId) -1
set InputFileInfo(winGeometry) +420+120
#--------------------
# LABEL DISPLAY panel
#--------------------
set LabelDisplay(winTitle) "Labels"
set LabelDisplay(winName) .ldw
set LabelDisplay(winId) -1
set LabelDisplay(winGeometry) -100+100
#-----------------------
# MATC DEFINITIONS panel
#-----------------------
set MatcDefinitions(winTitle) "Define matc functions and variables"
set MatcDefinitions(winName) .matcDefsw
set MatcDefinitions(winId) -1
set MatcDefinitions(winGeometry) -100+100
#--------------------------
# MATERIAL PROPERTIES panel
#--------------------------
set Material(winTitle) "Materials"
set Material(winName) .mtw
set Material(winId) -1
set Material(winGeometry) -20+35
set Material(parameterName) "material definition"
set Material(parameterEntryName) "A material definition"
set Material(objectHdr) "Bodies:"
set Material(valuesHdrBase) "material properties:"
set Material(paramsHdr) "Material property sets:"
set Material(hasProcButton) 1
set Material(hasTableButton) 1
set Material(panelsByEquation) 1
set Material(hasBodies) 1
set Material(hasParameters) 1
set Material(canMultiSelectObjects) 1
set Material(hasTarget) 1
set Material(hasMaskedFields) 1
set Material(hasMaskedParameter) 1
set Material(hasMaskedTarget) 1
set Material(panelOkProc) materialPanelOk
set Material(parameterId) "-Mater"
set Material(defaultName) "Material"
#------------------
# MESH DEFINE panel
#------------------
set MeshDefine(winTitle) "Define mesh"
set MeshDefine(winName) .mHw
set MeshDefine(winId) -1
set MeshDefine(winGeometry) -100+100
#-----------------
# MODEL INFO panel
#-----------------
set ModelInfo(winTitle) "Model info"
set ModelInfo(winName) .miw
set ModelInfo(winId) -1
set ModelInfo(winGeometry) +420+120
#----------------------
# MODEL PARAMETER panel
#----------------------
set ModelParameter(winTitle) "Model parameters"
set ModelParameter(winName) .simupw
set ModelParameter(winId) -1
set ModelParameter(winGeometry) +400+100
set ModelParameter(hasProcButton) 1
set ModelParameter(hasTableButton) 1
set ModelParameter(valuesHdr) "Model parameters"
set ModelParameter(defaultName) "Model parameter"
set ModelParameter(parameterId) 1
set ModelParameter(acceptEmptyMask) 1
set ModelParameter(panelOkProc) modelParameterPanelOk
#-----------------------
# MODEL PROPERTIES panel
#-----------------------
set ModelProperty(winTitle) "Model name and directories"
set ModelProperty(winName) .mpw
set ModelProperty(winId) -1
set ModelProperty(winGeometry) -100+100
#----------------------
# POSTFILE SELECT panel
#----------------------
set PostFileSelect(winTitle) "Select result file"
set PostFileSelect(winName) .pfsw
set PostFileSelect(winId) -1
set PostFileSelect(winGeometry) +420+120
#----------------
# PROCESSOR panel
#----------------
set Processor(winTitle) "Processor settings"
set Processor(winName) .prw
set Processor(winId) -1
set Processor(winGeometry) +420+120
#--------------------
# PROCESS TABLE panel
#--------------------
set ProcessTable(winTitle) "Process table"
set ProcessTable(winName) .prtw
set ProcessTable(winId) -1
set ProcessTable(winGeometry) +420+120
#---------------------------
# SIMULATION PARAMETER panel
#---------------------------
set SimulationParameter(winTitle) "Simulation parameters"
set SimulationParameter(winName) .simupw
set SimulationParameter(winId) -1
set SimulationParameter(winGeometry) +400+100
set SimulationParameter(hasProcButton) 1
set SimulationParameter(hasTableButton) 1
set SimulationParameter(valuesHdr) "Simulation parameters"
set SimulationParameter(defaultName) "Simulation"
set SimulationParameter(parameterId) 1
set SimulationParameter(acceptEmptyMask) 1
set SimulationParameter(panelOkProc) simulationParameterPanelOk
#-------------
# SOLVER panel
#-------------
set Solver(winTitle) "Solver settings"
set Solver(winName) .slw
set Solver(winId) -1
set Solver(winGeometry) +420+120
set Solver(valuesHdrBase) "solver parameters"
set Solver(panelsByEquation) 1
set Solver(targetMask) ""
set Solver(hasMaskedFields) 1
set Solver(hasParameters) 1
set Solver(acceptEmptyMask) 1
set Solver(hasMaskedTarget) 1
set Solver(panelOkProc) solverParameterPanelOk
set Solver(defaultName) "Solver"
#---------------------
# SOLVER CONTROL panel
#---------------------
set SolverControl(winTitle) "Solver control"
set SolverControl(winName) .slcw
set SolverControl(winId) -1
set SolverControl(winGeometry) +400+100
set SolverControl(hasTableButton) 1
set SolverControl(valuesHdr) "Solver control parameters"
set SolverControl(defaultName) "Solver control"
set SolverControl(parameterId) 1
set SolverControl(acceptEmptyMask) 1
set SolverControl(panelOkProc) solverControlPanelOk
#-------------------
# SOLVER ORDER panel
#-------------------
set SolverOrder(winTitle) "Equation solving order"
set SolverOrder(winName) .sow
set SolverOrder(winId) -1
set SolverOrder(winGeometry) +420+120
#------------------
# SYSTEM INFO panel
#------------------
set SystemInfo(winTitle) "System info"
set SystemInfo(winName) .siw
set SystemInfo(winId) -1
set SystemInfo(winGeometry) +420+120
#---------------
# TIMESTEP panel
#---------------
set Timestep(winTitle) "Timestep settings"
set Timestep(winName) .tsw
set Timestep(winId) -1
set Timestep(winGeometry) +420+120
set Timestep(defaultName) "Timestep"
#-------------------
# USER SETTING panel
#-------------------
set UserSetting(winTitle) "Settings"
set UserSetting(winName) .usw
set UserSetting(winId) -1
set UserSetting(winGeometry) -20+25
set UserSetting(valuesHdr) "Values for user settings:"
set UserSetting(acceptEmptyMask) 1
set UserSetting(panelOkProc) userSettingPanelOk
#-----------------------
# VERTEX ISPLAY panel
#-----------------------
set VertexDisplay(winTitle) "Display vertices"
set VertexDisplay(winName) .vrtxDispw
set VertexDisplay(winId) -1
set VertexDisplay(winGeometry) -100+100
}
### End FRONT_SET_PANEL_SETTINGS proc
###################################################
# #
# Field help stuff #
# #
###################################################
# Accepted field help panel names (in compressed format!) and
# their gui equivalent formats
#
# 1. group: Menu based names
# 2. group: Sif based names
# 3. group: Alternative (all imaginable) versions
#
# 1. value: Panel name in input (in compressed format)
# 2. value: Gui array name
#
set Info(fieldHelpPanelNameTable) {
# Menu names
# ==========
#--Edit menu
{Bodies BodyProperty}
{Boundaries Boundary}
#--Problem menu
{ModelNameAndDirectories ModelProperty}
{Datafiles Datafile}
{ModelParameters ModelParameter}
{SimulationParameters SimulationParameter}
{CoordinateSettings Coordinate}
{TimestepSettings Timestep}
{PhysicalConstants Constant}
{Equations Equation}
{Calculators Calculator}
{EquationSolvingOrder SolverOrder}
#--Model menu
{BodyParameters BodyParameter}
{BoundaryParameters BoundaryParameter}
{InitialConditions InitialCondition}
{BodyForces BodyForce}
{Materials Material}
{BoundaryConditions BoundaryCondition}
#--Mesh menu
{DefineMesh MeshDefine}
{MeshDensity GridH}
{MeshStructure GridParameter}
#--Solver menu
{SolverSettings Solver}
{SolverControl SolverControl}
# Sif names
# =========
{Constant Constant}
{Equation Equation}
{BodyForce BodyForce}
{BoundaryCondition BoundaryCondition}
{InitialCondition InitialCondition}
{Material Material}
{Simulation SimulationParameter}
{Solver Solver}
# Any other format
# ================
{EquationParameter Equation}
{EquationParameters Equation}
{EquationSettings Equation}
{BodyForceParameter BodyForce}
{BodyForceParameters BodyForce}
{BodyForceSettings BodyForce}
{BodyParameter BodyParameter}
{BodyParameterSettings BodyParameter}
{BoundaryConditionParameter BoundaryCondition}
{BoundaryConditionParameters BoundaryCondition}
{BoundaryConditionSettings BoundaryCondition}
{BoundaryParameter BoundaryParameter}
{BoundaryParameterSettings BoundaryParameter}
{InitialConditionParameter InitialCondition}
{InitialConditionParameters InitialCondition}
{InitialConditionSettings InitialCondition}
{MaterialParameter Material}
{MaterialParameters Material}
{MaterialParameterSettings Material}
{Model ModelParameter}
{ModelParameter ModelParameter}
{ModelParameterSettings ModelParameter}
{PhysicalConstant Constant}
{PhysicalConstantSettings Constant}
{SimulationParameter SimulationParameter}
{SimulationParameterSettings SimulationParameter}
{Solvers Solver}
{SolverParameter Solver}
{SolverParameters Solver}
{SolverParameterSettings Solver}
{SolverControlParameter SolverControl}
{SolverControlParameters SolverControl}
{SolverControlSettings SolverControl}
}
#===================================================#
# #
# FRONT_READ_FIELD_HELP_FILE #
# #
#===================================================#
#
# NOTE: No help file delivered with Elmer distribution!!!
#
#
proc FRONT_READ_FIELD_HELP_FILE {filename {warn_no_success 1} } {
global Info
# Try to open file: elmer-home/lib/frontFieldHelp.fhf
#
set cmsg ""
if { [ catch {set in [open $filename "r"]} cmsg ] } {
if { $warn_no_success} {
Message::showMessage ""
Message::showMessage "WARNING*** Field help file $filename not read:" $Info(wrnMsgColor)
Message::showMessage " $cmsg" $Info(wrnMsgColor)
Message::showMessage ""
}
return 0
}
Message::showMessage "Reading field help file: $filename" $Info(remMsgColor)
set in_panel 0
set in_field 0
set txt ""
# Read field help file
# ====================
while {![eof $in]} {
# Reset help text, if no more in a field
if { !$in_field } {
# ===============================
# Store current field's help text
# ===============================
if { $txt != "" } {
set theArray(help,$fld) $txt
}
set txt ""
}
# No comments or continuation marks inside help text!
#
if { $in_field } {
set line [Util::readInputFileLine $in 0 0]
# Other lines may contain comments and continuation marks!
#
} else {
set line [Util::readInputFileLine $in]
}
set line [Util::stringTrim $line]
# Change text delimiters for somethin a bit easier to handle
# in Tcl!
set line [string map { "\{" "\<" } $line]
set line [string map { "\}" "\>" } $line]
# Keywords do not contain blanks, so this works
set kwd [string trim [lindex $line 0]]
set kwd_value [string trim [join [lrange $line 1 end]]]
# Line can also start with a field name (or End Panel), but check possible
# text delimiter first!
#
set fld_name $line
set fld_name [string trim [join [split $fld_name "<"]]]
# Include help file
# =================
if { !$in_panel && [string equal -nocase $kwd "include"] } {
# If include-name is relative, pick directory from the original filename
#
if { [string equal -nocase "relative" [file pathtype $kwd_value]] } {
set kwd_value [file join [file dirname $filename] $kwd_value]
}
FRONT_READ_FIELD_HELP_FILE $kwd_value 1
}
# New panel section
# =================
if { !$in_field && [string equal -nocase $kwd "panel"] } {
set globArray ""
set name_tbl $Info(fieldHelpPanelNameTable)
if { [Util::convertPanelNameToGuiFormat $name_tbl $kwd_value globArray] } {
upvar #0 $globArray theArray
set in_panel 1
}
continue
}
# Panel section ended
# ===================
if { $in_panel && !$in_field &&
([string equal -nocase $fld_name "end panel"] ||
[string equal -nocase $fld_name "endpanel"]
)
} {
set globArray ""
set in_panel 0
continue
}
# New field started
# =================
if {$in_panel && !$in_field} {
set fld [DataField::fieldNameSifToGui $fld_name]
set in_field 1
set txt ""
set pos [string first "<" $line]
if { $pos == -1 } {
set pos 0
}
# Remove keyword and field name from input-line
#
set line [string range $line $pos end]
}
# Read field's help text line
# ===========================
if { $in_panel && $in_field } {
# Remove text delimiters
#
if { [string index $line 0] == "<" } {
set line [string range $line 1 end]
}
if { [string index $line end] == ">" } {
set line [string range $line 0 end-1]
set in_field 0
}
# Add the new piece of text
# =========================
append txt " "
append txt $line
set txt [string trim $txt]
}
}
}
### End FRONT_READ_FIELD_HELP_FILE proc
|