You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/coefficients.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,19 @@
1
1
# Stochastic Coefficients
2
2
3
-
Coefficients are assumed to be represented by a Karhunen-Loeve expansion (KLE)
4
-
that have the following general structure and API.
3
+
Stochastic coefficients play a central role in uncertainty quantification and stochastic finite element methods. In this package, coefficients are represented using a Karhunen-Loève expansion (KLE), which allows for the efficient representation of random fields with prescribed covariance structure.
4
+
5
+
## Overview
6
+
7
+
The Karhunen-Loève expansion expresses a stochastic process as a series of orthogonal functions weighted by uncorrelated random variables:
where $a_0(x)$ is the mean, $\lambda_n$ and $\phi_n(x)$ are the eigenvalues and eigenfunctions of the covariance operator, and $\xi_n$ are independent standard normal random variables.
Copy file name to clipboardExpand all lines: docs/src/estimators.md
+9-18Lines changed: 9 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,9 @@
1
1
# Adaptivity and error control
2
2
3
3
## Residual-based a posteriori error estimation
4
-
Spatial error estimation refers to classical residual-based error estimation
5
-
for the zero-th multi index that refers to the mean value.
6
-
Stochastic error control has to estimate which stochastic mode needs to be refined
7
-
in the sense that either the polynomial degree is increased or neighbouring
8
-
stochastic modes are activated. Both is represented by the multi-indices.
9
-
Then unified error control allows to perform residual-based error estimation for
10
-
the subresiduals that are associated to each multi-index and depend on the model
11
-
problem (see references on the main page for details).
4
+
Spatial error estimation refers to classical residual-based error estimation for the zero-th multi-index, which corresponds to the mean value.
5
+
Stochastic error control determines which stochastic mode should be refined, either by increasing the polynomial degree or by activating neighboring stochastic modes. Both are represented by multi-indices.
6
+
Unified error control enables residual-based error estimation for the subresiduals associated with each multi-index, depending on the model problem (see references on the main page for details).
12
7
13
8
14
9
```@autodocs
@@ -17,12 +12,10 @@ Pages = ["estimate.jl"]
17
12
Order = [:type, :function]
18
13
```
19
14
20
-
## Multiindex management
15
+
## Multi-index management
21
16
22
-
Depending on the model problem and stochastic coefficient the
23
-
amount of multi indices that should be added to the error estimation
24
-
varies.
25
-
Here are some methods that help with enriching the set of multi-indices.
17
+
Depending on the model problem and stochastic coefficient, the number of multi-indices to be added for error estimation varies.
18
+
The following methods assist in enriching the set of multi-indices.
26
19
27
20
28
21
```@autodocs
@@ -31,12 +24,10 @@ Pages = ["mopcontrol.jl"]
31
24
Order = [:type, :function]
32
25
```
33
26
34
-
## Monte carlo sampling estimator
27
+
## Monte Carlo sampling estimator
28
+
29
+
A hierarchical Monte Carlo error estimator is also available. It compares the solution with a higher-order discrete solution for sampled deterministic problems. This is mainly intended to compute a reference error to assess the efficiency of the residual-based error estimator.
35
30
36
-
There is also a hierarchical Monte carlo error estimator available that
37
-
compares the solution with a higher order discrete solution for sampled
38
-
deterministic problems. This is merely intended as a way to compute the
39
-
reference error to assess the efficiency of the residual-based error estimator.
This package implements the stochastic Galerkin finite element method for certain two dimensional
4
-
model problems involving KLE of stochastic coefficients. The rather huge systems have a tensorized
5
-
structure and are solved by iterative solvers. A posteriori error estimators steer the spatial
6
-
and stochastic refinement.
7
-
8
-
The spatial discretization is based on the finite element package [ExtendableFEM.jl](https://github.com/WIAS-PDELib/ExtendableFEM.jl)/[ExtendableFEMBase.jl](https://github.com/WIAS-PDELib/ExtendableFEMBase.jl)
3
+
This package provides an implementation of the stochastic Galerkin finite element method (SGFEM) for selected two-dimensional model problems involving Karhunen-Loève expansions (KLE) of stochastic coefficients. The resulting large-scale systems exhibit a tensorized structure and are efficiently solved using iterative solvers. Adaptive a posteriori error estimators guide both spatial and stochastic refinement to ensure accuracy and efficiency.
9
4
5
+
Spatial discretization is performed using the finite element packages [ExtendableFEM.jl](https://github.com/WIAS-PDELib/ExtendableFEM.jl) and [ExtendableFEMBase.jl](https://github.com/WIAS-PDELib/ExtendableFEMBase.jl).
Copy file name to clipboardExpand all lines: docs/src/onbasis.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,6 @@
1
1
# ONBasis
2
2
3
-
An ONBasis (=orthonormal basis) stores information for the orthogonal polynomials
4
-
of the disctribution, like norms, quadrature rules and cached evaluations at quadrature points.
5
-
It is the main building brick for the tensorized basis associated to the multi-indices
6
-
of the stochastic discretization.
7
-
3
+
An ONBasis (orthonormal basis) encapsulates information about the orthogonal polynomials associated with a given probability distribution. This includes norms, quadrature rules, and cached evaluations at quadrature points. The ONBasis serves as a fundamental building block for constructing the tensorized basis linked to the multi-indices in the stochastic discretization.
Copy file name to clipboardExpand all lines: docs/src/orthogonal_polynomials.md
+17-25Lines changed: 17 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,41 +1,34 @@
1
1
# Orthogonal Polynomials
2
2
3
-
The stochastic discretization of random variables involves global
4
-
polynomials that are orthogonal with respect to the involved
5
-
random distribution of the `y_m`. These polynomials
6
-
can be generated by some recurrence relation with coefficients
7
-
that depend on the distribution.
3
+
In the stochastic discretization of random variables, global polynomials that are orthogonal with respect to the probability distribution of each random variable $y_m$ are used. These orthogonal polynomials can be generated via recurrence relations, with coefficients determined by the underlying distribution.
4
+
5
+
## Recurrence Relations
6
+
Orthogonal polynomials $H_n$ with respect to a weight function $\omega$ satisfy
8
7
9
-
## Recurrence relations
10
-
Orthogonal polynomials
11
-
$H_n$ with respect to some weight function $\omega$, i.e.,
12
8
```math
13
-
\int_\Gamma \omega(y) H_{n}(y) H_m(y) dy = N^2_{nm}\delta_{nm}
For the weight function $\omega(y) = 1/2$ in the interval $[-1,1]$ (uniform distribution),
37
-
take $a_n = (2n+1)/(n+1)$, $b_n = 0$ and $c_n = n/(n+1)$. The norms
38
-
of the resulting Legendre polynomials are given by
31
+
For the weight function $\omega(y) = 1/2$ on the interval $[-1,1]$ (uniform distribution), the recurrence coefficients are $a_n = (2n+1)/(n+1)$, $b_n = 0$, and $c_n = n/(n+1)$. The norms of the resulting Legendre polynomials are
For the weight function $\omega(y) = \exp(-y^2/2)/(2\pi)$ (normal distribution), take $a_n = 1$, $b_n = 0$ and $c_n = n$. Then, the first six polynomials read
44
+
For the weight function $\omega(y) = \exp(-y^2/2)/(2\pi)$ (normal distribution), the recurrence coefficients are $a_n = 1$, $b_n = 0$, and $c_n = n$. The first six Hermite polynomials are:
Copy file name to clipboardExpand all lines: docs/src/solvers.md
+4-13Lines changed: 4 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,21 @@
1
1
# Solver
2
2
3
-
Solving requires a spatial and stochastic discretization.
4
-
Both are connected in a special vector structure
5
-
that is passed to a solve function that runs a special
6
-
iterative solver for each model problem.
3
+
Solving a problem requires both spatial and stochastic discretization. These are combined into a specialized vector structure, which is then passed to a solver function that executes an iterative algorithm tailored to each model problem.
7
4
8
5
## SGFEVector
9
6
10
-
The spatial discretization is represented by
11
-
s single finite element space from [ExtendableFEM.jl](https://github.com/WIAS-PDELib/ExtendableFEM.jl),
12
-
while the stochastic discretization is represented by a tensorized basis
13
-
for the parameter space of the stochastic coefficient. Both have to be prepared in
14
-
advance.
7
+
The spatial discretization is defined by a single finite element space from [ExtendableFEM.jl](https://github.com/WIAS-PDELib/ExtendableFEM.jl), while the stochastic discretization uses a tensorized basis for the parameter space of the stochastic coefficient. Both components must be set up in advance.
15
8
16
9
!!! note
17
-
18
-
Currently it is not possible to use different finite element spaces for different multi-indices,
19
-
but this feature might be added in the future.
10
+
Currently, it is not possible to use different finite element spaces for different multi-indices. This feature may be added in the future.
Copy file name to clipboardExpand all lines: docs/src/tonbasis.md
+2-13Lines changed: 2 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,8 @@
1
1
# TensorizedBasis
2
2
3
-
Each multi-index ``\mu = [\mu_1,\mu_2,\ldots,\mu_M]``
4
-
encodes a tensorized basis function for the parameter space
5
-
of the form ``H_\mu = \prod_{k=1}^M H_k`` where the
6
-
``H_k`` are the orthogonal polynomials.
7
-
The TensorizedBasis collects all information necessary
8
-
to evaluate those basis functions, i.e. the set of multi-indices
9
-
and the triple products of the form ``(y_mH_\mu, H_\lambda)``
10
-
for each ``m`` and ``\mu, \lambda`` in the set of multi-indices
11
-
as a sparse matrix. There are analytic formulas to evaluate
12
-
these triple products in terms of recurrence coefficients, but it makes
13
-
sense to store them for faster evaluation times.
14
-
15
-
3
+
Each multi-index $\mu = [\mu_1, \mu_2, \ldots, \mu_M]$ defines a tensorized basis function for the parameter space of the form $H_\mu = \prod_{k=1}^M H_k$, where each $H_k$ is an orthogonal polynomial.
16
4
5
+
The `TensorizedBasis` object collects all information required to evaluate these basis functions, including the set of multi-indices and the triple products of the form $(y_m H_\mu, H_\lambda)$ for each $m$ and $\mu, \lambda$ in the set of multi-indices, stored as a sparse matrix. While analytic formulas exist to compute these triple products using recurrence coefficients, storing them can significantly speed up evaluations.
0 commit comments