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

More from Optics & Light

Other simulators in this category — or see all 44.

View category →
NewSchool

CD / Grating Rainbow

Lines/mm and incidence: scalar grating orders painted as λ-colored fans.

Launch Simulator
NewSchool

Moiré (Line Gratings)

Two translucent rulings: spacing, tilt, shift — spatial beats and envelopes.

Launch Simulator
NewSchool

Fiber: Numerical Aperture

NA from n_core, n_clad; acceptance angle and bend loss cue.

Launch Simulator
NewSchool

Fiber Bend & TIR Loss

Curved core: outer-wall incidence vs θ_c; tight R leaks (meridional sketch).

Launch Simulator
NewUniversity / research

Evanescent Wave (TIR)

Beyond θ_c: penetration depth scale in the rarer medium vs λ.

Launch Simulator
NewSchool

Retina & Diffraction

Order-of-magnitude θ ~ λ/D and cone spacing scale.

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/Optics & Light/Soap Film (Minimal Surface)

Soap Film (Minimal Surface)

A soap film stretched across a non-planar wire frame forms a minimal surface, a shape of the smallest possible area for its given boundary. This simulator visualizes that surface through a computational physics technique known as Laplace relaxation. The film is modeled as a discrete mesh of points, each with a height (z-coordinate). The core principle is that at equilibrium, the mean curvature at any point on the film is zero, a condition derived from minimizing the surface area under the constraint of the fixed boundary wire. The simulator approximates this by iteratively adjusting the height of each interior mesh point to the average height of its immediate neighbors, solving the discrete Laplace equation: ∇²z = 0. This relaxation process continues until the mesh stabilizes, revealing the smooth, saddle-shaped minimal surface. The iridescent colors are not modeled with full wave optics but are represented schematically using interference-based coloring to evoke the thin-film interference patterns seen in real soap films, which depend on local film thickness. Key simplifications include treating the soap film as having negligible thickness and uniform surface tension, ignoring gravity and dynamic effects like film drainage. By interacting with this simulator, students learn how complex physical shapes emerge from simple local averaging rules, connect the mathematical concept of a harmonic function (solution to Laplace's equation) to a tangible physical system, and observe the direct link between area minimization and zero mean curvature.

Who it's for: Undergraduate students in physics, mathematics, or engineering studying calculus of variations, partial differential equations, or introductory continuum mechanics.

Key terms

  • Minimal Surface
  • Laplace's Equation
  • Mean Curvature
  • Surface Tension
  • Plateau's Laws
  • Thin-Film Interference
  • Harmonic Function
  • Relaxation Method

Frame & mesh

0.85 (sim)
14
36

Measured values

Grid N36

How it works

A thin soap film minimizes area; for small slopes the height z(x,y) over a plane obeys ∇²z = 0 with Dirichlet data on the wire — the same Laplace equation as this Jacobi relaxation on a square grid. The frame here is schematic: flat bottom, vertical sides at z = 0, and a sinusoidal top so the boundary is not planar; the interior smooths into a harmonic surface (pedagogical stand-in for a full Plateau minimal surface).

Key equations

Discrete Laplace: z_ij <- average of four orthogonal neighbors (Jacobi)

Frequently asked questions

Why does the soap film always form that smooth, saddle-shaped surface?
The film minimizes its total surface area to reduce its potential energy, which is proportional to area due to surface tension. A surface with zero mean curvature, like a saddle shape, achieves this local area minimization. This is a direct consequence of the physical principle that systems evolve to their lowest energy state.
The simulator uses an averaging process. What physics law does that represent?
The averaging rule—setting a point's height to the average of its neighbors—is a numerical method to solve Laplace's equation (∇²z = 0). This equation is the mathematical condition for a minimal surface (zero mean curvature) when the boundary is fixed. Each relaxation step reduces the total area, driving the system toward equilibrium.
Can a real soap film have the complex 3D shape shown here?
Yes, provided the wire frame is rigid and the film is stable. This is the classic 'Plateau's problem' named after the 19th-century physicist Joseph Plateau, who experimentally determined the rules for soap film structures. The simulator's model accurately captures the equilibrium shape for a single, continuous film.
Why are there colorful patterns on the simulated film?
The colors are a schematic representation of thin-film interference. In reality, light waves reflecting off the front and back surfaces of the thin soap film interfere constructively or destructively based on the local film thickness, creating iridescent bands. Here, color is used as a visual proxy, often mapping to the local height or curvature of the computed surface.
What does this simulator simplify or leave out?
The model ignores several real-world effects: gravity (which would cause slight thickening at the bottom), the finite thickness and drainage of the film, variations in surface tension, and the dynamics of how the film forms. It assumes a perfectly elastic, weightless film with constant tension, solving only for the final equilibrium geometry.