DesignCode#

class concreteproperties.design_codes.design_code.DesignCode[source]#

Bases: object

Abstract class for a design code object.

Methods

assign_concrete_section

Assigns a concrete section to the design code.

biaxial_bending_diagram

Generates a biaxial bending diagram.

calculate_cracked_properties

Calculates cracked section properties.

calculate_cracked_stress

Calculates cracked stresses within the reinforced concrete section.

calculate_service_stress

Calculates service stresses within the reinforced concrete section.

calculate_ultimate_stress

Calculates ultimate stresses within the reinforced concrete section.

calculate_uncracked_stress

Calculates uncracked stresses within the reinforced concrete section.

create_concrete_material

Returns a concrete material object.

create_steel_material

Returns a steel bar material object.

get_gross_properties

Returns the gross section properties of the reinforced concrete section.

get_transformed_gross_properties

Transforms gross section properties.

moment_curvature_analysis

Performs a moment curvature analysis (no reduction factors applied).

moment_interaction_diagram

Generates a moment interaction diagram.

ultimate_bending_capacity

Calculates the ultimate bending capacity.

__init__() None[source]#

Inits the DesignCode class.

assign_concrete_section(concrete_section: ConcreteSection) None[source]#

Assigns a concrete section to the design code.

Parameters:

concrete_section (ConcreteSection) – Concrete section object to analyse

create_concrete_material(compressive_strength: float, colour: str = 'lightgrey') Concrete[source]#

Returns a concrete material object.

List assumptions of material properties here…

Parameters:
  • compressive_strength (float) – Concrete compressive strength

  • colour (str) – Colour of the concrete for rendering

Raises:

NotImplementedError – If this method has not been implemented by the child class

Return type:

Concrete

create_steel_material(yield_strength: float, colour: str = 'grey') SteelBar[source]#

Returns a steel bar material object.

List assumptions of material properties here…

Parameters:
  • yield_strength (float) – Steel yield strength

  • colour (str) – Colour of the steel for rendering

Raises:

NotImplementedError – If this method has not been implemented by the child class

Return type:

SteelBar

get_gross_properties(**kwargs) GrossProperties[source]#

Returns the gross section properties of the reinforced concrete section.

Parameters:

kwargs – Keyword arguments passed to get_gross_properties()

Returns:

Concrete properties object

Return type:

GrossProperties

get_transformed_gross_properties(**kwargs) TransformedGrossProperties[source]#

Transforms gross section properties.

Parameters:

kwargs – Keyword arguments passed to get_transformed_gross_properties()

Returns:

Transformed concrete properties object

Return type:

TransformedGrossProperties

calculate_cracked_properties(**kwargs) CrackedResults[source]#

Calculates cracked section properties.

Parameters:

kwargs – Keyword arguments passed to calculate_cracked_properties()

Returns:

Cracked results object

Return type:

CrackedResults

moment_curvature_analysis(**kwargs) MomentCurvatureResults[source]#

Performs a moment curvature analysis (no reduction factors applied).

Parameters:

kwargs – Keyword arguments passed to moment_curvature_analysis()

Returns:

Moment curvature results object

Return type:

MomentCurvatureResults

ultimate_bending_capacity(**kwargs) UltimateBendingResults[source]#

Calculates the ultimate bending capacity.

Parameters:

kwargs – Keyword arguments passed to ultimate_bending_capacity()

Returns:

Ultimate bending results object

Return type:

UltimateBendingResults

moment_interaction_diagram(**kwargs) MomentInteractionResults[source]#

Generates a moment interaction diagram.

Parameters:

kwargs – Keyword arguments passed to moment_interaction_diagram()

Returns:

Moment interaction results object

Return type:

MomentInteractionResults

biaxial_bending_diagram(**kwargs) BiaxialBendingResults[source]#

Generates a biaxial bending diagram.

Parameters:

kwargs – Keyword arguments passed to biaxial_bending_diagram()

Returns:

Biaxial bending results

Return type:

BiaxialBendingResults

calculate_uncracked_stress(**kwargs) StressResult[source]#

Calculates uncracked stresses within the reinforced concrete section.

Parameters:

kwargs – Keyword arguments passed to calculate_uncracked_stress()

Returns:

Stress results object

Return type:

StressResult

calculate_cracked_stress(**kwargs) StressResult[source]#

Calculates cracked stresses within the reinforced concrete section.

Parameters:

kwargs – Keyword arguments passed to calculate_cracked_stress()

Returns:

Stress results object

Return type:

StressResult

calculate_service_stress(**kwargs) StressResult[source]#

Calculates service stresses within the reinforced concrete section.

Parameters:

kwargs – Keyword arguments passed to calculate_service_stress()

Returns:

Stress results object

Return type:

StressResult

calculate_ultimate_stress(**kwargs) StressResult[source]#

Calculates ultimate stresses within the reinforced concrete section.

Parameters:

kwargs – Keyword arguments passed to calculate_ultimate_stress()

Returns:

Stress results object

Return type:

StressResult