concreteproperties.results.MomentInteractionResults#
- class MomentInteractionResults(results=<factory>)[source]#
Bases:
object
Class for storing moment interaction results.
- Parameters
results (
List
[UltimateBendingResults
], default:<factory>
) – List of ultimate bending result objects
Methods
Returns a list of axial forces and moments.
Plots a moment interaction diagram.
Plots multiple moment interaction diagrams.
Determines whether or not the combination of axial force and moment lies within the moment interaction diagram.
Sorts the results by decreasing axial force.
Attributes
results
- get_results_lists(moment)[source]#
Returns a list of axial forces and moments.
- Parameters
moment (
str
) – Which moment to plot, acceptable values are"m_x"
,"m_y"
or"m_xy"
- Returns
Tuple
[List
[float
],List
[float
]] – List of axial forces and moments (n, m)
- plot_diagram(n_scale=0.001, m_scale=1e-06, moment='m_x', fmt='o-', labels=False, label_offset=False, **kwargs)[source]#
Plots a moment interaction diagram.
- Parameters
n_scale (
float
, default:0.001
) – Scaling factor to apply to axial forcem_scale (
float
, default:1e-06
) – Scaling factor to apply to the bending momentmoment (
str
, default:'m_x'
) – Which moment to plot, acceptable values are"m_x"
,"m_y"
or"m_xy"
fmt (
str
, default:'o-'
) – Plot format stringlabels (
bool
, default:False
) – If set to True, also plots labels on the diagramlabel_offset (
bool
, default:False
) – If set to True, attempts to offset the label from the diagramkwargs – Passed to
plotting_context()
- Returns
Axes
– Matplotlib axes object
- static plot_multiple_diagrams(moment_interaction_results, labels, n_scale=0.001, m_scale=1e-06, moment='m_x', fmt='o-', **kwargs)[source]#
Plots multiple moment interaction diagrams.
- Parameters
moment_interaction_results (
List
[MomentInteractionResults
]) – List of moment interaction results objectslabels (
List
[str
]) – List of labels for each moment interaction diagramn_scale (
float
, default:0.001
) – Scaling factor to apply to axial forcem_scale (
float
, default:1e-06
) – Scaling factor to apply to bending momentmoment (
str
, default:'m_x'
) – Which moment to plot, acceptable values are"m_x"
,"m_y"
or"m_xy"
fmt (
str
, default:'o-'
) – Plot format stringkwargs – Passed to
plotting_context()
- Returns
Axes
– Matplotlib axes object
- point_in_diagram(n, m, moment='m_x')[source]#
Determines whether or not the combination of axial force and moment lies within the moment interaction diagram.
- Parameters
n (
float
) – Axial forcem (
float
) – Bending momentmoment (
str
, default:'m_x'
) – Which moment to analyse, acceptable values are"m_x"
,"m_y"
or"m_xy"
- Returns
bool
– True, if combination of axial force and moment is within the diagram