Professional Documents
Culture Documents
61
Introduction
62
Monte Carlo Simulation
One simple solution is to simulate a series of possible realizations for both c and φ ,
compute the “response”, X, for each and then assess the statistics of the resulting series
of realizations of X;
1 n 1 n
µ X ≈ X =∑ X i σ ≈
2
∑ ( X i − X )2
n − 1 i =1
X
n i =1
66
Accuracy of Monte Carlo Simulation Estimates
70
Linear Congruential Generators
Periodicity:
• If Z0 = 3 produces Z1 = 746, then whenever Zi-1 = 3, the
next number will be Zi = 746.
• This property leads to an undesirable phenomenon called
periodicity that quite a number of rather common
generators suffer from (actually, all generators have
maximum periodicity m, but some have periodicity much
less than m).
• Suppose that you are unlucky enough to select the starting
seed Z0 = 83 that just happens to yield remainder 83 when
(83a + c) is divided by m. Then Z1 = 83. In fact, your
“random” sequence will be {83, 83, 83, …}. This particular
stream of random numbers has periodicity equal to 1.
73
Testing Random Number Generators
Below we have plotted the pairs (Ui, Ui+1) for Numerical Recipes
=
RAN2 generator (right) and the LCG Z i (25Z i −1 + 55)(mod 96)
(left)
74
Generating Non-Uniform Random Variables
76
Inverse Transform Method: Example
Suppose that undersea slopes in the Baltic Sea fail at a mean rate
of one every 400 years, and that the time between failures are
independent and exponentially distributed. Generate two
possible inter-failure times.
ln(u1 )
x1 =
− =
−400ln(0.27) =
523 years
λ
ln(u2 )
x2 =
− =
−400ln(0.64) =
179 years
λ
78
Inverse Transform Method
Advantages:
1. exact, efficient, and intuitive,
2. can be easily modified to generate from truncated
distributions
3. can be modified to generate order statistics
4. facilitates variance-reduction techniques (where portions of
the CDF are ‘polled’ more heavily than others, usually in the
tails of the distribution, and then resulting statistics corrected
to account for the biased ‘polling’
Disadvantage:
1. Requires a formula for F −1, which is not easily available for
some distributions (e.g. normal, lognormal, beta, Gamma)
79
Special Case: Normal Distribution
The inverse CDF for the normal distribution involves solving the
following for x,
1 s − µ
x 2
1
= u ∫ exp − ds
σ 2π −∞ 2 σ
which must be done numerically. Box and Muller (1958) came up
with an alternative way of generating standard normally
distributed variates (zero mean, unit variance) using a radial
transformation:
1. generate u1 and u2 from U(0,1)
2. form x1 = −2ln u1 cos(2π u2 ) and x2 = −2ln u1 sin(2π u2 )
This is exact, very simple, and efficient (for each pair of u’s we
get a pair of independent N(0,1) random variates).
80
Example
n = 50 n = 500 n = 5000
81
Other Common Simulation Algorithms
83
Simulation of Random Fields
Several methods are available:
X (t ) C1 cos (ω1t + Φ1 )
=
+ C2 cos (ω 2 t + Φ 2 )
+ C3 cos (ω 3 t + Φ 3 )
In general
N
=X (t ) ∑C
k =1
k cos(ω k t + Φ k )
∑{ A cos(ω t ) + B sin(ω k t )}
N
= k k k
k =1
85
The FFT Simulation Method
86
The FFT Simulation Method
Anisotropic Field:
87
Simulation of Random Fields
3) Turning Bands Method (TBM)
- 2 and 3-D fields constructed from a series of 1-D processes
1 L
=
Z ( xk )
∑ Zi ( x k ⋅ u i )
L i =1
88
The Turning Bands Method
L = 16
89
The Turning Bands Method
L = 64
90
Simulation of Random Fields
91
Local Average Subdivision
92
Local Average Subdivision
Comparison of LAS and FFT
93
Local Average Subdivision
Fractional Gaussian Noise
94
Local Average Subdivision
Isotropic Correlation
95
Local Average Subdivision
Anisotropic Correlation
θx = 3
θy =1
96
Simulation of Random Fields
Summary of Approximate Methods
FFT
• reasonably efficient
• good for anisotropic processes
• need to know spectral density function
• covariance structure is symmetric about midpoint (to solve,
generate fields twice as large as necessary)
• care must be taken with field discretization (to ensure
frequency domain discretization is adequate)
97
Simulation of Random Fields
Summary of Approximate Methods
Turning Bands Method:
• reasonably efficient (depends on number of lines)
• accurate if sufficient number of lines are used
• not simply defined for anisotropic, nor non-standard,
processes
• constructive/destructive interference leads to streaked
appearance – difficult to quantify in higher dimensions.
98
Simulation of Random Fields
Summary of Approximate Methods
LAS
• very efficient
• easy to use (hard to code – boundary conditions are
difficult to deal with)
• generates local averages – good for finite element modeling
• variance shows systematic pattern (of minor importance,
although upon transformation to the lognormal distribution,
the grid pattern shows up in the mean field – can be solved
by shifting the field on each realization)
99
The Random Finite Element Method
RFEM
The method involves a combination of
Random Field Theory (e.g. Fenton and Vanmarcke 1990)
with the
Finite Element Method (e.g. Smith and Griffiths 2004)
The method takes into account of the mean, standard deviation and
spatial correlation length of the input parameters.
Dark zones indicate high permeability. Note how the equipotentials bunch
together in the lighter zones where the permeability is low
101
RFEM IN SLOPE STABILITY ANALYSIS
The correlation length recognises that soil samples “close” together in the field are more likely
to have similar properties that if they are “far apart”
Both slopes may have the same mean and standard deviation of shear strength,
But quite different spatial correlation lengths. 102
103
RFEM IN BEARING CAPACITY ANALYSIS
104
"worst case" correlation length
0.5 < θ <1
B
106
107
"worst case" correlation length
θ ≈1
B
108
RFEM IN EARTH PRESSURE ANALYSIS
θ
=1
H
Pp
H
109
"worst case" correlation length
θ ≈ 0.5
H
pf ( µ)
σ
tan φ ′
= 0.2
( H)
θ
p f vs. θ
H
110
Concluding Remarks
The Random Finite Element Method (RFEM) offers many advantages over
conventional probabilistic analysis tool—especially for nonlinear analysis.
111
The Random Finite Element Programs described above
are already available for free download as part of the textbook:
www.engmath.dal.ca/rfem 112