concreteproperties.results.MomentCurvatureResults#
- class MomentCurvatureResults(theta: float, kappa: ~typing.List[float] = <factory>, moment: ~typing.List[float] = <factory>, _n_i: float = 0, _m_i: float = 0, _failure: bool = False)[source]#
Bases:
object
Class for storing moment curvature results.
- Parameters
theta (float) – Angle (in radians) the neutral axis makes with the horizontal axis (\(-\pi \leq \theta \leq \pi\))
- Variables
kappa (List[float]) – List of curvatures
moment (List[float]) – List of bending moments
failure_geometry (
sectionproperties.pre.geometry.Geometry
) – Geometry object of the region of the cross-section that failed, ending the moment curvature analysis
Methods
Given a moment, uses the moment-curvature results to interpolate a curvature.
Plots the geometry that fails in the moment curvature analysis.
Plots multiple moment curvature results.
Plots the moment curvature results.
Attributes
theta
kappa
moment
failure_geometry
- plot_results(m_scale: Optional[float] = 1e-06, **kwargs) matplotlib.axes.Axes [source]#
Plots the moment curvature results.
- Parameters
m_scale (Optional[float]) – Scaling factor to apply to bending moment
kwargs – Passed to
plotting_context()
- Returns
Matplotlib axes object
- Return type
- static plot_multiple_results(moment_curvature_results: List[MomentCurvatureResults], labels: List[str], m_scale: Optional[float] = 1e-06, **kwargs) matplotlib.axes.Axes [source]#
Plots multiple moment curvature results.
- Parameters
moment_curvature_results – List of moment curvature results objects
labels (List[str]) – List of labels for each moment curvature diagram
m_scale (Optional[float]) – Scaling factor to apply to bending moment
kwargs – Passed to
plotting_context()
- Returns
Matplotlib axes object
- Return type
- plot_failure_geometry(title: Optional[str] = 'Failure Geometry', **kwargs) matplotlib.axes.Axes [source]#
Plots the geometry that fails in the moment curvature analysis.
- Parameters
title (Optional[str]) – Plot title
kwargs – Passed to
plot_geometry()
- Returns
Matplotlib axes object
- Return type
- get_curvature(moment: float) float [source]#
Given a moment, uses the moment-curvature results to interpolate a curvature.
Raises a ValueError if supplied moment is outside bounds of moment-curvature results.
- Parameters
moment (float) – Bending moment at which to obtain curvature
- Returns
Curvature
- Return type
float