PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Math Visualization

Other simulators in this category — or see all 78.

View category →
NewUniversity / research

Conjugate Gradient Solver

SPD system Ax=b as quadratic minimization: contour geometry, CG vs steepest descent path, residual norm, and condition number.

Launch Simulator
NewUniversity / research

Power Iteration Eigenvalue Convergence

Visualize dominant eigenvector convergence: spectral gap ratio, Rayleigh quotient, eigen residual, and normalized power iterates on the unit circle.

Launch Simulator
NewUniversity / research

Newton-Raphson Basins in 2D Systems

Map Newton basins for nonlinear F(x,y)=0 systems: initial-guess sensitivity, iteration counts, root attraction, and singular-Jacobian failures.

Launch Simulator
NewUniversity / research

Monte Carlo Integration & Variance Reduction

Compare plain Monte Carlo, importance sampling, and stratified sampling for ∫f(x)dx, with convergence curves, standard error, and the 1/√N rate.

Launch Simulator
NewUniversity / research

LMS / NLMS Adaptive Noise Cancellation

Primary p = s + v with v a fixed unknown FIR of Gaussian reference x[n]. Watch an L-tap FIR adapt by LMS or NLMS so error e = p − wᵀx → s; running MSE and ‖w − h‖.

Launch Simulator
NewUniversity / research

DCT & JPEG Quantization (8×8)

64×64 luma: 8×8 DCT with −128 shift, ISO luminance quant table scaled by JPEG quality, or zigzag AC truncation (keep K). Click a block for coefficient heatmaps and zigzag trace.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Math Visualization/Finite-Volume Advection-Diffusion 2D

Finite-Volume Advection-Diffusion 2D

Finite-volume methods update cell averages by balancing fluxes through the faces of each control volume. This simulator evolves a scalar advection-diffusion equation on a periodic 2D grid, computing east/west/north/south face fluxes and comparing upwind versus central interpolation. Upwind fluxes are more dissipative but bounded; central differencing is sharper but can oscillate when the cell Peclet number is high. The canvas shows the transported scalar field, a velocity vector, sample face fluxes, CFL, time step, and Peclet number.

Who it's for: Scientific computing, finite-volume CFD, numerical PDEs, transport phenomena, and applied math courses.

Key terms

  • Finite volume method
  • Advection-diffusion
  • Face flux
  • Upwind scheme
  • Central differencing
  • Peclet number

The demo uses periodic boundaries and an explicit time step chosen from simple CFL/diffusion limits. Central differencing can show wiggles at high Peclet number, while upwind is more bounded but more diffusive.

Live graphs

Finite-volume scheme

1
15°
0.015
3

Measured values

Cell Peclet number1.149
CFL number0.263
Time step Δt0.00396
Grid58×40
Scheme hintbounded

How it works

Finite-volume advection-diffusion simulator: conservative face fluxes, upwind versus central interpolation, Peclet number, and scalar transport on a 2D grid.

Key equations

∂φ/∂t + ∇·(uφ) = ∇·(Γ∇φ), integrated over each control volume
Face flux: F_e φ_e − Γ(φ_E−φ_P)/Δx; Pe = |u|Δx/Γ

Frequently asked questions

Why do finite-volume methods focus on face fluxes?
The integral conservation law says that a cell average changes because material crosses its faces. Computing numerical face fluxes makes conservation local and explicit.
Why can central differencing oscillate?
When advection dominates diffusion, the cell Peclet number is high and central interpolation lacks enough numerical damping. Upwind uses the upstream value, which stabilizes the transport at the cost of extra diffusion.