-
Notifications
You must be signed in to change notification settings - Fork 17
831 feature request define internal forces class with coordinate system for all strength and stability checks #834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
831 feature request define internal forces class with coordinate system for all strength and stability checks #834
Conversation
…t tests for validation
|
Thank you so much for contributing to Blueprints! Now that you've created your pull request, please don't go away; take a look at the bottom of this page for the automated checks that should already be running. If they pass, great! If not, please click on 'Details' and see if you can fix the problem they've identified. A maintainer should be along shortly to review your pull request and help get it added! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new LoadCombination dataclass to represent load combinations for strength and stability checks with a well-defined coordinate system. The implementation establishes a standardized way to handle structural loads across different axes.
Key Changes:
- New
LoadCombinationdataclass with 6 load components (normal force, shear forces, bending moments, and torsion) - Comprehensive coordinate system documentation with ASCII diagram and sign conventions
- Complete test suite covering initialization, negative/zero values, equality, and hashability
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
blueprints/checks/loads/load_combination.py |
Defines the frozen LoadCombination dataclass with coordinate system documentation and type-annotated force/moment attributes |
blueprints/checks/loads/__init__.py |
Adds package-level docstring for the loads module |
tests/checks/loads/test_load_combination.py |
Implements comprehensive test coverage for LoadCombination functionality |
tests/checks/loads/__init__.py |
Adds package-level docstring for test module |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 840-feature-request-add-first-steel-check-to-blueprints #834 +/- ##
=========================================================================================
Coverage 100.00% 100.00%
=========================================================================================
Files 393 395 +2
Lines 12116 12155 +39
=========================================================================================
+ Hits 12116 12155 +39 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…lass-with-coordinate-system-for-all-strenthstability-checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@egarciamendez I've opened a new pull request, #835, to work on those changes. Once the pull request is ready, I'll request review from you. |
…lass-with-coordinate-system-for-all-strenthstability-checks
|
|
||
|
|
||
| @dataclass(frozen=True) | ||
| class LoadCombination: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of having a container for internal forces when performing trength or stability checks. 👍
As "naming things" is one of the hardest things in CS, I think that the name is misleading. Load combination has a different meaning in the context of civil / structural engineering and according to the Eurocode. Perhaps using the terminology of Scia would be a good idea. Here are some alternative suggestions:
InternalForces
InternalForces3D
BeamInternalForces (as opposed to plate internal forces)
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ResultInternalForce1D then 😃
https://www.saf.guide/en/stable/results/resultinternalforce1d.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh cool stuff! let me work on this then :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept the structure as a class as was done before, but now with all parameters as SAF guides us. Discussion point: SAF has many input as required. for us that could mean its just default 0 or empty string. I think from a user perspective its nice to be able to ResultInternalForce1D(N=4), without having to specifiy all other parameters. you can if you want to of course.
please note: result_for is now presented as string. in a future that should be connected to the LoadCase or LoadCombination class. But as that doesnt exist yet.. string it is.
…1D class and tests, remove LoadCombination class and related tests
…oordinate-system-for-all-strenthstability-checks' of https://github.com/Blueprints-org/blueprints into 831-feature-request-define-loadcombination-class-with-coordinate-system-for-all-strenthstability-checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…the coordinate system
…, add ResultInternalForce1D with updated structure and validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…' into 831-feature-request-define-loadcombination-class-with-coordinate-system-for-all-strenthstability-checks
2b5e218
into
840-feature-request-add-first-steel-check-to-blueprints


Description
Define internal forces class with coordinate system for all strength stability checks
Fixes #831
Type of change
Checklist: