concreteproperties.results.StressResult#

class StressResult(concrete_section, concrete_analysis_sections, concrete_stresses, concrete_forces, meshed_reinforcement_sections, meshed_reinforcement_stresses, meshed_reinforcement_forces, lumped_reinforcement_geometries, lumped_reinforcement_stresses, lumped_reinforcement_strains, lumped_reinforcement_forces, strand_geometries=<factory>, strand_stresses=<factory>, strand_strains=<factory>, strand_forces=<factory>, _m_net=None)[source]#

Bases: object

Class for storing stress results.

The lever arm is computed to the elastic centroid.

Parameters
  • 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[ndarray]) – List of concrete stresses at the nodes of each concrete analysis section

  • concrete_forces (List[Tuple[float, float, float]]) – List of net forces for each concrete analysis section and its lever arm (force, d_x, d_y)

  • meshed_reinforcement_sections (List[AnalysisSection]) – List of meshed reinforcement section objects present in the stress analysis

  • meshed_reinforcement_stresses (List[ndarray]) – List of meshed reinforcement stresses at the nodes of each meshed reinforcement analysis section

  • meshed_reinforcement_forces (List[Tuple[float, float, float]]) – List of net forces for each meshed reinforcement analysis section and its lever arm (force, d_x, d_y)

  • lumped_reinforcement_geometries (List[CPGeom]) – List of lumped reinforcement geometry objects present in the stress analysis

  • lumped_reinforcement_stresses (List[float]) – List of lumped reinforcement stresses for each lumped geometry

  • lumped_reinforcement_strains (List[float]) – List of lumped reinforcement strains for each lumped geometry

  • lumped_reinforcement_forces (List[Tuple[float, float, float]]) – List of net forces for each lumped reinforcement geometry and its lever arm (force, d_x, d_y)

  • strand_geometries (List[CPGeom], default: <factory>) – List of strand geometry objects present in the stress analysis

  • strand_stresses (List[float], default: <factory>) – List of strand stresses for each strand

  • strand_strains (List[float], default: <factory>) – List of strand strains for each strand

  • strand_forces (List[Tuple[float, float, float]], default: <factory>) – List of net forces for each strand geometry and its lever arm (force, d_x, d_y)

Methods

get_concrete_stress_limits

Returns the minimum and maximum concrete stress.

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

meshed_reinforcement_sections

meshed_reinforcement_stresses

meshed_reinforcement_forces

lumped_reinforcement_geometries

lumped_reinforcement_stresses

lumped_reinforcement_strains

lumped_reinforcement_forces

strand_geometries

strand_stresses

strand_strains

strand_forces

plot_stress(title='Stress', conc_cmap='RdGy', reinf_cmap='bwr', **kwargs)[source]#

Plots concrete and steel stresses on a concrete section.

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

  • conc_cmap (str, default: 'RdGy') – Colour map for the concrete stress

  • reinf_cmap (str, default: 'bwr') – Colour map for the reinforcement stress

  • kwargs – Passed to plotting_context()

Returns

Axes – Matplotlib axes object

sum_forces()[source]#

Returns the sum of the internal forces.

Returns

float – Sum of internal forces

sum_moments()[source]#

Returns the sum of the internal moments.

Returns

Tuple[float, float, float] – Sum of internal moments about each axis and resultant moment (m_x, m_y, m)

get_concrete_stress_limits()[source]#

Returns the minimum and maximum concrete stress.

Returns

Tuple[float, float] – Minimum concrete stress, maximum concrete stress