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
Function for plotting shear force added #19237
Conversation
Here is an example:
|
Codecov Report
@@ Coverage Diff @@
## master #19237 +/- ##
=============================================
+ Coverage 75.650% 75.774% +0.124%
=============================================
Files 651 674 +23
Lines 169488 174249 +4761
Branches 40021 41128 +1107
=============================================
+ Hits 128219 132037 +3818
- Misses 35652 36498 +846
- Partials 5617 5714 +97 |
✅ Hi, I am the SymPy bot (v161). I'm here to help you write a release notes entry. Please read the guide on how to write release notes.
Click here to see the pull request description that was parsed.
|
Please add the physics.continuum.mechanics and plotting labels |
I have added a function for plotting shear force. |
@moorepants Is this good to go? Any thoughts on the changes by @Psycho-Pirate ? |
return Pz.show() | ||
# For shear force along all direction | ||
else: | ||
|
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.
This case should plot all the graphs as subplots in a single plot.
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.
The values of shear force can vary greatly along different directions. See the example i mentioned above, shear force along y has smaller values in hundreds, while shear force along z has values in thousands. Having them on a same plot may not convey the information clearly. What do you suggest?
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.
The values of shear force can vary greatly along different directions
I don't think that would be an issue. Just give it a try and share the plot results here. You can see how plot_loading_results()
functions.
I think for all the different cases the same code is being repeated. It would be better if the code is separated and put inside a helper function which would return the plot whenever required |
I agree! I will start working on this. |
Please have a look @ishanaj |
@ishanaj Please review this PR. |
It would be great if you could share some screenshots for the fourth case ( |
I have made the suggested changes and added an example in the docs as well.
|
Great work! Looks good to me. |
Thanks! |
A plot function for bending moment, deflection, slope, should also be built in a similar manner. Maybe they can be added in a separate PR. Otherwise, I think this is good to go! @moorepants @czgdp1807 |
I'll start working on them. Thanks for reviewing! |
Please get this merged @czgdp1807 @moorepants |
Thanks @oscarbenjamin! I will be merging this now. |
References to other Issues or PRs
See #19202
Brief description of what is fixed or changed
A function for plotting shear force in 3D Beam is added.
Other comments
Release Notes
NO ENTRY