Estimate a flooding probability

In this example, we estimate the probability that the output of a function exceeds a given threshold with the FORM method. We consider the flooding model.

Define the model

from openturns.usecases import flood_model
import openturns as ot
import openturns.viewer as otv

We load the flooding model from the usecases module :

See the input distribution

JointDistribution
  • name=JointDistribution
  • dimension: 8
  • description=[Q (m3/s),Ks,Zv (m),Zm (m),B (m),L (m),Zb (m),Hd (m)]
  • copula: IndependentCopula(dimension = 8)
Index Variable Distribution
0 Q (m3/s) TruncatedDistribution(Gumbel(beta = 558, gamma = 1013), bounds = [0, (19000.8) +inf[)
1 Ks TruncatedDistribution(Normal(mu = 30, sigma = 7.5), bounds = [0, (87.3797) +inf[)
2 Zv (m) Uniform(a = 49, b = 51)
3 Zm (m) Uniform(a = 54, b = 56)
4 B (m) Triangular(a = 295, m = 300, b = 305)
5 L (m) Triangular(a = 4990, m = 5000, b = 5010)
6 Zb (m) Triangular(a = 55, m = 55.5, b = 56)
7 Hd (m) Uniform(a = 2, b = 4)


See the model

[S]


Draw the distribution of a sample of the output.

S PDF

Define the event

Then we create the event whose probability we want to estimate.

Estimate the probability with FORM

Define a solver.

Run FORM.

Retrieve results.

result = algo.getResult()
probability = result.getEventProbability()
print("Pf=", probability)
Pf= 0.0006501344567729383

Importance factors.

Importance Factors from Design Point - overflow