chore: adopt remaining local development state
Catch-all for the intermixed residue of the unpushed otko-development work ported into this tree: combinations/console-dock/quick-guide wiring across commands, core, services, views and tests; repo-wide ruff-format normalization; README/CONTRIBUTING updates; and the toolbar default (both toolbars now open in the top area, quick guide text updated). Splitting this further would require hunk-level surgery with low confidence; the preceding commits in this branch isolate the self-contained features.
This commit is contained in:
parent
cb4bf8fccd
commit
ba783718d4
152 changed files with 3394 additions and 1651 deletions
|
|
@ -12,6 +12,8 @@ pytest.importorskip("openseespy")
|
|||
from otko.services import load_project, save_project # noqa: E402
|
||||
from otko.services.opensees_runner import OpenSeesRunner # noqa: E402
|
||||
|
||||
pytestmark = pytest.mark.slow
|
||||
|
||||
|
||||
def test_beam_quad_2d_midspan_deflection(tmp_path) -> None: # type: ignore[no-untyped-def]
|
||||
"""10-step LoadControl on a 16×4 plane-stress quad mesh — reference
|
||||
|
|
@ -23,6 +25,7 @@ def test_beam_quad_2d_midspan_deflection(tmp_path) -> None: # type: ignore[no-u
|
|||
_mid_top_node_id,
|
||||
build_beam_quad_2d,
|
||||
)
|
||||
|
||||
proj = build_beam_quad_2d()
|
||||
proj.validate_references()
|
||||
|
||||
|
|
@ -49,10 +52,10 @@ def test_beam_quad_2d_midspan_deflection(tmp_path) -> None: # type: ignore[no-u
|
|||
|
||||
# By symmetry, left and right support reactions must balance the two
|
||||
# 10-kip midspan loads (total -20 kip vertical).
|
||||
assert reloaded.nodes[0].id == 1 # left pin
|
||||
assert reloaded.nodes[0].id == 1 # left pin
|
||||
reaction_sum_fy = sum(
|
||||
result.node_reaction[nid][-1, 1]
|
||||
for nid in (1, 17) # node 17 = (L, 0) = roller
|
||||
for nid in (1, 17) # node 17 = (L, 0) = roller
|
||||
)
|
||||
assert reaction_sum_fy == pytest.approx(20.0, abs=1e-6)
|
||||
|
||||
|
|
@ -69,6 +72,7 @@ def test_beam_quad_2d_free_vibration_chain(tmp_path) -> None: # type: ignore[no
|
|||
_mid_bottom_node_id,
|
||||
build_beam_quad_2d,
|
||||
)
|
||||
|
||||
proj = build_beam_quad_2d()
|
||||
proj.validate_references()
|
||||
|
||||
|
|
@ -81,6 +85,7 @@ def test_beam_quad_2d_free_vibration_chain(tmp_path) -> None: # type: ignore[no
|
|||
r = OpenSeesRunner(reloaded).run(reloaded.analyses[1], results_dir=results_dir)
|
||||
|
||||
import h5py
|
||||
|
||||
with h5py.File(r.h5_path) as f:
|
||||
t = f["time"][:]
|
||||
u = f[f"nodes/{_mid_bottom_node_id()}/disp"][:, 1]
|
||||
|
|
|
|||
Loading…
Reference in a new issue