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/assignment.qmd
+57-52Lines changed: 57 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -4,77 +4,82 @@ subtitle: "Reaction-Diffusion PDEs in 1D"
4
4
format: html
5
5
---
6
6
7
-
This assignment focuses on the one-dimensional Gierer-Meinhardt model and the Turing-instability analysis behind it [@turing1952chemical; @gierer1972theory]. You will combine a linear stability calculation with a finite-difference simulation on a finite interval.
7
+
This assignment turns the 1D PDE workflow into a complete coding mini-project. You will work with the one-dimensional Gierer-Meinhardt model and build a reproducible workflow that compares prediction and simulation on a finite interval[@turing1952chemical; @gierer1972theory].
8
8
9
-
The governing equations are
10
-
11
-
$$
12
-
u_t = D_1 u_{xx} + \gamma f(u, v), \qquad
13
-
v_t = D_2 v_{xx} + \gamma g(u, v),
14
-
$$
15
-
16
-
with reaction terms
17
-
18
-
$$
19
-
f(u, v) = a - bu + \frac{u^2}{v}, \qquad g(u, v) = u^2 - v, \qquad a, b > 0.
20
-
$$
21
-
22
-
Consider the equations on the interval $\Omega = (0, L)$ with Neumann zero-flux boundary conditions. Use the session pages below as a guide:
These conditions do not depend on $\gamma$ or on the size of the interval. They are only necessary conditions. To make them sufficient, check explicitly that unstable spatial modes exist, which does depend on the interval length through the Laplacian eigenvalues $\lambda_n$.
27
+
1. One coding deliverable, your choice of a Python script, a notebook, or a small dashboard/app. Students are free to choose the format, but it must reproduce all figures and numerical results end to end.
28
+
2. A short report, 1 to 2 pages in LaTeX and submitted as PDF.
44
29
45
-
1. In the Gierer-Meinhardt model take $\gamma = 1$, $D_1 = 1$, and $D_2 = d > 0$. Study in which region of parameter space $(a, b, d)$ the conditions above hold. This region is the Turing space. For convenience, take $b = 1$ and plot the 2D section in the $(a, d)$ plane.
46
-
2. Solve the Sturm-Liouville problem on the line segment and identify the spectrum of the Laplacian with Neumann boundary conditions. Study the two temporal eigenvalues associated with each spatial mode, determine the leading spatial mode, and list the unstable spatial modes. Remember that the temporal eigenvalues associated with the spatial eigenvalue $\lambda_n$ are the eigenvalues of
30
+
Your report should include:
47
31
48
-
$$
49
-
A_n = J + \lambda_n D =
50
-
\begin{pmatrix}
51
-
\gamma f_u + \lambda_n D_1 & \gamma f_v \\
52
-
\gamma g_u & \gamma g_v + \lambda_n D_2
53
-
\end{pmatrix},
54
-
\qquad
55
-
\det(A_n - \sigma^{(n)} I) = 0.
56
-
$$
32
+
- one figure of the Turing space in the $(a,d)$ plane,
33
+
- a short table or concise summary of the unstable modes for the two test cases,
34
+
- at least one figure from the numerical simulations,
35
+
- a brief comparison between the predicted behavior and the observed dynamics.
36
+
:::
57
37
58
-
3. For Gierer-Meinhardt in 1D on $(0, L)$ with $L = 40$, compare the following two parameter sets and decide which one leads to Turing instability. In the unstable case, determine the leading spatial mode.
Work with the 1D Gierer-Meinhardt model on the interval $\Omega = (0,L)$ with Neumann zero-flux boundary conditions, using the notation and definitions from the session pages.
61
39
62
-
## Numerical Approach
40
+
## Required
63
41
64
-
Implement a 1D finite-difference scheme for space and an explicit Euler scheme for time. The stability of the numerical scheme depends critically on the choice of `dt` and `dx`.
65
-
66
-
1. Use the following discretization, for which the numerical scheme is stable:
42
+
1. Build a computational workflow that can do three things: compute the Turing space in the $(a,d)$ plane, identify unstable spatial modes on a finite interval, and simulate the 1D PDE numerically.
43
+
2. For the parameter study, take $\gamma = 1$, $D_1 = 1$, and $D_2 = d > 0$, with $b = 1$, and produce one figure showing the Turing space in the $(a,d)$ plane.
44
+
3. For the finite-interval analysis, determine the unstable spatial modes and the leading spatial mode for the following two cases on $(0,L)$ with $L = 40$:
4. Implement a 1D finite-difference scheme for space and an explicit Euler scheme for time.
48
+
5. Use the following discretization for the numerical experiments:
67
49
- $N = 40$, the number of spatial points
68
50
- $dx = 1$, so that $L = N dx = 40$
69
51
- $dt = 0.01$
70
-
2. Start from the homogeneous stationary solution plus a 1% additive noise and observe the evolution in both parameter cases. In one case the perturbation should fall back to the homogeneous solution, while in the other the unstable spatial mode should be amplified.
71
-
3. Integrate the problem for $5 \times 10^4$ time steps of size $dt = 0.01$, saving one image every 500 steps. Join the resulting 100 frames into an animation.
72
-
4. Try other parameter values, integration steps, and interval lengths. Compare what you see with the predictions from your analytic work until you have a complete understanding of the Turing instability mechanism.
52
+
6. Start from the homogeneous stationary solution plus a 1% additive noise and run the simulation for both parameter cases.
53
+
7. Integrate the problem for $5 \times 10^4$ time steps of size $dt = 0.01$, saving one image every 500 steps. Join the resulting 100 frames into an animation.
54
+
8. Your chosen script, notebook, or dashboard should reproduce the main outputs clearly. At minimum, include:
55
+
- one figure of the Turing space,
56
+
- one summary of the unstable modes for Cases A and B,
57
+
- one static comparison of the numerical outcomes,
58
+
- one animation or interactive visualization of the evolving profile.
59
+
9. Try at least one additional experiment of your own, changing either the parameters, the interval length, or the numerical settings, and comment briefly on what changed.
60
+
61
+
## Short Discussion
62
+
63
+
Your report should answer questions such as:
64
+
65
+
1. Which of the two parameter sets produced a visible pattern, and how did that compare with your prediction?
66
+
2. Did the dominant wavelength or number of peaks match the leading unstable mode you computed?
67
+
3. Which numerical or modeling choice had the clearest effect on the observed pattern?
73
68
74
69
## Possible Extensions
75
70
76
-
1. Effect of the interval length. Keep the model parameters fixed and repeat the simulation for several values of $L$. Determine whether there is a minimum size below which no visible pattern forms, and study how the dominant wavelength and number of visible peaks depend on the interval length.
77
-
2. Boundary conditions. Replace Neumann boundary conditions with periodic boundary conditions and compare the early unstable modes and the long-time profiles.
78
-
3. Parameter sweeps. Choose a small grid in the $(a, d)$ plane near the edge of the Turing space, simulate each case numerically, and compare the observed transition with the analytical prediction.
71
+
1.**Effect of the interval length.** Keep the model parameters fixed and repeat the simulation for several values of $L$. Determine whether there is a minimum size below which no visible pattern forms, and study how the dominant wavelength and number of visible peaks depend on the interval length.
72
+
2.**Boundary conditions.** Replace Neumann boundary conditions with periodic boundary conditions and compare the early unstable modes and the long-time profiles.
73
+
3.**Parameter sweeps.** Choose a small grid in the $(a, d)$ plane near the edge of the Turing space, simulate each case numerically, and compare the observed transition with the analytical prediction.
74
+
75
+
## Tips for Success
76
+
77
+
- Get the mode scan and the basic simulation working before you run long PDE experiments.
78
+
- Start with a short integration and a static snapshot before you build the full animation.
79
+
- Use fixed random seeds so your figures and report stay reproducible.
80
+
- Keep the code modular so the same solver can be reused for multiple parameter sets.
81
+
- Focus on the comparison between prediction and observation, not only on producing a pretty pattern.
82
+
83
+
The next session extends the same workflow to two spatial dimensions and then switches to Gray-Scott.
79
84
80
-
The next session extends the same workflow to two spatial dimensions and then switches to Gray-Scott.
0 commit comments