0% found this document useful (0 votes)
23 views3 pages

Assignment No 12

Uploaded by

Soham Mhetre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views3 pages

Assignment No 12

Uploaded by

Soham Mhetre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

assignment-no-12

October 20, 2024

[20]: #Assignment no.:12


#Application of python for Foundation Engineering
#Name: Rohan Anil M hetre
#Roll No. :401C038

# Input variables
g=float(input("Specific Weight of soil (kN/m^3) : "))
c=float(input("Cohesion of soil (kN /m ^ 2):"))
phi=int(input("Angle of Friction (degrees): "))
fos=float(input("Factor of safety (FOS): "))
DF= float(input("Depth of foundation (m): "))

#Predefined values for Nc, Ng, Ng based on degrees

deg =[0, 5, 10, 15, 20, 25, 30, 34, 35, 40, 45, 48, 50]
nc=[5.7, 7.3, 9.6, 12.9, 17.7, 25.1, 37.2, 52.6, 57.8, 95.7, 172.3, 258.3, 347.
↪5]

nq=[1.0, 1.6, 2.7, 4.4, 7.4, 12.7, 22.5, 36.5, 41.4, 81.3, 173.3, 287.9, 415.1]
ng=[0.0, 0.5, 1.2, 2.5, 5.0, 9.7, 19.7, 36.0, 42.4, 100.4, 297.5, 780.1, 1153.2]

#Find index based on angle of friction


if phi in deg:
index=deg.index(phi)
else:
print(f"{phi} degrees is not a standard value for the Angle of Internal␣
↪Friction")

index=-1 # Default index when angle is not standard

#Proceed only if valid angle of friction is provided


if index !=-1:
Nc =nc[index]
Nq =nq[index]
Ng =ng[index]
print("\n")
print(f"\nCorrection factors for (phi):")
print(f"Nc={Nc}")
print (f"Nq ={Nq}")

1
print (f"Ng ={Ng}\n")

#Type of footing selection


print("Type of Footing:")
print("1. Strip footing")
print("2. Round Footing")
print("3. Square Footing")
print("4. Rectangle Footing")
print("\n")

T=int(input("\n Enter the number corresponding to the footing type: "))

#Apply correction factors based on the footing type

if T ==1: #Strip footing


sc = 1
sg = 1

elif T==2: #Round footing


sc = 1.3
sg = 0.6

elif T==3: #Square footing


sc = 1.3
sg = 0.6

elif T== 4: #Rectangular footing


B= float(input("Width (B) of rectangular footing (m): "))
L= float(input("Length (L) of rectangular footing (m): "))
sc = (1 + 0.3 * B / L)
sg = (1 - 0.2 * B / L)
else:
print("Enter a correct number for footing type.")

#Ultimate bearing capacity (Qnu)


Qnu = (c*Nc*sc) + (g*DF*Nq) + (0.5*g*B*Ng*sg)

#Net ultimate bearing capacity (Qnf)


Qnf=Qnu-(g*DF)

#Net safe bearing capacity (Qns)


Qns=Qnf/ fos

#Safe bearing capacity (Qs)


Qs= Qns +(g * DF)

#Print results

2
Specific Weight of soil (kN/m^3) : 18
Cohesion of soil (kN /m ^ 2): 10
Angle of Friction (degrees): 30
Factor of safety (FOS): 3
Depth of foundation (m): 1.5

Correction factors for (phi):


Nc=37.2
Nq =22.5
Ng =19.7

Type of Footing:
1. Strip footing
2. Round Footing
3. Square Footing
4. Rectangle Footing

Enter the number corresponding to the footing type: 4


Width (B) of rectangular footing (m): 2
Length (L) of rectangular footing (m): 3

RESULTS
1. Ultimate bearing capacity =1361.22 kN/m²
2. Net ultimate bearing capacity=1334.22 kN /m²
3. Net safe bearing capacity = 444.74 kN/m²
4. Safe bearing capacity =471.74 kN/m²
[ ]:

[ ]:

[ ]:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy