Add test for BridgeGrillageModel analyser#142
Open
ManavSharma23 wants to merge 11 commits into
Open
Conversation
…d cases - Port create_seismic_load_cases() (EQ_X/EQ_Z/EQ_Y + 1.5 EQ (a/b/c) per Cl.218.3) with tributary-area nodal distribution, replacing the old UI-pressure patch load create_seismic_load() - Derive total DL by integrating the registered DL + DW load cases (_load_case_resultant_kN) instead of a per-method accumulator - Governing-LL weight from IRC vehicle geometry (unit-fixed N -> kN) - Sa/g fallback from the Cl.218.5.1 spectral curve (soil type + T) - add_seismic_loads() reads KEY_SL_* seismic tab keys and weather_data z_value; runs after create_governing_ll_load_case() in design()
Aditya-Donde
force-pushed
the
test
branch
3 times, most recently
from
June 14, 2026 11:26
b48cfb4 to
f2f2f98
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR replaces the placeholder analyser test with a detailed unit test suite for
BridgeGrillageModel. The tests verify how the plate girder bridge analyser initializes state, builds geometry/material/member definitions, creates grillage models, applies loads, runs analysis, and prepares result/plot workflows.Details
The new tests use pytest fixtures and mocks to isolate analyser logic from external OpenSees/grillage execution. They check that:
Testing
Adds 108 unit tests in
tests/unit/test_analyser.py.