How to do failure probability estimation using the direct Monte Carlo simulation. my code does not run it gives me "untitled'' as ans

조회 수: 4 (최근 30일)
%USE MONTE CARLO METHOD TO CALCULATE PROBABILITY OF FAILURE OF WIND TURBINE
%The given limit state function for the given beam is
%g = -3.689 + 0.0184*D^2 + 0.2938*V ;
%Given :
D = 90.0219343 ;
V = 6.672408424 ;
mean_D = 90 ;
mean_V = 6.6724 ;
sigma_D = 10.29023 ;
sigma_V = 0.67708 ;
%Now use normrnd function
D = normrnd(mean_D, sigma_D, [n,1]);
V = normrnd(mean_V, sigma_V, [n,1]);
%
g = zeros(n,1);
K = 0;
%Create for loop
for i=1:n
g(i,1) = -3.689 + 0.0184*(D(i,1)^2) + 0.2938*(V(i,1)) ;
if g(i,1)<0
K = K + 1;
end
end
P_fail = K/n;

답변 (1개)

Torsten
Torsten 2022년 11월 17일
%USE MONTE CARLO METHOD TO CALCULATE PROBABILITY OF FAILURE OF WIND TURBINE
%The given limit state function for the given beam is
%g = -3.689 + 0.0184*D^2 + 0.2938*V ;
%Given :
D = 90.0219343 ;
V = 6.672408424 ;
mean_D = 90 ;
mean_V = 6.6724 ;
sigma_D = 10.29023 ;
sigma_V = 0.67708 ;
%Now use normrnd function
n = 1e6;
D = normrnd(mean_D, sigma_D, [n,1]);
V = normrnd(mean_V, sigma_V, [n,1]);
%
%Create for loop
K = nnz(-3.689 + 0.0184*D.^2 + 0.2938*V < 0);
P_fail = K/n
P_fail = 0
  댓글 수: 4
Torsten
Torsten 2022년 11월 17일
first order reliability method ?
compare beta function and pf of FORM ?
Ashwini Subhash
Ashwini Subhash 2022년 11월 17일
Forget about FORM. I was asking how can I find beta distribution for the given input parameters like in the attached file

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Monte-Carlo에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by