Skip to content

Commit c379ea1

Browse files
author
Daniel Precioso
committed
Revise assignment details for the 1D Gierer-Meinhardt model, enhancing clarity on goals, submission requirements, and computational workflow.
1 parent 0523b36 commit c379ea1

1 file changed

Lines changed: 57 additions & 52 deletions

File tree

modules/pde-1d/assignment.qmd

Lines changed: 57 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -4,77 +4,82 @@ subtitle: "Reaction-Diffusion PDEs in 1D"
44
format: html
55
---
66

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].
88

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:
9+
You can follow the guide here:
2310

2411
[Gierer-Meinhardt 1D](gierer-meinhardt-1d.qmd){.btn .btn-primary}
2512
[Turing Instability](turing-instability.qmd){.btn .btn-primary}
2613

27-
## Analytic Approach
14+
## Summary of Goals
2815

29-
The explicit conditions for Turing instability are
16+
Your submission should show that you can do three things:
3017

31-
$$
32-
\operatorname{Tr} J = f_u + g_v < 0
33-
$$
18+
1. Implement the 1D Gierer-Meinhardt model and the basic prediction tools from the session.
19+
2. Build a reproducible computational workflow that compares prediction with simulation.
20+
3. Interpret when a spatial pattern appears and how it depends on the parameters and discretization.
3421

35-
$$
36-
\det J \equiv \Delta = f_u g_v - f_v g_u > 0
37-
$$
22+
::: {.callout-note}
23+
## Submission
3824

39-
$$
40-
D_1 g_v + D_2 f_u > 2 \sqrt{D_1 D_2} \sqrt{\Delta} > 0.
41-
$$
25+
Submit two files:
4226

43-
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.
4429

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:
4731

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+
:::
5737

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.
59-
- Case A: $\gamma = 1$, $a = 0.4$, $b = 1$, $d = 30$
60-
- Case B: $\gamma = 1$, $a = 0.4$, $b = 1$, $d = 20$
38+
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.
6139

62-
## Numerical Approach
40+
## Required
6341

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$:
45+
- Case A: $\gamma = 1$, $a = 0.4$, $b = 1$, $d = 30$
46+
- Case B: $\gamma = 1$, $a = 0.4$, $b = 1$, $d = 20$
47+
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:
6749
- $N = 40$, the number of spatial points
6850
- $dx = 1$, so that $L = N dx = 40$
6951
- $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?
7368

7469
## Possible Extensions
7570

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.
7984

80-
The next session extends the same workflow to two spatial dimensions and then switches to Gray-Scott.
85+
**Good luck and enjoy your coding.**

0 commit comments

Comments
 (0)