You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In order to generate a factored load envelope, I need access to the results arrays of various load cases/combinations. I can generate these on my own but thought that it would be a welcome addition and possibly a stepping stone for future features in #101.
I am happy to create the PR for this!
Describe the solution you'd like
The suggestion is to create the following methods onto Member:
.axial_array
.torque_array
.shear_array
.moment_array
.deflection_array
They could be implemented similar to the hard-coded approach you have in .plot_shear, etc.
These methods could then replace those sections of code in the .plot_... methods and would allow for the .plot_... methods to have a user-specified n indicating the number of points they would like to discretize the plot with, which would be good because sometimes 20 points is just not enough and the plots end up looking distorted and confusing.
Describe alternatives you've considered
Generating the arrays myself
Additional context
Having access to results arrays allows for plots to be generated in any plotting software, not just matplotlib. By generating the resulting arrays conveniently, it allows for a little bit extra extensibility both for plotting and post-processing.
The text was updated successfully, but these errors were encountered:
I like this idea. I think there's a way to do it with minimal extra lines of code. What if we had a boolean argument in the plot_shear method named 'to_array' (defaults to False) that changed the output of the method to an array instead of a matplotlib plot? I agree that 20 points is often just not enough too. I've been meaning to add an 'n' argument to plot_shear as well.
Is your feature request related to a problem? Please describe.
In order to generate a factored load envelope, I need access to the results arrays of various load cases/combinations. I can generate these on my own but thought that it would be a welcome addition and possibly a stepping stone for future features in #101.
I am happy to create the PR for this!
Describe the solution you'd like
The suggestion is to create the following methods onto
Member
:.axial_array
.torque_array
.shear_array
.moment_array
.deflection_array
They could be implemented similar to the hard-coded approach you have in
.plot_shear
, etc.These methods could then replace those sections of code in the
.plot_...
methods and would allow for the.plot_...
methods to have a user-specifiedn
indicating the number of points they would like to discretize the plot with, which would be good because sometimes 20 points is just not enough and the plots end up looking distorted and confusing.Describe alternatives you've considered
Generating the arrays myself
Additional context
Having access to results arrays allows for plots to be generated in any plotting software, not just matplotlib. By generating the resulting arrays conveniently, it allows for a little bit extra extensibility both for plotting and post-processing.
The text was updated successfully, but these errors were encountered: