-
Notifications
You must be signed in to change notification settings - Fork 0
/
PileAxialBehaviour.m
120 lines (75 loc) · 2.12 KB
/
PileAxialBehaviour.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
%Pile in friction layered soil.
%Class Soil-Fluid-Structure Interaction in Universidad Nacional de Córdoba
%of Dr. Eng. Federico Pinto.
%This code calculate the axial force in the pile for each layer of soil
%considering SSI.
%Created date: th April 2020.
%Last review: 5th April 2020.
%Eng. Roberto Enrique Pinto Villegas.
clear all;
close all;
format short g;
clc;
%Elastic modulus of Pile.
E=input('Input the elastic modulus of Pile [N/mm^2] = ');
%Geometric of Pile.
R=input('Input the radius of Pile [m] = ');
A=pi*R^2;
I=pi*R^4/4;
%Axial load.
Ph=input('Input the axial load [kN] = ');
%Define properties for each layer of Soil.
n=input('Input the number of layer of Soil = ');
L=zeros(n,1);
kv=zeros(n,1);
for i=1:n
disp('For the layer');disp(i);
L(i)=input('Input the length [m] = ');
kv(i)=input('Input the friction resistence [N/mm^2] = ');
beta(i,1)=sqrt(kv(i)/(E*A));
end
kp=zeros(n,1);
kp(n)=input('Input the base resistence [Nm/mm^2] = ');
for i=n-1:-1:1
W=(1+kp(i+1)/(E*A*beta(i+1)));
X=exp(beta(i+1)*L(i+1));
Y=(1-kp(i+1)/(E*A*beta(i+1)));
Z=exp(-(beta(i+1)*L(i+1)));
kp(i)=E*A*beta(i+1)*((W*X-Y*Z)/(Y*Z+W*X));
end
P=zeros(n+1,1);
P(1)=Ph;
for i=1:n
W=(1+kp(i)/(E*A*beta(i)));
X=exp(beta(i)*L(i));
Y=(1-kp(i)/(E*A*beta(i)));
Z=exp(-(beta(i)*L(i)));
P(i+1)=P(i)*kp(i)/(E*A*beta(i))*2/(W*X-Y*Z);
end
disp('Axial force [kN] in each layer are: ');P
v=zeros(n+1,1);
W=(1+kp(1)/(E*A*beta(1)));
X=exp(beta(1)*L(1));
Y=(1-kp(1)/(E*A*beta(1)));
Z=exp(-(beta(1)*L(1)));
v(1)=P(1)/(E*A*beta(1))*(Y*Z+W*X)/(W*X-Y*Z);
for i=1:n
v(i+1)=P(i+1)/kp(i);
end
disp('Displacement [mm] in each layer are: ');v
H=zeros(n+1,1);
for i=2:n+1;
H(i)=H(i-1)-L(i-1);
end
figure;
plot(v,H)
title('Displacement vs Depth');
xlabel('Displacement [mm]');
ylabel('Depth [m]');
grid on;
figure;
plot(P,H)
title('Force vs Depth');
xlabel('Force [kN]');
ylabel('Depth [m]');
grid on;