Skip to content

timsta95/stabilipy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stabilipy

A Python library for stability analyses of gravity dams.

Please note that the current version is not listed on PyPI yet.

Description

Stabilipy provides tools for analyzing the stability of gravity dams, including calculations for:

  • Sliding safety factors
  • Overturning safety factors
  • Water pressure forces
  • Uplift forces
  • Ice pressure
  • Backfill effects
  • Rock anchor forces

Quick Start

from stabilipy import stability, section, constants
from shapely.geometry import Polygon

# Define dam geometry
dam_coords = [(0, 0), (0, 10), (3, 10), (5, 0), (0, 0)]
dam_polygon = Polygon(dam_coords)
dam = section.CompositeDam.from_polygons(
        [dam_polygon], [constants.CONCRETE], name="Test Dam", color="k"
    )

# Create stability analysis
stab = stability.Stability(
    dam=dam,
    upstream_water_level=8.0,
    downstream_water_level=0.5
)

# Calculate safety factors
sliding_sf = stab.calculate_sliding()
overturning_sf = stab.calculate_overturning()

print(f"Sliding Safety Factor: {sliding_sf:.2f}")
print(f"Overturning Safety Factor: {overturning_sf:.2f}")

Features

  • Force Calculations: Water pressure, uplift, ice pressure, backfill etc.
  • Safety Factor Analysis: Sliding and overturning stability
  • Visualization: Plot dam geometry and forces
  • Configurable Components: Enable/disable specific force components
  • Rock Anchors: Support for anchor force analysis

Dependencies

  • shapely - Geometric operations
  • matplotlib - Plotting and visualization
  • pandas - Data handling for output tables

License

MIT License - see LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a pull request.

Releases

No releases published

Packages

No packages published