visualdynamics.gui.main_window¶
main_window
¶
The main application window: the project tree, the 3-D, plot and table views beside it, and the display unit system.
Classes:
| Name | Description |
|---|---|
MainWindow |
The application window: a project tree, and panes that show |
Classes¶
MainWindow
¶
Bases: QMainWindow
The application window: a project tree, and panes that show whatever is selected in it.
The window holds a Project, the same object a script builds, with
the same verbs on it, so a project built in the window and one built
by a script are the same project and each opens the other's files.
Every button runs one of those verbs and writes a line in the status
bar. Nothing is computed in this file that a script cannot compute
without it.
What the window adds is the display: which pane suits what is selected, which reading of it is wanted, and the editing of the things that are edited rather than computed, such as units, channel tables, geometry and reports.
Build the window, with an empty project.
offscreen_3d replaces the embedded VTK views with off-screen
plotters. VTK's Qt widget cannot run under Qt's offscreen
platform, so the headless tests use this to run the full render
path.
Methods:
| Name | Description |
|---|---|
set_playing |
Start or stop the animation. |
choose_appearance |
File → Appearance: remember |
apply_theme |
Apply the light or dark theme |
closeEvent |
Close every VTK view (the scene, the 3-D data view and the MAC |
show_run_log |
Show the Run Log dock, built the first time and put back where |
set_log_only |
Show the Run Log alone, filling the window, with the project |
add_object |
Add |
show_object |
Give an object already in the project its row in the tree, and |
add_solid_block_act |
Open the add pane for a solid block in the selected geometry: |
add_solid_cylinder_act |
Open the add pane for a solid cylinder in the selected |
add_solid_section_act |
Open the add pane for a solid section in the selected |
add_solid_cone_act |
Open the add pane for a cone in the selected geometry: a |
add_solid_sphere_act |
Open the add pane for a sphere in the selected geometry: a |
add_solid_plate_act |
Open the add pane for a plate in the selected geometry: a |
add_solid_disk_act |
Open the add pane for a disk in the selected geometry: a |
combine_solids_act |
Combine the picked solids into one by |
separate_solids_act |
Take the picked booleans and patterns apart, with the |
mesh_solids_act |
Open the Mesh Solids pane on the picked solids. |
close_mesh_solids_pane |
Close the Mesh Solids pane and remove its preview. With |
pattern_solids_act |
Open the Pattern pane on the picked solids. |
close_pattern_pane |
Close the Pattern pane and remove its preview. With |
current_reference |
|
current_object |
The object the current tree item belongs to (a sub-item gives |
selected_references |
|
object_item |
The object's row for |
delete_selected |
Delete what is selected. |
acts_for |
The acts the selection can take, as a list of `(verb, label, |
save_animation |
Save the 3-D view's animation as an MP4, the way it plays: this |
refresh_selected |
Recompute the selected stale object. This is the bar's |
generate_report_act |
The bar's Generate Report. |
refresh_object |
Recompute the stale object |
linked_group |
The names in |
link_role |
The role of |
set_link_role |
Give |
linked_geometry |
|
unlink_selected |
Take the selected objects out of their object groups. A group |
set_project_type |
Set the project type, or clear it with None. |
work_up |
The tree bar's Automatic: run the project's |
delete_entity_rows |
Delete the rows selected in the geometry table being edited. |
define_units |
Open the units pane for what is selected. |
set_active_geometry |
Make |
refresh_compatibility |
Check the project's objects against the active geometry again, |
show_units_panel |
Open the units pane on the object |
rename_selected |
Start editing the selected object's name in the tree. |
rename_object |
Rename the object |
edit_entities |
Edit the selected part of a geometry in a table beside the 3-D |
set_add_mode |
Turn on or off adding entities by clicking in the 3-D view, |
merge_groups_act |
Merge element groups |
tie_selected |
Tie the selected elements, either to the nearest nodes of an |
set_rotate_mode |
Turn on or off the rings for turning the coordinate system |
reset_rotation |
Set the coordinate system being turned back to no rotation, |
hover_at |
Light up the entity under the pixel |
select_entity |
Select the table row for an entity picked in the 3-D view, and |
about |
Show the About box: the version, the copyright, and the alpha |
check_for_updates |
File → Check for Updates. |
dragEnterEvent |
Accept a drag of files anywhere on the window. |
event |
Move keyboard focus to a hidden widget while the window is |
truncate_rattlesnake_file |
File → Truncate Rattlesnake File. |
import_paths |
Import several files, report any failures once at the end, and |
save_test |
Save the whole project, every object under its name, as one |
copy_selected |
Cmd/Ctrl+C in the tree: copy the selected objects to the |
paste_objects |
Cmd/Ctrl+V in the tree: paste whatever the clipboard holds |
save_selected |
Save the selected object, in the format chosen in the save |
reveal_scene |
Bring up the 3-D view beside what is already showing, for a |
render_current |
Draw everything selected: geometries are drawn together, and |
name_object_group |
Name the object group |
add_matches |
Add the selected MAC squares to the matched modes of this pair |
generate_signal_act |
Open Generate Signal on the selected object, or put it away |
close_signal_pane |
Put the Generate Signal pane away, keeping what it showed. |
modal_response_act |
Open Compute Modal Responses on the selected time history or |
close_modal_pane |
Put the Compute Modal Responses pane away. |
synthesize_modal_frfs_act |
Open Synthesize Modal FRFs on the selected shape set (its |
close_modal_frf_pane |
Put the Synthesize Modal FRFs pane away. |
make_realizable |
Repair the selected CSD or specification to the nearest |
make_field_specification |
Write the specification the Field Limit reading shows into the |
compute_spectra |
Compute averaged spectra from the selected time history, one |
project_onto_basis |
Project the other selected mode set onto the Basis set's DOFs, |
export_state_space_act |
Open Export State-Space Model on the selected shape set and |
close_state_space_pane |
Put the Export State-Space Model pane away. |
transform_act |
The bar's Transform to Modal Coordinates. |
expand_act |
The bar's Expand to Physical Responses: modal FRFs and a |
close_channel_frf_pane |
Put the pane away. |
transform_selection |
Transform the selected data through the selected shape set, |
generate_typed_report |
Generate the reports the project's type calls for: one, or for |
extract_sine_levels |
Extract each specification tone's level from the time history |
compute_psds |
Compute averaged auto-power spectral densities from the |
compute_octave |
Compute the selected PSD, CPSD or specification on proportional |
compute_frfs |
Compute FRFs from the selected time history, and add them |
compute_multiple_coherence |
Compute the multiple coherence of the selected time history, |
compute_srs |
Compute shock response spectra from the selected time history, |
filter_data |
Filter every channel of the selected time history and add the |
truncate_data |
Cut every channel of the selected time history to its span, and |
resample_data |
Take the selected time history to the lower rate the resample |
generate_rigid_body_modes |
Make the six rigid-body mode shapes of the selected geometry, |
mate_surfaces_act |
Open Mate Surfaces on element groups |
edit_mated_surfaces_act |
Open Mate Surfaces on a kept set, to change its nodes, how it |
mate_node_at |
The node of the picked patch's side being picked whose place is |
toggle_mate_node |
Add |
close_mate_pane |
Close the Mate Surfaces pane, its marks and its clicks. |
plan_instrumentation_act |
Open Plan Instrumentation on the selected shape set, on the |
plan_surface_at |
The surface under the device pixel |
toggle_plan_surface |
Leave |
close_instrumentation_pane |
Put Plan Instrumentation away; nothing is added. |
merge_nodes_act |
Open the Merge Coincident Nodes pane on element groups |
align_meshes_act |
Open Align Meshes, in the same pane as the merge, on element |
toggle_merge_place |
Leave place |
merge_place_at |
The index of the place whose mark is under the pixel |
close_merge_pane |
Close the merge pane, removing its marks and its handling of |
new_geometry_act |
Add an empty geometry to the project, in the display length |
new_channel_table_act |
Add an empty channel table to the project and select it. Its |
add_channel_act |
Add a blank channel to the selected channel table, numbered |
edit_solid_pane |
Open the add pane on solid |
close_mesh_pane |
Close the add pane, removing its preview and the gizmo. |
set_creator_name |
File → Creator Name…: set the name an exported ESCDF file |
set_view_act |
Make the view on screen the selected geometry's default view. |
solve_modes_act |
Solve the normal modes of the selected geometry, from its |
convert_to_specification_act |
The bar's Convert to Specification: the selected PSD or CPSD |
convert_to_psd_act |
The bar's Convert to PSD (Convert to CPSD with cross terms): |
close_lines_pane |
Put the Convert to PSD/CPSD pane away. |
integrate_history |
Integrate the selected time history once (acceleration to |
differentiate_history |
Differentiate the selected time history once (displacement to |
compute_cpsds |
Compute the full cross-spectral matrix of the selected time |
generate_report |
Add a new Report object from a starter template, select it to |
export_report_template |
Save the selected report on its own, as a template another |
reports_from_runs |
File → Reports from Runs…: run |
export_report |
Export the selected report as one self-contained HTML file. |
export_report_pdf |
Export the selected report as a paginated PDF |
issue_report |
Issue the selected report as a PDF under its number and |
attach_to_report |
Add a file to the data index from the report editor: the |
unindex_from_report |
Take a file out of the data index from the report editor; |
merge_selected |
Replace the selected objects with one object that combines |
start_modal_fit |
Start fitting real normal modes to the selected FRF object, one |
refine_all_modes |
Fit the confirmed modes again, neighbors together: the poles |
find_next_mode |
Move the cursor to the next mode to fit: the largest CMIF peak |
fit_pending_mode |
Fit the pending mode at the cursor without confirming it, and |
rescale_data |
Make the selected time history with its picked records (all |
Attributes:
| Name | Type | Description |
|---|---|---|
objects |
Project
|
The project's objects: a mapping of name to object. |
speed |
float
|
How fast the animation runs, as a multiple of the normal rate. |
editing_family |
str | None
|
The element family being added to, read from what the table |
element_type |
tuple[int, int]
|
|
Source code in src/visualdynamics/gui/main_window.py
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 | |
Attributes¶
editing_family
property
¶
The element family being added to, read from what the table is being edited for: a family row's own family, or for element group rows the family of the first element they hold. None outside the elements and element groups tables, or for groups that hold no elements.
element_type
property
¶
(type code, node count) of the element the clicks build. The
family being edited decides it, and an element group with no
elements yet gets a triangle, the smallest face.
Methods:¶
set_playing
¶
Start or stop the animation.
Source code in src/visualdynamics/gui/main_window.py
choose_appearance
¶
File → Appearance: remember choice ('light', 'dark' or
'system') and apply it now. 'system' follows the platform's
appearance again.
Source code in src/visualdynamics/gui/main_window.py
apply_theme
¶
Apply the light or dark theme name to every part of the
window. By default it is the chosen one: this launch's flag, the
remembered appearance, or the platform's.
Source code in src/visualdynamics/gui/main_window.py
closeEvent
¶
Close every VTK view (the scene, the 3-D data view and the MAC bars) before Qt destroys the widgets.
Without this, closing the window after a 3-D view has rendered crashes: the render window is torn down with its GL context still live.
Source code in src/visualdynamics/gui/main_window.py
show_run_log
¶
Show the Run Log dock, built the first time and put back where it was last left, and return it.
path names a log: one that exists is opened (read-only, saying
who holds it, when another program is writing it); one that does
not is offered to the New Log form, written only when the keeper
confirms it. log_only sets the layout (set_log_only).
Source code in src/visualdynamics/gui/main_window.py
set_log_only
¶
Show the Run Log alone, filling the window, with the project
tree and the 3-D and plot panes hidden (on), or the whole window
with the dock back where it was left.
Nothing is drawn while the log is alone, so no 3-D view is built
and no OpenGL check is run. Going back to the whole window draws
what is selected, and the first 3-D view it builds asks the check
first (opengl.ready), as every first 3-D view does.
Source code in src/visualdynamics/gui/main_window.py
add_object
¶
add_object(name: str, obj: Any, alternate: str | None = None, source: str | None = None, key: Any = None) -> str
Add obj to the project under a unique name, give it a row in
the tree, and return the name used.
When name is taken, alternate is tried first, and a name
still taken is numbered. source is the file the object was read
from and key what that file's reader called it; both go in the
row's tooltip, because the name says neither.
Source code in src/visualdynamics/gui/main_window.py
show_object
¶
show_object(name: str, source: str | None = None, key: Any = None, select: bool = True, *, batch: bool = False) -> str
Give an object already in the project its row in the tree, and return its name.
A project verb (a computation, a fit, a projection) puts its
result in the project, and this adds the row for it. source
and key go in the tooltip, as in add_object. With select,
the new row is selected. An object that has its row already
keeps it, brought up to date, rather than gaining a second.
Source code in src/visualdynamics/gui/main_window.py
add_solid_block_act
¶
Open the add pane for a solid block in the selected geometry:
a center, three widths, three angles and a name. Each Add runs
the project's add_solid_block.
Source code in src/visualdynamics/gui/main_window.py
add_solid_cylinder_act
¶
Open the add pane for a solid cylinder in the selected
geometry: a center, a radius, a length along its own Z, three
angles and a name. Each Add runs the project's
add_solid_cylinder.
Source code in src/visualdynamics/gui/main_window.py
add_solid_section_act
¶
Open the add pane for a solid section in the selected
geometry: an I-beam, channel, tee, angle or tube, its dimensions,
a length along its own Z, a center, three angles and a name. Each
Add runs the project's add_solid_section.
Source code in src/visualdynamics/gui/main_window.py
add_solid_cone_act
¶
Open the add pane for a cone in the selected geometry: a
center, a base radius, a top radius, a height along its own Z,
three angles and a name. Each Add runs the project's
add_solid_cone.
Source code in src/visualdynamics/gui/main_window.py
add_solid_sphere_act
¶
Open the add pane for a sphere in the selected geometry: a
center, a radius and a name. Each Add runs the project's
add_solid_sphere.
add_solid_plate_act
¶
Open the add pane for a plate in the selected geometry: a
center, two widths in its own X-Y plane, three angles and a
name. Each Add runs the project's add_solid_plate.
Source code in src/visualdynamics/gui/main_window.py
add_solid_disk_act
¶
Open the add pane for a disk in the selected geometry: a
center, a radius in its own X-Y plane, three angles and a name.
Each Add runs the project's add_solid_disk.
Source code in src/visualdynamics/gui/main_window.py
combine_solids_act
¶
Combine the picked solids into one by operation ('union',
'subtract' or 'intersect'), with the project's combine_solids,
and select the new solid.
The solids are passed in tree order, so the first in the tree is the body a subtraction cuts. A refusal is shown in the status bar.
Source code in src/visualdynamics/gui/main_window.py
separate_solids_act
¶
Take the picked booleans and patterns apart, with the
project's separate_solids, and select the solids they were made
of.
Source code in src/visualdynamics/gui/main_window.py
mesh_solids_act
¶
Open the Mesh Solids pane on the picked solids.
The pane beside the view has the element size, starting at half
the thinnest feature, and the bricks it would make are drawn as
it is typed. Mesh runs the project's mesh_solids.
Source code in src/visualdynamics/gui/main_window.py
close_mesh_solids_pane
¶
Close the Mesh Solids pane and remove its preview. With
redraw, the view is drawn again.
Source code in src/visualdynamics/gui/main_window.py
pattern_solids_act
¶
Open the Pattern pane on the picked solids.
The pane has how many copies along X, Y and Z and how far apart,
and the copies are drawn as they are typed. Pattern runs the
project's pattern_solids, which makes one solid of them.
Source code in src/visualdynamics/gui/main_window.py
close_pattern_pane
¶
Close the Pattern pane and remove its preview. With redraw,
the view is drawn again.
Source code in src/visualdynamics/gui/main_window.py
current_reference
¶
(kind, object, detail) for the current tree item, where
detail is an index or a component; all None when there is
none.
Source code in src/visualdynamics/gui/main_window.py
current_object
¶
The object the current tree item belongs to (a sub-item gives its object), or None.
selected_references
¶
(kind, name, object, detail) for every selected tree item.
The project row stands for every object in the project, records picked in an object's grid stand for themselves, and gray slots are left out.
Source code in src/visualdynamics/gui/main_window.py
object_item
¶
The object's row for item (the current item by default),
found by walking up the tree; None for the project row.
Source code in src/visualdynamics/gui/main_window.py
delete_selected
¶
Delete what is selected.
While a geometry's table is being edited, its selected rows are deleted. Otherwise, picked solids, entities (nodes, elements and the like) or components are deleted from their geometry, and picked records, modes, channels or photos from their object, and picked sets of mated surfaces from their geometry. Only when no sub-item is picked are whole objects deleted, so an object selected beside a sub-item is not deleted with it.
Source code in src/visualdynamics/gui/main_window.py
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 | |
acts_for
¶
The acts the selection can take, as a list of (verb, label,
icon, handler, tooltip) in the bar's order.
names is the selection. When it is left out, it is read from the
tree, a record pick counting as its object. With the project row
selected, the one act offered is the project's report. A stale
object offers Recompute first, ahead of anything else it can do.
Source code in src/visualdynamics/gui/main_window.py
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 | |
save_animation
¶
Save the 3-D view's animation as an MP4, the way it plays: this camera, scale and speed. Returns the path, or None when there is no animation or the save was canceled or failed.
A mode shape's phase is saved as whole cycles lasting at least six
seconds, and a record or a sweep of lines is saved once through
(viz.animate.cycle_parameters and sweep_parameters, the same
rule a script's movie= uses). Each frame is drawn the way the
window draws it, so the caption an envelope writes for each line
is in every frame, and playback is put back where it was
afterwards. A record or a sweep of lines is saved with its plot
under the scene, the cursor where the frame is (movie.over_plot),
so the movie says where in the record each frame is. With path,
no dialog is shown.
Source code in src/visualdynamics/gui/main_window.py
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 | |
refresh_selected
¶
Recompute the selected stale object. This is the bar's Recompute, the same act as a click on the object's badge.
Source code in src/visualdynamics/gui/main_window.py
generate_report_act
¶
The bar's Generate Report.
A project with a type gets its report at once. A project without one gets a menu of the built-in templates. Whenever there are saved templates, the menu is shown in both cases, with the saved templates listed after the built-in ones.
Source code in src/visualdynamics/gui/main_window.py
refresh_object
¶
Recompute the stale object name in place, as a click on its
badge does. A refusal is shown in the status bar.
Source code in src/visualdynamics/gui/main_window.py
linked_group
¶
The names in name's object group, name included, or None
when it is not linked.
Source code in src/visualdynamics/gui/main_window.py
link_role
¶
The role of name's object group: 'Basis', or None for an
object without a role or not linked.
The Basis group sets the DOFs comparisons are made in: other sets are projected onto its DOFs, and its modes are the MAC's rows and the baseline of the frequency error.
Source code in src/visualdynamics/gui/main_window.py
set_link_role
¶
Give name's object group the role role ('Basis'), or clear
it with None.
Only one group has a role at a time, so giving it to this group takes it from any other. It is set explicitly so that nothing later has to guess which group is which.
Source code in src/visualdynamics/gui/main_window.py
linked_geometry
¶
linked_geometry(name: str) -> tuple[str, Geometry] | None
(geometry name, geometry) for the geometry in name's object
group, or None. Only a link counts; no geometry is guessed.
Source code in src/visualdynamics/gui/main_window.py
unlink_selected
¶
Take the selected objects out of their object groups. A group left with one member is removed.
Source code in src/visualdynamics/gui/main_window.py
set_project_type
¶
Set the project type, or clear it with None.
The tree then shows a gray slot for everything that type's report expects, and the status bar says how many are missing. The type does not choose a reading: a time history opens plain whatever the project type is.
Source code in src/visualdynamics/gui/main_window.py
work_up
¶
The tree bar's Automatic: run the project's work_up, give
every object it made a row, and select the last one made.
It needs a project type, and says so when there is none. The status bar lists what was added and what is still missing.
Source code in src/visualdynamics/gui/main_window.py
delete_entity_rows
¶
Delete the rows selected in the geometry table being edited.
Source code in src/visualdynamics/gui/main_window.py
define_units
¶
Open the units pane for what is selected.
With individual records selected, only those are given units; selecting an object (or its category) covers all of its records. Channel tables are skipped. The pane shows one object; with several selected, it opens on the first and the status bar says to select the others one at a time.
Source code in src/visualdynamics/gui/main_window.py
set_active_geometry
¶
Make name (the selected object by default) the active
geometry, the one every other object is checked against.
Source code in src/visualdynamics/gui/main_window.py
refresh_compatibility
¶
Check the project's objects against the active geometry again, and repaint the tree.
It runs when the project changes (an import, a delete, a rename or a new active geometry), not on a selection or a render. With no active geometry, the first geometry in the project is used.
Source code in src/visualdynamics/gui/main_window.py
show_units_panel
¶
Open the units pane on the object name, beside the plot.
records limits the table to those records (all of them when
None). An FRF gets two tables, one for its response channels and
one for its reference channels, because a matrix of N×M records
has only N+M channel units to declare. Everything else uses the
first table alone.
Source code in src/visualdynamics/gui/main_window.py
rename_selected
¶
Start editing the selected object's name in the tree.
The project's own row can be renamed too, and a photo picked in its grid is renamed itself rather than the object holding it.
Source code in src/visualdynamics/gui/main_window.py
rename_object
¶
Rename the object old to new from code, and return the name
used. A name already taken is numbered the way Project.add
numbers it.
Source code in src/visualdynamics/gui/main_window.py
edit_entities
¶
Edit the selected part of a geometry in a table beside the 3-D view: its nodes, its coordinate systems, a family of its elements, or its element groups.
Source code in src/visualdynamics/gui/main_window.py
set_add_mode
¶
Turn on or off adding entities by clicking in the 3-D view, while a geometry's table is being edited.
In the element groups table there is nothing to click, so the button adds one element group and comes back up.
Source code in src/visualdynamics/gui/main_window.py
merge_groups_act
¶
Merge element groups groups of geometry name with the
project's merge_groups, and say in the status bar what was
merged, or why it was refused.
Source code in src/visualdynamics/gui/main_window.py
tie_selected
¶
Tie the selected elements, either to the nearest nodes of an element group chosen from a menu, or to a second selection of elements, picked next and tied on the second press.
Source code in src/visualdynamics/gui/main_window.py
set_rotate_mode
¶
Turn on or off the rings for turning the coordinate system being edited. While a ring is dragged, it has the mouse.
Source code in src/visualdynamics/gui/main_window.py
reset_rotation
¶
Set the coordinate system being turned back to no rotation, keeping its origin.
Source code in src/visualdynamics/gui/main_window.py
hover_at
¶
Light up the entity under the pixel (x, y), and return it
(None when there is none).
Source code in src/visualdynamics/gui/main_window.py
select_entity
¶
Select the table row for an entity picked in the 3-D view, and return the row (None when the entity has none, or when no table is being edited).
The same rule applies to every kind of entity. A plain click
selects only what was clicked; with extend (the modifier key),
a click adds to the selection, and clicking something already
selected takes it back out.
Source code in src/visualdynamics/gui/main_window.py
about
¶
Show the About box: the version, the copyright, and the alpha notice with the contact address.
It is the one place to read the version without the network or a relaunch.
Source code in src/visualdynamics/gui/main_window.py
check_for_updates
¶
File → Check for Updates.
In the packaged macOS app, Sparkle does the whole job in its own
window (gui/updater.py): it checks, downloads, verifies the
update's signature and replaces the app.
Everywhere else, the window reads the release manifest from
visualdynamics.org (update.attempt) and says what it found. A
newer version is shown in a dialog with the page to open in the
browser, or for a pip install the command to run; nothing is
downloaded or run. The request runs off the main thread, waits
update.ASKED_TIMEOUT, and when it fails the status bar says
why (a proxy, a filtered domain, a certificate that cannot be
verified, a slow network). This menu item is the only place the
application checks; there is no check at startup.
Source code in src/visualdynamics/gui/main_window.py
dragEnterEvent
¶
Accept a drag of files anywhere on the window.
On a fresh window the tree is a strip about 90 px wide, and a drop that missed it would do nothing at all, which reads as the drop being ignored. So the whole window takes files.
Source code in src/visualdynamics/gui/main_window.py
event
¶
Move keyboard focus to a hidden widget while the window is inactive, and give it back when the window is active again.
macOS 26 with Qt 6.11 discards a Finder drop released over the widget that had focus when the application was deactivated. The focus is moved to a zero-size widget that no drop can land on, and an inactive window has no keyboard, so nothing is lost in between. Focus is not moved while one of the application's own popups is open.
Source code in src/visualdynamics/gui/main_window.py
truncate_rattlesnake_file
¶
File → Truncate Rattlesnake File.
A run (.nc4) is picked in a file dialog and shown in the
stream window dialog without its Import button. Save Truncated
Copy writes the run cut to the stretch chosen. It works on any
run, not only one large enough to be asked about on import, and
refuses a file with no streamed time data.
Source code in src/visualdynamics/gui/main_window.py
import_paths
¶
Import several files, report any failures once at the end, and return the names of the objects added.
Images are not objects of their own: they are added together to the project's Photos object, which is created on first use. Paths that arrive while an import is running wait for it to finish.
Source code in src/visualdynamics/gui/main_window.py
save_test
¶
Save the whole project, every object under its name, as one
file: a .vdyn, a MATLAB .mat, or an ESCDF .h5, chosen in the
save dialog.
Source code in src/visualdynamics/gui/main_window.py
copy_selected
¶
Cmd/Ctrl+C in the tree: copy the selected objects to the clipboard, as objects and as files, and say so in the status bar. Solid rows go on the clipboard as solids, to paste into a geometry.
Source code in src/visualdynamics/gui/main_window.py
paste_objects
¶
Cmd/Ctrl+V in the tree: paste whatever the clipboard holds that the tree can take (objects copied from a tree, solids copied from a geometry's rows, or files).
Source code in src/visualdynamics/gui/main_window.py
save_selected
¶
Save the selected object, in the format chosen in the save
dialog. With the project row selected, the whole project is saved
(save_test).
The format is picked from the dialog's file-type list. .vdyn is
first because it is the only format that reads back complete; the
rest are the formats this object can be written in, so a mode
shape is never offered a format that cannot hold one.
Source code in src/visualdynamics/gui/main_window.py
reveal_scene
¶
Bring up the 3-D view beside what is already showing, for a
reading that draws on it, without resetting the plot bar's
controls as _show_views does.
Source code in src/visualdynamics/gui/main_window.py
render_current
¶
Draw everything selected: geometries are drawn together, and curves share axes.
Source code in src/visualdynamics/gui/main_window.py
10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 | |
name_object_group
¶
Name the object group member is in, and show the name on its
bracket. When name is not given, it is asked for in a dialog,
and a blank name removes it. The name is what the group's ESCDF
activity is called on export.
Source code in src/visualdynamics/gui/main_window.py
add_matches
¶
Add the selected MAC squares to the matched modes of this pair of mode sets.
The project creates the MatchedModes object or adds to it, links it to the Basis group, and keeps the MAC values as they were displayed, because computing them again by name would not give the same values for a projected comparison.
Source code in src/visualdynamics/gui/main_window.py
11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 | |
generate_signal_act
¶
Open Generate Signal on the selected object, or put it away
when it is open on it already. The pane previews the signal as
its settings change, and its button makes it
(Project.generate_signal).
Source code in src/visualdynamics/gui/main_window.py
close_signal_pane
¶
Put the Generate Signal pane away, keeping what it showed.
modal_response_act
¶
Open Compute Modal Responses on the selected time history or
force CPSD and shape set (its picked modes, or all), or put it
away when it is open on them. The pane previews the responses;
Compute makes them an object of their own
(Project.compute_modal_responses).
Source code in src/visualdynamics/gui/main_window.py
close_modal_pane
¶
synthesize_modal_frfs_act
¶
Open Synthesize Modal FRFs on the selected shape set (its
picked modes, or all), or put it away when it is open on them.
The pane previews each mode's FRF; Generate makes them an object
of their own (Project.synthesize_modal_frfs).
Source code in src/visualdynamics/gui/main_window.py
close_modal_frf_pane
¶
make_realizable
¶
Repair the selected CSD or specification to the nearest realizable matrix and add the result beside it: the Realizability reading's apply button, the verb a script calls.
Source code in src/visualdynamics/gui/main_window.py
make_field_specification
¶
Write the specification the Field Limit reading shows into the
project, with the panel's margin (Project.derive_specification),
on the worker. This is the reading's apply button; it ends the
reading and shows what it made.
Source code in src/visualdynamics/gui/main_window.py
compute_spectra
¶
Compute averaged spectra from the selected time history, one record per channel, and add them to the project, linked to it.
Source code in src/visualdynamics/gui/main_window.py
project_onto_basis
¶
Project the other selected mode set onto the Basis set's DOFs, and add the result as a new object.
A node match tolerance, in percent of the basis model's size, is asked for first. The project does the projection and the linking. Rows picked in a channel table's grid beside the set narrow the target to those channels.
Source code in src/visualdynamics/gui/main_window.py
17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 | |
export_state_space_act
¶
Open Export State-Space Model on the selected shape set and
channel table, or put it away when it is open on them. The pane
previews the model's drive-point FRFs; Export writes the file
(Project.export_state_space).
Source code in src/visualdynamics/gui/main_window.py
close_state_space_pane
¶
Put the Export State-Space Model pane away.
transform_act
¶
expand_act
¶
The bar's Expand to Physical Responses: modal FRFs and a channel table open its pane, anything else expands as it is.
Source code in src/visualdynamics/gui/main_window.py
close_channel_frf_pane
¶
transform_selection
¶
Transform the selected data through the selected shape set, modal responses from physical or physical from modal, and add the result to the project with the verb a script calls.
direction is the way the act asked for: 'physical' transforms,
'modal' expands; left out, the way the selection reads. A
history of forces with modal responses appended offers both.
A transform has no settings, so there is no pane and no preview,
as with Integrate. What was done is said in the status bar and
kept on the new object's transform_report.
Source code in src/visualdynamics/gui/main_window.py
generate_typed_report
¶
Generate the reports the project's type calls for: one, or for a random-and-sine project a random report and a sine report.
Source code in src/visualdynamics/gui/main_window.py
extract_sine_levels
¶
Extract each specification tone's level from the time history
time_name (the selected one by default), and add the levels to
the project beside it.
The result is selected, so the comparison is one click away.
Source code in src/visualdynamics/gui/main_window.py
compute_psds
¶
Compute averaged auto-power spectral densities from the selected time history, one record per channel, and add them to the project, linked to it.
Source code in src/visualdynamics/gui/main_window.py
compute_octave
¶
Compute the selected PSD, CPSD or specification on proportional bands, and add the result beside it.
This is the Octave Bands panel's apply button, and it uses the bands per octave set in the panel, so it makes exactly the bands its preview draws.
Source code in src/visualdynamics/gui/main_window.py
compute_frfs
¶
Compute FRFs from the selected time history, and add them beside it.
It asks for the estimator first. The three assume the noise is in different places (on the response, on the reference, or on both), and the data cannot say which; that depends on the instrumentation, which the person who ran the test knows.
The references are the history's own excitation channels and the frames are the ones a PSD would use, so the FRFs, the PSDs and the multiple coherence beside them all describe one measurement.
Source code in src/visualdynamics/gui/main_window.py
compute_multiple_coherence
¶
Compute the multiple coherence of the selected time history, and add it beside it.
It is averaged over the same frames a PSD would be, so the two
describe one measurement; the averaging view sets both. With no
averaging set, Project.compute_multiple_coherence works one out
and stores it on the history, the way the shock calculator stores
the events it detects, so a PSD computed later uses the same
frames. The status bar says whether the averaging was set or
detected.
Source code in src/visualdynamics/gui/main_window.py
compute_srs
¶
Compute shock response spectra from the selected time history, one curve per channel per shock, and add them beside it.
The shocks are the ones stored on the history, those the shock
view shows at the time, and the spectrum's settings come from the
shock panel. With no shocks stored, Project.compute_srs runs
the detector first, so the user does not have to find the events
by hand.
Source code in src/visualdynamics/gui/main_window.py
filter_data
¶
Filter every channel of the selected time history and add the result beside it.
The settings are the history's own; with none set, the suggested
filter is used, as in Project.filter_data.
Source code in src/visualdynamics/gui/main_window.py
truncate_data
¶
Cut every channel of the selected time history to its span, and add the result beside it.
The span is the history's own. With none set, it refuses and says where to set one: there is no suggested span to use, the way Filter Data uses a suggested filter, because keeping the whole record is not a truncation.
Source code in src/visualdynamics/gui/main_window.py
resample_data
¶
Take the selected time history to the lower rate the resample view shows, filtered first, and add the result beside it.
The rate is the record's over the panel's factor and the filter
order the panel's, as Project.resample takes them.
Source code in src/visualdynamics/gui/main_window.py
generate_rigid_body_modes
¶
Make the six rigid-body mode shapes of the selected geometry, about the point the rigid-body pane shows, and add them to its object group.
It runs the same verb a script calls, so the new object records where it came from and is marked stale when its settings change.
Source code in src/visualdynamics/gui/main_window.py
mate_surfaces_act
¶
Open Mate Surfaces on element groups groups of geometry
name, or put it away when it is open on them already.
Every patch where their surfaces mate is marked in the view and
listed in the pane. A click on a node adds it to the picked
patch's side or takes it away, and Keep adds the patch to the
geometry's Mated Surfaces, tied along the surface's normal and in
its plane, each rigidly, by a stiffness or not at all
(Project.add_mated_surfaces).
Source code in src/visualdynamics/gui/main_window.py
edit_mated_surfaces_act
¶
Open Mate Surfaces on a kept set, to change its nodes, how it is joined or its name, and Save.
mate_node_at
¶
The node of the picked patch's side being picked whose place is
under the pixel (x, y), or None.
Source code in src/visualdynamics/gui/main_window.py
toggle_mate_node
¶
Add node to the picked patch's side being picked, or take it
away, as a click on it does.
Source code in src/visualdynamics/gui/main_window.py
close_mate_pane
¶
Close the Mate Surfaces pane, its marks and its clicks.
Source code in src/visualdynamics/gui/main_window.py
plan_instrumentation_act
¶
Open Plan Instrumentation on the selected shape set, on the modes picked in its grid or, with none picked, on every mode above 0 Hz.
Source code in src/visualdynamics/gui/main_window.py
plan_surface_at
¶
The surface under the device pixel (x, y) that a click can
leave out or put back, or None: one of a checked element group.
Source code in src/visualdynamics/gui/main_window.py
toggle_plan_surface
¶
Leave surface out of the places sensors may go, or put it
back, as a click on it does, and plan again.
Source code in src/visualdynamics/gui/main_window.py
close_instrumentation_pane
¶
Put Plan Instrumentation away; nothing is added.
Source code in src/visualdynamics/gui/main_window.py
merge_nodes_act
¶
Open the Merge Coincident Nodes pane on element groups
groups of geometry name.
Every place where their nodes coincide is marked in the view, and the tolerance is set in the pane. A click on a mark leaves that place out of the merge or puts it back, and Merge makes each marked place one node, so a joint can be built a place at a time.
Source code in src/visualdynamics/gui/main_window.py
align_meshes_act
¶
Open Align Meshes, in the same pane as the merge, on element
groups groups of geometry name.
It is the step before a merge, for parts meshed separately whose nodes do not match. Each node of the coarser mesh that would move onto a node of the finer one is marked, with a line to where it goes, and the reach is set in the pane. A click on a mark leaves that move out, and Align makes the moves.
Source code in src/visualdynamics/gui/main_window.py
toggle_merge_place
¶
Leave place index out of the merge, or put it back, as a
click on its mark does.
Source code in src/visualdynamics/gui/main_window.py
merge_place_at
¶
The index of the place whose mark is under the pixel
(x, y), or None.
Source code in src/visualdynamics/gui/main_window.py
close_merge_pane
¶
Close the merge pane, removing its marks and its handling of
clicks. With redraw, the view is drawn again with the groups
opaque; a caller about to draw anyway passes False.
Source code in src/visualdynamics/gui/main_window.py
new_geometry_act
¶
Add an empty geometry to the project, in the display length unit, and select it. Its Solids row offers the shapes a part is built from, plates and disks among them.
Source code in src/visualdynamics/gui/main_window.py
new_channel_table_act
¶
Add an empty channel table to the project and select it. Its bar offers Add Channel.
Source code in src/visualdynamics/gui/main_window.py
add_channel_act
¶
Add a blank channel to the selected channel table, numbered after its highest, and put the cursor on its row.
Source code in src/visualdynamics/gui/main_window.py
edit_solid_pane
¶
Open the add pane on solid solid_id of geometry name, as its
row's pencil does, to move, size or reshape it.
Its values are in the fields, the gizmo on it slides and turns
it, and its preview is drawn as it is typed. Apply runs the
project's edit_solid. A boolean has no size of its own, so its
pane moves and turns it whole, with every solid it is made of
(move_solids). A pattern opens the Pattern pane on its counts
and spacing instead.
Source code in src/visualdynamics/gui/main_window.py
close_mesh_pane
¶
Close the add pane, removing its preview and the gizmo.
Source code in src/visualdynamics/gui/main_window.py
set_creator_name
¶
File → Creator Name…: set the name an exported ESCDF file records as its creator, remembered between launches. Blank means the login name.
Source code in src/visualdynamics/gui/main_window.py
set_view_act
¶
Make the view on screen the selected geometry's default view.
The geometry and everything drawn on it then open on this view, in the window, in reports and in exported figures, and Reset View returns to it. Only the camera's direction and up vector are kept, not its distance.
Source code in src/visualdynamics/gui/main_window.py
solve_modes_act
¶
Solve the normal modes of the selected geometry, from its element groups' properties, and add the mode set to the geometry's object group.
How far to solve (a number of modes or a highest frequency) and the damping to give every mode are the Modes pane's, finite element kind.
Source code in src/visualdynamics/gui/main_window.py
convert_to_specification_act
¶
The bar's Convert to Specification: the selected PSD or CPSD
is made a specification, in place and under the same name
(Project.convert_to_specification).
Source code in src/visualdynamics/gui/main_window.py
convert_to_psd_act
¶
The bar's Convert to PSD (Convert to CPSD with cross terms):
the selected specification is made a plain PSD, in place and
under the same name, its limits left out
(Project.convert_to_psd).
Source code in src/visualdynamics/gui/main_window.py
close_lines_pane
¶
integrate_history
¶
Integrate the selected time history once (acceleration to velocity, velocity to displacement), and add the result beside it.
The drift is high-passed out, and records of other quantities are left out, as the status bar says.
Source code in src/visualdynamics/gui/main_window.py
differentiate_history
¶
Differentiate the selected time history once (displacement to velocity, velocity to acceleration), and add the result beside it.
Source code in src/visualdynamics/gui/main_window.py
compute_cpsds
¶
Compute the full cross-spectral matrix of the selected time history, every channel against every channel, and add it beside it.
Source code in src/visualdynamics/gui/main_window.py
generate_report
¶
Add a new Report object from a starter template, select it to edit, and return its name.
template is a built-in template's name ('modal', 'random',
'transient', 'shock', 'sine', 'sysid', 'mimo' or 'empty') or the
path of a saved template. Templates refer to objects by role, such
as '@basis:Frf', resolved against the object groups when the report
is drawn, so the report depends on the project's structure and
not on what the objects are named.
Source code in src/visualdynamics/gui/main_window.py
export_report_template
¶
Save the selected report on its own, as a template another project can load. The save dialog opens in the templates folder, which is where Generate Report looks for saved templates.
Source code in src/visualdynamics/gui/main_window.py
reports_from_runs
¶
File → Reports from Runs…: run visualdynamics.run_report over
a batch of controller runs.
The runs and the options are asked for in dialogs, and the work runs with a progress bar and Cancel; reports already written when it is canceled are kept. The open project is not changed: each run is worked up in a project of its own, as the script does it, and its report is written to disk. The reports use the window's unit system.
Source code in src/visualdynamics/gui/main_window.py
export_report
¶
Export the selected report as one self-contained HTML file.
Source code in src/visualdynamics/gui/main_window.py
export_report_pdf
¶
Export the selected report as a paginated PDF
(Project.export_report_pdf), rendered and printed off the
window's thread. With the data index on, its files are hashed
again first and a file that does not match is asked about, as
for the HTML export.
Source code in src/visualdynamics/gui/main_window.py
issue_report
¶
Issue the selected report as a PDF under its number and
revision (Project.issue_report). What stands in the way (a
field not entered, a section owed, a report already issued) is
said before the file is asked for, and with the data index on,
its files are hashed again and a file that does not match is
asked about before then too.
Source code in src/visualdynamics/gui/main_window.py
attach_to_report
¶
Add a file to the data index from the report editor: the
file, what it is, and whether it goes with the report or is
kept in the archive; journaled as index_file.
Source code in src/visualdynamics/gui/main_window.py
unindex_from_report
¶
Take a file out of the data index from the report editor;
journaled as unindex_file.
Source code in src/visualdynamics/gui/main_window.py
merge_selected
¶
Replace the selected objects with one object that combines
them (Project.merge).
Source code in src/visualdynamics/gui/main_window.py
start_modal_fit
¶
Start fitting real normal modes to the selected FRF object, one mode at a time.
The measured CMIF is drawn solid and the fit's synthesis dashed over it. A cursor is placed on the largest residual peak. The search is limited to the frequencies on screen, so zooming says where to look, and the cursor moves with the zoom rather than being left off screen. The table beside the plot lists the fitted modes and the pending one. Find Mode moves the cursor to the largest residual peak in view, and Confirm Mode adds the pending mode and moves to the next residual peak, since a confirmed peak is removed from the residual. A shape set selected with the FRFs starts the session with its modes and receives every change in place. Only one FRF object can be fitted at a time.
Source code in src/visualdynamics/gui/main_window.py
21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 | |
refine_all_modes
¶
Fit the confirmed modes again, neighbors together: the poles
of modes whose bands overlap, then their residues. It needs at
least two confirmed modes; ModalFitSession.refine_residues
explains what it corrects.
Source code in src/visualdynamics/gui/main_window.py
find_next_mode
¶
Move the cursor to the next mode to fit: the largest CMIF peak left in the residual, within the frequencies the plot shows.
Confirm Mode moves there too once a mode is added; this does it alone, to look before confirming anything. This is the Find Mode button.
Source code in src/visualdynamics/gui/main_window.py
fit_pending_mode
¶
Fit the pending mode at the cursor without confirming it, and draw the table and the plot again.
There is no button for this, because dragging the cursor fits as it goes. It is for a caller that changed something another way, such as a damping typed into the table or a script driving the fit with no cursor to drag.
Source code in src/visualdynamics/gui/main_window.py
rescale_data
¶
Make the selected time history with its picked records (all
of them when none are) rescaled as the rescale panel says, and
add it beside the source (Project.rescale).