MomentInteractionResults¶
- class concreteproperties.results.MomentInteractionResults(default_units: UnitDisplay, results: list[UltimateBendingResults] = <factory>)[source]¶
Bases:
objectClass for storing moment interaction results.
- Parameters:
default_units (UnitDisplay) – Default units to use for reporting
results (list[UltimateBendingResults]) – 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 design point lies within the diagram.
Sorts the results by decreasing axial force.
Attributes
default_unitsresults- get_results_lists(moment: str) tuple[list[float], list[float]][source]¶
Returns a list of axial forces and moments.
- plot_diagram(moment: str = 'm_x', fmt: str = 'o-', labels: bool = False, label_offset: bool = False, eng: bool = False, prec: int = 2, units: UnitDisplay | None = None, **kwargs) matplotlib.axes.Axes[source]¶
Plots a moment interaction diagram.
- Parameters:
moment (str) – Which moment to plot, acceptable values are
"m_x","m_y"or"m_xy". Defaults to"m_x".fmt (str) – Plot format string. Defaults to
"o-".labels (bool) – If set to True, also plots labels on the diagram. Defaults to
False.label_offset (bool) – If set to True, attempts to offset the label from the diagram. Defaults to
False.eng (bool) – If set to
True, formats the plot ticks with engineering notation. If set toFalse, uses the defaultmatplotlibticker formatting. Defaults toFalse.prec (int) – If
eng=True, sets the desired precision of the ticker formatting (i.e. one plus this value is the desired number of digits). Defaults to2.units (UnitDisplay | None) – Unit system to display. Defaults to
None.kwargs – Passed to
plotting_context()
- Returns:
Matplotlib axes object
- Return type:
- static plot_multiple_diagrams(moment_interaction_results: list[MomentInteractionResults], labels: list[str], moment: str = 'm_x', fmt: str = 'o-', eng: bool = False, prec: int = 2, units: UnitDisplay | None = None, **kwargs) matplotlib.axes.Axes[source]¶
Plots multiple moment interaction diagrams.
- Parameters:
moment_interaction_results (list[MomentInteractionResults]) – List of moment interaction results objects
labels (list[str]) – List of labels for each moment interaction diagram.
moment (str) – Which moment to plot, acceptable values are
"m_x","m_y"or"m_xy". Defaults to"m_x".fmt (str) – Plot format string. Defaults to
"o-".eng (bool) – If set to
True, formats the plot ticks with engineering notation. If set toFalse, uses the defaultmatplotlibticker formatting. Defaults toFalse.prec (int) – If
eng=True, sets the desired precision of the ticker formatting (i.e. one plus this value is the desired number of digits). Defaults to2.units (UnitDisplay | None) – Unit system to display. Defaults to
None.kwargs – Passed to
plotting_context()
- Returns:
Matplotlib axes object
- Return type: