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: modules/pde-1d/turing-instability.qmd
+8-150Lines changed: 8 additions & 150 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,12 @@ Patterns do not appear by accident. Turing instability explains when a uniform s
10
10
11
11
The previous page gave the intuition: local activation can reinforce a bump, inhibition can suppress nearby growth, and diffusion can either smooth or amplify spatial differences depending on the parameter regime. This page turns that picture into a linear stability test and asks a precise question, which parameter values and which spatial modes make the flat steady state lose stability?
12
12
13
+
::: {.callout-note}
14
+
## Interactive Simulator
15
+
16
+
You can follow the theory on this page while running the [interactive 1D Gierer-Meinhardt simulator](https://bam-applied-math-lab.streamlit.app/Gierer_Meinhardt_1D). The simulator lets you pick a boundary condition, adjust domain length and reaction parameters, build a custom perturbation, and check which modes the simulation selects against the prediction from linear theory.
17
+
:::
18
+
13
19
```{python}
14
20
#| label: fig-pde-turing-space
15
21
#| fig-cap: 'Turing space for the Gierer-Meinhardt model in the $(a, d)$ plane.'
@@ -236,7 +242,7 @@ plt.show()
236
242
237
243
Mark the point $(a, d) = (0.40, 20)$ on your plot. Is it inside the instability region?
238
244
239
-
This is the same Turing-space diagram that appears in the left panel of the interactive Gierer-Meinhardt code, so the algebra and the simulation refer to the same parameter plane.
245
+
This is the same Turing-space diagram that appears in the [interactive 1D Gierer-Meinhardt simulator](https://bam-applied-math-lab.streamlit.app/Gierer_Meinhardt_1D), so the algebra and the simulation refer to the same parameter plane.
For periodic boundaries, the same loop works after replacing each factor of $\pi / L$ by $2\pi / L$.
358
-
359
-
## Apply the Same Workflow to Gray-Scott
360
-
361
-
The theory on this page does not depend on the specific reaction law. Gray-Scott uses the same equilibrium to Jacobian to mode-matrix pipeline [@gray1984autocatalytic; @pearson1993complex].
The Gray-Scott Jacobian at a homogeneous equilibrium is
384
-
385
-
$$
386
-
J_{\mathrm{GS}} =
387
-
\begin{pmatrix}
388
-
-v_*^2 - f & -2u_*v_*\\
389
-
v_*^2 & 2u_*v_* - (f+k)
390
-
\end{pmatrix}.
391
-
$$ {#eq-pde-turing-gs-jacobian}
392
-
393
-
At the trivial state $(1, 0)$, this Jacobian is diagonal and every linear mode decays. So the classical Turing test is only interesting at a nontrivial homogeneous equilibrium when one exists.
That is the whole bridge from Gierer-Meinhardt to Gray-Scott. Keep the eigenvalue scan, replace the Jacobian, replace the boundary spectrum, then sort the unstable modes and read off the dominant one.
434
-
435
-
## Compare Two Cases
436
-
437
-
Use your functions to compare $d=20$ and $d=30$ with $a=0.40$ and $b=1.00$.
438
-
439
-
1. Does each case satisfy the Turing conditions?
440
-
2. How many unstable modes appear in 1D?
441
-
3. What is the leading mode in 2D?
442
-
443
-
These answers will help you interpret the 1D assignment now and the 2D simulations in the next session.
444
-
445
303
## What's Next?
446
304
447
305
Now that you know how to predict pattern-forming parameter regimes, close the 1D loop by completing the assignment. After that, carry the same ideas to a 2D grid in the next session.
@@ -450,5 +308,5 @@ Now that you know how to predict pattern-forming parameter regimes, close the 1D
450
308
[PDEs in 2D](../pde-2d/index.qmd){.btn .btn-primary}
451
309
452
310
::: {.callout-tip}
453
-
Reference code is available in [amlab/pdes/gierer_meinhardt_1d.py](https://github.com/daniprec/BAM-Applied-Math-Lab/blob/main/amlab/pdes/gierer_meinhardt_1d.py) and [amlab/pdes/gierer_meinhardt_2d.py](https://github.com/daniprec/BAM-Applied-Math-Lab/blob/main/amlab/pdes/gierer_meinhardt_2d.py).
311
+
Reference code is available in [amlab/pdes/gierer_meinhardt_1d.py](https://github.com/daniprec/BAM-Applied-Math-Lab/blob/main/amlab/pdes/gierer_meinhardt_1d.py).
Copy file name to clipboardExpand all lines: modules/pde-2d/gierer-meinhardt-2d.qmd
+72-2Lines changed: 72 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -326,9 +326,79 @@ def update_frame(_):
326
326
327
327
The 5-point stencil is the standard choice, but you can improve the rotational symmetry of the Laplacian with a 9-point stencil. That is a good extension if you want to compare numerical accuracy.
328
328
329
-
## Explore
329
+
## Unstable Modes on a Rectangle
330
330
331
-
Use the Turing page to compare the cases $d=20$ and $d=30$. Does the pattern that forms on your grid match the change suggested by the unstable mode analysis?
331
+
The Turing instability page showed how to list unstable modes in 1D by scanning the Neumann eigenvalues $\lambda_n = -(n\pi/L)^2$. In two dimensions, the modes are pairs $(n_x, n_y)$. On a rectangle with side lengths $L_x$ and $L_y$ and Neumann boundaries,
Copy file name to clipboardExpand all lines: modules/pde-2d/gray-scott.qmd
+70-1Lines changed: 70 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,76 @@ The same steady-state to Jacobian to mode-matrix pipeline from the Turing page s
210
210
- For Neumann boundaries, the admissible wavenumbers use factors of $\pi / L$.
211
211
- For periodic boundaries, the admissible wavenumbers use factors of $2\pi / L$.
212
212
213
-
For the usual base state $(u, v) = (1, 0)$, the linearized system is damped, so the classical Turing calculation only becomes interesting at a nontrivial homogeneous equilibrium when one exists. In that regime, the mode matrices are built exactly as before, but with the periodic Laplacian eigenvalues. That is the clean conceptual bridge from Gierer-Meinhardt to Gray-Scott.
213
+
For the usual base state $(u, v) = (1, 0)$, the linearized system is damped, so the classical Turing calculation only becomes interesting at a nontrivial homogeneous equilibrium when one exists.
214
+
215
+
The nontrivial homogeneous equilibria satisfy $u_* v_* = f + k$, and one can show that
Once both helpers work, reuse `find_unstable_modes_2d` from the Gierer-Meinhardt 2D page, swap in `gray_scott_jacobian`, and replace $\pi / L$ with $2\pi / L$ to get the periodic mode spectrum. That is the direct conceptual bridge from Gierer-Meinhardt to Gray-Scott [@gray1984autocatalytic; @pearson1993complex].
0 commit comments