concreteproperties.results.StressResult#

class StressResult(concrete_section: ConcreteSection, concrete_analysis_sections: List[AnalysisSection], concrete_stresses: List[np.ndarray], concrete_forces: List[Tuple[float]], steel_geometries: List[Geometry], steel_stresses: List[float], steel_strains: List[float], steel_forces: List[Tuple[float]])[source]#

Bases: object

Class for storing stress results.

Variables
  • concrete_analysis_sections (List[AnalysisSection]) – List of concrete analysis section objects present in the stress analysis, which can be visualised by calling the plot_mesh() or plot_shape()

  • concrete_stresses (List[numpy.ndarray]) – List of concrete stresses at the nodes of each concrete analysis section

  • concrete_forces (List[Tuple[float]]) – List of net forces for each concrete analysis section and its lever arm to the neutral axis (force, lever_arm)

  • steel_geometries (List[sectionproperties.pre.geometry.Geometry]) – List of steel geometry objects present in the stress analysis

  • steel_stresses (List[float]) – List of steel stresses for each steel geometry

  • steel_strains (List[float]) – List of steel strains for each steel geometry

  • steel_forces (List[Tuple[float]]) – List of net forces for each steel geometry and its lever arm to the neutral axis (force, lever_arm)

Methods

plot_stress

Plots concrete and steel stresses on a concrete section.

sum_forces

Returns the sum of the internal forces.

sum_moments

Returns the sum of the internal moments.

Attributes

concrete_section

concrete_analysis_sections

concrete_stresses

concrete_forces

steel_geometries

steel_stresses

steel_strains

steel_forces

plot_stress(title: Optional[str] = 'Stress', conc_cmap: Optional[str] = 'RdGy', steel_cmap: Optional[str] = 'bwr', **kwargs) matplotlib.axes.Axes[source]#

Plots concrete and steel stresses on a concrete section.

Parameters
  • title (Optional[str]) – Plot title

  • conc_cmap (Optional[str]) – Colour map for the concrete stress

  • steel_cmap (Optional[str]) – Colour map for the steel stress

  • kwargs – Passed to plotting_context()

Returns

Matplotlib axes object

Return type

matplotlib.axes.Axes

sum_forces() float[source]#

Returns the sum of the internal forces.

Returns

Sum of internal forces

Return type

float

sum_moments() float[source]#

Returns the sum of the internal moments.

Returns

Sum of internal moments

Return type

float