/usr/lib/python2.7/dist-packages/gyoto_std.py is in python-gyoto 1.0.2-2ubuntu1.
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 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
"""The Gyoto standard plug-in"""
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_gyoto_std', [dirname(__file__)])
except ImportError:
import _gyoto_std
return _gyoto_std
if fp is not None:
try:
_mod = imp.load_module('_gyoto_std', fp, pathname, description)
finally:
fp.close()
return _mod
_gyoto_std = swig_import_helper()
del swig_import_helper
else:
import _gyoto_std
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object:
pass
_newclass = 0
import gyoto
class StandardAstrobj(gyoto.Astrobj, gyoto.Functor__Double_constDoubleArray):
"""
Astronomical objects defined bya a potential/distance.
Many geometrically thick objects can be defined by the value of a
function of the 4 coordinates, and their emission can often be defined
in terms of an emission law and of a transmission law.
This is a base class for this standard case which simplifies a lot
writting new Astrobjs.
It is either to implement a sub-class of Astrobj::Standard than a sub-
class of Astrobj::Generic. In particular, there is no need to
implement the Generic::Impact() function. Instead, one needs to
implement a few much simpler functions and most of the complex ray-
tracing algorithms and heuristics is implemented in
Standard::Impact(). It is recommended to read first the introduction
in the Gyoto::Astrobj namespace documentation.
The geometrical shape of a Gyoto::Astrobj::Standard object is yielded
by a function of the 4 position vector. This function is implemented
as operator()(). The velocity field of the fluid is implemented in the
getVelocity() method. The emission(), integrateEmission() and
transmission() methods implement the radiative transfer primitives for
this object. Finally, you may choose to reimplement
processHitQuantities() and Impact(), but this should not be necessary
(that is the all point of the Standard class).
Like any other Astrobj::Generic sub-classes, an Astrobj::Standard
subclass should register an Astrobj::Subcontractor_t function using
the Astrobj::Register() function. See also Writing plug-ins for Gyoto
.
C++ includes: GyotoStandardAstrobj.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Astrobj, gyoto.Functor__Double_constDoubleArray]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, StandardAstrobj, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Astrobj, gyoto.Functor__Double_constDoubleArray]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, StandardAstrobj, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(StandardAstrobj self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.StandardAstrobj_getProperties(self)
__swig_destroy__ = _gyoto_std.delete_StandardAstrobj
__del__ = lambda self: None
def safetyValue(self, *args):
"""
safetyValue(StandardAstrobj self, double val)
safetyValue(StandardAstrobj self) -> double
Get Standard::safety_value_.
"""
return _gyoto_std.StandardAstrobj_safetyValue(self, *args)
def Impact(self, ph, index, data=None):
"""
Impact(StandardAstrobj self, Photon ph, size_t index, AstrobjProperties data=None) -> int
Impact(StandardAstrobj self, Photon ph, size_t index) -> int
Does a photon at these coordinates impact the object?
Impact() checks whether a Photon impacts the object between two
integration steps of the photon's trajectory (those two steps are
photon->getCoord(index, coord1) and photon->getCoord(index+1,
coord2)). Impact returns 1 if the photon impacts the object between
these two steps, else 0. In many cases of geometrically thick obects,
the implementation Astrobj::Standard::Impact() will be fine.
Impact will call Generic::processHitQuantities() (which is virtual and
may be re-implemented) to compute observable properties on demand: if
the data pointer is non-NULL, the object will look in it for pointers
to properties which apply to its kind. If a pointer to a property
known to this object is present, then the property is computed and
store at the pointed-to address. For instance, all objects know the
"intensity" property. If data->intensity != NULL, the instensity is
computed and stored in *data->intensity.
If data is non-NULL and only in this case, processHitQuantities() will
also call ph->transmit() to update the transmissions of the Photon
(see Photon::transmit(size_t, double)). This must not be done if data
is NULL (see Astrobj::Complex::Impact() for an explanation).
Parameters:
-----------
ph: Gyoto::Photon aimed at the object;
index: Index of the last photon step;
data: Pointer to a structure to hold the observables at impact.
1 if impact, 0 if not.
"""
return _gyoto_std.StandardAstrobj_Impact(self, ph, index, data)
def __call__(self, coord):
"""__call__(StandardAstrobj self, double const [4] coord) -> double"""
return _gyoto_std.StandardAstrobj___call__(self, coord)
def getVelocity(self, pos, vel):
"""
getVelocity(StandardAstrobj self, double const [4] pos, double [4] vel)
Fluid velocity field.
Fill vel with the 4-vector velocity of the fluid at 4-position pos.
Parameters:
-----------
pos: 4-position at which to compute velocity;
vel: 4-velocity at pos.
"""
return _gyoto_std.StandardAstrobj_getVelocity(self, pos, vel)
def giveDelta(self, coord):
"""
giveDelta(StandardAstrobj self, double [8] coord) -> double
Maximum inside object.
Gives the requested integration stept (in coordinate time t) between
two neighbooring points along a portion of geodesic inside an astrobj
Parameters:
-----------
coord: input coordinate at whicht is given
"""
return _gyoto_std.StandardAstrobj_giveDelta(self, coord)
def __init__(self, base):
"""
__init__(Gyoto::Astrobj::Standard self, Astrobj base) -> StandardAstrobj
Copy constructor.
Make a deep copy of an Astrobj::Standard instance
"""
this = _gyoto_std.new_StandardAstrobj(base)
try:
self.this.append(this)
except Exception:
self.this = this
StandardAstrobj_swigregister = _gyoto_std.StandardAstrobj_swigregister
StandardAstrobj_swigregister(StandardAstrobj)
cvar = _gyoto_std.cvar
StandardAstrobj.properties = _gyoto_std.cvar.StandardAstrobj_properties
class UniformSphere(StandardAstrobj):
"""
Optically thick or thin, spherical objects.
Gyoto::Astrobj::UniformSphere is an abstract type from which uniform,
spherical objects inherit (in particular, the Gyoto::Astrobj::Star and
Gyoto::Astrobj::FixedStar classes).
These objects are coordinate-spherical: they comprise all the points
within a given radius from a centre. The distance is the usual
Euclidian distance in a Cartesian coordinate system which is trivially
determined by the coordinate system in which the Metric is expressed.
The sphere is in solid motion: all the points have the same
4-velocity. The centre of the sphere may move. This motion and the
velocity are provided by the derived classes through the
getCartesian() and getVelocity() methods.
The spheres can be optically thick or optically thin. In the optically
thin case, the opacity law provided as a Gyoto::Spectrum also sets
both the emissivity. Another Gyoto::Spectrum provides the emission law
of the source, which is uniform.
Gyoto::Astrobj::UniformSphere::setParameters() take care of
interpreting the XML elements describing the parameters of the sphere:
setGenericParameters() also takes care of calling setParameter().
C++ includes: GyotoUniformSphere.h
"""
__swig_setmethods__ = {}
for _s in [StandardAstrobj]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, UniformSphere, name, value)
__swig_getmethods__ = {}
for _s in [StandardAstrobj]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, UniformSphere, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(UniformSphere self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.UniformSphere_getProperties(self)
__swig_destroy__ = _gyoto_std.delete_UniformSphere
__del__ = lambda self: None
def className(self):
"""
className(UniformSphere self) -> std::string
"UniformSphere"
"""
return _gyoto_std.UniformSphere_className(self)
def className_l(self):
"""
className_l(UniformSphere self) -> std::string
"uniformsphere"
"""
return _gyoto_std.UniformSphere_className_l(self)
def spectrum(self, *args):
"""
spectrum(UniformSphere self, Gyoto::SmartPointer< Gyoto::Spectrum::Generic > arg2)
spectrum(UniformSphere self) -> Gyoto::SmartPointer< Gyoto::Spectrum::Generic >
Get spectrum_.
"""
return _gyoto_std.UniformSphere_spectrum(self, *args)
def opacity(self, *args):
"""
opacity(UniformSphere self, Gyoto::SmartPointer< Gyoto::Spectrum::Generic > arg2)
opacity(UniformSphere self) -> Gyoto::SmartPointer< Gyoto::Spectrum::Generic >
Get opacity_.
"""
return _gyoto_std.UniformSphere_opacity(self, *args)
def radius(self, *args):
"""
radius(UniformSphere self) -> double
radius(UniformSphere self, double arg2)
radius(UniformSphere self, std::string const & arg2) -> double
radius(UniformSphere self, double arg2, std::string const & arg3)
Set radius_ in specified unit.
"""
return _gyoto_std.UniformSphere_radius(self, *args)
def deltaMaxOverRadius(self, *args):
"""
deltaMaxOverRadius(UniformSphere self) -> double
deltaMaxOverRadius(UniformSphere self, double f)
Set dltmor_.
"""
return _gyoto_std.UniformSphere_deltaMaxOverRadius(self, *args)
def deltaMaxOverDistance(self, *args):
"""
deltaMaxOverDistance(UniformSphere self) -> double
deltaMaxOverDistance(UniformSphere self, double f)
Set dltmod_.
"""
return _gyoto_std.UniformSphere_deltaMaxOverDistance(self, *args)
def isotropic(self, *args):
"""
isotropic(UniformSphere self) -> bool
isotropic(UniformSphere self, bool arg2)
"""
return _gyoto_std.UniformSphere_isotropic(self, *args)
def alpha(self, *args):
"""
alpha(UniformSphere self) -> double
alpha(UniformSphere self, double arg2)
"""
return _gyoto_std.UniformSphere_alpha(self, *args)
def __call__(self, coord):
"""__call__(UniformSphere self, double const [4] coord) -> double"""
return _gyoto_std.UniformSphere___call__(self, coord)
def deltaMax(self, coord):
"""
deltaMax(UniformSphere self, double * coord) -> double
Get max step constraint for adaptive integration.
Parameters:
-----------
coord: position
max step to find this object reliably
"""
return _gyoto_std.UniformSphere_deltaMax(self, coord)
def __init__(self, base):
"""
__init__(Gyoto::Astrobj::UniformSphere self, Astrobj base) -> UniformSphere
Copy constructor.
"""
this = _gyoto_std.new_UniformSphere(base)
try:
self.this.append(this)
except Exception:
self.this = this
UniformSphere_swigregister = _gyoto_std.UniformSphere_swigregister
UniformSphere_swigregister(UniformSphere)
UniformSphere.properties = _gyoto_std.cvar.UniformSphere_properties
class ComplexAstrobj(gyoto.Astrobj):
"""
Complex astronomical object.
A Gyoto::Astrobj::Generic whic contain several Gyoto::Astrobj::Generic
instances. It is essentially a SmartPointer<Astrobj::Generic> array,
which some methods around. Indeed, the operator[](size_t i) method is
implemented to retrieve the i-th element.
In an XML description, the < Astrobj> section must be unique, its kind
is "Complex". Each sub-astrobj then appears as a <SubAstrobj>
subsection:
C++ includes: GyotoComplexAstrobj.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Astrobj]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ComplexAstrobj, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Astrobj]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, ComplexAstrobj, name)
__repr__ = _swig_repr
def clone(self):
"""
clone(ComplexAstrobj self) -> ComplexAstrobj
"Virtual" copy constructor
"""
return _gyoto_std.ComplexAstrobj_clone(self)
def deltaMax(self, coord):
"""
deltaMax(ComplexAstrobj self, double [8] coord) -> double
Get max step constraint for adaptive integration.
Parameters:
-----------
coord: position
max step to find this object reliably
"""
return _gyoto_std.ComplexAstrobj_deltaMax(self, coord)
__swig_destroy__ = _gyoto_std.delete_ComplexAstrobj
__del__ = lambda self: None
def append(self, element):
"""
append(ComplexAstrobj self, Gyoto::SmartPointer< Gyoto::Astrobj::Generic > element)
Add element at the end of the array.
If the Astrobj::Complex itself does not have a metric already
assigned, it takes it from the new element. Else, it sets the metric
in the new element to its own. This ensures that all elements use the
same metric (this heuristic is not entirely fool-proof, it's safer to
set the metric directly in the Astrobj::Complex).
"""
return _gyoto_std.ComplexAstrobj_append(self, element)
def remove(self, i):
"""
remove(ComplexAstrobj self, size_t i)
Remove i-th element from the array.
"""
return _gyoto_std.ComplexAstrobj_remove(self, i)
def getCardinal(self):
"""
getCardinal(ComplexAstrobj self) -> size_t
Get the number of elements in the array.
"""
return _gyoto_std.ComplexAstrobj_getCardinal(self)
def metric(self, *args):
"""
metric(ComplexAstrobj self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
metric(ComplexAstrobj self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
metric(ComplexAstrobj self, Gyoto::SmartPointer< Gyoto::Metric::Generic > gg)
Get the Metric gg_.
"""
return _gyoto_std.ComplexAstrobj_metric(self, *args)
def fillElement(self, fmp):
"""
fillElement(ComplexAstrobj self, FactoryMessenger fmp)
Fill the XML element for this Object.
The base implementation simply calls fillProperty() for each Property
defined for the Object.
Derived classes should avoid overriding fillElement(). It may make
sense occasionally, e.g. to make sure that the metric is output first.
To customize how a given Property is rendered, it is better to
override fillProperty().
If this method is overridden, the implementation should in general
call fillElement() on the direct base.
"""
return _gyoto_std.ComplexAstrobj_fillElement(self, fmp)
def setParameters(self, fmp):
"""
setParameters(ComplexAstrobj self, FactoryMessenger fmp)
Main loop for parsing Properties from XML description.
This function queries the FactoryMessenger for elements to parse, and
tries to matche each element to a Property to set it accordingly.
Any class that tries to be buildable from XML must supply a
subcontractor (for base classes such as Metric, Astrobj, Spectrum and
Spectrometer, it is done as a template that must be specialized for
each class).
This subcontractor typically looks somewhat like this: Although this
is discouraged, it is possible to override the following functions to
customize how XML entities are parsed: - setParameters() if low-
level access to the FactoryMessenger is required; -
setParameter(std::string name, std::string content,
std::string unit) to interpret an entity that does not match a
Property (e.g. alternative name); -
setParameter(Gyoto::Property const &p, std::string const &name,
std::string const &content, std::string const &unit) to change
how a Property is interpreted.
"""
return _gyoto_std.ComplexAstrobj_setParameters(self, fmp)
def Impact(self, ph, index, data=None):
"""
Impact(ComplexAstrobj self, Photon ph, size_t index, AstrobjProperties data=None) -> int
Impact(ComplexAstrobj self, Photon ph, size_t index) -> int
Call Impact() for each of the elements.
Astrobj::Complex::Impact( Gyoto::Photon* ph, size_t index,
Astrobj::Properties *data) calls the specific implementation of
Astrobj::Generic::Impact() for each of its elements twice: the first
time, data is set to NULL so that Astrobj::Complex::Impact() only
knows whether each object is hit by the Photon. If no object is hit,
return. If a single object is hit, call Impact() again only for this
object, passing data this time. If several objects are hit, the
Photon's trajectory is refined so that the step is at most step_max_
and the Impact() methods for each of the hit objects are called again
for each step, passing data. It is therefore important that the
transmission of the Photon is not touched by Impact() when data==NULL.
"""
return _gyoto_std.ComplexAstrobj_Impact(self, ph, index, data)
def __getitem__(self, i):
"""__getitem__(ComplexAstrobj self, int i) -> Astrobj"""
return _gyoto_std.ComplexAstrobj___getitem__(self, i)
def __setitem__(self, i, p):
"""__setitem__(ComplexAstrobj self, int i, Astrobj p)"""
return _gyoto_std.ComplexAstrobj___setitem__(self, i, p)
def __init__(self, *args):
"""
Complex() -> ComplexAstrobj
Complex(ComplexAstrobj arg2) -> ComplexAstrobj
__init__(Gyoto::Astrobj::Complex self, Astrobj base) -> ComplexAstrobj
Copy constructor.
"""
this = _gyoto_std.new_ComplexAstrobj(*args)
try:
self.this.append(this)
except Exception:
self.this = this
ComplexAstrobj_swigregister = _gyoto_std.ComplexAstrobj_swigregister
ComplexAstrobj_swigregister(ComplexAstrobj)
class Star(UniformSphere, gyoto.Worldline):
"""
Mass-less, spherical object following a timelike geodesic.
Gyoto can compute the Star's orbit in a Gyoto::Metric and perform ray-
tracing on this target. The XML description of a Star looks like:
Star supports exactly the union of the parameters supported by
Gyoto::Astrobj::UniformSphere and Gyoto::Worldline.
The Metric element can be of any kind. This Metric sets the coordinate
system.
The Star is a coordinate sphere of radius Radius in solid motion.
Position sets the initial 4-coordinate of the centre of the sphere.
Velocity contains its initial 3-velocity (the time derivatives of the
3 space coordinates).
Like many Astrobj::Generic impementations, a Star can be OpticallyThin
or OpticallyThick.
Spectrum and Opacity (if OpticallyThin) are the descriptions of two
Gyoto::Spectrum::Generic sub-classes.
C++ includes: GyotoStar.h
"""
__swig_setmethods__ = {}
for _s in [UniformSphere, gyoto.Worldline]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, Star, name, value)
__swig_getmethods__ = {}
for _s in [UniformSphere, gyoto.Worldline]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, Star, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(Star self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.Star_getProperties(self)
def clone(self):
"""
clone(Star self) -> Star
Cloner.
This method must be implemented by the various Astrobj::Generic
subclasses in order to support cloning:
Cloning is necessary for multi-threading, recommended for interaction
with the Yorick plug-in etc.
Implementing it is very straightforward, as long as the copy
constructor Generic(const Generic& ) has been implemented:
"""
return _gyoto_std.Star_clone(self)
__swig_destroy__ = _gyoto_std.delete_Star
__del__ = lambda self: None
def className(self):
"""
className(Star self) -> std::string
"Star"
"""
return _gyoto_std.Star_className(self)
def className_l(self):
"""
className_l(Star self) -> std::string
"star"
"""
return _gyoto_std.Star_className_l(self)
def metric(self, *args):
"""
metric(Star self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
metric(Star self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
Get the Metric gg_.
"""
return _gyoto_std.Star_metric(self, *args)
def getMass(self):
"""
getMass(Star self) -> double
Return 1.
The mass of a Star is always 1. Stars do not perturb the metric. The
only relevant point is that Stars are massive particules, their exact
mass is of no importance.
"""
return _gyoto_std.Star_getMass(self)
def rMax(self, *args):
"""
rMax(Star self) -> double
rMax(Star self, std::string const & unit) -> double
rMax(Star self, std::string const & unit) -> double
rMax(Star self, double val)
rMax(Star self, double val, std::string const & unit)
rMax(Star self) -> double
Set maximal distance from center of coordinate system.
Call Generic::rMax(double val) after converting val from unit to
geometrical units.
Parameters:
-----------
val: rmax_ expressed in unit "unit";
unit: string...
"""
return _gyoto_std.Star_rMax(self, *args)
def setInitialCondition(self, coord):
"""
setInitialCondition(Star self, double [8] coord)
Set or re-set the initial condition prior to integration.
Parameters:
-----------
gg: Gyoto::SmartPointer to the Gyoto::Metric in this universe;
coord: 8 element array containing the initial condition, i.e. the
4-position and the 4-velocity of the Photon at the receiving end;
dir: direction: 1 for future, -1 for past.
"""
return _gyoto_std.Star_setInitialCondition(self, coord)
def setParameter(self, name, content, unit):
"""
setParameter(Star self, std::string name, std::string content, std::string unit) -> int
Set parameter by Property (and name)
This function is used when parsing an XML description, if Property (
p) of this name is found (i.e. either p.name or p.name_false is equal
to name). Implementation should fall-back on calling the direct's
parent implementation:
Parameters:
-----------
p: Property that matches name ( p.name == name or p.name_false ==
name)
name: XML name of the parameter (XML entity)
content: string representation of the value
unit: string representation of the unit
"""
return _gyoto_std.Star_setParameter(self, name, content, unit)
def setParameters(self, fmp):
"""
setParameters(Star self, FactoryMessenger fmp)
Main loop for parsing Properties from XML description.
This function queries the FactoryMessenger for elements to parse, and
tries to matche each element to a Property to set it accordingly.
Any class that tries to be buildable from XML must supply a
subcontractor (for base classes such as Metric, Astrobj, Spectrum and
Spectrometer, it is done as a template that must be specialized for
each class).
This subcontractor typically looks somewhat like this: Although this
is discouraged, it is possible to override the following functions to
customize how XML entities are parsed: - setParameters() if low-
level access to the FactoryMessenger is required; -
setParameter(std::string name, std::string content,
std::string unit) to interpret an entity that does not match a
Property (e.g. alternative name); -
setParameter(Gyoto::Property const &p, std::string const &name,
std::string const &content, std::string const &unit) to change
how a Property is interpreted.
"""
return _gyoto_std.Star_setParameters(self, fmp)
def fillProperty(self, fmp, p):
"""
fillProperty(Star self, FactoryMessenger fmp, Property p)
Output a single Property to XML.
The base implementation decides what to do based on the p.type. The
format matches how setParameters() an setParameter() would interpret
the XML descition.
Overriding this method should be avoided, but makes sense in some
cases (for instance Screen::fillProperty() selects a different unit
for Distance based on its magnitude, so that stellar sizes are
expressed in solar radii while smaller sizes can be expressed in
meters and larger sizes in parsecs).
Overriding implementation should fall-back on calling the
implementation in the direct parent class:
"""
return _gyoto_std.Star_fillProperty(self, fmp, p)
def _delta(self, *args):
"""
_delta(Star self, double const delta)
_delta(Star self, double arg2, std::string const & unit)
_delta(Star self) -> double
_delta(Star self, std::string const & unit) -> double
"""
return _gyoto_std.Star__delta(self, *args)
def _tMin(self, *args):
"""
_tMin(Star self, double const tmin)
_tMin(Star self, double arg2, std::string const & unit)
_tMin(Star self) -> double
_tMin(Star self, std::string const & unit) -> double
"""
return _gyoto_std.Star__tMin(self, *args)
def _adaptive(self, *args):
"""
_adaptive(Star self, bool mode)
_adaptive(Star self) -> bool
"""
return _gyoto_std.Star__adaptive(self, *args)
def _secondary(self, *args):
"""
_secondary(Star self, bool sec)
_secondary(Star self) -> bool
"""
return _gyoto_std.Star__secondary(self, *args)
def _maxiter(self, *args):
"""
_maxiter(Star self, size_t miter)
_maxiter(Star self) -> size_t
"""
return _gyoto_std.Star__maxiter(self, *args)
def _integrator(self, *args):
"""
_integrator(Star self, std::string const & type)
_integrator(Star self) -> std::string
"""
return _gyoto_std.Star__integrator(self, *args)
def _deltaMin(self, *args):
"""
_deltaMin(Star self) -> double
_deltaMin(Star self, double h1)
"""
return _gyoto_std.Star__deltaMin(self, *args)
def _absTol(self, *args):
"""
_absTol(Star self, double arg2)
_absTol(Star self) -> double
"""
return _gyoto_std.Star__absTol(self, *args)
def _relTol(self, *args):
"""
_relTol(Star self, double arg2)
_relTol(Star self) -> double
"""
return _gyoto_std.Star__relTol(self, *args)
def _deltaMax(self, *args):
"""
_deltaMax(Star self, double h1)
_deltaMax(Star self) -> double
"""
return _gyoto_std.Star__deltaMax(self, *args)
def _deltaMaxOverR(self, *args):
"""
_deltaMaxOverR(Star self) -> double
_deltaMaxOverR(Star self, double t)
"""
return _gyoto_std.Star__deltaMaxOverR(self, *args)
def _initCoord(self, *args):
"""
_initCoord(Star self) -> vector_double
_initCoord(Star self, vector_double f)
"""
return _gyoto_std.Star__initCoord(self, *args)
def _metric(self, *args):
"""
_metric(Star self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
_metric(Star self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
"""
return _gyoto_std.Star__metric(self, *args)
def deltaMax(self, *args):
"""
deltaMax(Star self) -> double
deltaMax(Star self, double const [8] pos, double delta_max_external) -> double
deltaMax(Star self, double h1)
deltaMax(Star self, double * coord) -> double
Get max step constraint for adaptive integration.
Parameters:
-----------
coord: position
max step to find this object reliably
"""
return _gyoto_std.Star_deltaMax(self, *args)
def getCartesian(self, dates, n_dates, x, y, z, xprime=None, yprime=None, zprime=None):
"""
getCartesian(Star self, double const *const dates, size_t const n_dates, double *const x, double *const y, double *const z, double *const xprime=None, double *const yprime=None, double *const zprime=None)
getCartesian(Star self, double const *const dates, size_t const n_dates, double *const x, double *const y, double *const z, double *const xprime=None, double *const yprime=None)
getCartesian(Star self, double const *const dates, size_t const n_dates, double *const x, double *const y, double *const z, double *const xprime=None)
getCartesian(Star self, double const *const dates, size_t const n_dates, double *const x, double *const y, double *const z)
Get the 6 Cartesian coordinates for specific dates.
This method is present in both the API of UniformSphere and Worldline.
It is pure virtual in UniformSphere. The Star reimplementation is a
trivial wrapper around Worldline::getCartesian().
"""
return _gyoto_std.Star_getCartesian(self, dates, n_dates, x, y, z, xprime, yprime, zprime)
def getVelocity(self, pos, vel):
"""
getVelocity(Star self, double const [4] pos, double [4] vel)
Yield velocity of the center of the sphere.
"""
return _gyoto_std.Star_getVelocity(self, pos, vel)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::Star self, Gyoto::SmartPointer< Gyoto::Metric::Generic > gg, double radius, double [4] pos, double [3] v) -> Star
__init__(Gyoto::Astrobj::Star self) -> Star
__init__(Gyoto::Astrobj::Star self, Star orig) -> Star
__init__(Gyoto::Astrobj::Star self, Astrobj base) -> Star
Copy constructor.
"""
this = _gyoto_std.new_Star(*args)
try:
self.this.append(this)
except Exception:
self.this = this
Star_swigregister = _gyoto_std.Star_swigregister
Star_swigregister(Star)
Star.properties = _gyoto_std.cvar.Star_properties
class StarTrace(Star):
"""
Like a Star that would be on all points of its orbit at all time.
StarTrace inherits all the members and methods from Star. It has two
additional members, tmin_ and tmax_, which specify the time interval
of the Star's orbit that is to be considerred illuminated.
A StarTrace is not (necessarily) continuous: the Star is considerred
to be present at all the locations computed by xFill(), meaning that
if the integration step is large compared to radius_, the object will
be a collection of discrete blobs. To ensure continuity, one should
use a non-adaptive step and specify a reasonable step. Computation is
also faster in optically thick mode.
C++ includes: GyotoStarTrace.h
"""
__swig_setmethods__ = {}
for _s in [Star]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, StarTrace, name, value)
__swig_getmethods__ = {}
for _s in [Star]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, StarTrace, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(StarTrace self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.StarTrace_getProperties(self)
def clone(self):
"""
clone(StarTrace self) -> StarTrace
Cloner.
This method must be implemented by the various Astrobj::Generic
subclasses in order to support cloning:
Cloning is necessary for multi-threading, recommended for interaction
with the Yorick plug-in etc.
Implementing it is very straightforward, as long as the copy
constructor Generic(const Generic& ) has been implemented:
"""
return _gyoto_std.StarTrace_clone(self)
__swig_destroy__ = _gyoto_std.delete_StarTrace
__del__ = lambda self: None
def xAllocate(self, *args):
"""
xAllocate(StarTrace self)
xAllocate(StarTrace self, size_t arg2)
Allocate x0, x1 etc. with a specified size.
Parameters:
-----------
size: : number of cells in each array x0, x1 etc.
"""
return _gyoto_std.StarTrace_xAllocate(self, *args)
def xAllocateXYZ(self):
"""
xAllocateXYZ(StarTrace self)
Allocate x_, y_, z_.
"""
return _gyoto_std.StarTrace_xAllocateXYZ(self)
def xExpand(self, *args):
"""
xExpand(StarTrace self, double *& x, int dir)
xExpand(StarTrace self, int arg2) -> size_t
Expand x0, x1 etc... to hold more elements.
Double the size of arrays x0, x1 etc. and copy old version of the
array in the first half if dir =1 and in the second half if dir =-1.
Parameters:
-----------
dir: : 1 to expand after last element, -1 to expand before first
element
ind : if dir=1, new index of old last element, if dir=-1, new index of
old first element
"""
return _gyoto_std.StarTrace_xExpand(self, *args)
def computeXYZ(self, *args):
"""
computeXYZ(StarTrace self, size_t i)
computeXYZ(StarTrace self)
Compute (and cache) x_, y_ and z_.
"""
return _gyoto_std.StarTrace_computeXYZ(self, *args)
def setInitCoord(self, *args):
"""
setInitCoord(StarTrace self, double [4] pos, double [3] vel, int dir=1)
setInitCoord(StarTrace self, double [4] pos, double [3] vel)
setInitCoord(StarTrace self, double const [8] coord, int dir=0)
setInitCoord(StarTrace self, double const [8] coord)
Set initial coordinate.
Parameters:
-----------
pos: initial 4-position
vel: initial 3-velocity
dir: direction of integration
"""
return _gyoto_std.StarTrace_setInitCoord(self, *args)
def metric(self, *args):
"""
metric(StarTrace self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
metric(StarTrace self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
metric(StarTrace self, Gyoto::SmartPointer< Gyoto::Metric::Generic > gg)
Get the Metric gg_.
"""
return _gyoto_std.StarTrace_metric(self, *args)
def xStore(self, ind, coord):
"""
xStore(StarTrace self, size_t ind, double [8] coord)
Store coord at index ind.
"""
return _gyoto_std.StarTrace_xStore(self, ind, coord)
def className(self):
"""
className(StarTrace self) -> std::string
"StarTrace"
"""
return _gyoto_std.StarTrace_className(self)
def className_l(self):
"""
className_l(StarTrace self) -> std::string
"startrace"
"""
return _gyoto_std.StarTrace_className_l(self)
def TMin(self, *args):
"""
TMin(StarTrace self) -> double
TMin(StarTrace self, double arg2)
Set tmin_.
"""
return _gyoto_std.StarTrace_TMin(self, *args)
def TMax(self, *args):
"""
TMax(StarTrace self) -> double
TMax(StarTrace self, double arg2)
Set tmax_.
"""
return _gyoto_std.StarTrace_TMax(self, *args)
def setInitialCondition(self, coord):
"""
setInitialCondition(StarTrace self, double [8] coord)
Set or re-set the initial condition prior to integration.
Parameters:
-----------
gg: Gyoto::SmartPointer to the Gyoto::Metric in this universe;
coord: 8 element array containing the initial condition, i.e. the
4-position and the 4-velocity of the Photon at the receiving end;
dir: direction: 1 for future, -1 for past.
"""
return _gyoto_std.StarTrace_setInitialCondition(self, coord)
def __call__(self, coord):
"""__call__(StarTrace self, double const [4] coord) -> double"""
return _gyoto_std.StarTrace___call__(self, coord)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::StarTrace self, Gyoto::SmartPointer< Gyoto::Metric::Generic > gg, double radius, double [4] pos, double [3] v) -> StarTrace
__init__(Gyoto::Astrobj::StarTrace self) -> StarTrace
__init__(Gyoto::Astrobj::StarTrace self, StarTrace orig) -> StarTrace
__init__(Gyoto::Astrobj::StarTrace self, Star o, double tmin, double tmax) -> StarTrace
__init__(Gyoto::Astrobj::StarTrace self, Astrobj base) -> StarTrace
Build StarTrace from Star.
"""
this = _gyoto_std.new_StarTrace(*args)
try:
self.this.append(this)
except Exception:
self.this = this
StarTrace_swigregister = _gyoto_std.StarTrace_swigregister
StarTrace_swigregister(StarTrace)
StarTrace.properties = _gyoto_std.cvar.StarTrace_properties
class FixedStar(UniformSphere):
"""
Fixed (i.e. non-moving) star (or spherical blob)
The target of ray-traced Gyoto::Photon
C++ includes: GyotoFixedStar.h
"""
__swig_setmethods__ = {}
for _s in [UniformSphere]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, FixedStar, name, value)
__swig_getmethods__ = {}
for _s in [UniformSphere]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, FixedStar, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(FixedStar self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.FixedStar_getProperties(self)
def clone(self):
"""
clone(FixedStar self) -> FixedStar
Cloner.
This method must be implemented by the various Astrobj::Generic
subclasses in order to support cloning:
Cloning is necessary for multi-threading, recommended for interaction
with the Yorick plug-in etc.
Implementing it is very straightforward, as long as the copy
constructor Generic(const Generic& ) has been implemented:
"""
return _gyoto_std.FixedStar_clone(self)
__swig_destroy__ = _gyoto_std.delete_FixedStar
__del__ = lambda self: None
def getPos(self, *args):
"""
getPos(FixedStar self) -> double const
getPos(FixedStar self, double * dst)
Get a copy of the pos_ array.
"""
return _gyoto_std.FixedStar_getPos(self, *args)
def position(self, *args):
"""
position(FixedStar self) -> vector_double
position(FixedStar self, vector_double arg2)
Set pos_ from vector.
"""
return _gyoto_std.FixedStar_position(self, *args)
def rMax(self):
"""
rMax(FixedStar self) -> double
Set maximal distance from center of coordinate system.
Call Generic::rMax(double val) after converting val from unit to
geometrical units.
Parameters:
-----------
val: rmax_ expressed in unit "unit";
unit: string...
"""
return _gyoto_std.FixedStar_rMax(self)
def rotating(self, *args):
"""
rotating(FixedStar self) -> bool
rotating(FixedStar self, bool arg2)
"""
return _gyoto_std.FixedStar_rotating(self, *args)
def metric(self, *args):
"""
metric(FixedStar self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
metric(FixedStar self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
metric(FixedStar self, Gyoto::SmartPointer< Gyoto::Metric::Generic > metric)
Get the Metric gg_.
"""
return _gyoto_std.FixedStar_metric(self, *args)
def radius(self, *args):
"""
radius(FixedStar self) -> double
radius(FixedStar self, std::string const & arg2) -> double
radius(FixedStar self, double arg2, std::string const & arg3)
radius(FixedStar self, double radius)
Set radius_ in specified unit.
"""
return _gyoto_std.FixedStar_radius(self, *args)
def setPos(self, arg2):
"""
setPos(FixedStar self, double const [3] arg2)
Set pos_ array.
"""
return _gyoto_std.FixedStar_setPos(self, arg2)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::FixedStar self) -> FixedStar
__init__(Gyoto::Astrobj::FixedStar self, FixedStar orig) -> FixedStar
__init__(Gyoto::Astrobj::FixedStar self, Gyoto::SmartPointer< Gyoto::Metric::Generic > gg, double [3] StPsn, double radius) -> FixedStar
__init__(Gyoto::Astrobj::FixedStar self, Astrobj base) -> FixedStar
Standard constructor.
"""
this = _gyoto_std.new_FixedStar(*args)
try:
self.this.append(this)
except Exception:
self.this = this
FixedStar_swigregister = _gyoto_std.FixedStar_swigregister
FixedStar_swigregister(FixedStar)
FixedStar.properties = _gyoto_std.cvar.FixedStar_properties
class Torus(StandardAstrobj):
"""
Optically thin or thick torus in circular rotation.
Any Metric::Generic is acceptable as long as it implements
Metric::Generic::circularVelocity().
C++ includes: GyotoTorus.h
"""
__swig_setmethods__ = {}
for _s in [StandardAstrobj]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, Torus, name, value)
__swig_getmethods__ = {}
for _s in [StandardAstrobj]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, Torus, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(Torus self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.Torus_getProperties(self)
def clone(self):
"""
clone(Torus self) -> Torus
"Virtual" copy constructor
"""
return _gyoto_std.Torus_clone(self)
__swig_destroy__ = _gyoto_std.delete_Torus
__del__ = lambda self: None
def largeRadius(self, *args):
"""
largeRadius(Torus self) -> double
largeRadius(Torus self, std::string unit) -> double
largeRadius(Torus self, double c)
largeRadius(Torus self, double c, std::string unit)
Set large radius Torus::c_ in specified unit.
"""
return _gyoto_std.Torus_largeRadius(self, *args)
def smallRadius(self, *args):
"""
smallRadius(Torus self) -> double
smallRadius(Torus self, std::string unit) -> double
smallRadius(Torus self, double a)
smallRadius(Torus self, double a, std::string unit)
Set small radius in specified unit.
"""
return _gyoto_std.Torus_smallRadius(self, *args)
def spectrum(self, *args):
"""
spectrum(Torus self, Gyoto::SmartPointer< Gyoto::Spectrum::Generic > arg2)
spectrum(Torus self) -> Gyoto::SmartPointer< Gyoto::Spectrum::Generic >
Get Torus::spectrum_.
"""
return _gyoto_std.Torus_spectrum(self, *args)
def opacity(self, *args):
"""
opacity(Torus self, Gyoto::SmartPointer< Gyoto::Spectrum::Generic > arg2)
opacity(Torus self) -> Gyoto::SmartPointer< Gyoto::Spectrum::Generic >
Get Torus::opacity_.
"""
return _gyoto_std.Torus_opacity(self, *args)
def rMax(self, *args):
"""
rMax(Torus self) -> double
rMax(Torus self, std::string const & unit) -> double
rMax(Torus self, std::string const & unit) -> double
rMax(Torus self, double val)
rMax(Torus self, double val, std::string const & unit)
rMax(Torus self) -> double
Set maximal distance from center of coordinate system.
Call Generic::rMax(double val) after converting val from unit to
geometrical units.
Parameters:
-----------
val: rmax_ expressed in unit "unit";
unit: string...
"""
return _gyoto_std.Torus_rMax(self, *args)
def __call__(self, coord):
"""__call__(Torus self, double const [4] coord) -> double"""
return _gyoto_std.Torus___call__(self, coord)
def deltaMax(self, arg2):
"""
deltaMax(Torus self, double * arg2) -> double
Get max step constraint for adaptive integration.
Parameters:
-----------
coord: position
max step to find this object reliably
"""
return _gyoto_std.Torus_deltaMax(self, arg2)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::Torus self) -> Torus
__init__(Gyoto::Astrobj::Torus self, Torus arg2) -> Torus
__init__(Gyoto::Astrobj::Torus self, Astrobj base) -> Torus
Copy constructor.
"""
this = _gyoto_std.new_Torus(*args)
try:
self.this.append(this)
except Exception:
self.this = this
Torus_swigregister = _gyoto_std.Torus_swigregister
Torus_swigregister(Torus)
Torus.properties = _gyoto_std.cvar.Torus_properties
class PageThorneDisk(gyoto.ThinDisk, gyoto.Listener):
"""
Geometrically thin disk in Kerr metric.
This class describes a disk contained in the z=0 (equatorial) plane,
extending from r=r_ISCO to r=infinity. The flux emitted at radius r is
given by Page & Thorne (1974, ApJ 191:499, Eqs. 11b, 14, 15).
The metric must be either KerrBL or KerrKS. Emission, Spectrum and
BinSpectrum are not provide, the only intensity provided is provided,
as quantity User4 and it is the default quantity returned if nothing
is requested. The other quantities implemented in ThinDisk are also
provided.
C++ includes: GyotoPageThorneDisk.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.ThinDisk, gyoto.Listener]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PageThorneDisk, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.ThinDisk, gyoto.Listener]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, PageThorneDisk, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(PageThorneDisk self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.PageThorneDisk_getProperties(self)
def clone(self):
"""
clone(PageThorneDisk self) -> PageThorneDisk
Cloner.
"""
return _gyoto_std.PageThorneDisk_clone(self)
__swig_destroy__ = _gyoto_std.delete_PageThorneDisk
__del__ = lambda self: None
def metric(self, *args):
"""
metric(PageThorneDisk self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
metric(PageThorneDisk self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
metric(PageThorneDisk self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
Get the Metric gg_.
"""
return _gyoto_std.PageThorneDisk_metric(self, *args)
def BlackbodyMdot(self, *args):
"""
BlackbodyMdot(PageThorneDisk self, double v)
BlackbodyMdot(PageThorneDisk self) -> double
"""
return _gyoto_std.PageThorneDisk_BlackbodyMdot(self, *args)
def blackBody(self, *args):
"""
blackBody(PageThorneDisk self, bool t)
blackBody(PageThorneDisk self) -> bool
"""
return _gyoto_std.PageThorneDisk_blackBody(self, *args)
def uniFlux(self, *args):
"""
uniFlux(PageThorneDisk self, bool t)
uniFlux(PageThorneDisk self) -> bool
"""
return _gyoto_std.PageThorneDisk_uniFlux(self, *args)
def emission(self, *args):
"""
emission(PageThorneDisk self, double arg2, double arg3, double * arg4, double arg5) -> double
emission(PageThorneDisk self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj=0) -> double
emission(PageThorneDisk self, double nu_em, double dsem, double [8] c_ph) -> double
Specific intensity I for several values ofem
Called by the default implementation for processHitQuantities().
emission() computes the intensity I emitted by the small volume of
length dsem. It should take self- absorption along dsem into account.
Same as emission(double nu_em, double dsem, double coord_ph[8], double
coord_obj[8]=NULL) const looping on several values of nu_em.
Parameters:
-----------
Inu[nbnu]: Output (must be set to a previously allocated array of
doubles)
nu_em[nbnu]: Frequencies at emission
nbnu: Size of Inu[] and nu_em[]
dsem: Length over which to integrate inside the object
coord_ph: Photon coordinate
coord_obj: Emitter coordinate at current photon position
I or dI [W m-2 sr-2]
"""
return _gyoto_std.PageThorneDisk_emission(self, *args)
def bolometricEmission(self, nuem, dsem, c_obj):
"""
bolometricEmission(PageThorneDisk self, double nuem, double dsem, double [8] c_obj) -> double
Bolometric emission.
Similar to Generic::emission(), but bolometric.
"""
return _gyoto_std.PageThorneDisk_bolometricEmission(self, nuem, dsem, c_obj)
def processHitQuantities(self, ph, coord_ph_hit, coord_obj_hit, dt, data):
"""
processHitQuantities(PageThorneDisk self, Photon ph, double * coord_ph_hit, double * coord_obj_hit, double dt, AstrobjProperties data)
processHitQuantities fills the requested data in Impact. For
PageThorneDisk, only fill User4, which corresponds to bolometric
intensity.
"""
return _gyoto_std.PageThorneDisk_processHitQuantities(self, ph, coord_ph_hit, coord_obj_hit, dt, data)
def getDefaultQuantities(self):
"""
getDefaultQuantities(PageThorneDisk self) -> Gyoto::Quantity_t
Which quantities to compute if know was requested.
Return a Gyoto::Quantity_t suitable as input to
Gyoto::Scenery::setRequestedQuantities() to set de default quantities
to compute for this object. The default of these defaults
GYOTO_QUANTITY_INTENSITY.
"""
return _gyoto_std.PageThorneDisk_getDefaultQuantities(self)
def tell(self, msg):
"""
tell(PageThorneDisk self, Teller msg)
Update PageThorneDisk::aa_.
Calls updateSpin().
See Hook::Listener::tell()
"""
return _gyoto_std.PageThorneDisk_tell(self, msg)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::PageThorneDisk self) -> PageThorneDisk
__init__(Gyoto::Astrobj::PageThorneDisk self, PageThorneDisk arg2) -> PageThorneDisk
__init__(Gyoto::Astrobj::PageThorneDisk self, Astrobj base) -> PageThorneDisk
Copy constructor.
"""
this = _gyoto_std.new_PageThorneDisk(*args)
try:
self.this.append(this)
except Exception:
self.this = this
PageThorneDisk_swigregister = _gyoto_std.PageThorneDisk_swigregister
PageThorneDisk_swigregister(PageThorneDisk)
PageThorneDisk.properties = _gyoto_std.cvar.PageThorneDisk_properties
class ThinDiskPL(gyoto.ThinDisk):
"""
Geometrically thin disk with black-body emission.
Mass density varies with a power-law, temperature depends on density.
=0 (rcur/r0)
XML entities: PLSlope: ThinDiskPL::PLSlope_
PLRho: ThinDiskPL::PLRho_
PLRadRef: ThinDiskPL::PLRadRef_
C++ includes: GyotoThinDiskPL.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.ThinDisk]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ThinDiskPL, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.ThinDisk]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, ThinDiskPL, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(ThinDiskPL self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.ThinDiskPL_getProperties(self)
def clone(self):
"""
clone(ThinDiskPL self) -> ThinDiskPL
Cloner.
"""
return _gyoto_std.ThinDiskPL_clone(self)
__swig_destroy__ = _gyoto_std.delete_ThinDiskPL
__del__ = lambda self: None
def PLSlope(self, *args):
"""
PLSlope(ThinDiskPL self, double arg2)
PLSlope(ThinDiskPL self) -> double
"""
return _gyoto_std.ThinDiskPL_PLSlope(self, *args)
def PLRho(self, *args):
"""
PLRho(ThinDiskPL self, double arg2)
PLRho(ThinDiskPL self) -> double
"""
return _gyoto_std.ThinDiskPL_PLRho(self, *args)
def PLRadRef(self, *args):
"""
PLRadRef(ThinDiskPL self, double arg2)
PLRadRef(ThinDiskPL self) -> double
"""
return _gyoto_std.ThinDiskPL_PLRadRef(self, *args)
def emission(self, *args):
"""
emission(ThinDiskPL self, double arg2, double arg3, double * arg4, double arg5) -> double
emission(ThinDiskPL self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj=0) -> double
emission(ThinDiskPL self, double nu_em, double dsem, double [8] c_ph) -> double
Specific intensity I for several values ofem
Called by the default implementation for processHitQuantities().
emission() computes the intensity I emitted by the small volume of
length dsem. It should take self- absorption along dsem into account.
Same as emission(double nu_em, double dsem, double coord_ph[8], double
coord_obj[8]=NULL) const looping on several values of nu_em.
Parameters:
-----------
Inu[nbnu]: Output (must be set to a previously allocated array of
doubles)
nu_em[nbnu]: Frequencies at emission
nbnu: Size of Inu[] and nu_em[]
dsem: Length over which to integrate inside the object
coord_ph: Photon coordinate
coord_obj: Emitter coordinate at current photon position
I or dI [W m-2 sr-2]
"""
return _gyoto_std.ThinDiskPL_emission(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::ThinDiskPL self) -> ThinDiskPL
__init__(Gyoto::Astrobj::ThinDiskPL self, ThinDiskPL arg2) -> ThinDiskPL
__init__(Gyoto::Astrobj::ThinDiskPL self, Astrobj base) -> ThinDiskPL
Copy constructor.
"""
this = _gyoto_std.new_ThinDiskPL(*args)
try:
self.this.append(this)
except Exception:
self.this = this
ThinDiskPL_swigregister = _gyoto_std.ThinDiskPL_swigregister
ThinDiskPL_swigregister(ThinDiskPL)
ThinDiskPL.properties = _gyoto_std.cvar.ThinDiskPL_properties
class PolishDoughnut(StandardAstrobj):
"""
A toroïdal accretion structure.
Reference: Straub, O.; Vincent, F. H.; Abramowicz, M. A.; Gourgoulhon,
E.; & Paumard, T. 2012, Modelling the black hole silhouette in
Sagittarius A* with ion tori, A&A 543:83.
C++ includes: GyotoPolishDoughnut.h
"""
__swig_setmethods__ = {}
for _s in [StandardAstrobj]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PolishDoughnut, name, value)
__swig_getmethods__ = {}
for _s in [StandardAstrobj]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, PolishDoughnut, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(PolishDoughnut self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.PolishDoughnut_getProperties(self)
def fillProperty(self, fmp, p):
"""
fillProperty(PolishDoughnut self, FactoryMessenger fmp, Property p)
Output a single Property to XML.
The base implementation decides what to do based on the p.type. The
format matches how setParameters() an setParameter() would interpret
the XML descition.
Overriding this method should be avoided, but makes sense in some
cases (for instance Screen::fillProperty() selects a different unit
for Distance based on its magnitude, so that stellar sizes are
expressed in solar radii while smaller sizes can be expressed in
meters and larger sizes in parsecs).
Overriding implementation should fall-back on calling the
implementation in the direct parent class:
"""
return _gyoto_std.PolishDoughnut_fillProperty(self, fmp, p)
def clone(self):
"""
clone(PolishDoughnut self) -> PolishDoughnut
Cloner.
This method must be implemented by the various Astrobj::Generic
subclasses in order to support cloning:
Cloning is necessary for multi-threading, recommended for interaction
with the Yorick plug-in etc.
Implementing it is very straightforward, as long as the copy
constructor Generic(const Generic& ) has been implemented:
"""
return _gyoto_std.PolishDoughnut_clone(self)
__swig_destroy__ = _gyoto_std.delete_PolishDoughnut
__del__ = lambda self: None
def getL0(self):
"""
getL0(PolishDoughnut self) -> double
Get PolishDoughnut::l0_.
"""
return _gyoto_std.PolishDoughnut_getL0(self)
def _lambda(self, *args):
"""
_lambda(PolishDoughnut self) -> double
_lambda(PolishDoughnut self, double arg2)
Set PolishDoughnut::lambda_.
"""
return _gyoto_std.PolishDoughnut__lambda(self, *args)
def centralDensity(self, *args):
"""
centralDensity(PolishDoughnut self) -> double
centralDensity(PolishDoughnut self, std::string const & unit) -> double
centralDensity(PolishDoughnut self, double density)
centralDensity(PolishDoughnut self, double density, std::string const & unit)
Set PolishDoughnut::central_density_ in specified unit.
"""
return _gyoto_std.PolishDoughnut_centralDensity(self, *args)
def centralTempOverVirial(self, *args):
"""
centralTempOverVirial(PolishDoughnut self) -> double
centralTempOverVirial(PolishDoughnut self, double val)
Set PolishDoughnut::centraltemp_over_virial_.
"""
return _gyoto_std.PolishDoughnut_centralTempOverVirial(self, *args)
def beta(self, *args):
"""
beta(PolishDoughnut self) -> double
beta(PolishDoughnut self, double beta)
Set PolishDoughnut::beta_.
"""
return _gyoto_std.PolishDoughnut_beta(self, *args)
def spectralOversampling(self, *args):
"""
spectralOversampling(PolishDoughnut self, size_t arg2)
spectralOversampling(PolishDoughnut self) -> size_t
Get PolishDoughnut::spectral_oversampling_.
"""
return _gyoto_std.PolishDoughnut_spectralOversampling(self, *args)
def changeCusp(self, *args):
"""
changeCusp(PolishDoughnut self) -> bool
changeCusp(PolishDoughnut self, bool t)
Set PolishDoughnut::komissarov_.
"""
return _gyoto_std.PolishDoughnut_changeCusp(self, *args)
def komissarov(self, *args):
"""
komissarov(PolishDoughnut self) -> bool
komissarov(PolishDoughnut self, bool komis)
Set PolishDoughnut::komissarov_.
"""
return _gyoto_std.PolishDoughnut_komissarov(self, *args)
def angleAveraged(self, *args):
"""
angleAveraged(PolishDoughnut self) -> bool
angleAveraged(PolishDoughnut self, bool komis)
Set PolishDoughnut::angle_averaged_.
if komis, also sets komissarov_ to true
"""
return _gyoto_std.PolishDoughnut_angleAveraged(self, *args)
def nonThermalDeltaExpo(self, *args):
"""
nonThermalDeltaExpo(PolishDoughnut self, vector_double v)
nonThermalDeltaExpo(PolishDoughnut self) -> vector_double
"""
return _gyoto_std.PolishDoughnut_nonThermalDeltaExpo(self, *args)
def angmomrinner(self, *args):
"""
angmomrinner(PolishDoughnut self, vector_double v)
angmomrinner(PolishDoughnut self) -> vector_double
"""
return _gyoto_std.PolishDoughnut_angmomrinner(self, *args)
def adafparams(self, *args):
"""
adafparams(PolishDoughnut self, vector_double v)
adafparams(PolishDoughnut self) -> vector_double
"""
return _gyoto_std.PolishDoughnut_adafparams(self, *args)
def adaf(self, *args):
"""
adaf(PolishDoughnut self, bool t)
adaf(PolishDoughnut self) -> bool
"""
return _gyoto_std.PolishDoughnut_adaf(self, *args)
def setParameter(self, p, name, content, unit):
"""
setParameter(PolishDoughnut self, Property p, std::string const & name, std::string const & content, std::string const & unit)
Set parameter by name.
This function is used when parsing an XML description, if no Property
of this name is found. Overriding implementation should fall-back on
calling the direct's parent implementation:
Parameters:
-----------
name: XML name of the parameter (XML entity). This may have a path
component, e.g. "Astrobj::Radius", in which case a property named
"Astrobj" will be sought in the current object, and setParameter
will be called recusrively on this Astrobj with Radius as name.
content: string representation of the value
unit: string representation of the unit
0 if this parameter is known, 1 if it is not.
"""
return _gyoto_std.PolishDoughnut_setParameter(self, p, name, content, unit)
def getWsurface(self):
"""
getWsurface(PolishDoughnut self) -> double
Get PolishDoughnut::W_surface_.
"""
return _gyoto_std.PolishDoughnut_getWsurface(self)
def getWcentre(self):
"""
getWcentre(PolishDoughnut self) -> double
Get PolishDoughnut::W_centre_.
"""
return _gyoto_std.PolishDoughnut_getWcentre(self)
def getRcusp(self):
"""
getRcusp(PolishDoughnut self) -> double
Get PolishDoughnut::r_cusp_.
"""
return _gyoto_std.PolishDoughnut_getRcusp(self)
def getRcentre(self):
"""
getRcentre(PolishDoughnut self) -> double
Get PolishDoughnut::r_centre_.
"""
return _gyoto_std.PolishDoughnut_getRcentre(self)
def metric(self, *args):
"""
metric(PolishDoughnut self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
metric(PolishDoughnut self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
Get the Metric gg_.
"""
return _gyoto_std.PolishDoughnut_metric(self, *args)
def Impact(self, ph, index, data):
"""
Impact(PolishDoughnut self, Photon ph, size_t index, AstrobjProperties data) -> int
Does a photon at these coordinates impact the object?
Impact() checks whether a Photon impacts the object between two
integration steps of the photon's trajectory (those two steps are
photon->getCoord(index, coord1) and photon->getCoord(index+1,
coord2)). Impact returns 1 if the photon impacts the object between
these two steps, else 0. In many cases of geometrically thick obects,
the implementation Astrobj::Standard::Impact() will be fine.
Impact will call Generic::processHitQuantities() (which is virtual and
may be re-implemented) to compute observable properties on demand: if
the data pointer is non-NULL, the object will look in it for pointers
to properties which apply to its kind. If a pointer to a property
known to this object is present, then the property is computed and
store at the pointed-to address. For instance, all objects know the
"intensity" property. If data->intensity != NULL, the instensity is
computed and stored in *data->intensity.
If data is non-NULL and only in this case, processHitQuantities() will
also call ph->transmit() to update the transmissions of the Photon
(see Photon::transmit(size_t, double)). This must not be done if data
is NULL (see Astrobj::Complex::Impact() for an explanation).
Parameters:
-----------
ph: Gyoto::Photon aimed at the object;
index: Index of the last photon step;
data: Pointer to a structure to hold the observables at impact.
1 if impact, 0 if not.
"""
return _gyoto_std.PolishDoughnut_Impact(self, ph, index, data)
def __call__(self, coord):
"""__call__(PolishDoughnut self, double const [4] coord) -> double"""
return _gyoto_std.PolishDoughnut___call__(self, coord)
def bessi0(xx):
"""bessi0(double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessi0(xx)
if _newclass:
bessi0 = staticmethod(bessi0)
__swig_getmethods__["bessi0"] = lambda x: bessi0
def bessi1(xx):
"""bessi1(double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessi1(xx)
if _newclass:
bessi1 = staticmethod(bessi1)
__swig_getmethods__["bessi1"] = lambda x: bessi1
def bessk0(xx):
"""bessk0(double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessk0(xx)
if _newclass:
bessk0 = staticmethod(bessk0)
__swig_getmethods__["bessk0"] = lambda x: bessk0
def bessk1(xx):
"""bessk1(double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessk1(xx)
if _newclass:
bessk1 = staticmethod(bessk1)
__swig_getmethods__["bessk1"] = lambda x: bessk1
def bessk(nn, xx):
"""bessk(int nn, double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessk(nn, xx)
if _newclass:
bessk = staticmethod(bessk)
__swig_getmethods__["bessk"] = lambda x: bessk
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::PolishDoughnut self) -> PolishDoughnut
__init__(Gyoto::Astrobj::PolishDoughnut self, PolishDoughnut arg2) -> PolishDoughnut
__init__(Gyoto::Astrobj::PolishDoughnut self, Astrobj base) -> PolishDoughnut
Copy constructor.
"""
this = _gyoto_std.new_PolishDoughnut(*args)
try:
self.this.append(this)
except Exception:
self.this = this
PolishDoughnut_swigregister = _gyoto_std.PolishDoughnut_swigregister
PolishDoughnut_swigregister(PolishDoughnut)
PolishDoughnut.properties = _gyoto_std.cvar.PolishDoughnut_properties
def PolishDoughnut_bessi0(xx):
"""PolishDoughnut_bessi0(double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessi0(xx)
def PolishDoughnut_bessi1(xx):
"""PolishDoughnut_bessi1(double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessi1(xx)
def PolishDoughnut_bessk0(xx):
"""PolishDoughnut_bessk0(double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessk0(xx)
def PolishDoughnut_bessk1(xx):
"""PolishDoughnut_bessk1(double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessk1(xx)
def PolishDoughnut_bessk(nn, xx):
"""PolishDoughnut_bessk(int nn, double xx) -> double"""
return _gyoto_std.PolishDoughnut_bessk(nn, xx)
class ThinDiskIronLine(gyoto.ThinDisk):
"""Proxy of C++ Gyoto::Astrobj::ThinDiskIronLine class."""
__swig_setmethods__ = {}
for _s in [gyoto.ThinDisk]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ThinDiskIronLine, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.ThinDisk]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, ThinDiskIronLine, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(ThinDiskIronLine self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.ThinDiskIronLine_getProperties(self)
__swig_destroy__ = _gyoto_std.delete_ThinDiskIronLine
__del__ = lambda self: None
def clone(self):
"""
clone(ThinDiskIronLine self) -> ThinDiskIronLine
Cloner.
This method must be implemented by the various Astrobj::Generic
subclasses in order to support cloning:
Cloning is necessary for multi-threading, recommended for interaction
with the Yorick plug-in etc.
Implementing it is very straightforward, as long as the copy
constructor Generic(const Generic& ) has been implemented:
"""
return _gyoto_std.ThinDiskIronLine_clone(self)
def emission(self, *args):
"""
emission(ThinDiskIronLine self, double arg2, double arg3, double * arg4, double arg5) -> double
emission(ThinDiskIronLine self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj=0) -> double
emission(ThinDiskIronLine self, double nu_em, double dsem, double [8] c_ph) -> double
Specific intensity I for several values ofem
Called by the default implementation for processHitQuantities().
emission() computes the intensity I emitted by the small volume of
length dsem. It should take self- absorption along dsem into account.
Same as emission(double nu_em, double dsem, double coord_ph[8], double
coord_obj[8]=NULL) const looping on several values of nu_em.
Parameters:
-----------
Inu[nbnu]: Output (must be set to a previously allocated array of
doubles)
nu_em[nbnu]: Frequencies at emission
nbnu: Size of Inu[] and nu_em[]
dsem: Length over which to integrate inside the object
coord_ph: Photon coordinate
coord_obj: Emitter coordinate at current photon position
I or dI [W m-2 sr-2]
"""
return _gyoto_std.ThinDiskIronLine_emission(self, *args)
def getVelocity(self, pos, vel):
"""
getVelocity(ThinDiskIronLine self, double const [4] pos, double [4] vel)
Get fluid 4-velocity at point.
Fill vel with the 4-vector velocity of the fluid at 4-position pos.
getVelocity() should work at some distance from the equatorial plane.
The default implementation calls Metric::Generic::circularVelocity().
Parameters:
-----------
pos: 4-position at which to compute velocity;
vel: 4-velocity at pos.
"""
return _gyoto_std.ThinDiskIronLine_getVelocity(self, pos, vel)
def PowerLawIndex(self, *args):
"""
PowerLawIndex(ThinDiskIronLine self, double arg2)
PowerLawIndex(ThinDiskIronLine self) -> double
"""
return _gyoto_std.ThinDiskIronLine_PowerLawIndex(self, *args)
def LineFreq(self, *args):
"""
LineFreq(ThinDiskIronLine self, double arg2)
LineFreq(ThinDiskIronLine self) -> double
LineFreq(ThinDiskIronLine self, double v, std::string const & u)
LineFreq(ThinDiskIronLine self, std::string const & u) -> double
"""
return _gyoto_std.ThinDiskIronLine_LineFreq(self, *args)
def CutRadius(self, *args):
"""
CutRadius(ThinDiskIronLine self, double arg2)
CutRadius(ThinDiskIronLine self) -> double
CutRadius(ThinDiskIronLine self, double v, std::string const & u)
CutRadius(ThinDiskIronLine self, std::string const & u) -> double
"""
return _gyoto_std.ThinDiskIronLine_CutRadius(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::ThinDiskIronLine self) -> ThinDiskIronLine
__init__(Gyoto::Astrobj::ThinDiskIronLine self, ThinDiskIronLine o) -> ThinDiskIronLine
__init__(Gyoto::Astrobj::ThinDiskIronLine self, Astrobj base) -> ThinDiskIronLine
"""
this = _gyoto_std.new_ThinDiskIronLine(*args)
try:
self.this.append(this)
except Exception:
self.this = this
ThinDiskIronLine_swigregister = _gyoto_std.ThinDiskIronLine_swigregister
ThinDiskIronLine_swigregister(ThinDiskIronLine)
ThinDiskIronLine.properties = _gyoto_std.cvar.ThinDiskIronLine_properties
class PatternDisk(gyoto.ThinDisk):
"""
Geometrically thin disk read from FITS file.
This class describes a disk contained in the z=0 (equatorial) plane,
extending from r=r_ISCO to r=infinity. The flux emitted at radius r
and longitude phi at frequency nu is given in a FITS file.
C++ includes: GyotoPatternDisk.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.ThinDisk]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PatternDisk, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.ThinDisk]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, PatternDisk, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(PatternDisk self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.PatternDisk_getProperties(self)
def fillProperty(self, fmp, p):
"""
fillProperty(PatternDisk self, FactoryMessenger fmp, Property p)
Output a single Property to XML.
The base implementation decides what to do based on the p.type. The
format matches how setParameters() an setParameter() would interpret
the XML descition.
Overriding this method should be avoided, but makes sense in some
cases (for instance Screen::fillProperty() selects a different unit
for Distance based on its magnitude, so that stellar sizes are
expressed in solar radii while smaller sizes can be expressed in
meters and larger sizes in parsecs).
Overriding implementation should fall-back on calling the
implementation in the direct parent class:
"""
return _gyoto_std.PatternDisk_fillProperty(self, fmp, p)
def clone(self):
"""
clone(PatternDisk self) -> PatternDisk
Cloner.
"""
return _gyoto_std.PatternDisk_clone(self)
__swig_destroy__ = _gyoto_std.delete_PatternDisk
__del__ = lambda self: None
def innerRadius(self, *args):
"""
innerRadius(PatternDisk self) -> double
innerRadius(PatternDisk self, std::string const & arg2) -> double
innerRadius(PatternDisk self, double arg2, std::string const & arg3)
innerRadius(PatternDisk self, double arg2)
Set rin_.
"""
return _gyoto_std.PatternDisk_innerRadius(self, *args)
def outerRadius(self, *args):
"""
outerRadius(PatternDisk self) -> double
outerRadius(PatternDisk self, std::string const & arg2) -> double
outerRadius(PatternDisk self, double arg2, std::string const & arg3)
outerRadius(PatternDisk self, double arg2)
Set rout_.
"""
return _gyoto_std.PatternDisk_outerRadius(self, *args)
def patternVelocity(self, *args):
"""
patternVelocity(PatternDisk self, double arg2)
patternVelocity(PatternDisk self) -> double
Get PatternDisk::Omega_.
"""
return _gyoto_std.PatternDisk_patternVelocity(self, *args)
def file(self, *args):
"""
file(PatternDisk self, std::string const & f)
file(PatternDisk self) -> std::string
"""
return _gyoto_std.PatternDisk_file(self, *args)
def fitsRead(self, filename_):
"""fitsRead(PatternDisk self, std::string filename_)"""
return _gyoto_std.PatternDisk_fitsRead(self, filename_)
def fitsWrite(self, filename_):
"""fitsWrite(PatternDisk self, std::string filename_)"""
return _gyoto_std.PatternDisk_fitsWrite(self, filename_)
def setEmission(self, pattern):
"""
setEmission(PatternDisk self, double * pattern)
Set PatternDisk::emission_.
The pointer is copied directly, not the array content.
This is a low-level function. Beware that: previously allocated array
will not be freed automatically;
array attached when the destructor is called will be freed.
"""
return _gyoto_std.PatternDisk_setEmission(self, pattern)
def setVelocity(self, pattern):
"""
setVelocity(PatternDisk self, double * pattern)
Set PatternDisk::velocity__.
The pointer is copied directly, not the array content.
This is a low-level function. Beware that: previously allocated array
will not be freed automatically;
array attached when the destructor is called will be freed.
"""
return _gyoto_std.PatternDisk_setVelocity(self, pattern)
def radius(self, pattern):
"""
radius(PatternDisk self, double * pattern)
Set PatternDisk::radius_.
The pointer is copied directly, not the array content.
This is a low-level function. Beware that: previously allocated array
will not be freed automatically;
array attached when the destructor is called will be freed.
"""
return _gyoto_std.PatternDisk_radius(self, pattern)
def copyIntensity(self, pattern=None, naxes=0):
"""
copyIntensity(PatternDisk self, double const *const pattern=None, size_t const [3] naxes=0)
copyIntensity(PatternDisk self, double const *const pattern=None)
copyIntensity(PatternDisk self)
Set PatternDisk::emission_.
PatternDisk::emission_ is freed if not NULL, reallocated, and pattern
is copied into emission_.
If PatternDisk::opacity_, PatternDisk::velocity_ or
PatternDisk::radius_ have been set previously with mismatching sizes,
they are deallocated too.
Finally, PatternDisk::nnu_, PatternDisk::nphi_, and PatternDisk::nr_
are set according to naxes.
Parameters:
-----------
pattern: Array to copy as emission_. May be NULL in which case
emission_ is simply deallocated and set to NULL.
naxes: { nnu_, nphi_, nr_ }.
"""
return _gyoto_std.PatternDisk_copyIntensity(self, pattern, naxes)
def getIntensity(self):
"""
getIntensity(PatternDisk self) -> double const *
Get PatternDisk::emission_.
"""
return _gyoto_std.PatternDisk_getIntensity(self)
def getIntensityNaxes(self, naxes):
"""
getIntensityNaxes(PatternDisk self, size_t [3] naxes)
Get PatternDisk::nnu_, PatternDisk::nphi_, and PatternDisk::nr_.
"""
return _gyoto_std.PatternDisk_getIntensityNaxes(self, naxes)
def copyOpacity(self, pattern=None, naxes=0):
"""
copyOpacity(PatternDisk self, double const *const pattern=None, size_t const [3] naxes=0)
copyOpacity(PatternDisk self, double const *const pattern=None)
copyOpacity(PatternDisk self)
Set PatternDisk::opacity_.
PatternDisk::opacity_ is first freed if not NULL and set to NULL.
If pattern is not NULL, PatternDisk::emission_ must have been set
previously with matching dimensions. PatternDisk::opacity_ is then
reallocated, and pattern is copied into opacity_.
Parameters:
-----------
pattern: Array to copy as opacity_. May be NULL in which case
opacity_ is simply deallocated and set to NULL.
naxes: { nnu_, nphi_, nr_ }.
"""
return _gyoto_std.PatternDisk_copyOpacity(self, pattern, naxes)
def opacity(self):
"""
opacity(PatternDisk self) -> double const *
Get PatternDisk::opacity_.
"""
return _gyoto_std.PatternDisk_opacity(self)
def copyVelocity(self, pattern=None, naxes=0):
"""
copyVelocity(PatternDisk self, double const *const pattern=None, size_t const [2] naxes=0)
copyVelocity(PatternDisk self, double const *const pattern=None)
copyVelocity(PatternDisk self)
Set PatternDisk::velocity_.
PatternDisk::velocity_ is first freed if not NULL and set to NULL.
If pattern is not NULL, PatternDisk::emission_ must have been set
previously with matching dimensions. PatternDisk::velocity_ is then
reallocated, and pattern is copied into velocity_.
Parameters:
-----------
pattern: Array to copy as velocity_. May be NULL in which case
velocity_ is simply deallocated and set to NULL.
naxes: { nphi_, nr_ }.
"""
return _gyoto_std.PatternDisk_copyVelocity(self, pattern, naxes)
def copyGridRadius(self, pattern=None, nr=0):
"""
copyGridRadius(PatternDisk self, double const *const pattern=None, size_t nr=0)
copyGridRadius(PatternDisk self, double const *const pattern=None)
copyGridRadius(PatternDisk self)
Set PatternDisk::radius_.
PatternDisk::radius_ is first freed if not NULL and set to NULL.
If pattern is not NULL, PatternDisk::emission_ must have been set
previously with matching dimensions. PatternDisk::radius_ is then
reallocated, and pattern is copied into radius_.
Parameters:
-----------
pattern: Array to copy as radius_. May be NULL in which case radius_
is simply deallocated and set to NULL.
nr: size of radius array.
"""
return _gyoto_std.PatternDisk_copyGridRadius(self, pattern, nr)
def getGridRadius(self):
"""
getGridRadius(PatternDisk self) -> double const *
Get PatternDisk::radius_.
"""
return _gyoto_std.PatternDisk_getGridRadius(self)
def repeatPhi(self, *args):
"""
repeatPhi(PatternDisk self, size_t n)
repeatPhi(PatternDisk self) -> size_t
Get PatternDisk::repeat_phi_.
"""
return _gyoto_std.PatternDisk_repeatPhi(self, *args)
def nu0(self, *args):
"""
nu0(PatternDisk self, double freq)
nu0(PatternDisk self) -> double
Get PatternDisk::nu0_.
"""
return _gyoto_std.PatternDisk_nu0(self, *args)
def dnu(self, *args):
"""
dnu(PatternDisk self, double dfreq)
dnu(PatternDisk self) -> double
Get PatternDisk::dnu_.
"""
return _gyoto_std.PatternDisk_dnu(self, *args)
def phimin(self, *args):
"""
phimin(PatternDisk self, double phimin)
phimin(PatternDisk self) -> double
Get PatternDisk::phimin_.
"""
return _gyoto_std.PatternDisk_phimin(self, *args)
def phimax(self, *args):
"""
phimax(PatternDisk self, double phimax)
phimax(PatternDisk self) -> double
Get PatternDisk::phimax_.
"""
return _gyoto_std.PatternDisk_phimax(self, *args)
def emission(self, *args):
"""
emission(PatternDisk self, double arg2, double arg3, double * arg4, double arg5) -> double
emission(PatternDisk self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj=0) -> double
emission(PatternDisk self, double nu_em, double dsem, double [8] c_ph) -> double
Specific intensity I for several values ofem
Called by the default implementation for processHitQuantities().
emission() computes the intensity I emitted by the small volume of
length dsem. It should take self- absorption along dsem into account.
Same as emission(double nu_em, double dsem, double coord_ph[8], double
coord_obj[8]=NULL) const looping on several values of nu_em.
Parameters:
-----------
Inu[nbnu]: Output (must be set to a previously allocated array of
doubles)
nu_em[nbnu]: Frequencies at emission
nbnu: Size of Inu[] and nu_em[]
dsem: Length over which to integrate inside the object
coord_ph: Photon coordinate
coord_obj: Emitter coordinate at current photon position
I or dI [W m-2 sr-2]
"""
return _gyoto_std.PatternDisk_emission(self, *args)
def transmission(self, nu_em, dsem, coord):
"""
transmission(PatternDisk self, double nu_em, double dsem, double [8] coord) -> double
Transmission: exp( * dsem )
transmission() computes the transmission of this fluid element or 0 if
optically thick. The default implementation returns 1. (no
attenuation) if optically thin, 0. if optically thick.
Parameters:
-----------
nuem: frequency in the fluid's frame
coord: Photon coordinate
dsem: geometrical length in geometrical units
"""
return _gyoto_std.PatternDisk_transmission(self, nu_em, dsem, coord)
def getVelocity(self, *args):
"""
getVelocity(PatternDisk self) -> double const
getVelocity(PatternDisk self, double const [4] pos, double [4] vel)
Get fluid 4-velocity at point.
Fill vel with the 4-vector velocity of the fluid at 4-position pos.
getVelocity() should work at some distance from the equatorial plane.
The default implementation calls Metric::Generic::circularVelocity().
Parameters:
-----------
pos: 4-position at which to compute velocity;
vel: 4-velocity at pos.
"""
return _gyoto_std.PatternDisk_getVelocity(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::PatternDisk self) -> PatternDisk
__init__(Gyoto::Astrobj::PatternDisk self, PatternDisk arg2) -> PatternDisk
__init__(Gyoto::Astrobj::PatternDisk self, Astrobj base) -> PatternDisk
Copy constructor.
"""
this = _gyoto_std.new_PatternDisk(*args)
try:
self.this.append(this)
except Exception:
self.this = this
PatternDisk_swigregister = _gyoto_std.PatternDisk_swigregister
PatternDisk_swigregister(PatternDisk)
PatternDisk.properties = _gyoto_std.cvar.PatternDisk_properties
class PatternDiskBB(PatternDisk):
"""
Geometrically thin disk read from FITS file with black body spectrum.
This class describes a disk contained in the z=0 (equatorial) plane,
extending from r=r_ISCO to r=rmax_. The flux emitted at radius r and
longitude phi at frequency nu is given in a FITS file.
C++ includes: GyotoPatternDiskBB.h
"""
__swig_setmethods__ = {}
for _s in [PatternDisk]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PatternDiskBB, name, value)
__swig_getmethods__ = {}
for _s in [PatternDisk]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, PatternDiskBB, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(PatternDiskBB self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.PatternDiskBB_getProperties(self)
def clone(self):
"""
clone(PatternDiskBB self) -> PatternDiskBB
Cloner.
"""
return _gyoto_std.PatternDiskBB_clone(self)
__swig_destroy__ = _gyoto_std.delete_PatternDiskBB
__del__ = lambda self: None
def spectralEmission(self, *args):
"""
spectralEmission(PatternDiskBB self) -> bool
spectralEmission(PatternDiskBB self, bool t)
"""
return _gyoto_std.PatternDiskBB_spectralEmission(self, *args)
def risco(self, *args):
"""
risco(PatternDiskBB self) -> double
risco(PatternDiskBB self, double r)
"""
return _gyoto_std.PatternDiskBB_risco(self, *args)
def emission(self, *args):
"""
emission(PatternDiskBB self, double arg2, double arg3, double * arg4, double arg5) -> double
emission(PatternDiskBB self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj=0) -> double
emission(PatternDiskBB self, double nu_em, double dsem, double [8] c_ph) -> double
Specific intensity I for several values ofem
Called by the default implementation for processHitQuantities().
emission() computes the intensity I emitted by the small volume of
length dsem. It should take self- absorption along dsem into account.
Same as emission(double nu_em, double dsem, double coord_ph[8], double
coord_obj[8]=NULL) const looping on several values of nu_em.
Parameters:
-----------
Inu[nbnu]: Output (must be set to a previously allocated array of
doubles)
nu_em[nbnu]: Frequencies at emission
nbnu: Size of Inu[] and nu_em[]
dsem: Length over which to integrate inside the object
coord_ph: Photon coordinate
coord_obj: Emitter coordinate at current photon position
I or dI [W m-2 sr-2]
"""
return _gyoto_std.PatternDiskBB_emission(self, *args)
def getVelocity(self, *args):
"""
getVelocity(PatternDiskBB self) -> double const
getVelocity(PatternDiskBB self, double const [4] pos, double [4] vel)
Get fluid 4-velocity at point.
Fill vel with the 4-vector velocity of the fluid at 4-position pos.
getVelocity() should work at some distance from the equatorial plane.
The default implementation calls Metric::Generic::circularVelocity().
Parameters:
-----------
pos: 4-position at which to compute velocity;
vel: 4-velocity at pos.
"""
return _gyoto_std.PatternDiskBB_getVelocity(self, *args)
def metric(self, *args):
"""
metric(PatternDiskBB self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
metric(PatternDiskBB self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
metric(PatternDiskBB self, Gyoto::SmartPointer< Gyoto::Metric::Generic > gg)
Get the Metric gg_.
"""
return _gyoto_std.PatternDiskBB_metric(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::PatternDiskBB self) -> PatternDiskBB
__init__(Gyoto::Astrobj::PatternDiskBB self, PatternDiskBB arg2) -> PatternDiskBB
__init__(Gyoto::Astrobj::PatternDiskBB self, Astrobj base) -> PatternDiskBB
Copy constructor.
"""
this = _gyoto_std.new_PatternDiskBB(*args)
try:
self.this.append(this)
except Exception:
self.this = this
PatternDiskBB_swigregister = _gyoto_std.PatternDiskBB_swigregister
PatternDiskBB_swigregister(PatternDiskBB)
PatternDiskBB.properties = _gyoto_std.cvar.PatternDiskBB_properties
class DynamicalDisk(PatternDiskBB):
"""
Geometrically thin disk read from a set of FITS files.
This class describes a PatternDiskBB that evolves dynamically. It is
described by a set of FITS files.
C++ includes: GyotoDynamicalDisk.h
"""
__swig_setmethods__ = {}
for _s in [PatternDiskBB]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, DynamicalDisk, name, value)
__swig_getmethods__ = {}
for _s in [PatternDiskBB]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, DynamicalDisk, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(DynamicalDisk self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.DynamicalDisk_getProperties(self)
def clone(self):
"""
clone(DynamicalDisk self) -> DynamicalDisk
Cloner.
"""
return _gyoto_std.DynamicalDisk_clone(self)
__swig_destroy__ = _gyoto_std.delete_DynamicalDisk
__del__ = lambda self: None
def file(self, *args):
"""
file(DynamicalDisk self) -> std::string
file(DynamicalDisk self, std::string const & fname)
"""
return _gyoto_std.DynamicalDisk_file(self, *args)
def tinit(self, *args):
"""
tinit(DynamicalDisk self, double t)
tinit(DynamicalDisk self) -> double
"""
return _gyoto_std.DynamicalDisk_tinit(self, *args)
def dt(self, *args):
"""
dt(DynamicalDisk self, double t)
dt(DynamicalDisk self) -> double
"""
return _gyoto_std.DynamicalDisk_dt(self, *args)
def emission(self, *args):
"""
emission(DynamicalDisk self, double arg2, double arg3, double * arg4, double arg5) -> double
emission(DynamicalDisk self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj=0) -> double
emission(DynamicalDisk self, double nu_em, double dsem, double [8] c_ph) -> double
Specific intensity I for several values ofem
Called by the default implementation for processHitQuantities().
emission() computes the intensity I emitted by the small volume of
length dsem. It should take self- absorption along dsem into account.
Same as emission(double nu_em, double dsem, double coord_ph[8], double
coord_obj[8]=NULL) const looping on several values of nu_em.
Parameters:
-----------
Inu[nbnu]: Output (must be set to a previously allocated array of
doubles)
nu_em[nbnu]: Frequencies at emission
nbnu: Size of Inu[] and nu_em[]
dsem: Length over which to integrate inside the object
coord_ph: Photon coordinate
coord_obj: Emitter coordinate at current photon position
I or dI [W m-2 sr-2]
"""
return _gyoto_std.DynamicalDisk_emission(self, *args)
def getVelocity(self, *args):
"""
getVelocity(DynamicalDisk self, double const [4] pos, double [4] vel)
getVelocity(DynamicalDisk self) -> double const *
Get PatternDisk::velocity_.
"""
return _gyoto_std.DynamicalDisk_getVelocity(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::DynamicalDisk self) -> DynamicalDisk
__init__(Gyoto::Astrobj::DynamicalDisk self, DynamicalDisk arg2) -> DynamicalDisk
__init__(Gyoto::Astrobj::DynamicalDisk self, Astrobj base) -> DynamicalDisk
Copy constructor.
"""
this = _gyoto_std.new_DynamicalDisk(*args)
try:
self.this.append(this)
except Exception:
self.this = this
DynamicalDisk_swigregister = _gyoto_std.DynamicalDisk_swigregister
DynamicalDisk_swigregister(DynamicalDisk)
DynamicalDisk.properties = _gyoto_std.cvar.DynamicalDisk_properties
class Disk3D(gyoto.Astrobj):
"""
Geometrically thick disk read from FITS file.
This class is the base class for thick disks. The emitter's velocity
is given in a FITS file, together with emission related quantity
(typically temperature). This class mainly implements the Impact()
function. Emission() function is here left to its default, and should
be implemented according to specific needs in heir classes. Here the
disk is supposed not to evolve in time. The dynamical treatment is
provided in heir classes.
The 3D disk is assumed to be described by a regular (non adaptive)
grid of cylindrical geometry. The disk is a slab from rin_ to rout_
and zmin_ (typically = -zmax_) to zmax_.
C++ includes: GyotoDisk3D.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Astrobj]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, Disk3D, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Astrobj]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, Disk3D, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(Disk3D self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.Disk3D_getProperties(self)
def fillProperty(self, fmp, p):
"""
fillProperty(Disk3D self, FactoryMessenger fmp, Property p)
Output a single Property to XML.
The base implementation decides what to do based on the p.type. The
format matches how setParameters() an setParameter() would interpret
the XML descition.
Overriding this method should be avoided, but makes sense in some
cases (for instance Screen::fillProperty() selects a different unit
for Distance based on its magnitude, so that stellar sizes are
expressed in solar radii while smaller sizes can be expressed in
meters and larger sizes in parsecs).
Overriding implementation should fall-back on calling the
implementation in the direct parent class:
"""
return _gyoto_std.Disk3D_fillProperty(self, fmp, p)
def clone(self):
"""
clone(Disk3D self) -> Disk3D
Cloner.
"""
return _gyoto_std.Disk3D_clone(self)
__swig_destroy__ = _gyoto_std.delete_Disk3D
__del__ = lambda self: None
def fitsRead(self, filename_):
"""fitsRead(Disk3D self, std::string filename_)"""
return _gyoto_std.Disk3D_fitsRead(self, filename_)
def fitsWrite(self, filename_):
"""fitsWrite(Disk3D self, std::string filename_)"""
return _gyoto_std.Disk3D_fitsWrite(self, filename_)
def file(self, *args):
"""
file(Disk3D self, std::string const & f)
file(Disk3D self) -> std::string
"""
return _gyoto_std.Disk3D_file(self, *args)
def zsym(self, *args):
"""
zsym(Disk3D self, bool t)
zsym(Disk3D self) -> bool
"""
return _gyoto_std.Disk3D_zsym(self, *args)
def tPattern(self, *args):
"""
tPattern(Disk3D self, double t)
tPattern(Disk3D self) -> double
"""
return _gyoto_std.Disk3D_tPattern(self, *args)
def omegaPattern(self, *args):
"""
omegaPattern(Disk3D self, double t)
omegaPattern(Disk3D self) -> double
"""
return _gyoto_std.Disk3D_omegaPattern(self, *args)
def setEmissquant(self, pattern):
"""
setEmissquant(Disk3D self, double * pattern)
Set Disk3D::emissquant_.
The pointer is copied directly, not the array content.
This is a low-level function. Beware that: previously allocated array
will not be freed automatically;
array attached when the destructor is called will be freed.
"""
return _gyoto_std.Disk3D_setEmissquant(self, pattern)
def setVelocity(self, pattern):
"""
setVelocity(Disk3D self, double * pattern)
Set Disk3D::velocity__.
The pointer is copied directly, not the array content.
This is a low-level function. Beware that: previously allocated array
will not be freed automatically;
array attached when the destructor is called will be freed.
"""
return _gyoto_std.Disk3D_setVelocity(self, pattern)
def copyEmissquant(self, pattern=None, naxes=0):
"""
copyEmissquant(Disk3D self, double const *const pattern=None, size_t const [4] naxes=0)
copyEmissquant(Disk3D self, double const *const pattern=None)
copyEmissquant(Disk3D self)
Set Disk3D::emissquant_.
Disk3D::emissquant_ is freed if not NULL, reallocated, and pattern is
copied into emission_.
If Disk3D::velocity_ or has been set previously with mismatching
sizes, it is deallocated too.
Finally, Disk3D::nnu_, Disk3D::nphi_, Disk3D::nz_ and Disk3D::nr_ are
set according to naxes.
Parameters:
-----------
pattern: Array to copy as emission_. May be NULL in which case
emission_ is simply deallocated and set to NULL.
naxes: { nnu_, nphi_, nz_, nr_ }.
"""
return _gyoto_std.Disk3D_copyEmissquant(self, pattern, naxes)
def getEmissquant(self):
"""
getEmissquant(Disk3D self) -> double const *
Get Disk3D::emissquant_.
"""
return _gyoto_std.Disk3D_getEmissquant(self)
def getEmissquantNaxes(self, naxes):
"""
getEmissquantNaxes(Disk3D self, size_t [4] naxes)
Get { Disk3D::nnu_, Disk3D::nphi_, Disk3D::nz_, Disk3D::nr_ }.
"""
return _gyoto_std.Disk3D_getEmissquantNaxes(self, naxes)
def copyOpacity(self, pattern=None, naxes=0):
"""
copyOpacity(Disk3D self, double const *const pattern=None, size_t const [4] naxes=0)
copyOpacity(Disk3D self, double const *const pattern=None)
copyOpacity(Disk3D self)
"""
return _gyoto_std.Disk3D_copyOpacity(self, pattern, naxes)
def opacity(self, *args):
"""
opacity(Disk3D self, double * pattern)
opacity(Disk3D self) -> double const *
Get Disk3D::opacity_.
"""
return _gyoto_std.Disk3D_opacity(self, *args)
def copyVelocity(self, pattern=None, naxes=0):
"""
copyVelocity(Disk3D self, double const *const pattern=None, size_t const [3] naxes=0)
copyVelocity(Disk3D self, double const *const pattern=None)
copyVelocity(Disk3D self)
Set Disk3D::velocity_.
Disk3D::velocity_ is first freed if not NULL and set to NULL.
If pattern is not NULL, Disk3D::emissquant_ must have been set
previously with matching dimensions. Disk3D::velocity_ is then
reallocated, and pattern is copied into velocity_.
Parameters:
-----------
pattern: Array to copy as velocity_. May be NULL in which case
velocity_ is simply deallocated and set to NULL.
naxes: { nphi_, nz_, nr_ }.
"""
return _gyoto_std.Disk3D_copyVelocity(self, pattern, naxes)
def repeatPhi(self, *args):
"""
repeatPhi(Disk3D self, size_t n)
repeatPhi(Disk3D self) -> size_t
Get Disk3D::repeat_phi_.
"""
return _gyoto_std.Disk3D_repeatPhi(self, *args)
def nu0(self, *args):
"""
nu0(Disk3D self, double freq)
nu0(Disk3D self) -> double
Get Disk3D::nu0_.
"""
return _gyoto_std.Disk3D_nu0(self, *args)
def dnu(self, *args):
"""
dnu(Disk3D self, double dfreq)
dnu(Disk3D self) -> double
Get Disk3D::dnu_.
"""
return _gyoto_std.Disk3D_dnu(self, *args)
def rin(self, *args):
"""
rin(Disk3D self, double rrin)
rin(Disk3D self) -> double
Get Disk3D::rin_.
"""
return _gyoto_std.Disk3D_rin(self, *args)
def rout(self, *args):
"""
rout(Disk3D self, double rout)
rout(Disk3D self) -> double
Get Disk3D::rout_.
"""
return _gyoto_std.Disk3D_rout(self, *args)
def zmin(self, *args):
"""
zmin(Disk3D self, double zmin)
zmin(Disk3D self) -> double
Get Disk3D::zmin_.
"""
return _gyoto_std.Disk3D_zmin(self, *args)
def zmax(self, *args):
"""
zmax(Disk3D self, double zmax)
zmax(Disk3D self) -> double
Get Disk3D::zmax_.
"""
return _gyoto_std.Disk3D_zmax(self, *args)
def phimin(self, *args):
"""
phimin(Disk3D self, double phimin)
phimin(Disk3D self) -> double
Get Disk3D::phimin_.
"""
return _gyoto_std.Disk3D_phimin(self, *args)
def phimax(self, *args):
"""
phimax(Disk3D self, double phimax)
phimax(Disk3D self) -> double
Get Disk3D::phimax_.
"""
return _gyoto_std.Disk3D_phimax(self, *args)
def Impact(self, ph, index, data):
"""
Impact(Disk3D self, Photon ph, size_t index, AstrobjProperties data) -> int
Does a photon at these coordinates impact the object?
Impact() checks whether a Photon impacts the object between two
integration steps of the photon's trajectory (those two steps are
photon->getCoord(index, coord1) and photon->getCoord(index+1,
coord2)). Impact returns 1 if the photon impacts the object between
these two steps, else 0. In many cases of geometrically thick obects,
the implementation Astrobj::Standard::Impact() will be fine.
Impact will call Generic::processHitQuantities() (which is virtual and
may be re-implemented) to compute observable properties on demand: if
the data pointer is non-NULL, the object will look in it for pointers
to properties which apply to its kind. If a pointer to a property
known to this object is present, then the property is computed and
store at the pointed-to address. For instance, all objects know the
"intensity" property. If data->intensity != NULL, the instensity is
computed and stored in *data->intensity.
If data is non-NULL and only in this case, processHitQuantities() will
also call ph->transmit() to update the transmissions of the Photon
(see Photon::transmit(size_t, double)). This must not be done if data
is NULL (see Astrobj::Complex::Impact() for an explanation).
Parameters:
-----------
ph: Gyoto::Photon aimed at the object;
index: Index of the last photon step;
data: Pointer to a structure to hold the observables at impact.
1 if impact, 0 if not.
"""
return _gyoto_std.Disk3D_Impact(self, ph, index, data)
def getVelocity(self, *args):
"""
getVelocity(Disk3D self) -> double const
getVelocity(Disk3D self, double const [4] pos, double [4] vel)
Get fluid 4-velocity at point.
Fill vel with the 4-vector velocity of the fluid at 4-position pos.
Parameters:
-----------
pos: 4-position at which to compute velocity;
vel: 4-velocity at pos.
"""
return _gyoto_std.Disk3D_getVelocity(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::Disk3D self) -> Disk3D
__init__(Gyoto::Astrobj::Disk3D self, Disk3D arg2) -> Disk3D
__init__(Gyoto::Astrobj::Disk3D self, Astrobj base) -> Disk3D
Copy constructor.
"""
this = _gyoto_std.new_Disk3D(*args)
try:
self.this.append(this)
except Exception:
self.this = this
Disk3D_swigregister = _gyoto_std.Disk3D_swigregister
Disk3D_swigregister(Disk3D)
Disk3D.properties = _gyoto_std.cvar.Disk3D_properties
class DynamicalDisk3D(Disk3D):
"""
Geometrically thick optically thin disk read from a set of FITS files.
This class describes a PatternDiskBB that evolves dynamically. It is
described by a set of FITS files for different times. Its emission is
blackbody.
The disk is assumed to be described by a regular, constant in time,
grid.
The metric must be Kerr in BL coordinates.
C++ includes: GyotoDynamicalDisk3D.h
"""
__swig_setmethods__ = {}
for _s in [Disk3D]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, DynamicalDisk3D, name, value)
__swig_getmethods__ = {}
for _s in [Disk3D]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, DynamicalDisk3D, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(DynamicalDisk3D self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.DynamicalDisk3D_getProperties(self)
def clone(self):
"""
clone(DynamicalDisk3D self) -> DynamicalDisk3D
Cloner.
"""
return _gyoto_std.DynamicalDisk3D_clone(self)
__swig_destroy__ = _gyoto_std.delete_DynamicalDisk3D
__del__ = lambda self: None
def metric(self, *args):
"""
metric(DynamicalDisk3D self) -> Gyoto::SmartPointer< Gyoto::Metric::Generic >
metric(DynamicalDisk3D self, Gyoto::SmartPointer< Gyoto::Metric::Generic > arg2)
metric(DynamicalDisk3D self, Gyoto::SmartPointer< Gyoto::Metric::Generic > gg)
Get the Metric gg_.
"""
return _gyoto_std.DynamicalDisk3D_metric(self, *args)
def file(self, *args):
"""
file(DynamicalDisk3D self, std::string const & f)
file(DynamicalDisk3D self) -> std::string
"""
return _gyoto_std.DynamicalDisk3D_file(self, *args)
def tinit(self, *args):
"""
tinit(DynamicalDisk3D self, double t)
tinit(DynamicalDisk3D self) -> double
"""
return _gyoto_std.DynamicalDisk3D_tinit(self, *args)
def dt(self, *args):
"""
dt(DynamicalDisk3D self, double t)
dt(DynamicalDisk3D self) -> double
"""
return _gyoto_std.DynamicalDisk3D_dt(self, *args)
def PLindex(self, *args):
"""
PLindex(DynamicalDisk3D self, double t)
PLindex(DynamicalDisk3D self) -> double
"""
return _gyoto_std.DynamicalDisk3D_PLindex(self, *args)
def floorTemperature(self, *args):
"""
floorTemperature(DynamicalDisk3D self, double t)
floorTemperature(DynamicalDisk3D self) -> double
"""
return _gyoto_std.DynamicalDisk3D_floorTemperature(self, *args)
def temperature(self, *args):
"""
temperature(DynamicalDisk3D self, bool t)
temperature(DynamicalDisk3D self) -> bool
"""
return _gyoto_std.DynamicalDisk3D_temperature(self, *args)
def withVelocity(self, *args):
"""
withVelocity(DynamicalDisk3D self, bool t)
withVelocity(DynamicalDisk3D self) -> bool
"""
return _gyoto_std.DynamicalDisk3D_withVelocity(self, *args)
def emission1date(self, nu_em, dsem, c_ph, c_obj):
"""
emission1date(DynamicalDisk3D self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj) -> double
Compute emission at one grid date.
"""
return _gyoto_std.DynamicalDisk3D_emission1date(self, nu_em, dsem, c_ph, c_obj)
def emission(self, *args):
"""
emission(DynamicalDisk3D self, double [] Inu, double [] nu_em, size_t nbnu, double dsem, double [8] coord_ph, double [8] coord_obj=0)
emission(DynamicalDisk3D self, double [] Inu, double [] nu_em, size_t nbnu, double dsem, double [8] coord_ph)
emission(DynamicalDisk3D self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj=0) -> double
emission(DynamicalDisk3D self, double nu_em, double dsem, double [8] c_ph) -> double
Specific intensity I for several values ofem
Called by the default implementation for processHitQuantities().
emission() computes the intensity I emitted by the small volume of
length dsem. It should take self- absorption along dsem into account.
Same as emission(double nu_em, double dsem, double coord_ph[8], double
coord_obj[8]=NULL) const looping on several values of nu_em.
Parameters:
-----------
Inu[nbnu]: Output (must be set to a previously allocated array of
doubles)
nu_em[nbnu]: Frequencies at emission
nbnu: Size of Inu[] and nu_em[]
dsem: Length over which to integrate inside the object
coord_ph: Photon coordinate
coord_obj: Emitter coordinate at current photon position
I or dI [W m-2 sr-2]
"""
return _gyoto_std.DynamicalDisk3D_emission(self, *args)
def transmission1date(self, nu_em, dsem, c_ph, c_obj):
"""
transmission1date(DynamicalDisk3D self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj) -> double
Compute transmission at one grid date.
"""
return _gyoto_std.DynamicalDisk3D_transmission1date(self, nu_em, dsem, c_ph, c_obj)
def transmission(self, nu_em, dsem, c_obj):
"""
transmission(DynamicalDisk3D self, double nu_em, double dsem, double [8] c_obj) -> double
Interpolate transmission between grid dates.
"""
return _gyoto_std.DynamicalDisk3D_transmission(self, nu_em, dsem, c_obj)
def getVelocity(self, *args):
"""
getVelocity(DynamicalDisk3D self, double const [4] pos, double [4] vel)
getVelocity(DynamicalDisk3D self) -> double const *
Get Disk3D::velocity_.
"""
return _gyoto_std.DynamicalDisk3D_getVelocity(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::DynamicalDisk3D self) -> DynamicalDisk3D
__init__(Gyoto::Astrobj::DynamicalDisk3D self, DynamicalDisk3D arg2) -> DynamicalDisk3D
__init__(Gyoto::Astrobj::DynamicalDisk3D self, Astrobj base) -> DynamicalDisk3D
Copy constructor.
"""
this = _gyoto_std.new_DynamicalDisk3D(*args)
try:
self.this.append(this)
except Exception:
self.this = this
DynamicalDisk3D_swigregister = _gyoto_std.DynamicalDisk3D_swigregister
DynamicalDisk3D_swigregister(DynamicalDisk3D)
DynamicalDisk3D.properties = _gyoto_std.cvar.DynamicalDisk3D_properties
class DirectionalDisk(gyoto.ThinDisk):
"""
Geometrically thin disk read from FITS file.
This class describes a disk contained in the z=0 (equatorial) plane.
The flux emitted at radius r, making an angle i with respect to the
local normal, at frequency nu is given in a FITS file.
C++ includes: GyotoDirectionalDisk.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.ThinDisk]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, DirectionalDisk, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.ThinDisk]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, DirectionalDisk, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(DirectionalDisk self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.DirectionalDisk_getProperties(self)
def fillProperty(self, fmp, p):
"""
fillProperty(DirectionalDisk self, FactoryMessenger fmp, Property p)
Output a single Property to XML.
The base implementation decides what to do based on the p.type. The
format matches how setParameters() an setParameter() would interpret
the XML descition.
Overriding this method should be avoided, but makes sense in some
cases (for instance Screen::fillProperty() selects a different unit
for Distance based on its magnitude, so that stellar sizes are
expressed in solar radii while smaller sizes can be expressed in
meters and larger sizes in parsecs).
Overriding implementation should fall-back on calling the
implementation in the direct parent class:
"""
return _gyoto_std.DirectionalDisk_fillProperty(self, fmp, p)
def clone(self):
"""
clone(DirectionalDisk self) -> DirectionalDisk
Cloner.
"""
return _gyoto_std.DirectionalDisk_clone(self)
__swig_destroy__ = _gyoto_std.delete_DirectionalDisk
__del__ = lambda self: None
def file(self, *args):
"""
file(DirectionalDisk self, std::string const & f)
file(DirectionalDisk self) -> std::string
"""
return _gyoto_std.DirectionalDisk_file(self, *args)
def averageOverAngle(self, *args):
"""
averageOverAngle(DirectionalDisk self, bool t)
averageOverAngle(DirectionalDisk self) -> bool
"""
return _gyoto_std.DirectionalDisk_averageOverAngle(self, *args)
def fitsRead(self, filename_):
"""fitsRead(DirectionalDisk self, std::string filename_)"""
return _gyoto_std.DirectionalDisk_fitsRead(self, filename_)
def fitsWrite(self, filename_):
"""fitsWrite(DirectionalDisk self, std::string filename_)"""
return _gyoto_std.DirectionalDisk_fitsWrite(self, filename_)
def setEmission(self, pattern):
"""
setEmission(DirectionalDisk self, double * pattern)
Set DirectionalDisk::emission_.
The pointer is copied directly, not the array content.
This is a low-level function. Beware that: previously allocated array
will not be freed automatically;
array attached when the destructor is called will be freed.
"""
return _gyoto_std.DirectionalDisk_setEmission(self, pattern)
def radius(self, pattern):
"""radius(DirectionalDisk self, double * pattern)"""
return _gyoto_std.DirectionalDisk_radius(self, pattern)
def copyIntensity(self, pattern=None, naxes=0):
"""
copyIntensity(DirectionalDisk self, double const *const pattern=None, size_t const [3] naxes=0)
copyIntensity(DirectionalDisk self, double const *const pattern=None)
copyIntensity(DirectionalDisk self)
DirectionalDisk::emission_ is freed if not NULL, reallocated, and
pattern is copied into emission_.
Finally, DirectionalDisk::nnu_, DirectionalDisk::ni_, and
DirectionalDisk::nr_ are set according to naxes.
Parameters:
-----------
pattern: Array to copy as emission_. May be NULL in which case
emission_ is simply deallocated and set to NULL.
naxes: { nnu_, ni_, nr_ }.
"""
return _gyoto_std.DirectionalDisk_copyIntensity(self, pattern, naxes)
def getIntensity(self):
"""
getIntensity(DirectionalDisk self) -> double const *
Get DirectionalDisk::emission_.
"""
return _gyoto_std.DirectionalDisk_getIntensity(self)
def getIntensityNaxes(self, naxes):
"""
getIntensityNaxes(DirectionalDisk self, size_t [3] naxes)
Get DirectionalDisk::nnu_, DirectionalDisk::ni_, and
DirectionalDisk::nr_.
"""
return _gyoto_std.DirectionalDisk_getIntensityNaxes(self, naxes)
def copyGridRadius(self, pattern=None, nr=0):
"""
copyGridRadius(DirectionalDisk self, double const *const pattern=None, size_t nr=0)
copyGridRadius(DirectionalDisk self, double const *const pattern=None)
copyGridRadius(DirectionalDisk self)
"""
return _gyoto_std.DirectionalDisk_copyGridRadius(self, pattern, nr)
def getGridRadius(self):
"""
getGridRadius(DirectionalDisk self) -> double const *
Get DirectionalDisk::radius_.
"""
return _gyoto_std.DirectionalDisk_getGridRadius(self)
def copyGridCosi(self, pattern=None, ni=0):
"""
copyGridCosi(DirectionalDisk self, double const *const pattern=None, size_t ni=0)
copyGridCosi(DirectionalDisk self, double const *const pattern=None)
copyGridCosi(DirectionalDisk self)
"""
return _gyoto_std.DirectionalDisk_copyGridCosi(self, pattern, ni)
def getGridCosi(self):
"""
getGridCosi(DirectionalDisk self) -> double const *
Get DirectionalDisk::cosi_.
"""
return _gyoto_std.DirectionalDisk_getGridCosi(self)
def copyGridFreq(self, pattern=None, ni=0):
"""
copyGridFreq(DirectionalDisk self, double const *const pattern=None, size_t ni=0)
copyGridFreq(DirectionalDisk self, double const *const pattern=None)
copyGridFreq(DirectionalDisk self)
"""
return _gyoto_std.DirectionalDisk_copyGridFreq(self, pattern, ni)
def getGridFreq(self):
"""
getGridFreq(DirectionalDisk self) -> double const *
Get DirectionalDisk::freq_.
"""
return _gyoto_std.DirectionalDisk_getGridFreq(self)
def emission(self, *args):
"""
emission(DirectionalDisk self, double arg2, double arg3, double * arg4, double arg5) -> double
emission(DirectionalDisk self, double nu_em, double dsem, double [8] c_ph, double [8] c_obj=0) -> double
emission(DirectionalDisk self, double nu_em, double dsem, double [8] c_ph) -> double
Specific intensity I for several values ofem
Called by the default implementation for processHitQuantities().
emission() computes the intensity I emitted by the small volume of
length dsem. It should take self- absorption along dsem into account.
Same as emission(double nu_em, double dsem, double coord_ph[8], double
coord_obj[8]=NULL) const looping on several values of nu_em.
Parameters:
-----------
Inu[nbnu]: Output (must be set to a previously allocated array of
doubles)
nu_em[nbnu]: Frequencies at emission
nbnu: Size of Inu[] and nu_em[]
dsem: Length over which to integrate inside the object
coord_ph: Photon coordinate
coord_obj: Emitter coordinate at current photon position
I or dI [W m-2 sr-2]
"""
return _gyoto_std.DirectionalDisk_emission(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Astrobj::DirectionalDisk self) -> DirectionalDisk
__init__(Gyoto::Astrobj::DirectionalDisk self, DirectionalDisk arg2) -> DirectionalDisk
__init__(Gyoto::Astrobj::DirectionalDisk self, Astrobj base) -> DirectionalDisk
Copy constructor.
"""
this = _gyoto_std.new_DirectionalDisk(*args)
try:
self.this.append(this)
except Exception:
self.this = this
DirectionalDisk_swigregister = _gyoto_std.DirectionalDisk_swigregister
DirectionalDisk_swigregister(DirectionalDisk)
DirectionalDisk.properties = _gyoto_std.cvar.DirectionalDisk_properties
_gyoto_std.GYOTO_KERRBL_DEFAULT_DIFFTOL_swigconstant(_gyoto_std)
GYOTO_KERRBL_DEFAULT_DIFFTOL = _gyoto_std.GYOTO_KERRBL_DEFAULT_DIFFTOL
class KerrBL(gyoto.Metric):
"""
Metric around a Kerr black-hole in Boyer-Lindquist coordinates.
C++ includes: GyotoKerrBL.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Metric]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, KerrBL, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Metric]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, KerrBL, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(KerrBL self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.KerrBL_getProperties(self)
def clone(self):
"""
clone(KerrBL self) -> KerrBL
Virtual copy constructor.
"""
return _gyoto_std.KerrBL_clone(self)
def spin(self, *args):
"""
spin(KerrBL self, double const spin)
spin(KerrBL self) -> double
Returns spin.
"""
return _gyoto_std.KerrBL_spin(self, *args)
def difftol(self, *args):
"""
difftol(KerrBL self) -> double
difftol(KerrBL self, double t)
Set difftol_.
"""
return _gyoto_std.KerrBL_difftol(self, *args)
def horizonSecurity(self, *args):
"""
horizonSecurity(KerrBL self, double drhor)
horizonSecurity(KerrBL self) -> double
"""
return _gyoto_std.KerrBL_horizonSecurity(self, *args)
def genericIntegrator(self, *args):
"""
genericIntegrator(KerrBL self, bool arg2)
genericIntegrator(KerrBL self) -> bool
"""
return _gyoto_std.KerrBL_genericIntegrator(self, *args)
def getRms(self):
"""
getRms(KerrBL self) -> double
Returns the marginally stable (ISCO) radius Should be implemented in
derived classes if useful If called on the base class, returns an
error
"""
return _gyoto_std.KerrBL_getRms(self)
def getRmb(self):
"""
getRmb(KerrBL self) -> double
Returns the marginally bound radius Should be implemented in derived
classes if useful If called on the base class, returns an error
"""
return _gyoto_std.KerrBL_getRmb(self)
def getSpecificAngularMomentum(self, rr):
"""
getSpecificAngularMomentum(KerrBL self, double rr) -> double
Returns the specific angular momentum l=-u_phi/u_t Should be
implemented in derived classes if useful If called on the base class,
returns an error
"""
return _gyoto_std.KerrBL_getSpecificAngularMomentum(self, rr)
def getPotential(self, pos, l_cst):
"""
getPotential(KerrBL self, double [4] pos, double l_cst) -> double
Returns potential W=-ln(|u_t|) for a cst specific angular momentum
l_cst Should be implemented in derived classes if useful If called on
the base class, returns an error
"""
return _gyoto_std.KerrBL_getPotential(self, pos, l_cst)
def gmunu(self, *args):
"""
gmunu(KerrBL self, double [4][4] g, double const * pos)
gmunu(KerrBL self, double const *const x, int mu, int nu) -> double
Metric coefficients.
The default implementation calls Metric:: gmunu(double g[4][4], const
double * pos) const
Parameters:
-----------
x: 4-position at which to compute the coefficient;
mu: 1st index of coefficient, 03;
nu: 2nd index of coefficient, 03;
Metric coefficient g, at point x
"""
return _gyoto_std.KerrBL_gmunu(self, *args)
def gmunu_up(self, *args):
"""
gmunu_up(KerrBL self, double [4][4] gup, double const * pos)
gmunu_up(KerrBL self, double const *const x, int mu, int nu) -> double
"""
return _gyoto_std.KerrBL_gmunu_up(self, *args)
def christoffel(self, *args):
"""
christoffel(KerrBL self, double const [8] coord, int const alpha, int const mu, int const nu) -> double
christoffel(KerrBL self, double [4][4][4] dst, double const [8] coord) -> int
christoffel(KerrBL self, double [4][4][4] dst, double const * pos) -> int
Chistoffel symbol.
Value of Christoffel symbol at point (x1, x2, x3).
"""
return _gyoto_std.KerrBL_christoffel(self, *args)
def ScalarProd(self, pos, u1, u2):
"""
ScalarProd(KerrBL self, double const [4] pos, double const [4] u1, double const [4] u2) -> double
Scalar product.
Compute the scalarproduct of the two quadrivectors u1 and u2 in this
Metric, at point pos expressed in coordinate system sys.
Parameters:
-----------
pos: 4-position;
u1: 1st quadrivector;
u2: 2nd quadrivector;
u1*u2
"""
return _gyoto_std.KerrBL_ScalarProd(self, pos, u1, u2)
def nullifyCoord(self, *args):
"""
nullifyCoord(KerrBL self, double [8] coord, double & tdot2)
nullifyCoord(KerrBL self, double [8] coord)
Set tdot (coord[4]) such that coord is light-like. Everything is in
geometrical units.
Set coord[4] so that the 4-velocity coord[4:7] is lightlike, i.e. of
norm 0. There may be up to two solutions. coord[4] is set to the
hightest. The lowest can be retrieved using nullifyCoord(double
coord[8], double& tdot2) const. Everything is expressed in geometrical
units.
Parameters:
-----------
coord: 8-position, coord[4] will be set according to the other
elements;
"""
return _gyoto_std.KerrBL_nullifyCoord(self, *args)
def circularVelocity(self, pos, vel, dir=1.):
"""
circularVelocity(KerrBL self, double const [4] pos, double [4] vel, double dir=1.)
circularVelocity(KerrBL self, double const [4] pos, double [4] vel)
Yield circular velocity at a given position.
Give the velocity of a massive particle in circular orbit at the given
position projected onto the equatorial plane. Such a velocity may not
exist everywhere (or anywhere) for a given metric. This method is
intended to be used by Astrobj classes such as Torus or ThinDisk.
If keplerian_ is set to true, this method should return the Keplerian
velcity instead (derived classes should ensure this, see
KerrBL::circularVelocity() for instance).
The default implementation throws an error if keplerian_ is set to
false.
Parameters:
-----------
pos: input: position,
vel: output: velocity,
dir: 1 for corotating, -1 for counterrotating.
"""
return _gyoto_std.KerrBL_circularVelocity(self, pos, vel, dir)
def MakeCoord(self, coordin, cst, coordout):
"""
MakeCoord(KerrBL self, double const [8] coordin, double const [5] cst, double [8] coordout)
Inverse function of MakeMomentumAndCst.
Computes pr, ptheta, E and L from rdot, thetadot, phidot, tdot
"""
return _gyoto_std.KerrBL_MakeCoord(self, coordin, cst, coordout)
def MakeMomentum(self, coordin, cst, coordout):
"""
MakeMomentum(KerrBL self, double const [8] coordin, double const [5] cst, double [8] coordout)
Transforms from Boyer-Lindquist coordinates
[t,r,th,phi,tdot,rdot,thdot,phidot] to [t,r,th,phi,pt,pr,pth,pphi]
where pt,pr... are generalized momenta.
"""
return _gyoto_std.KerrBL_MakeMomentum(self, coordin, cst, coordout)
def myrk4(self, coor, cst, h, res):
"""
myrk4(KerrBL self, double const [8] coor, double const [5] cst, double h, double [8] res) -> int
Internal-use RK4 proxy.
"""
return _gyoto_std.KerrBL_myrk4(self, coor, cst, h, res)
def myrk4_adaptive(self, *args):
"""
myrk4_adaptive(KerrBL self, Worldline line, double const [8] coor, double lastnorm, double normref, double [8] coor1, double h0, double & h1, double h1max) -> int
myrk4_adaptive(KerrBL self, Worldline line, double const [8] coor, double lastnorm, double normref, double [8] coor1, double h0, double & h1) -> int
Internal-use adaptive RK4 proxy.
"""
return _gyoto_std.KerrBL_myrk4_adaptive(self, *args)
def diff(self, y, res):
"""
diff(KerrBL self, double const [8] y, double [8] res) -> int
F function such as dy/dtau=F(y,cst)
"""
return _gyoto_std.KerrBL_diff(self, y, res)
def setParticleProperties(self, line, coord):
"""
setParticleProperties(KerrBL self, Worldline line, double const * coord)
Set Metric-specific constants of motion. Used e.g. in KerrBL.
"""
return _gyoto_std.KerrBL_setParticleProperties(self, line, coord)
def isStopCondition(self, coord):
"""
isStopCondition(KerrBL self, double const *const coord) -> int
Check whether integration should stop.
The integrating loop will ask this the Metric through this method
whether or not it is happy to conitnue the integration. Typically, the
Metric should answer 0 when everything is fine, 1 when too close to
the event horizon, inside the BH...
Parameters:
-----------
coord: 8-coordinate vector to check.
"""
return _gyoto_std.KerrBL_isStopCondition(self, coord)
def observerTetrad(self, obskind, pos, fourvel, screen1, screen2, screen3):
"""
observerTetrad(KerrBL self, std::string const obskind, double const [4] pos, double [4] fourvel, double [4] screen1, double [4] screen2, double [4] screen3)
Computes the orthonormal local tetrad of the observer.
Parameters:
-----------
obskind: input: kind of observer (eg:
"ZAMO","KeplerianObserver"...)
pos: input: position,
fourvel: output: observer 4-velocity (norm -1)
screen1: output: first vector in the screen plane
screen2: output: second vector in the screen plane
screen3: output: vector normal to the screen
"""
return _gyoto_std.KerrBL_observerTetrad(self, obskind, pos, fourvel, screen1, screen2, screen3)
def __init__(self, *args):
"""
__init__(Gyoto::Metric::KerrBL self) -> KerrBL
__init__(Gyoto::Metric::KerrBL self, Metric base) -> KerrBL
Default constructor.
"""
this = _gyoto_std.new_KerrBL(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _gyoto_std.delete_KerrBL
__del__ = lambda self: None
KerrBL_swigregister = _gyoto_std.KerrBL_swigregister
KerrBL_swigregister(KerrBL)
KerrBL.properties = _gyoto_std.cvar.KerrBL_properties
class KerrKS(gyoto.Metric, gyoto.WIP):
"""
Metric around a Kerr black-hole in Kerr-Schild coordinates Warning:
this metric is seldom used and may be buggy.
By default, uses the generic integrator ( Metric::Generic::myrk4()).
Use to use the specific integretor which is, as of writting, buggy.
C++ includes: GyotoKerrKS.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Metric, gyoto.WIP]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, KerrKS, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Metric, gyoto.WIP]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, KerrKS, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(KerrKS self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.KerrKS_getProperties(self)
def clone(self):
"""
clone(KerrKS self) -> KerrKS
Copy constructor.
"""
return _gyoto_std.KerrKS_clone(self)
def spin(self, *args):
"""
spin(KerrKS self, double const spin)
spin(KerrKS self) -> double
Returns spin.
"""
return _gyoto_std.KerrKS_spin(self, *args)
def horizonSecurity(self, *args):
"""
horizonSecurity(KerrKS self, double drhor)
horizonSecurity(KerrKS self) -> double
"""
return _gyoto_std.KerrKS_horizonSecurity(self, *args)
def genericIntegrator(self, *args):
"""
genericIntegrator(KerrKS self, bool arg2)
genericIntegrator(KerrKS self) -> bool
"""
return _gyoto_std.KerrKS_genericIntegrator(self, *args)
def gmunu(self, *args):
"""
gmunu(KerrKS self, double const * x, int alpha, int beta) -> double
gmunu(KerrKS self, double [4][4] g, double const * pos)
Metric coefficients.
The default implementation calls double gmunu(const double * x, int
mu, int nu) const.
Parameters:
-----------
g: 4x4 array to store the coeefficients
x: 4-position at which to compute the coefficients;
Metric coefficient g, at point x
"""
return _gyoto_std.KerrKS_gmunu(self, *args)
def gmunu_up(self, gup, pos):
"""
gmunu_up(KerrKS self, double [4][4] gup, double const * pos)
The inverse matrix of gmunu.
"""
return _gyoto_std.KerrKS_gmunu_up(self, gup, pos)
def jacobian(self, dst, x):
"""
jacobian(KerrKS self, double [4][4][4] dst, double const * x)
The derivatives of gmunu.
Used in the test suite
"""
return _gyoto_std.KerrKS_jacobian(self, dst, x)
def christoffel(self, *args):
"""
christoffel(KerrKS self, double const [8] coord, int const alpha, int const mu, int const nu) -> double
christoffel(KerrKS self, double [4][4][4] dst, double const [8] coord) -> int
christoffel(KerrKS self, double [4][4][4] dst, double const * x) -> int
christoffel(KerrKS self, double [4][4][4] dst, double const * pos, double [4][4] gup, double [4][4][4] jac) -> int
Chistoffel symbol.
Value of Christoffel symbol at point (x1, x2, x3).
"""
return _gyoto_std.KerrKS_christoffel(self, *args)
def nullifyCoord(self, *args):
"""
nullifyCoord(KerrKS self, double [8] coord, double & tdot2)
nullifyCoord(KerrKS self, double [8] coord)
Set tdot (coord[4]) such that coord is light-like. Everything is in
geometrical units.
Set coord[4] so that the 4-velocity coord[4:7] is lightlike, i.e. of
norm 0. There may be up to two solutions. coord[4] is set to the
hightest. The lowest can be retrieved using nullifyCoord(double
coord[8], double& tdot2) const. Everything is expressed in geometrical
units.
Parameters:
-----------
coord: 8-position, coord[4] will be set according to the other
elements;
"""
return _gyoto_std.KerrKS_nullifyCoord(self, *args)
def circularVelocity(self, pos, vel, dir=1.):
"""
circularVelocity(KerrKS self, double const [4] pos, double [4] vel, double dir=1.)
circularVelocity(KerrKS self, double const [4] pos, double [4] vel)
Yield circular velocity at a given position.
Give the velocity of a massive particle in circular orbit at the given
position projected onto the equatorial plane. Such a velocity may not
exist everywhere (or anywhere) for a given metric. This method is
intended to be used by Astrobj classes such as Torus or ThinDisk.
If keplerian_ is set to true, this method should return the Keplerian
velcity instead (derived classes should ensure this, see
KerrBL::circularVelocity() for instance).
The default implementation throws an error if keplerian_ is set to
false.
Parameters:
-----------
pos: input: position,
vel: output: velocity,
dir: 1 for corotating, -1 for counterrotating.
"""
return _gyoto_std.KerrKS_circularVelocity(self, pos, vel, dir)
def MakeCst(self, coord, cst):
"""
MakeCst(KerrKS self, double const * coord, double * cst)
In Kerr-Schild coordinates [T,x,y,z,Tdot,xdot,ydot,zdot], computes the
four constants of the movement : particule mass, energy, angular
momentum and Carter's constant.
"""
return _gyoto_std.KerrKS_MakeCst(self, coord, cst)
def __init__(self, *args):
"""
__init__(Gyoto::Metric::KerrKS self) -> KerrKS
__init__(Gyoto::Metric::KerrKS self, Metric base) -> KerrKS
Default constructor.
"""
this = _gyoto_std.new_KerrKS(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _gyoto_std.delete_KerrKS
__del__ = lambda self: None
KerrKS_swigregister = _gyoto_std.KerrKS_swigregister
KerrKS_swigregister(KerrKS)
KerrKS.properties = _gyoto_std.cvar.KerrKS_properties
class Minkowski(gyoto.Metric):
"""
The Minkowski flat-space metric.
Use <Cartesian> or </Spherical> to select the coordinate system kind.
C++ includes: GyotoMinkowski.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Metric]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, Minkowski, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Metric]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, Minkowski, name)
__repr__ = _swig_repr
def spherical(self, *args):
"""
spherical(Minkowski self, bool arg2)
spherical(Minkowski self) -> bool
"""
return _gyoto_std.Minkowski_spherical(self, *args)
def getProperties(self):
"""
getProperties(Minkowski self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.Minkowski_getProperties(self)
def clone(self):
"""
clone(Minkowski self) -> Minkowski
Virtual copy constructor.
"""
return _gyoto_std.Minkowski_clone(self)
def gmunu(self, *args):
"""
gmunu(Minkowski self, double [4][4] g, double const * x)
gmunu(Minkowski self, double const * x, int mu, int nu) -> double
Metric coefficients.
The default implementation calls Metric:: gmunu(double g[4][4], const
double * pos) const
Parameters:
-----------
x: 4-position at which to compute the coefficient;
mu: 1st index of coefficient, 03;
nu: 2nd index of coefficient, 03;
Metric coefficient g, at point x
"""
return _gyoto_std.Minkowski_gmunu(self, *args)
def christoffel(self, *args):
"""
christoffel(Minkowski self, double [4][4][4] dst, double const * x) -> int
christoffel(Minkowski self, double const [8] coord, int const alpha, int const mu, int const nu) -> double
Chistoffel symbol.
Value of Christoffel symbol at point (x1, x2, x3).
"""
return _gyoto_std.Minkowski_christoffel(self, *args)
def observerTetrad(self, obskind, pos, fourvel, screen1, screen2, screen3):
"""
observerTetrad(Minkowski self, std::string const obskind, double const [4] pos, double [4] fourvel, double [4] screen1, double [4] screen2, double [4] screen3)
Computes the orthonormal local tetrad of the observer.
Parameters:
-----------
obskind: input: kind of observer (eg:
"ZAMO","KeplerianObserver"...)
pos: input: position,
fourvel: output: observer 4-velocity (norm -1)
screen1: output: first vector in the screen plane
screen2: output: second vector in the screen plane
screen3: output: vector normal to the screen
"""
return _gyoto_std.Minkowski_observerTetrad(self, obskind, pos, fourvel, screen1, screen2, screen3)
def __init__(self, *args):
"""
__init__(Gyoto::Metric::Minkowski self) -> Minkowski
__init__(Gyoto::Metric::Minkowski self, Metric base) -> Minkowski
"""
this = _gyoto_std.new_Minkowski(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _gyoto_std.delete_Minkowski
__del__ = lambda self: None
Minkowski_swigregister = _gyoto_std.Minkowski_swigregister
Minkowski_swigregister(Minkowski)
Minkowski.properties = _gyoto_std.cvar.Minkowski_properties
class PowerLaw(gyoto.Spectrum):
"""
I_nu=constant_*nu^exponent_.
Light emitted by e.g. a Star.
XML stanza:
C++ includes: GyotoPowerLawSpectrum.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Spectrum]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PowerLaw, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Spectrum]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, PowerLaw, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(PowerLaw self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.PowerLaw_getProperties(self)
def clone(self):
"""
clone(PowerLaw self) -> PowerLaw
Cloner.
"""
return _gyoto_std.PowerLaw_clone(self)
def constant(self, *args):
"""
constant(PowerLaw self) -> double
constant(PowerLaw self, double arg2)
Set constant_.
"""
return _gyoto_std.PowerLaw_constant(self, *args)
def exponent(self, *args):
"""
exponent(PowerLaw self) -> double
exponent(PowerLaw self, double arg2)
Set exponent_.
"""
return _gyoto_std.PowerLaw_exponent(self, *args)
def __call__(self, *args):
"""
__call__(PowerLaw self, double nu, double opacity, double ds) -> double
__call__(PowerLaw self, double nu) -> double
"""
return _gyoto_std.PowerLaw___call__(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Spectrum::PowerLaw self) -> PowerLaw
__init__(Gyoto::Spectrum::PowerLaw self, double exponent, double constant=1.) -> PowerLaw
__init__(Gyoto::Spectrum::PowerLaw self, double exponent) -> PowerLaw
__init__(Gyoto::Spectrum::PowerLaw self, Spectrum base) -> PowerLaw
Constructor setting exponent_ and optionally constant_.
"""
this = _gyoto_std.new_PowerLaw(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _gyoto_std.delete_PowerLaw
__del__ = lambda self: None
PowerLaw_swigregister = _gyoto_std.PowerLaw_swigregister
PowerLaw_swigregister(PowerLaw)
PowerLaw.properties = _gyoto_std.cvar.PowerLaw_properties
class BlackBody(gyoto.Spectrum):
"""
Black Body.
Light emitted by e.g. a Star.
Example XML entity:
C++ includes: GyotoBlackBodySpectrum.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Spectrum]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, BlackBody, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Spectrum]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, BlackBody, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(BlackBody self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.BlackBody_getProperties(self)
def clone(self):
"""
clone(BlackBody self) -> BlackBody
Cloner.
"""
return _gyoto_std.BlackBody_clone(self)
def temperature(self, *args):
"""
temperature(BlackBody self) -> double
temperature(BlackBody self, double arg2)
Set constant.
"""
return _gyoto_std.BlackBody_temperature(self, *args)
def scaling(self, *args):
"""
scaling(BlackBody self) -> double
scaling(BlackBody self, double arg2)
Set exponent.
"""
return _gyoto_std.BlackBody_scaling(self, *args)
def __call__(self, *args):
"""
__call__(BlackBody self, double nu, double opacity, double ds) -> double
__call__(BlackBody self, double nu) -> double
"""
return _gyoto_std.BlackBody___call__(self, *args)
def __init__(self, *args):
"""
__init__(Gyoto::Spectrum::BlackBody self) -> BlackBody
__init__(Gyoto::Spectrum::BlackBody self, double T, double scaling=1.) -> BlackBody
__init__(Gyoto::Spectrum::BlackBody self, double T) -> BlackBody
__init__(Gyoto::Spectrum::BlackBody self, Spectrum base) -> BlackBody
Constructor setting T_ and cst_.
"""
this = _gyoto_std.new_BlackBody(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _gyoto_std.delete_BlackBody
__del__ = lambda self: None
BlackBody_swigregister = _gyoto_std.BlackBody_swigregister
BlackBody_swigregister(BlackBody)
BlackBody.properties = _gyoto_std.cvar.BlackBody_properties
class ThermalBremsstrahlung(gyoto.Spectrum):
"""
Thermal brems spectrum.
Example XML entity:
C++ includes: GyotoThermalBremsstrahlungSpectrum.h
"""
__swig_setmethods__ = {}
for _s in [gyoto.Spectrum]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, ThermalBremsstrahlung, name, value)
__swig_getmethods__ = {}
for _s in [gyoto.Spectrum]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, ThermalBremsstrahlung, name)
__repr__ = _swig_repr
def getProperties(self):
"""
getProperties(ThermalBremsstrahlung self) -> Property
Get list of properties.
This method is declared automatically by the GYOTO_OBJECT macro and
defined automatically by the GYOTO_PROPERTY_END macro.
"""
return _gyoto_std.ThermalBremsstrahlung_getProperties(self)
def clone(self):
"""
clone(ThermalBremsstrahlung self) -> ThermalBremsstrahlung
Constructor setting T_ and cst_.
Cloner
"""
return _gyoto_std.ThermalBremsstrahlung_clone(self)
def __call__(self, *args):
"""
__call__(ThermalBremsstrahlung self, double nu, double opacity, double ds) -> double
__call__(ThermalBremsstrahlung self, double nu) -> double
"""
return _gyoto_std.ThermalBremsstrahlung___call__(self, *args)
def temperature(self, *args):
"""
temperature(ThermalBremsstrahlung self) -> double
temperature(ThermalBremsstrahlung self, double tt)
"""
return _gyoto_std.ThermalBremsstrahlung_temperature(self, *args)
def massdensityCGS(self, *args):
"""
massdensityCGS(ThermalBremsstrahlung self) -> double
massdensityCGS(ThermalBremsstrahlung self, double rho)
"""
return _gyoto_std.ThermalBremsstrahlung_massdensityCGS(self, *args)
def jnuCGS(self, nu):
"""
jnuCGS(ThermalBremsstrahlung self, double nu) -> double
Returns the emission coefficient j_nu in cgs units i.e. erg cm^-3 s^-1
ster^-1 Hz^-1
Parameters:
-----------
nu: frequency in Hz
"""
return _gyoto_std.ThermalBremsstrahlung_jnuCGS(self, nu)
def alphanuCGS(self, nu):
"""
alphanuCGS(ThermalBremsstrahlung self, double nu) -> double
Returns the absorption coefficient alpha_nu in cgs units [cm^-1]
Parameters:
-----------
nu: frequency in Hz
"""
return _gyoto_std.ThermalBremsstrahlung_alphanuCGS(self, nu)
def __init__(self, *args):
"""
__init__(Gyoto::Spectrum::ThermalBremsstrahlung self) -> ThermalBremsstrahlung
__init__(Gyoto::Spectrum::ThermalBremsstrahlung self, Spectrum base) -> ThermalBremsstrahlung
"""
this = _gyoto_std.new_ThermalBremsstrahlung(*args)
try:
self.this.append(this)
except Exception:
self.this = this
__swig_destroy__ = _gyoto_std.delete_ThermalBremsstrahlung
__del__ = lambda self: None
ThermalBremsstrahlung_swigregister = _gyoto_std.ThermalBremsstrahlung_swigregister
ThermalBremsstrahlung_swigregister(ThermalBremsstrahlung)
ThermalBremsstrahlung.properties = _gyoto_std.cvar.ThermalBremsstrahlung_properties
# This file is compatible with both classic and new-style classes.
|