concreteproperties.results.MomentCurvatureResults#

class MomentCurvatureResults(theta, n_target, kappa=<factory>, n=<factory>, m_x=<factory>, m_y=<factory>, m_xy=<factory>, convergence=<factory>, _kappa=0, _n_i=0, _m_x_i=0, _m_y_i=0, _failure=False, _failure_convergence=0)[source]#

Bases: object

Class for storing moment curvature results.

Parameters
  • theta (float) – Angle (in radians) the neutral axis makes with the horizontal

  • n_target (float) – Target axial force axis (\(-\pi \leq \theta \leq \pi\))

  • kappa (List[float], default: <factory>) – List of curvatures

  • n (List[float], default: <factory>) – List of axial forces

  • m_x (List[float], default: <factory>) – List of bending moments about the x-axis

  • m_y (List[float], default: <factory>) – List of bending moments about the y-axis

  • m_xy (List[float], default: <factory>) – List of resultant bending moments

  • failure_geometry – Geometry object of the region of the cross-section that failed, ending the moment curvature analysis

  • convergence (List[float], default: <factory>) – The critical ratio between the strain and the failure strain within the cross-section for each curvature step in the analysis. A value of one indicates failure.

Methods

get_curvature

Given a moment, uses the moment-curvature results to interpolate a curvature.

plot_failure_geometry

Plots the geometry that fails in the moment curvature analysis.

plot_multiple_results

Plots multiple moment curvature results.

plot_results

Plots the moment curvature results.

Attributes

theta

n_target

kappa

n

m_x

m_y

m_xy

failure_geometry

convergence

plot_results(m_scale=1e-06, fmt='o-', **kwargs)[source]#

Plots the moment curvature results.

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

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

  • kwargs – Passed to plotting_context()

Returns

Axes – Matplotlib axes object

static plot_multiple_results(moment_curvature_results, labels, m_scale=1e-06, fmt='o-', **kwargs)[source]#

Plots multiple moment curvature results.

Parameters
  • moment_curvature_results (List[MomentCurvatureResults]) – List of moment curvature results objects

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

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

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

  • kwargs – Passed to plotting_context()

Returns

Axes – Matplotlib axes object

plot_failure_geometry(title='Failure Geometry', **kwargs)[source]#

Plots the geometry that fails in the moment curvature analysis.

Parameters
  • title (str, default: 'Failure Geometry') – Plot title

  • kwargs – Passed to plot_geometry()

Returns

Axes – Matplotlib axes object

get_curvature(moment)[source]#

Given a moment, uses the moment-curvature results to interpolate a curvature.

Parameters

moment (float) – Bending moment at which to obtain curvature

Raises

ValueError – If supplied moment is outside bounds of moment-curvature results.

Returns

float – Curvature