I'm working on bearing capacity formula described in the model below. Two variables have been choose as a random variable (i.e c and Unit_weight). I want to calculate probability of failure vs Qall to plot a histogram. Please kindly do assist me in that regard.
The only condition is if Qallowable is greater than Qultimate, if fails. I have attached the code. Please, kindly do help. If you need any clarification from my side. Thank you
% Soil properties
% Soil type: Cohesive Soil
% c is a random variable
% Unit_weight is a random variable
B = 1;D = 1;m1 = 100; s1 = 50;c = m1 + s1.*randn(1000,1);m2 = 10;s2 = 5;Unit_weight = m2 + s2.*randn(1000,1);Phi = 0;FOS = 3; % From Table
Nc = 5.71;Nq = 1.0;Ngamma = 0.0;Qult = c*Nc + Unit_weight*D*Nq + 0.5*B*Ngamma;Qall = Qult/3;% FOS = Qult(:,1)/Qall(:,1);
m1_normal = 0.47;s1_normal = 6.13;m2_nomal = 0.20;s2_normal = 3.23;% Monte Carlo Reliability Assessment
failure = 0;for i=1:1000 if Qult(i)<Qall(i) failure = failure +1; end beta(i) = norm(1-failure/1000);endfigure(1),hist(beta);xlabel("probability of failure")
Best Answer