This project demonstrates the structural analysis of a Cantilever Retaining Wall using the OpenSeesPy library. The script defines a 2D plane strain model with triangular elements, simulates static loads, and outputs the displacements for the nodes.
This script models and analyzes a cantilever retaining wall under specific load conditions. The key steps include:
-
Model Initialization:
- Clearing previous models and defining a 2D space with two degrees of freedom (DOF) per node.
-
Node and Element Definitions:
- Nodes and triangular elements (
Tri31
) are defined for the plane strain model.
- Nodes and triangular elements (
-
Boundary Conditions:
- Supports are set to restrict translational motion based on the design.
-
Material Properties:
- An elastic isotropic material with defined modulus of elasticity and Poisson’s ratio.
-
Loading Conditions:
- Static loads are applied at specific nodes to simulate external forces.
-
Static Analysis:
- A linear static analysis is performed, and nodal displacements are extracted.
main.py
: Python script containing the OpenSeesPy model.
Ensure you have Python installed and the necessary libraries
pip install openseespy openseespy.postprocessing
Run the script using Python:
python main.py
The script prints the displacements (x and y directions) for each node after the analysis.
Sample Output:
1 numaralı düğüm x= 0.0 m - y= 0.0 m
2 numaralı düğüm x= 0.0 m - y= -0.001 m
...
16 numaralı düğüm x= -0.0025 m - y= -0.0020 m
The model with nodes and elements is plotted using the plot_model function:
- Nodes are labeled.
- Elements are visualized for verification.