The Gray-Scott system [1]_ describes a reaction-diffusion process of two substances \(u\) and \(v\),
where they diffuse over time. During the reaction \(u\) is used up with overall decay rate \(B\),
whereas \(v\) is produced with feed rate \(A\). \(D_u,\, D_v\) are the diffusion rates for
\(u,\, v\). Here, the process is described by the \(N\)-dimensional model
\[\frac{\partial u}{\partial t} = D_u \Delta u - u v^2 + A (1 - u),\]
\[\frac{\partial v}{\partial t} = D_v \Delta v + u v^2 - B u\]
in \(x \in \Omega:=[-L/2, L/2]^N\) with \(N=2,3\). Spatial discretization is done by using
Fast Fourier transformation for solving the linear parts provided by mpi4py-fft[2]_, see also
https://mpi4py-fft.readthedocs.io/en/latest/.
This class implements the problem for semi-explicit time-stepping (diffusion is treated implicitly, and reaction
is computed in explicit fashion).
Parameters:
nvars (tuple of int, optional) – Spatial resolution, i.e., number of degrees of freedom in space. Should be a tuple, e.g. nvars=(127,127).
Du (float, optional) – Diffusion rate for \(u\).
Dv (float, optional) – Diffusion rate for \(v\).
A (float, optional) – Feed rate for \(v\).
B (float, optional) – Overall decay rate for \(u\).
spectral (bool, optional) – If True, the solution is computed in spectral space.
L (int, optional) – Denotes the period of the function to be approximated for the Fourier transform.
comm (COMM_WORLD, optional) – Communicator for mpi4py-fft.
The Gray-Scott system [1]_ describes a reaction-diffusion process of two substances \(u\) and \(v\),
where they diffuse over time. During the reaction \(u\) is used up with overall decay rate \(B\),
whereas \(v\) is produced with feed rate \(A\). \(D_u,\, D_v\) are the diffusion rates for
\(u,\, v\). The model with linear (reaction) part is described by the \(N\)-dimensional model
\[\frac{d u}{d t} = D_u \Delta u - u v^2 + A,\]
\[\frac{d v}{d t} = D_v \Delta v + u v^2\]
in \(x \in \Omega:=[-L/2, L/2]^N\) with \(N=2,3\). Spatial discretization is done by using
Fast Fourier transformation for solving the linear parts provided by mpi4py-fft[2]_, see also
https://mpi4py-fft.readthedocs.io/en/latest/.
This class implements the problem for semi-explicit time-stepping (diffusion is treated implicitly, and linear
part is computed in an explicit way).
The Gray-Scott system [1]_ describes a reaction-diffusion process of two substances \(u\) and \(v\),
where they diffuse over time. During the reaction \(u\) is used up with overall decay rate \(B\),
whereas \(v\) is produced with feed rate \(A\). \(D_u,\, D_v\) are the diffusion rates for
\(u,\, v\). Here, the process is described by the \(N\)-dimensional model
\[\frac{\partial u}{\partial t} = D_u \Delta u - u v^2 + A (1 - u),\]
\[\frac{\partial v}{\partial t} = D_v \Delta v + u v^2 - B u\]
in \(x \in \Omega:=[-L/2, L/2]^N\) with \(N=2,3\). Spatial discretization is done by using
Fast Fourier transformation for solving the linear parts provided by mpi4py-fft[2]_, see also
https://mpi4py-fft.readthedocs.io/en/latest/.
This class implements the problem for multi-implicit time-stepping, i.e., both diffusion and reaction part will be treated
implicitly.
Parameters:
nvars (tuple of int, optional) – Spatial resolution, i.e., number of degrees of freedom in space. Should be a tuple, e.g. nvars=(127,127).
Du (float, optional) – Diffusion rate for \(u\).
Dv (float, optional) – Diffusion rate for \(v\).
A (float, optional) – Feed rate for \(v\).
B (float, optional) – Overall decay rate for \(u\).
spectral (bool, optional) – If True, the solution is computed in spectral space.
L (int, optional) – Denotes the period of the function to be approximated for the Fourier transform.
comm (COMM_WORLD, optional) – Communicator for mpi4py-fft.
The original Gray-Scott system [1]_ describes a reaction-diffusion process of two substances \(u\) and \(v\),
where they diffuse over time. During the reaction \(u\) is used up with overall decay rate \(B\),
whereas \(v\) is produced with feed rate \(A\). \(D_u,\, D_v\) are the diffusion rates for
\(u,\, v\). The model with linear (reaction) part is described by the \(N\)-dimensional model
\[\frac{\partial u}{\partial t} = D_u \Delta u - u v^2 + A,\]
\[\frac{\partial v}{\partial t} = D_v \Delta v + u v^2\]
in \(x \in \Omega:=[-L/2, L/2]^N\) with \(N=2,3\). Spatial discretization is done by using
Fast Fourier transformation for solving the linear parts provided by mpi4py-fft[2]_, see also
https://mpi4py-fft.readthedocs.io/en/latest/.
The problem in this class will be treated in a multi-implicit way for time-stepping, i.e., for the system containing
the diffusion part will be solved by FFT, and for the linear part a Newton solver is used.