Flow Lab

Syllabus / Part I — Foundations

Module 2

Multivariable & Vector Calculus

Calc III in service of physics: partial derivatives, gradients, vector fields, divergence, curl and the integral theorems that turn conservation laws into PDEs.

Builds on: Module 1 — Linear Algebra, Reloaded

  1. Surfaces, contour plots and heatmaps; partial derivatives as slopes along coordinate directions; higher and mixed partials.

    🌊 Temperature, pressure and density are scalar fields; a PDE relates their partial derivatives.

  2. Tangent planes, differentiability, the multivariable chain rule, and the Jacobian matrix as the best linear approximation of a map.

    🌊 The material derivative — the rate of change felt by a moving fluid parcel — is the chain rule.

  3. The gradient points uphill and is perpendicular to level sets. Directional derivatives, gradient descent, and pressure-gradient forces.

    🌊 Fluid accelerates from high to low pressure: the force per volume is −∇p.

  4. Taylor polynomials, remainder estimates and big-O notation; the multivariable Taylor expansion. The single tool behind every finite-difference formula and every error estimate in numerical methods.

    🌊 Every discretization of the Navier–Stokes equations is justified by a Taylor expansion.

  5. Double and triple integrals as sums over regions; polar, cylindrical and spherical coordinates; change of variables and the Jacobian determinant.

    🌊 Total mass in a region is ∭ρ dV — the starting point of every conservation law.

  6. Vector fields in 2D and 3D, integral curves, streamlines vs. pathlines vs. streaklines, and gradient fields.

    🌊 Visualizing a flow is integrating particles through a velocity field — exactly the ODE solvers you already know.

  7. Divergence measures net outflow per unit volume. Its definition as a flux limit, the formula ∇·F, and incompressibility ∇·u = 0.

    🌊 Incompressible fluid solvers spend most of their time making ∇·u = 0.

  8. Curl measures local rotation: the paddle-wheel picture, the formula ∇×F, 2D scalar curl, and vorticity in flows.

    🌊 Vorticity is the swirl you see in smoke; Stam-style solvers add 'vorticity confinement' to keep it alive.

  9. Work and circulation along curves; flux through surfaces; parametrized curves and surfaces; path independence for conservative fields.

    🌊 Circulation around an airfoil determines its lift (Kutta–Joukowski theorem).

  10. The big three integral theorems: what's happening on the boundary equals what's happening inside. The bridge from integral conservation laws to PDEs.

    🌊 The divergence theorem converts 'mass in a box changes by what flows through its walls' into the continuity equation.

  11. ∇², the Laplacian, as 'difference from the neighborhood average'; key vector identities; the Helmholtz decomposition of a vector field.

    🌊 Diffusion, viscosity and the pressure projection are all Laplacians; Helmholtz–Hodge is the heart of Stam's solver.