I am trying to plot a creep x time graph using matlab. However, there are some mismatches between my graph and the reference paper.
This is my code:
% Parameters
c1= 6.48; %MPa
c2= 5.17; %GPa.d
a1= 1.29e-7; %MPa^-5.d^-1
a2= 1.6e-11; %MPa^-5.d^-1b=66.28;n=5;r=2.6;G=26.9; %GPa
u=0.4;t(1)=0;et(1)=0;es(1)=0;ed(1)=0;etotal(1)=0;sigma1=26; %MPasigma2=1; %MPasigma3=1; %MPa% Loop
for i=1:355t(i+1)=t(i)+0.01;%Calculation
sigma= sigma1-sigma3;sigmam=(sigma1+sigma2+sigma3)/3;sigmadamage=sigma*((2/3)*(1+u+3*(1-2*u)*((sigmam/sigma)^2)))^0.5% Damage Factor
D(i+1)= 1-(1-(r+1)*((sigmadamage/b)^r)*t(i+1))^(1/(r+1));% Creep
%Primary Creep
et(i+1)=(sigma/c1)*(1-exp(-G*t(i+1)/c2));%Secondary Creep
es(i+1)=a1*(sigma^n)*t(i+1);%Tertiary Creep
ed(i+1)=a2*((sigma/(1-D(i+1)))^n)*t(i+1);%Total Creep
etotal(i+1)= et(i+1)+es(i+1)+ed(i+1);endp = plot(t,etotal,'-b');p(1).LineWidth = 1.5;title('Creep x Time')xlabel('Time(day)')ylabel('Creep (%)')grid onlegend([p(1)], 'Creep Evolution')
I really cannot see which type of error in my code is provoking this mismatch.
Thanks
Additional data:
Best Answer