Uqlink and PCK

Dear @DorotC,
I was able to run your code, thanks. There is a small issue, when I switch from PCE to PCK in line 76. I am not really sure where it comes from, but to fix this issue: you just need to define which model and which input you want to use, when you define the Sobol and the Reliability analysis.

It means the end of your could should looks like :
For the sensitivity :

PCESobol.Type = ‘Sensitivity’;
PCESobol.Method = ‘Sobol’;
PCESobol.Input = myInput ;
PCESobol.Model = myPCK ;
PCESobol.Sobol.Order = 2;
PCESobolAnalysis = uq_createAnalysis(PCESobol) ;

And for the reliabiility :

MCSopt.Type = ‘Reliability’ ;
MCSopt.Method = ‘AKMCS’ ;
MCSopt.Input = myInput ;
MCSopt.Model = myPCK ;
MCSopt.LimitState.Threshold = 0;
MCSopt.LimitState.CompOp = ‘<=’ ;
myMCS = uq_createAnalysis(MCSopt) ;

I hope this helps,
Marc

2 Likes