Skip to content

Commit

Permalink
feat: more content
Browse files Browse the repository at this point in the history
  • Loading branch information
moe-ad committed Jan 14, 2025
1 parent 470e3ca commit 5a1eae2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 25 additions & 5 deletions doc/source/examples/extended_examples/sfem/stochastic_fem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ Here:

For example, :math:`E(x)` could be a Gaussian random field, in which case it has the stationarity

Check failure on line 85 in doc/source/examples/extended_examples/sfem/stochastic_fem.rst

View workflow job for this annotation

GitHub Actions / Documentation style doc

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'stationarity'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'stationarity'?", "location": {"path": "doc/source/examples/extended_examples/sfem/stochastic_fem.rst", "range": {"start": {"line": 85, "column": 86}}}, "severity": "ERROR"}
property, making its statistics completely defined by its mean (:math:`\mu_E`), standard deviation
(:math:`\sigma_E`) and covariance function :math:`C_E(x_1,x_2)`. This 'stationarity' simply means
(:math:`\sigma_E`) and covariance function :math:`C_E(x_i,x_j)`. This 'stationarity' simply means

Check failure on line 87 in doc/source/examples/extended_examples/sfem/stochastic_fem.rst

View workflow job for this annotation

GitHub Actions / Documentation style doc

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'stationarity'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'stationarity'?", "location": {"path": "doc/source/examples/extended_examples/sfem/stochastic_fem.rst", "range": {"start": {"line": 87, "column": 72}}}, "severity": "ERROR"}
that the mean and standard deviation of every random variable :math:`E(x)` is constant and equal to
:math:`\mu_E` and :math:`\sigma_E` respectively. :math:`C_E(x_1,x_2)` describes how random variables
:math:`E(x_1)` and :math:`E(x_2)` are related.
:math:`\mu_E` and :math:`\sigma_E` respectively. :math:`C_E(x_i,x_j)` describes how random variables
:math:`E(x_i)` and :math:`E(x_j)` are related.
For a zero-mean Gaussian random field, the covariance function is given by:

.. math:: C_E(x_1,x_2) = \sigma_E^2e^{-\frac{\lvert x_1-x_2 \rvert}{\ell}}
.. math:: C_E(x_i,x_j) = \sigma_E^2e^{-\frac{\lvert x_i-x_j \rvert}{\ell}}

where :math:`\sigma_E^2` is the variance, and :math:`\ell` is the correlation length parameter.

Expand All @@ -100,4 +100,24 @@ realization/sample function assigned to each outcome of an experiment.

.. figure:: realizations.png

A random field as a collection of random variables or realizations
A random field as a collection of random variables or realizations

.. note::
The concepts above generalize to more dimensions, for example, a random vector instead of a random

Check warning on line 106 in doc/source/examples/extended_examples/sfem/stochastic_fem.rst

View workflow job for this annotation

GitHub Actions / Documentation style doc

[vale] reported by reviewdog 🐶 [Google.WordList] Use 'preceding' instead of 'above'. Raw Output: {"message": "[Google.WordList] Use 'preceding' instead of 'above'.", "location": {"path": "doc/source/examples/extended_examples/sfem/stochastic_fem.rst", "range": {"start": {"line": 106, "column": 16}}}, "severity": "WARNING"}
variable, or an :math:`\mathbb{R}^d`-valued stochastic process. The presentation above is however

Check warning on line 107 in doc/source/examples/extended_examples/sfem/stochastic_fem.rst

View workflow job for this annotation

GitHub Actions / Documentation style doc

[vale] reported by reviewdog 🐶 [Google.WordList] Use 'preceding' instead of 'above'. Raw Output: {"message": "[Google.WordList] Use 'preceding' instead of 'above'.", "location": {"path": "doc/source/examples/extended_examples/sfem/stochastic_fem.rst", "range": {"start": {"line": 107, "column": 84}}}, "severity": "WARNING"}
sufficient for this example.

Series expansion of stochastic processes
----------------------------------------
Since a stochastic processes involves an infinite number of random variables, most engineering applications
involving stochastic processes will be mathematically and computationally intractable if there isn't a way of

Check warning on line 113 in doc/source/examples/extended_examples/sfem/stochastic_fem.rst

View workflow job for this annotation

GitHub Actions / Documentation style doc

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "doc/source/examples/extended_examples/sfem/stochastic_fem.rst", "range": {"start": {"line": 113, "column": 32}}}, "severity": "WARNING"}
approximating them with a series of a finite number of random variables. A series expansion method which will

Check warning on line 114 in doc/source/examples/extended_examples/sfem/stochastic_fem.rst

View workflow job for this annotation

GitHub Actions / Documentation style doc

[vale] reported by reviewdog 🐶 [Google.Will] Avoid using 'will'. Raw Output: {"message": "[Google.Will] Avoid using 'will'.", "location": {"path": "doc/source/examples/extended_examples/sfem/stochastic_fem.rst", "range": {"start": {"line": 114, "column": 106}}}, "severity": "WARNING"}
be used in this example is explained next.

The Karhunen-Loève (K-L) series expansion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For a zero-mean stationary gaussian process, :math:`X(t)`, with covariance function

Check failure on line 119 in doc/source/examples/extended_examples/sfem/stochastic_fem.rst

View workflow job for this annotation

GitHub Actions / Documentation style doc

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'gaussian'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'gaussian'?", "location": {"path": "doc/source/examples/extended_examples/sfem/stochastic_fem.rst", "range": {"start": {"line": 119, "column": 28}}}, "severity": "ERROR"}
:math:`C_X(t_i,t_j)=\sigma_X^2e^{-\frac{\lvert t_i-t_j \rvert}{b}}` defined on a domain :math:`\mathbb{D}=[-a,a]`,
the K-L series expansion is given by:

.. math:: X(t) = \sum_{n=1}^\infty \sqrt{\lambda_{n,c}}\cdot\phi_{n,c}(t)\cdot\xi_{n,c} + \sum_{n=1}^\infty \sqrt{\lambda_{n,s}}\cdot\phi_{n,s}(t)\cdot\xi_{n,s},\quad t\in\mathbb{D}

0 comments on commit 5a1eae2

Please sign in to comment.