Modelling of Single Crack Propagation in Concrete Beam (Using MatLab)
Modelling of Single Crack Propagation in Concrete Beam (Using MatLab)
Kaleem Gilani
326957
Assignment # 2 Advanced Modelling and Simulation Dr. Usman Hanif
Question 2
Model single crack propagation in RC Beam
Statement:
Newton–Raphson iterative solver has been used to model single crack propagation in RC‐Beam in
MatLab.
Matlab Code and Syntax:
clear all
loop=1;
number = 1; %count for display
fprintf ('Table of Extension Stress, and Loads \n\n');
fprintf ('Number Extension Width Stress Compression
Tension Moment \n');
fprintf (' mm mm N/mm^2 N
N Nmm \n');
fprintf ('====== ========= ======== ======= ==========
========= =========== \n');
%defining variables
w=0;
E=30000; %E (Young Modulus) of concrete given in the question in
N/mm^2
fcu= 30; %compressive strength given in question statement
div=100; %Number of discretizations
b=130; %breadth of the section
Syed Kaleem Gilani
326957
Assignment # 2 Advanced Modelling and Simulation Dr. Usman Hanif
h=210; %depth of the section
hc=b/2; %equivalent elastic zone
fct=fcu/10; %assuming tensile strength to be 10% of Compressive
Strength
vct=(fct)*hc/E; %elongation of concrete at the ultimate tensile strength
vx=0.0001; %elongation of concrete assumed 0.001 as starting point
%For Elastic Range
%we know that stress= E x Strain
while vx <= vct
%Calculation of Steel
Steel_sigma= 200000*(vx/hc); %200000=E of steel given in question
%Reinforced concrete is introduced here for elastic region
if Steel_sigma > 250.46 %250.46= tensile strength of steel given in
question
Steel_sigma = 250.46;
end
Steel_Forces = Steel_sigma * 258; %yield strength of steel
%Steel
VTension = vx;
SigmaT = (E * VTension)/hc;
%Finding Neutral Axis
f=@(y1) 1/2*b*y1*SigmaT-1/2*b*(h-y1)*((h-y1)/y1)*SigmaT + Steel_Forces;
y1 = fzero(f, [40,210]); %fzero command finds a point where the function
changes sign
y2 = h-y1; %reversing the direction
%Display Window
Pcomp = 1/2*b*(h-y1)*((h-y1)/y1)*SigmaT;
Ptension = 1/2*b*y1*SigmaT + Steel_Forces;
stress = E*(vx/hc);
moment = ((y1*2/3)+50)*Ptension - (y2*1/3)*Pcomp + Steel_Forces*(h-37.5);
%Tension Positive
out = [number,vx,w,stress,Pcomp,Ptension,moment];
fprintf (' %4d %11.4f %11.4f %11.4f %11.4f %11.4f %13.4f \n', out);
number = number + 1;
%Display Window
Moment(loop) = moment;
phi(loop) = atan(vx/y1); %atan command calculates tan inverse
loop = loop + 1;
vx = vx + 0.0001;
end
Elastic_moment = moment;
Syed Kaleem Gilani
326957
Assignment # 2 Advanced Modelling and Simulation Dr. Usman Hanif
%Inelastic Region Calculations
%Finding Neutral Axis
C1 = 3; %Value taken from research paper quoted in annexure
C2 = 6.93; %Value taken from research paper quoted in annexure
Gf = (43.3 + 1.13*fcu)/1000; %Gf in N/m and fcu in MPa
wc = 5.14*(Gf/3.127); %wc in mm
p3 = ((1+C1^3) / wc);
p2 = -C2/wc;
p1 = (C1/wc)^3;
while vx > vct
%Steel Calculation
Steel_Sigma = 200000*(vx/hc); %Reinforced concrete is introduced here for
elastic region
if Steel_Sigma > 250.46
Steel_Sigma = 250.46;
end
Steel_Forces = Steel_Sigma*258;
%Steel
vdiff = vx - vct;
incre = vdiff/100;
%Fictitious Curve Calculation
vparabolic = vct:incre:vx;
y=1;
for i = vparabolic
w = i - vct;
Stress(y) = fct*((1+(C1*(w/wc))^3)*exp(-C2*(w/wc))-(w/wc)*(1+C1^3)*exp(-
C2));
y = y+1;
end
%Compression Curve Calculation
%chu equation for compression curve
e0 = (7.1*fcu + 1680)*10^(-6);
Beta = 1/(1-(fcu/(E*e0)));
A = (fcu*Beta)/(hc*e0);
B = Beta - 1;
C = (1/(hc*e0));
fc = @(a) (A*a)./(B+(C*a).^Beta); %Chu Equation
%It is the height of the sample from bottomthrough which parabola will
%occur = y1 - ((vct/vx)*y1)
z = @(y1) sum(stress)*((y1-((vct/vx)*y1))/100*b...
+ (fct*((vct/vx)*y1)*b*1/2) + Steel_Forces...
- sum (fc(0:((vx * (h-y1))/(y1*100)):(vx * (h-y1)/y1)))*b*(h-y1)/100);
y1 = fzero(z,[40 210]);
y2 = h-y1;
%Moment in Compression
Syed Kaleem Gilani
326957
Assignment # 2 Advanced Modelling and Simulation Dr. Usman Hanif
Strip_Length = (h-y1):-(h-y1)/100:0;
icre = 1;
Moment_Comp = 0;
for a=0:((vx*(h-y1))/(y*100)):(vx*(h-y1)/y1)
m = fc(a);
Moment_Comp = Moment_Comp + (m*b*(h-y1)/100*(Strip_Length(incre)));
incre = incre + 1;
end
curvelength = y1-(vct/vx)*y1;
increment = curvelength/100;
moment_increment = 0:increment:curvelength;
moment = 0;
y=1;
for a = (stress)
moment = moment + a*b*increment*(h-(y1(vct/vx)*y1)) +
moment_increment(y);
y = y+1;
end
mom = moment + (fct*((vct/vx)*y1)*b*1/2) + (y2+((vct/vx)*y1)*(2/3) -
Moment_Comp + Steel_Forces*(h-37.5));
%Display Window
Pcomp = ((h-y1)*1/2*b*(((h-y1)/y1))*(vx/hc)*E);
Ptension = sum(stress)*((y1-((vct/vx)*y1)*y1)/100)*b +
(fct*((vct/vx)*y1)*b*1/2);
stress1 = fct*((1+(C1*(w/wc))^3)*exp(-C2*(w/wc)) - (w/wc)*(1+C1^3)*exp(-
C2));
out = [number,vx,w,stress1,Pcomp,Ptension,mom];
fprintf (' %4d %11.4f %11.4f %11.4f %11.4f %11.4f %13.4f \n', out);
number = number + 1;
Moment(loop) = mom;
phi(loop) = atan(vx/y1);
loop = loop + 1;
vx = vx + 0.0001;
end
Syed Kaleem Gilani
326957
Assignment # 2 Advanced Modelling and Simulation Dr. Usman Hanif
MATLAB Result
Figure 1: MATLAB Results Table
Extens Widt Stres Compressi Tension Moment
Number
mm mm N/m N N Nmm
m²
1 0.000 0.000 0.046 375.71 375.71 43291
2 0.000 0.000 0.092 751.43 751.43 86583
3 0.000 0.000 0.138 1127.14 1127.14 129874
4 0.000 0.000 0.184 1502.86 1502.86 173166
5 0.000 0.000 0.230 1878.57 1878.57 216457
6 0.000 0.000 0.276 2254.29 2254.29 259748
7 0.000 0.000 0.323 2630.00 2630.00 303040
8 0.000 0.000 0.369 3005.72 3005.72 346331
9 0.000 0.000 0.415 3381.43 3381.43 389623
1 0.001 0.000 0.461 3757.15 3757.15 432914
1 0.001 0.000 0.507 4132.86 4132.86 476206
1 0.001 0.000 0.553 4508.58 4508.58 519497
1 0.001 0.000 0.600 4884.29 4884.29 562788
1 0.001 0.000 0.646 5260.01 5260.01 606080
1 0.001 0.000 0.692 5635.72 5635.72 649371
1 0.001 0.000 0.738 6011.44 6011.44 692663
1 0.001 0.000 0.784 6387.15 6387.15 735954
1 0.001 0.000 0.830 6762.87 6762.87 779245
1 0.001 0.000 0.876 7138.58 7138.58 822537
2 0.002 0.000 0.923 7514.29 7514.29 865828
2 0.002 0.000 0.969 7890.01 7890.01 909120
2 0.00 0.000 1.015 7514.29 7514.29 952411
Syed Kaleem Gilani
326957
Assignment # 2 Advanced Modelling and Simulation Dr. Usman Hanif
1000000
1500000
2000000
2500000
3000000
0.0000
0.5000
1.0000
1.5000
2.0000
2.5000
3.0000
3.5000
500000
0
0.0001
0.0001 0.0003
0.0003 0.0005
0.0005 0.0007
0.0007
0.0009
0.0009
0.0011
0.0011
0.0013
0.0013
0.0015
0.0015
0.0017
Extension vs Moment
0.0019
0.0019
0.0021
0.0021
0.0023 0.0023
Extension, mm
0.0025 0.0025
0.0027
Extension, mm
0.0027
0.0029 0.0029
0.0031 0.0031
0.0033 0.0033
0.0035 0.0035
0.0037 0.0037
0.0039 0.0039
0.0041 0.0041
0.0043 0.0043
0.0045 0.0045
0.0047 0.0047
0.0049 0.0049
0.0051 0.0051
0.0053 0.0053
0.0055 0.0055
0.0057 0.0057
0.0059
0.0059
0.0061
0.006
The graph represents only elastic region and not the inelastic region.