STOCHASTIC_DIFFUSION is a MATLAB library which implement several versions of a stochastic diffusivity coefficient.
The 1D diffusion equation has the form
- d/dx ( A(X) d/dx U(X) ) = F(X).where A(X) is a function called the diffusivity and F(X) is called the source term or forcing term.
In the 1D stochastic version of the problem, the diffusivity function includes the influence of stochastic parameters:
- d/dx ( A(X;OMEGA) d/dx U(X;OMEGA) ) = F(X).
The 2D diffusion equation has the form
- Del ( A(X,Y) Del U(X,Y) ) = F(X,Y).
In the 2D stochastic version of the problem, the diffusivity function includes the influence of stochastic parameters:
- Del ( A(X,Y;OMEGA) Del U(X,Y;OMEGA) ) = F(X,Y).
The present codes are currently just sketches or untested functions. More work and documentation is needed.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
BLACK_SCHOLES, a MATLAB library which implements some simple approaches to the Black-Scholes option valuation theory;
CNOISE, a MATLAB library which generates samples of noise obeying a 1/f^alpha power law, by Miroslav Stoyanov.
PCE_LEGENDRE, a MATLAB program which assembles the system matrix associated with a polynomal chaos expansion of a 2D stochastic PDE, using Legendre polynomials;
PCE_ODE_HERMITE, a MATLAB program which sets up a simple scalar ODE for exponential decay with an uncertain decay rate, using a polynomial chaos expansion in terms of Hermite polynomials.
SDE, a MATLAB library which illustrates the properties of stochastic differential equations, and common algorithms for their analysis, by Desmond Higham;
STOCHASTIC_GRADIENT_ND_NOISE, a MATLAB program which solves an optimal control problem involving a functional over a system with stochastic noise.
The BNT example is used in a rectangle [-1.5,0]x[-0.4,0.8], with zero source term, and somewhat complicated boundary conditions:
The NTW example is formally 2D but the diffusivity depends only on X. The full problem is the diffusion equation in a square [0,1]x[0,1] with zero boundary conditions and a deterministic right hand side f(x,y)=cos(x)*sin(y).
You can go up one level to the MATLAB source codes.