BiaxialBendingResults

class concreteproperties.results.BiaxialBendingResults(default_units: UnitDisplay, n: float, results: list[UltimateBendingResults] = <factory>)[source]

Bases: object

Class for storing biaxial bending results.

Parameters:

Methods

get_results_lists

Returns a list and moments about the x and y axes.

plot_diagram

Plots a biaxial bending diagram.

plot_multiple_diagrams_2d

Plots multiple biaxial bending diagrams in a 2D plot.

plot_multiple_diagrams_3d

Plots multiple biaxial bending diagrams in a 3D plot.

point_in_diagram

Determines whether or not the design point lies within the biaxial diagram.

Attributes

default_units

n

results

get_results_lists() tuple[list[float], list[float]][source]

Returns a list and moments about the x and y axes.

Returns:

Tuple containing two list of moments (mx_list, my_list)

Return type:

tuple[list[float], list[float]]

plot_diagram(fmt: str = 'o-', eng: bool = False, prec: int = 2, units: UnitDisplay | None = None, **kwargs) matplotlib.axes.Axes[source]

Plots a biaxial bending diagram.

Parameters:
  • fmt (str) – Plot format string. Defaults to "o-".

  • eng (bool) – If set to True, formats the plot ticks with engineering notation. If set to False, uses the default matplotlib ticker formatting. Defaults to False.

  • 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 to 2.

  • units (UnitDisplay | None) – Unit system to display. Defaults to None.

  • kwargs – Passed to plotting_context()

Returns:

Matplotlib axes object

Return type:

matplotlib.axes.Axes

static plot_multiple_diagrams_2d(biaxial_bending_results: list[BiaxialBendingResults], labels: list[str] | None = None, fmt: str = 'o-', eng: bool = False, prec: int = 2, units: UnitDisplay | None = None, **kwargs) matplotlib.axes.Axes[source]

Plots multiple biaxial bending diagrams in a 2D plot.

Parameters:
  • biaxial_bending_results (list[BiaxialBendingResults]) – List of biaxial bending results objects

  • labels (list[str] | None) – List of labels for each biaxial bending diagram, if not provided labels are axial forces. Defaults to None.

  • fmt (str) – Plot format string. Defaults to "o-".

  • eng (bool) – If set to True, formats the plot ticks with engineering notation. If set to False, uses the default matplotlib ticker formatting. Defaults to False.

  • 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 to 2.

  • units (UnitDisplay | None) – Unit system to display. Defaults to None.

  • kwargs – Passed to plotting_context()

Returns:

Matplotlib axes object

Return type:

matplotlib.axes.Axes

static plot_multiple_diagrams_3d(biaxial_bending_results: list[BiaxialBendingResults], fmt: str = '-', eng: bool = False, prec: int = 2, units: UnitDisplay | None = None) matplotlib.axes.Axes[source]

Plots multiple biaxial bending diagrams in a 3D plot.

Parameters:
  • biaxial_bending_results (list[BiaxialBendingResults]) – List of biaxial bending results objects

  • fmt (str) – Plot format string. Defaults to "-".

  • eng (bool) – If set to True, formats the plot ticks with engineering notation. If set to False, uses the default matplotlib ticker formatting. Defaults to False.

  • 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 to 2.

  • units (UnitDisplay | None) – Unit system to display. Defaults to None.

Returns:

Matplotlib axes object

Return type:

matplotlib.axes.Axes

point_in_diagram(m_x: float, m_y: float) bool[source]

Determines whether or not the design point lies within the biaxial diagram.

Parameters:
  • m_x (float) – Bending moment about the x-axis

  • m_y (float) – Bending moment about the y-axis

Returns:

True, if combination of bendings moments is within the diagram

Return type:

bool