SlideShare a Scribd company logo
Consolidation Settlement Calculation
Program-The Python Code
By Professor Dr. Costas Sachpazis, Civil Engineer & Geologist
This program calculates the consolidation settlement for a foundation based on soil
layer properties and foundation data. It allows users to input multiple soil layers and
foundation characteristics to determine the total settlement.
The Code:
import math
def get_float_input(prompt):
while True:
try:
return float(input(prompt))
except ValueError:
print("Please enter a valid number.")
def get_int_input(prompt):
while True:
try:
return int(input(prompt))
except ValueError:
print("Please enter a valid integer.")
def consolidation_settlement(mv, H, delta_sigma):
return mv * H * delta_sigma
def stress_distribution(q_net, B, L, Z):
return (q_net * B * L) / ((B + Z) * (L + Z))
def calculate_settlement(soil_layer, foundation_data, Z):
mv = soil_layer['mv']
gamma = soil_layer['gamma']
H = soil_layer['thickness'] * 100 # Convert m to cm
Df = foundation_data['Df']
B = foundation_data['B']
L = foundation_data['L']
q_imposed = foundation_data['q_imposed']
q_excavation = Df * gamma
q_net = q_imposed - q_excavation
delta_sigma = stress_distribution(q_net, B, L, Z)
delta_sigma_kgf_cm2 = delta_sigma / 98.0665
settlement = consolidation_settlement(mv, H,
delta_sigma_kgf_cm2)
return settlement
def get_soil_data():
print("nEnter soil layer data:")
thickness = get_float_input("Layer thickness (m): ")
mv = get_float_input("Coefficient of volume
compressibility (cm²/kgf): ")
gamma = get_float_input("Unit weight of soil (kN/m³):
")
c = get_float_input("Cohesion (kN/m²): ")
phi = get_float_input("Internal friction angle
(degrees): ")
e = get_float_input("Void ratio: ")
k = get_float_input("Hydraulic conductivity (m/s): ")
return {
'thickness': thickness,
'mv': mv,
'gamma': gamma,
'c': c,
'phi': phi,
'e': e,
'k': k
}
def get_foundation_data():
print("nEnter foundation data:")
Df = get_float_input("Foundation depth (m): ")
B = get_float_input("Foundation width (m): ")
L = get_float_input("Foundation length (m): ")
q_imposed = get_float_input("Imposed load (kPa): ")
return {'Df': Df, 'B': B, 'L': L, 'q_imposed':
q_imposed}
def main():
print("Consolidation Settlement Calculation")
print("By Professor Dr. Costas Sachpazis, Civil
Engineer")
print("====================================")
num_layers = get_int_input("Enter the number of soil
layers: ")
soil_layers = [get_soil_data() for _ in
range(num_layers)]
foundation_data = get_foundation_data()
print("nCalculation Results:")
print("--------------------")
total_settlement = 0
current_depth = 0
for i, soil_layer in enumerate(soil_layers, 1):
Z = current_depth + soil_layer['thickness'] / 2
settlement = calculate_settlement(soil_layer,
foundation_data, Z)
print(f"Layer {i} (Depth: {current_depth:.2f}-
{current_depth + soil_layer['thickness']:.2f} m):")
print(f" Settlement: {settlement:.4f} cm")
print(f" Soil properties:")
print(f" Thickness: {soil_layer['thickness']}
m")
print(f" mv: {soil_layer['mv']} cm²/kgf")
print(f" Unit weight: {soil_layer['gamma']}
kN/m³")
print(f" Cohesion: {soil_layer['c']} kN/m²")
print(f" Friction angle:
{soil_layer['phi']}°")
print(f" Void ratio: {soil_layer['e']}")
print(f" Hydraulic conductivity:
{soil_layer['k']} m/s")
total_settlement += settlement
current_depth += soil_layer['thickness']
print(f"nTotal Settlement: {total_settlement:.4f}
cm")
print(f"nFoundation Properties:")
print(f" Depth: {foundation_data['Df']} m")
print(f" Width: {foundation_data['B']} m")
print(f" Length: {foundation_data['L']} m")
print(f" Imposed load:
{foundation_data['q_imposed']} kPa")
print("nCalculation performed using the program
developed by Professor Dr. Costas Sachpazis, Civil
Engineer")
if __name__ == "__main__":
main()
End of the Code
User Manual: Consolidation Settlement
Calculation Program
By Professor Dr. Costas Sachpazis, Civil Engineer & Geologist
Introduction
This program calculates the consolidation settlement for a foundation based on soil
layer properties and foundation data. It allows users to input multiple soil layers and
foundation characteristics to determine the total settlement.
Program Overview
The program performs the following main tasks:
1. Collects data for multiple soil layers
2. Gathers foundation information
3. Calculates settlement for each soil layer
4. Computes the total settlement
5. Displays detailed results for each layer and the foundation
Step-by-Step Usage Guide
1. Starting the Program
Run the Python script "Consolidation_settlement_calculation_Dr.C.S..py" in your
preferred Python environment.
2. Entering Soil Layer Data
a. The program will prompt you to enter the number of soil layers. b. For each layer,
you'll need to provide the following information:
 Layer thickness (in meters)
 Coefficient of volume compressibility (mv, in cm²/kgf)
 Unit weight of soil (γ, in kN/m³)
 Cohesion (c, in kN/m²)
 Internal friction angle (φ, in degrees)
 Void ratio (e)
 Hydraulic conductivity (k, in m/s)
3. Entering Foundation Data
After soil layer information, you'll be asked to input foundation details:
 Foundation depth (Df, in meters)
 Foundation width (B, in meters)
 Foundation length (L, in meters)
 Imposed load (q_imposed, in kPa)
4. Calculation Process
The program will then: a. Calculate the excavation pressure (q_excavation = Df * γ) b.
Determine the net pressure (q_net = q_imposed - q_excavation) c. Compute stress
increase at the center of each soil layer d. Calculate settlement for each layer using the
consolidation settlement formula e. Sum up the settlements to get the total settlement
5. Viewing Results
The program will display: a. For each soil layer:
 Layer number and depth range
 Calculated settlement
 Input soil properties b. Total settlement c. Input foundation properties
Formulas Used
1. Consolidation Settlement: S = mv * H * Δσ Where:
o S is the settlement
o mv is the coefficient of volume compressibility
o H is the layer thickness
o Δσ is the stress increase
2. Stress Distribution: Δσ = (q_net * B * L) / ((B + Z) * (L + Z)) Where:
o q_net is the net pressure
o B and L are foundation width and length
o Z is the depth to the center of the soil layer
Important Notes
1. All input values should be in the units specified in the prompts.
2. The program converts some units internally:
o Soil layer thickness is converted from meters to centimeters
o Stress increase is converted from kPa to kgf/cm²
3. The program uses error handling to ensure valid numeric inputs.
4. Results are displayed with four decimal places for precision.
Expected Outputs
1. Detailed information for each soil layer, including:
o Settlement
o Input soil properties
2. Total settlement for all layers combined
3. Input foundation properties
This program provides a comprehensive analysis of consolidation settlement, taking
into account multiple soil layers and foundation characteristics. It's useful for
geotechnical engineers and students studying soil mechanics and foundation
engineering.
Developed by Professor Dr. Costas Sachpazis, Civil Engineer & Geologist
Email: costas@sachpazis.info

More Related Content

Similar to Sachpazis_Consolidation Settlement Calculation Program-The Python Code and the User Manual

Construction engineering formula sheet
Construction engineering formula sheetConstruction engineering formula sheet
Construction engineering formula sheet
Prionath Roy
 
ImplementDijkstra’s algorithm using the graph class you implemente.pdf
ImplementDijkstra’s algorithm using the graph class you implemente.pdfImplementDijkstra’s algorithm using the graph class you implemente.pdf
ImplementDijkstra’s algorithm using the graph class you implemente.pdf
gopalk44
 
Project Staad pro.pptx
Project Staad pro.pptxProject Staad pro.pptx
Project Staad pro.pptx
SAM RAVI
 
Revision1 C programming
Revision1 C programmingRevision1 C programming
Revision1 C programming
Kho コー。イエー。イエン
 
GRASSy GIS
GRASSy GISGRASSy GIS
GRASSy GIS
Hardeep Rai
 
Test 1 alish schema 1
Test 1 alish schema 1Test 1 alish schema 1
Test 1 alish schema 1
alish sha
 
openFrameworks 007 - 3D
openFrameworks 007 - 3DopenFrameworks 007 - 3D
openFrameworks 007 - 3D
roxlu
 
CS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and CullingCS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and Culling
Mark Kilgard
 
golang_getting_started.pptx
golang_getting_started.pptxgolang_getting_started.pptx
golang_getting_started.pptx
Guy Komari
 
Go a crash course
Go   a crash courseGo   a crash course
Go a crash course
Eleanor McHugh
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Mario Fusco
 
L08VariablesInC.ppt
L08VariablesInC.pptL08VariablesInC.ppt
L08VariablesInC.ppt
AdharulMTaqin
 
10_interfacesjavaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf
10_interfacesjavaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf10_interfacesjavaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf
10_interfacesjavaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf
RihabBENLAMINE
 
Go Programming Language (Golang)
Go Programming Language (Golang)Go Programming Language (Golang)
Go Programming Language (Golang)
Ishin Vin
 
C programming
C programmingC programming
C programming
Shahariar limon
 
CIS355A_StudentName_CourseProjectCIS355A Week 7 Course Project..docx
CIS355A_StudentName_CourseProjectCIS355A Week 7 Course Project..docxCIS355A_StudentName_CourseProjectCIS355A Week 7 Course Project..docx
CIS355A_StudentName_CourseProjectCIS355A Week 7 Course Project..docx
clarebernice
 
lecturenote_1463116827CHAPTER-II-BEARING CAPACITY OF FOUNDATION SOIL.pdf
lecturenote_1463116827CHAPTER-II-BEARING CAPACITY OF FOUNDATION SOIL.pdflecturenote_1463116827CHAPTER-II-BEARING CAPACITY OF FOUNDATION SOIL.pdf
lecturenote_1463116827CHAPTER-II-BEARING CAPACITY OF FOUNDATION SOIL.pdf
2cd
 
CountryData.cppEDIT THIS ONE#include fstream #include str.pdf
CountryData.cppEDIT THIS ONE#include fstream #include str.pdfCountryData.cppEDIT THIS ONE#include fstream #include str.pdf
CountryData.cppEDIT THIS ONE#include fstream #include str.pdf
Aggarwalelectronic18
 
Go Programming Patterns
Go Programming PatternsGo Programming Patterns
Go Programming Patterns
Hao Chen
 
BEARING CAPASITY OFSOIL.ppt
BEARING CAPASITY OFSOIL.pptBEARING CAPASITY OFSOIL.ppt
BEARING CAPASITY OFSOIL.ppt
SamuelGetiye
 

Similar to Sachpazis_Consolidation Settlement Calculation Program-The Python Code and the User Manual (20)

Construction engineering formula sheet
Construction engineering formula sheetConstruction engineering formula sheet
Construction engineering formula sheet
 
ImplementDijkstra’s algorithm using the graph class you implemente.pdf
ImplementDijkstra’s algorithm using the graph class you implemente.pdfImplementDijkstra’s algorithm using the graph class you implemente.pdf
ImplementDijkstra’s algorithm using the graph class you implemente.pdf
 
Project Staad pro.pptx
Project Staad pro.pptxProject Staad pro.pptx
Project Staad pro.pptx
 
Revision1 C programming
Revision1 C programmingRevision1 C programming
Revision1 C programming
 
GRASSy GIS
GRASSy GISGRASSy GIS
GRASSy GIS
 
Test 1 alish schema 1
Test 1 alish schema 1Test 1 alish schema 1
Test 1 alish schema 1
 
openFrameworks 007 - 3D
openFrameworks 007 - 3DopenFrameworks 007 - 3D
openFrameworks 007 - 3D
 
CS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and CullingCS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and Culling
 
golang_getting_started.pptx
golang_getting_started.pptxgolang_getting_started.pptx
golang_getting_started.pptx
 
Go a crash course
Go   a crash courseGo   a crash course
Go a crash course
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...
 
L08VariablesInC.ppt
L08VariablesInC.pptL08VariablesInC.ppt
L08VariablesInC.ppt
 
10_interfacesjavaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf
10_interfacesjavaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf10_interfacesjavaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf
10_interfacesjavaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf
 
Go Programming Language (Golang)
Go Programming Language (Golang)Go Programming Language (Golang)
Go Programming Language (Golang)
 
C programming
C programmingC programming
C programming
 
CIS355A_StudentName_CourseProjectCIS355A Week 7 Course Project..docx
CIS355A_StudentName_CourseProjectCIS355A Week 7 Course Project..docxCIS355A_StudentName_CourseProjectCIS355A Week 7 Course Project..docx
CIS355A_StudentName_CourseProjectCIS355A Week 7 Course Project..docx
 
lecturenote_1463116827CHAPTER-II-BEARING CAPACITY OF FOUNDATION SOIL.pdf
lecturenote_1463116827CHAPTER-II-BEARING CAPACITY OF FOUNDATION SOIL.pdflecturenote_1463116827CHAPTER-II-BEARING CAPACITY OF FOUNDATION SOIL.pdf
lecturenote_1463116827CHAPTER-II-BEARING CAPACITY OF FOUNDATION SOIL.pdf
 
CountryData.cppEDIT THIS ONE#include fstream #include str.pdf
CountryData.cppEDIT THIS ONE#include fstream #include str.pdfCountryData.cppEDIT THIS ONE#include fstream #include str.pdf
CountryData.cppEDIT THIS ONE#include fstream #include str.pdf
 
Go Programming Patterns
Go Programming PatternsGo Programming Patterns
Go Programming Patterns
 
BEARING CAPASITY OFSOIL.ppt
BEARING CAPASITY OFSOIL.pptBEARING CAPASITY OFSOIL.ppt
BEARING CAPASITY OFSOIL.ppt
 

More from Dr.Costas Sachpazis

Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Dr.Costas Sachpazis
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Dr.Costas Sachpazis
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Dr.Costas Sachpazis
 
Sachpazis: Steel member fire resistance design to Eurocode 3 / Σαχπάζης: Σχεδ...
Sachpazis: Steel member fire resistance design to Eurocode 3 / Σαχπάζης: Σχεδ...Sachpazis: Steel member fire resistance design to Eurocode 3 / Σαχπάζης: Σχεδ...
Sachpazis: Steel member fire resistance design to Eurocode 3 / Σαχπάζης: Σχεδ...
Dr.Costas Sachpazis
 
Sachpazis_Retaining Structures-Ground Anchors and Anchored Systems_C_Sachpazi...
Sachpazis_Retaining Structures-Ground Anchors and Anchored Systems_C_Sachpazi...Sachpazis_Retaining Structures-Ground Anchors and Anchored Systems_C_Sachpazi...
Sachpazis_Retaining Structures-Ground Anchors and Anchored Systems_C_Sachpazi...
Dr.Costas Sachpazis
 
Chapter9Lec16Jan03.ppt
Chapter9Lec16Jan03.pptChapter9Lec16Jan03.ppt
Chapter9Lec16Jan03.ppt
Dr.Costas Sachpazis
 
ΓΕΩΛΟΓΙΚΟΙ ΧΑΡΤΕΣ IntroToMaps_v2_PART1.ppt
ΓΕΩΛΟΓΙΚΟΙ ΧΑΡΤΕΣ IntroToMaps_v2_PART1.pptΓΕΩΛΟΓΙΚΟΙ ΧΑΡΤΕΣ IntroToMaps_v2_PART1.ppt
ΓΕΩΛΟΓΙΚΟΙ ΧΑΡΤΕΣ IntroToMaps_v2_PART1.ppt
Dr.Costas Sachpazis
 
MBA-EMarketing-Lecture.pptx
MBA-EMarketing-Lecture.pptxMBA-EMarketing-Lecture.pptx
MBA-EMarketing-Lecture.pptx
Dr.Costas Sachpazis
 
Marketing.ppt
Marketing.pptMarketing.ppt
Marketing.ppt
Dr.Costas Sachpazis
 
Sachpazis σαχπάζης φορέας αμφιέρειστης πλάκας
Sachpazis σαχπάζης φορέας αμφιέρειστης πλάκαςSachpazis σαχπάζης φορέας αμφιέρειστης πλάκας
Sachpazis σαχπάζης φορέας αμφιέρειστης πλάκας
Dr.Costas Sachpazis
 
Single pile analysis & design, l=18,00m d=1,10m, by C.Sachpazis
Single pile analysis & design, l=18,00m d=1,10m, by C.SachpazisSingle pile analysis & design, l=18,00m d=1,10m, by C.Sachpazis
Single pile analysis & design, l=18,00m d=1,10m, by C.Sachpazis
Dr.Costas Sachpazis
 
Pile configuration optimization on the design of combined piled raft foundations
Pile configuration optimization on the design of combined piled raft foundationsPile configuration optimization on the design of combined piled raft foundations
Pile configuration optimization on the design of combined piled raft foundations
Dr.Costas Sachpazis
 
Σαχπάζης Πλεονεκτήματα και Προκλήσεις της Αιολικής Ενέργειας
Σαχπάζης Πλεονεκτήματα και Προκλήσεις της Αιολικής ΕνέργειαςΣαχπάζης Πλεονεκτήματα και Προκλήσεις της Αιολικής Ενέργειας
Σαχπάζης Πλεονεκτήματα και Προκλήσεις της Αιολικής Ενέργειας
Dr.Costas Sachpazis
 
Sachpazis: Raft Foundation Analysis and Design for a two Storey House Project...
Sachpazis: Raft Foundation Analysis and Design for a two Storey House Project...Sachpazis: Raft Foundation Analysis and Design for a two Storey House Project...
Sachpazis: Raft Foundation Analysis and Design for a two Storey House Project...
Dr.Costas Sachpazis
 
Sachpazis_Pile Analysis and Design for Acropolis Project According to EN 1997...
Sachpazis_Pile Analysis and Design for Acropolis Project According to EN 1997...Sachpazis_Pile Analysis and Design for Acropolis Project According to EN 1997...
Sachpazis_Pile Analysis and Design for Acropolis Project According to EN 1997...
Dr.Costas Sachpazis
 
Sachpazis truss analysis and design example_28-02-2021
Sachpazis truss analysis and design example_28-02-2021Sachpazis truss analysis and design example_28-02-2021
Sachpazis truss analysis and design example_28-02-2021
Dr.Costas Sachpazis
 
Sachpazis" Analysis of Geogrid Reinforced Earth Slope Stability & Capacity
Sachpazis" Analysis of Geogrid Reinforced Earth Slope Stability & CapacitySachpazis" Analysis of Geogrid Reinforced Earth Slope Stability & Capacity
Sachpazis" Analysis of Geogrid Reinforced Earth Slope Stability & Capacity
Dr.Costas Sachpazis
 
Sachpazis what is differential settlement 4654
Sachpazis what is differential settlement 4654Sachpazis what is differential settlement 4654
Sachpazis what is differential settlement 4654
Dr.Costas Sachpazis
 
Sachpazis: Retaining Walls - Know How Basics_
Sachpazis: Retaining Walls - Know How Basics_Sachpazis: Retaining Walls - Know How Basics_
Sachpazis: Retaining Walls - Know How Basics_
Dr.Costas Sachpazis
 

More from Dr.Costas Sachpazis (20)

Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Sachpazis: Steel member fire resistance design to Eurocode 3 / Σαχπάζης: Σχεδ...
Sachpazis: Steel member fire resistance design to Eurocode 3 / Σαχπάζης: Σχεδ...Sachpazis: Steel member fire resistance design to Eurocode 3 / Σαχπάζης: Σχεδ...
Sachpazis: Steel member fire resistance design to Eurocode 3 / Σαχπάζης: Σχεδ...
 
Sachpazis_Retaining Structures-Ground Anchors and Anchored Systems_C_Sachpazi...
Sachpazis_Retaining Structures-Ground Anchors and Anchored Systems_C_Sachpazi...Sachpazis_Retaining Structures-Ground Anchors and Anchored Systems_C_Sachpazi...
Sachpazis_Retaining Structures-Ground Anchors and Anchored Systems_C_Sachpazi...
 
Chapter9Lec16Jan03.ppt
Chapter9Lec16Jan03.pptChapter9Lec16Jan03.ppt
Chapter9Lec16Jan03.ppt
 
ΓΕΩΛΟΓΙΚΟΙ ΧΑΡΤΕΣ IntroToMaps_v2_PART1.ppt
ΓΕΩΛΟΓΙΚΟΙ ΧΑΡΤΕΣ IntroToMaps_v2_PART1.pptΓΕΩΛΟΓΙΚΟΙ ΧΑΡΤΕΣ IntroToMaps_v2_PART1.ppt
ΓΕΩΛΟΓΙΚΟΙ ΧΑΡΤΕΣ IntroToMaps_v2_PART1.ppt
 
MBA-EMarketing-Lecture.pptx
MBA-EMarketing-Lecture.pptxMBA-EMarketing-Lecture.pptx
MBA-EMarketing-Lecture.pptx
 
Marketing.ppt
Marketing.pptMarketing.ppt
Marketing.ppt
 
Sachpazis σαχπάζης φορέας αμφιέρειστης πλάκας
Sachpazis σαχπάζης φορέας αμφιέρειστης πλάκαςSachpazis σαχπάζης φορέας αμφιέρειστης πλάκας
Sachpazis σαχπάζης φορέας αμφιέρειστης πλάκας
 
Single pile analysis & design, l=18,00m d=1,10m, by C.Sachpazis
Single pile analysis & design, l=18,00m d=1,10m, by C.SachpazisSingle pile analysis & design, l=18,00m d=1,10m, by C.Sachpazis
Single pile analysis & design, l=18,00m d=1,10m, by C.Sachpazis
 
Pile configuration optimization on the design of combined piled raft foundations
Pile configuration optimization on the design of combined piled raft foundationsPile configuration optimization on the design of combined piled raft foundations
Pile configuration optimization on the design of combined piled raft foundations
 
Σαχπάζης Πλεονεκτήματα και Προκλήσεις της Αιολικής Ενέργειας
Σαχπάζης Πλεονεκτήματα και Προκλήσεις της Αιολικής ΕνέργειαςΣαχπάζης Πλεονεκτήματα και Προκλήσεις της Αιολικής Ενέργειας
Σαχπάζης Πλεονεκτήματα και Προκλήσεις της Αιολικής Ενέργειας
 
Sachpazis: Raft Foundation Analysis and Design for a two Storey House Project...
Sachpazis: Raft Foundation Analysis and Design for a two Storey House Project...Sachpazis: Raft Foundation Analysis and Design for a two Storey House Project...
Sachpazis: Raft Foundation Analysis and Design for a two Storey House Project...
 
Sachpazis_Pile Analysis and Design for Acropolis Project According to EN 1997...
Sachpazis_Pile Analysis and Design for Acropolis Project According to EN 1997...Sachpazis_Pile Analysis and Design for Acropolis Project According to EN 1997...
Sachpazis_Pile Analysis and Design for Acropolis Project According to EN 1997...
 
Sachpazis truss analysis and design example_28-02-2021
Sachpazis truss analysis and design example_28-02-2021Sachpazis truss analysis and design example_28-02-2021
Sachpazis truss analysis and design example_28-02-2021
 
Sachpazis" Analysis of Geogrid Reinforced Earth Slope Stability & Capacity
Sachpazis" Analysis of Geogrid Reinforced Earth Slope Stability & CapacitySachpazis" Analysis of Geogrid Reinforced Earth Slope Stability & Capacity
Sachpazis" Analysis of Geogrid Reinforced Earth Slope Stability & Capacity
 
Sachpazis what is differential settlement 4654
Sachpazis what is differential settlement 4654Sachpazis what is differential settlement 4654
Sachpazis what is differential settlement 4654
 
Sachpazis: Retaining Walls - Know How Basics_
Sachpazis: Retaining Walls - Know How Basics_Sachpazis: Retaining Walls - Know How Basics_
Sachpazis: Retaining Walls - Know How Basics_
 

Recently uploaded

JORC_Review_presentation. 2024 código jorcpdf
JORC_Review_presentation. 2024 código jorcpdfJORC_Review_presentation. 2024 código jorcpdf
JORC_Review_presentation. 2024 código jorcpdf
WilliamsNuezEspetia
 
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
John Gallagher
 
charting the development of the autonomous train
charting the development of the autonomous traincharting the development of the autonomous train
charting the development of the autonomous train
huseindihon
 
Safety Operating Procedure for Testing Lifting Tackles
Safety Operating Procedure for Testing Lifting TacklesSafety Operating Procedure for Testing Lifting Tackles
Safety Operating Procedure for Testing Lifting Tackles
ssuserfcf701
 
AI INTRODUCTION Artificial intelligence.ppt
AI INTRODUCTION Artificial intelligence.pptAI INTRODUCTION Artificial intelligence.ppt
AI INTRODUCTION Artificial intelligence.ppt
GeethaAL
 
AI chapter1 introduction to artificial intelligence
AI chapter1 introduction to artificial intelligenceAI chapter1 introduction to artificial intelligence
AI chapter1 introduction to artificial intelligence
GeethaAL
 
Lab session on Robot Control using teach pendant.pptx
Lab session on Robot Control using teach pendant.pptxLab session on Robot Control using teach pendant.pptx
Lab session on Robot Control using teach pendant.pptx
KPavanKumarReddy4
 
Adv. Digital Signal Processing LAB MANUAL.pdf
Adv. Digital Signal Processing LAB MANUAL.pdfAdv. Digital Signal Processing LAB MANUAL.pdf
Adv. Digital Signal Processing LAB MANUAL.pdf
T.D. Shashikala
 
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYSDPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
RyanMacayan
 
NOVEC 1230 Fire Suppression System Presentation
NOVEC 1230 Fire Suppression System PresentationNOVEC 1230 Fire Suppression System Presentation
NOVEC 1230 Fire Suppression System Presentation
miniruwan1
 
How to Formulate A Good Research Question
How to Formulate A  Good Research QuestionHow to Formulate A  Good Research Question
How to Formulate A Good Research Question
rkpv2002
 
Girls Call Mysore 000XX00000 Provide Best And Top Girl Service And No1 in City
Girls Call Mysore 000XX00000 Provide Best And Top Girl Service And No1 in CityGirls Call Mysore 000XX00000 Provide Best And Top Girl Service And No1 in City
Girls Call Mysore 000XX00000 Provide Best And Top Girl Service And No1 in City
rawankhanlove256
 
the potential for the development of autonomous aircraft
the potential for the development of autonomous aircraftthe potential for the development of autonomous aircraft
the potential for the development of autonomous aircraft
huseindihon
 
Presentation slide on DESIGN AND FABRICATION OF MOBILE CONTROLLED DRAINAGE.pptx
Presentation slide on DESIGN AND FABRICATION OF MOBILE CONTROLLED DRAINAGE.pptxPresentation slide on DESIGN AND FABRICATION OF MOBILE CONTROLLED DRAINAGE.pptx
Presentation slide on DESIGN AND FABRICATION OF MOBILE CONTROLLED DRAINAGE.pptx
Er. Kushal Ghimire
 
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagneEAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
idelewebmestre
 
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Robert Pyke
 
UNIT 1 - INTRODUCTION ON DISASTER MANAGEMENT.ppt
UNIT 1 - INTRODUCTION ON DISASTER MANAGEMENT.pptUNIT 1 - INTRODUCTION ON DISASTER MANAGEMENT.ppt
UNIT 1 - INTRODUCTION ON DISASTER MANAGEMENT.ppt
shanmugamram247
 
Cisco Intersight Technical OverView.pptx
Cisco Intersight Technical OverView.pptxCisco Intersight Technical OverView.pptx
Cisco Intersight Technical OverView.pptx
Duy Nguyen
 
Technical Seminar of Mca computer vision .ppt
Technical Seminar of Mca computer vision .pptTechnical Seminar of Mca computer vision .ppt
Technical Seminar of Mca computer vision .ppt
AnkitaVerma776806
 
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdfLOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
jellyjm
 

Recently uploaded (20)

JORC_Review_presentation. 2024 código jorcpdf
JORC_Review_presentation. 2024 código jorcpdfJORC_Review_presentation. 2024 código jorcpdf
JORC_Review_presentation. 2024 código jorcpdf
 
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
Fix Production Bugs Quickly - The Power of Structured Logging in Ruby on Rail...
 
charting the development of the autonomous train
charting the development of the autonomous traincharting the development of the autonomous train
charting the development of the autonomous train
 
Safety Operating Procedure for Testing Lifting Tackles
Safety Operating Procedure for Testing Lifting TacklesSafety Operating Procedure for Testing Lifting Tackles
Safety Operating Procedure for Testing Lifting Tackles
 
AI INTRODUCTION Artificial intelligence.ppt
AI INTRODUCTION Artificial intelligence.pptAI INTRODUCTION Artificial intelligence.ppt
AI INTRODUCTION Artificial intelligence.ppt
 
AI chapter1 introduction to artificial intelligence
AI chapter1 introduction to artificial intelligenceAI chapter1 introduction to artificial intelligence
AI chapter1 introduction to artificial intelligence
 
Lab session on Robot Control using teach pendant.pptx
Lab session on Robot Control using teach pendant.pptxLab session on Robot Control using teach pendant.pptx
Lab session on Robot Control using teach pendant.pptx
 
Adv. Digital Signal Processing LAB MANUAL.pdf
Adv. Digital Signal Processing LAB MANUAL.pdfAdv. Digital Signal Processing LAB MANUAL.pdf
Adv. Digital Signal Processing LAB MANUAL.pdf
 
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYSDPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
DPWH - DEPARTMENT OF PUBLIC WORKS AND HIGHWAYS
 
NOVEC 1230 Fire Suppression System Presentation
NOVEC 1230 Fire Suppression System PresentationNOVEC 1230 Fire Suppression System Presentation
NOVEC 1230 Fire Suppression System Presentation
 
How to Formulate A Good Research Question
How to Formulate A  Good Research QuestionHow to Formulate A  Good Research Question
How to Formulate A Good Research Question
 
Girls Call Mysore 000XX00000 Provide Best And Top Girl Service And No1 in City
Girls Call Mysore 000XX00000 Provide Best And Top Girl Service And No1 in CityGirls Call Mysore 000XX00000 Provide Best And Top Girl Service And No1 in City
Girls Call Mysore 000XX00000 Provide Best And Top Girl Service And No1 in City
 
the potential for the development of autonomous aircraft
the potential for the development of autonomous aircraftthe potential for the development of autonomous aircraft
the potential for the development of autonomous aircraft
 
Presentation slide on DESIGN AND FABRICATION OF MOBILE CONTROLLED DRAINAGE.pptx
Presentation slide on DESIGN AND FABRICATION OF MOBILE CONTROLLED DRAINAGE.pptxPresentation slide on DESIGN AND FABRICATION OF MOBILE CONTROLLED DRAINAGE.pptx
Presentation slide on DESIGN AND FABRICATION OF MOBILE CONTROLLED DRAINAGE.pptx
 
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagneEAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
EAAP2023 : Durabilité et services écosystémiques de l'élevage ovin de montagne
 
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
Updated Limitations of Simplified Methods for Evaluating the Potential for Li...
 
UNIT 1 - INTRODUCTION ON DISASTER MANAGEMENT.ppt
UNIT 1 - INTRODUCTION ON DISASTER MANAGEMENT.pptUNIT 1 - INTRODUCTION ON DISASTER MANAGEMENT.ppt
UNIT 1 - INTRODUCTION ON DISASTER MANAGEMENT.ppt
 
Cisco Intersight Technical OverView.pptx
Cisco Intersight Technical OverView.pptxCisco Intersight Technical OverView.pptx
Cisco Intersight Technical OverView.pptx
 
Technical Seminar of Mca computer vision .ppt
Technical Seminar of Mca computer vision .pptTechnical Seminar of Mca computer vision .ppt
Technical Seminar of Mca computer vision .ppt
 
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdfLOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
LOCAL-BUDGET-CIRCULAR-NO-158-DATED-JULY-11-2024.pdf
 

Sachpazis_Consolidation Settlement Calculation Program-The Python Code and the User Manual

  • 1. Consolidation Settlement Calculation Program-The Python Code By Professor Dr. Costas Sachpazis, Civil Engineer & Geologist This program calculates the consolidation settlement for a foundation based on soil layer properties and foundation data. It allows users to input multiple soil layers and foundation characteristics to determine the total settlement. The Code: import math def get_float_input(prompt): while True: try: return float(input(prompt)) except ValueError: print("Please enter a valid number.") def get_int_input(prompt): while True: try: return int(input(prompt)) except ValueError: print("Please enter a valid integer.") def consolidation_settlement(mv, H, delta_sigma): return mv * H * delta_sigma def stress_distribution(q_net, B, L, Z): return (q_net * B * L) / ((B + Z) * (L + Z)) def calculate_settlement(soil_layer, foundation_data, Z): mv = soil_layer['mv'] gamma = soil_layer['gamma'] H = soil_layer['thickness'] * 100 # Convert m to cm Df = foundation_data['Df'] B = foundation_data['B'] L = foundation_data['L'] q_imposed = foundation_data['q_imposed'] q_excavation = Df * gamma q_net = q_imposed - q_excavation delta_sigma = stress_distribution(q_net, B, L, Z)
  • 2. delta_sigma_kgf_cm2 = delta_sigma / 98.0665 settlement = consolidation_settlement(mv, H, delta_sigma_kgf_cm2) return settlement def get_soil_data(): print("nEnter soil layer data:") thickness = get_float_input("Layer thickness (m): ") mv = get_float_input("Coefficient of volume compressibility (cm²/kgf): ") gamma = get_float_input("Unit weight of soil (kN/m³): ") c = get_float_input("Cohesion (kN/m²): ") phi = get_float_input("Internal friction angle (degrees): ") e = get_float_input("Void ratio: ") k = get_float_input("Hydraulic conductivity (m/s): ") return { 'thickness': thickness, 'mv': mv, 'gamma': gamma, 'c': c, 'phi': phi, 'e': e, 'k': k } def get_foundation_data(): print("nEnter foundation data:") Df = get_float_input("Foundation depth (m): ") B = get_float_input("Foundation width (m): ") L = get_float_input("Foundation length (m): ") q_imposed = get_float_input("Imposed load (kPa): ") return {'Df': Df, 'B': B, 'L': L, 'q_imposed': q_imposed} def main(): print("Consolidation Settlement Calculation") print("By Professor Dr. Costas Sachpazis, Civil Engineer") print("====================================") num_layers = get_int_input("Enter the number of soil layers: ") soil_layers = [get_soil_data() for _ in range(num_layers)]
  • 3. foundation_data = get_foundation_data() print("nCalculation Results:") print("--------------------") total_settlement = 0 current_depth = 0 for i, soil_layer in enumerate(soil_layers, 1): Z = current_depth + soil_layer['thickness'] / 2 settlement = calculate_settlement(soil_layer, foundation_data, Z) print(f"Layer {i} (Depth: {current_depth:.2f}- {current_depth + soil_layer['thickness']:.2f} m):") print(f" Settlement: {settlement:.4f} cm") print(f" Soil properties:") print(f" Thickness: {soil_layer['thickness']} m") print(f" mv: {soil_layer['mv']} cm²/kgf") print(f" Unit weight: {soil_layer['gamma']} kN/m³") print(f" Cohesion: {soil_layer['c']} kN/m²") print(f" Friction angle: {soil_layer['phi']}°") print(f" Void ratio: {soil_layer['e']}") print(f" Hydraulic conductivity: {soil_layer['k']} m/s") total_settlement += settlement current_depth += soil_layer['thickness'] print(f"nTotal Settlement: {total_settlement:.4f} cm") print(f"nFoundation Properties:") print(f" Depth: {foundation_data['Df']} m") print(f" Width: {foundation_data['B']} m") print(f" Length: {foundation_data['L']} m") print(f" Imposed load: {foundation_data['q_imposed']} kPa") print("nCalculation performed using the program developed by Professor Dr. Costas Sachpazis, Civil Engineer") if __name__ == "__main__": main() End of the Code
  • 4. User Manual: Consolidation Settlement Calculation Program By Professor Dr. Costas Sachpazis, Civil Engineer & Geologist Introduction This program calculates the consolidation settlement for a foundation based on soil layer properties and foundation data. It allows users to input multiple soil layers and foundation characteristics to determine the total settlement. Program Overview The program performs the following main tasks: 1. Collects data for multiple soil layers 2. Gathers foundation information 3. Calculates settlement for each soil layer 4. Computes the total settlement 5. Displays detailed results for each layer and the foundation Step-by-Step Usage Guide 1. Starting the Program Run the Python script "Consolidation_settlement_calculation_Dr.C.S..py" in your preferred Python environment. 2. Entering Soil Layer Data a. The program will prompt you to enter the number of soil layers. b. For each layer, you'll need to provide the following information:  Layer thickness (in meters)  Coefficient of volume compressibility (mv, in cm²/kgf)  Unit weight of soil (γ, in kN/m³)  Cohesion (c, in kN/m²)  Internal friction angle (φ, in degrees)  Void ratio (e)  Hydraulic conductivity (k, in m/s) 3. Entering Foundation Data
  • 5. After soil layer information, you'll be asked to input foundation details:  Foundation depth (Df, in meters)  Foundation width (B, in meters)  Foundation length (L, in meters)  Imposed load (q_imposed, in kPa) 4. Calculation Process The program will then: a. Calculate the excavation pressure (q_excavation = Df * γ) b. Determine the net pressure (q_net = q_imposed - q_excavation) c. Compute stress increase at the center of each soil layer d. Calculate settlement for each layer using the consolidation settlement formula e. Sum up the settlements to get the total settlement 5. Viewing Results The program will display: a. For each soil layer:  Layer number and depth range  Calculated settlement  Input soil properties b. Total settlement c. Input foundation properties Formulas Used 1. Consolidation Settlement: S = mv * H * Δσ Where: o S is the settlement o mv is the coefficient of volume compressibility o H is the layer thickness o Δσ is the stress increase 2. Stress Distribution: Δσ = (q_net * B * L) / ((B + Z) * (L + Z)) Where: o q_net is the net pressure o B and L are foundation width and length o Z is the depth to the center of the soil layer Important Notes 1. All input values should be in the units specified in the prompts. 2. The program converts some units internally: o Soil layer thickness is converted from meters to centimeters o Stress increase is converted from kPa to kgf/cm² 3. The program uses error handling to ensure valid numeric inputs. 4. Results are displayed with four decimal places for precision. Expected Outputs 1. Detailed information for each soil layer, including: o Settlement o Input soil properties
  • 6. 2. Total settlement for all layers combined 3. Input foundation properties This program provides a comprehensive analysis of consolidation settlement, taking into account multiple soil layers and foundation characteristics. It's useful for geotechnical engineers and students studying soil mechanics and foundation engineering. Developed by Professor Dr. Costas Sachpazis, Civil Engineer & Geologist Email: costas@sachpazis.info