Preparation pathway
Eight modules, from first-year undergraduate (L1) level to M2 research level
This pathway leads from a first-year undergraduate (L1) level (calculus, linear algebra, some programming) to the level required to start the MilaDy internship: reading a paper on generative models under physical constraints, writing and training a conditional flow matching model, and assessing a generated MHD field against physical criteria. It comprises eight modules, about 215 hours of work and 122 exercises with solutions.
About These modules are independent notes. They are not an official course of ENPC, LISN or Université Paris-Saclay. Each module lists its sources; facts about recent research come from verified fact bases (the docs/specs/sources/ folder of the repository).
The eight modules
| Module | Level | Duration | Exercises | What it brings to the internship |
|---|---|---|---|---|
| 1. Vector calculus and Fourier analysis | L1 → L2 | 20 h | 15 | divergence, curl, potentials, FFT, Leray projection |
| 2. Fluid mechanics and turbulence | L2 → M1 | 25 h | 15 | Navier–Stokes, energy budgets, spectra, pseudo-spectral methods |
| 3. Electromagnetism, MHD and the dynamo effect | L2 → M2 | 30 h | 14 | induction equation, Rm, laboratory dynamos, reversals |
| 4. Dynamical systems, bifurcations and invariant measures | L2 → M2 | 25 h | 15 | bifurcations, chaos, stationarity identities, Rice formula |
| 5. Probability, statistics and optimal transport | L2 → M1 | 25 h | 15 | pushforward measure, KL and I-projection, distances between distributions, SDEs |
| 6. Deep learning for physics | L3 → M2 | 30 h | 16 | neural networks, POD and autoencoders, equivariance, PINNs and operators |
| 7. Generative models: diffusion and flow matching | M1 → M2 | 30 h | 16 | diffusion, score, flow matching, conditioning, FunDiff |
| 8. Generative models under physical constraints | M2 → research | 30 h | 16 | taxonomy of constraints, projections, penalties, distributional constraints |
In what order
Modules 1 to 3 form the physics branch, modules 5 to 8 the learning branch; module 4 links the two, because it explains why a stationary turbulent state is described by an invariant probability distribution.
- Physics: 1 → 2 → 3. Module 3 uses the potentials and the projection from module 1, and the energy budgets from module 2.
- Bridge: 4, after 2 and 5. It is used for reversals (module 3) and for distributional constraints (module 8).
- Learning: 5 → 6 → 7 → 8. Module 7 requires the pushforward measure and the continuity equation from module 5; module 8 requires all the others.
A linear reading order that respects these dependencies is 1, 2, 5, 3, 4, 6, 7, 8.
A possible schedule
To start the internship in spring 2027, at a pace of about 15 hours per week:
| Weeks | Modules | Milestone |
|---|---|---|
| 1–2 | 1 | be able to project a periodic field onto divergence-free fields |
| 3–4 | 2 | have run a 2D pseudo-spectral solver and checked its energy budget |
| 5–6 | 5 | be able to compute an I-projection and an energy distance |
| 7–8 | 3 | be able to explain the threshold of a kinematic dynamo and the VKS reversals |
| 9–10 | 4 | be able to check a stationarity identity and the Rice formula on a simple model |
| 11–12 | 6 | have compared POD and an autoencoder on fields |
| 13–14 | 7 | have trained a conditional flow matching model |
| 15–16 | 8 | have read the five references of the internship offer and reproduced an experiment from the report |
How to work through a module
Each module follows the same structure: objectives, prerequisites, work plan (sessions, durations, levels from 1 to 3 that never go back down), chapters with definitions, theorems and proofs, executed Python code, graded exercises ★ / ★★ / ★★★ with solutions, connection to the internship, further reading and sources.
- Read a chapter, then do the exercises listed in its work plan before reading the solution.
- Run each code block and change a parameter: every block runs in under 30 seconds on a laptop.
- Keep one page of formulas per module; module 8 assumes you can retrieve them quickly.
- The interactive diagrams illustrate five key notions (flow matching, Leray projection, distributional constraint, reversals and the ABC dynamo) and the simulation pipeline; the modules contain 25 more.