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

get_results_lists

Returns a list of axial forces and moments.

plot_diagram

Plots a moment interaction diagram.

plot_multiple_diagrams

Plots multiple moment interaction diagrams.

point_in_diagram

Determines whether or not the combination of axial force and moment lies within the moment interaction diagram.

sort_results

Sorts the results by decreasing axial force.

Attributes

results

sort_results()[source]#

Sorts the results by decreasing axial force.

Return type

None

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 force

  • m_scale (float, default: 1e-06) – Scaling factor to apply to the bending moment

  • moment (str, default: 'm_x') – Which moment to plot, acceptable values are "m_x", "m_y" or "m_xy"

  • fmt (str, default: 'o-') – Plot format string

  • labels (bool, default: False) – If set to True, also plots labels on the diagram

  • label_offset (bool, default: False) – If set to True, attempts to offset the label from the diagram

  • kwargs – 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 objects

  • labels (List[str]) – List of labels for each moment interaction diagram

  • n_scale (float, default: 0.001) – Scaling factor to apply to axial force

  • m_scale (float, default: 1e-06) – Scaling factor to apply to bending moment

  • moment (str, default: 'm_x') – Which moment to plot, acceptable values are "m_x", "m_y" or "m_xy"

  • fmt (str, default: 'o-') – Plot format string

  • kwargs – 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 force

  • m (float) – Bending moment

  • moment (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