Skip to content

retaining_wall

Concrete Retaining Wall Design Module using Eurocode 7

This module provides functions to design and verify reinforced concrete cantilever retaining walls in accordance with the European standard EN 1997-1:2004 (Eurocode 7 - Geotechnical design - Part 1: General rules).

Main Features:

  • Calculation of earth pressures using Rankine, Coulomb, and EC7 methods
  • Overturning, sliding, and bearing capacity checks
  • Reinforcement design for stem and base slab
  • Stability verification under various load cases

References:

  • EN 1997-1:2004 - Eurocode 7: Geotechnical design – Part 1: General rules
  • EN 1992-1-1:2004 - Eurocode 2: Design of concrete structures

set_seismic(code, soil, imp_coef, spec, zone)

Sets the parameters for the seismic action 1 and 2

Parameters:

Name Type Description Default
code str

country (EU, PT)

required
soil str

type of soil (A, B, C, D, E)

required
imp_coef str

importance coeficient (i, ii, iii, iv)

required
spec1 str

spectrum name (for PT: PT-1, PT-2, PT-A) (for EU: CEN-1, CECN-2)

required
zone1 str

seismic zone 1 (for PT: 1.1, 1.2, 1.3, 1.4, 1.5, 1.6) (for EU: .1g, .2g ...)

required
Source code in eurocodepy/ec7/retaining_wall.py
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
def set_seismic(code: str, soil: str, imp_coef: str, spec: str, zone: str):
    """Sets the parameters for the seismic action 1 and 2

    Args:
        code (str): country (EU, PT)
        soil (str): type of soil (A, B, C, D, E)
        imp_coef (str): importance coeficient (i, ii, iii, iv)
        spec1 (str): spectrum name (for PT: PT-1, PT-2, PT-A)
                                    (for EU: CEN-1, CECN-2)
        zone1 (str): seismic zone 1 (for PT: 1.1, 1.2, 1.3, 1.4, 1.5, 1.6)
                                    (for EU: .1g, .2g ...)
    """

    ag = db["Loads"]["Seismic"]["Locale"][code]["a_gR"][spec][zone]
    smax = db["Loads"]["Seismic"]["Locale"][code]["Spectrum"][spec][soil]["S_max"]
    impcoef = db["Loads"]["Seismic"]["Locale"][code]["ImportanceCoef"][spec][imp_coef]
    agvagh = db["Loads"]["Seismic"]["Locale"][code]["avg_ahg"][spec]

    return SeismicParameters(spec, ag, smax, impcoef, agvagh)