Analytical Modal Synthesis of Vibrating Circular Plates and Membranes × Stable Fluids × Thin-film iridescence
Chladni-vibrated iridescent soap film. Acoustic standing waves on a circular membrane stir a viscous soap film into swirling interference bands. Modal Bessel eigenmodes push fluid away from antinodes toward nodal rings, sculpting nanometre-scale film thickness that flashes across the spectrum under thin-film interference.
Open in StudioReproduced23.3× · 0.721 ms
Verified proof

Split-screen WebGL2 proof comparing a dry monochrome Chladni Bessel circular-plate standing wave (left, showing raw nodal sand ridges alone) against the same modal eigenfunction gradient driving curl-advected fluid thickness currents shaded through physical optical thin-film iridescence on a circular soap membrane (right).
Chromium Headless ANGLE/SwiftShader WebGL2 · 512x512 · couples Bessel circular nodal geometry into advected nanometer thickness gradients with realistic multi-order spectral thin-film interference
Show GLSL proof (152 lines)
const float P_MODE_FREQ = 1.00; // P Drive Frequency [0.5, 2.0, 0.05]
const float P_FLUID_CURL = 0.85; // P Advection Swirl [0.0, 2.0, 0.05]
const float P_FILM_NM = 520.0; // P Base Film Thickness nm [220.0, 960.0, 10.0]
const float P_MEMBRANE_TILT = 0.42; // P Membrane Curvature [0.05, 0.9, 0.05]
// Fast accurate Bessel J_m(x) approximation for circular membrane eigenmodes
float besselJ(int m, float x) {
float ax = abs(x);
if (ax < 2.2) {
float t = x * 0.5;
float term = 1.0;
if (m == 1) term = t;
else if (m == 2) term = t * t * 0.5;
else if (m == 3) term = t * t * t / 6.0;
else if (m == 4) term = t * t * t * t / 24.0;
float s = term;
float t2 = -t * t;
for (int k = 1; k <= 5; k++) {
term *= t2 / (float(k) * float(k + m));
s += term;
}
return s;
}
float phase = ax - (0.5 * float(m) + 0.25) * 3.14159265;
return sqrt(2.0 / (3.14159265 * ax)) * cos(phase);
}
float evalChladni(vec2 p, float t) {
float r = length(p);
float th = atan(p.y, p.x);
float blend = 0.5 + 0.5 * sin(t * 0.42 * P_MODE_FREQ);
float mA = besselJ(3, r * 11.62 * P_MODE_FREQ) * cos(3.0 * th + t * 0.18);
float mB = besselJ(2, r * 14.80 * P_MODE_FREQ) * cos(2.0 * th - t * 0.24);
float mC = besselJ(0, r * 11.79 * P_MODE_FREQ) * 0.55;
float w = mix(mA, mB, blend) + 0.35 * sin(t * 0.31) * mC;
return w * smoothstep(1.04, 0.88, r);
}
vec2 chladniGrad(vec2 p, float t) {
float e = 0.012;
float gx = evalChladni(p + vec2(e, 0.0), t) - evalChladni(p - vec2(e, 0.0), t);
float gy = evalChladni(p + vec2(0.0, e), t) - evalChladni(p - vec2(0.0, e), t);
return vec2(gx, gy) / (2.0 * e);
}
// Divergence-free fluid curl streamfunction seeded by Chladni modal forcing
vec2 fluidVel(vec2 p, float t) {
vec2 g = chladniGrad(p, t);
float u = evalChladni(p, t);
vec2 acousticForce = -u * g * 1.45;
// Vortical curl eddies around nodal rings
vec2 curlA = vec2(-g.y, g.x) * 0.55;
vec2 q = p * 3.6 + vec2(t * 0.22, -t * 0.17);
vec2 curlB = vec2(cos(q.y + sin(q.x)), -sin(q.x + cos(q.y))) * 0.16;
return (acousticForce + (curlA + curlB) * P_FLUID_CURL) * smoothstep(1.0, 0.72, length(p));
}
// Thin-film Airy interference reflectance for soap film (n_film = 1.333) in air
vec3 thinFilmRGB(float thicknessNm, float cosTheta) {
float nFilm = 1.333;
float sinT2 = max(1.0 - cosTheta * cosTheta, 0.0);
float cosT = sqrt(max(1.0 - sinT2 / (nFilm * nFilm), 0.01));
float opd = 2.0 * nFilm * thicknessNm * cosT;
vec3 lambdas = vec3(635.0, 535.0, 455.0);
// Half-wave phase shift on air->soap interface
vec3 phase = 6.2831853 * opd / lambdas + 3.14159265;
vec3 refl = 0.5 - 0.5 * cos(phase);
// Slight chromatic coherence decay at thick high orders
float coh = exp(-max(thicknessNm - 320.0, 0.0) / 1450.0);
return mix(vec3(0.45), refl, coh);
}
vec3 studioEnv(vec3 rd) {
float elev = clamp(rd.y * 0.5 + 0.5, 0.0, 1.0);
vec3 base = mix(vec3(0.03, 0.035, 0.05), vec3(0.16, 0.19, 0.26), pow(elev, 1.4));
// Two crisp studio softbox strips for high-contrast soap speculars
float box1 = smoothstep(0.72, 0.94, dot(rd, normalize(vec3(0.55, 0.72, 0.42))));
float box2 = smoothstep(0.78, 0.96, dot(rd, normalize(vec3(-0.68, 0.44, 0.58))));
float ring = smoothstep(0.08, 0.0, abs(rd.y - 0.12)) * 0.35;
return base + vec3(2.4, 2.32, 2.18) * box1 + vec3(0.85, 1.25, 1.85) * box2 + vec3(0.55) * ring;
}
vec3 acesTone(vec3 x) {
return clamp((x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14), 0.0, 1.0);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
bool rightSide = uv.x > 0.0;
vec2 p = vec2(rightSide ? (uv.x - 0.25) : (uv.x + 0.25), uv.y) * 2.35;
float r = length(p);
vec3 col = vec3(0.022, 0.025, 0.034) * (1.0 - 0.25 * r);
// Brushed metallic brass excitation ring around the circular plate/hoop
float ringMask = smoothstep(0.055, 0.015, abs(r - 0.96));
if (r < 0.96) {
float amp = evalChladni(p, iTime);
if (!rightSide) {
// Left: dry monochrome Chladni plate (sand congregates along |amp| == 0 nodal lines)
float nodal = exp(-abs(amp) * 14.0);
float plateShade = 0.08 + 0.06 * (1.0 - r * r);
float grain = fract(sin(dot(floor(p * 110.0), vec2(12.9898, 78.233))) * 43758.5453);
vec3 sand = vec3(0.90, 0.86, 0.78) * (0.78 + 0.22 * grain);
float waveTint = 0.5 + 0.5 * clamp(amp * 2.4, -1.0, 1.0);
vec3 plateCol = mix(vec3(0.06, 0.07, 0.09), vec3(0.14, 0.15, 0.18), waveTint) + plateShade;
col = mix(plateCol, sand, smoothstep(0.18, 0.82, nodal));
} else {
// Right: semi-Lagrangian backtrace through modal fluid field -> advected soap-film thickness
vec2 q = p;
for (int s = 0; s < 5; s++) {
vec2 v = fluidVel(q, iTime - float(s) * 0.08);
q -= v * 0.085;
}
float advAmp = evalChladni(q, iTime);
float nodalPool = exp(-abs(advAmp) * 6.5);
// Vertical gravity drainage + modal pumping into nodal ridges + swirling thickness filaments
float swirl = sin(q.x * 7.2 + sin(q.y * 6.4 - iTime * 0.5)) * 0.5 + 0.5;
float drain = smoothstep(0.95, -0.95, p.y) * 320.0;
float thickness = P_FILM_NM + drain + nodalPool * 340.0 + (swirl - 0.5) * 210.0 * P_FLUID_CURL;
thickness = clamp(thickness, 130.0, 1250.0);
// Membrane surface normal from curved dome + instantaneous Bessel vibration gradient
vec2 grad = chladniGrad(p, iTime);
vec3 N = normalize(vec3(-p.x * P_MEMBRANE_TILT - grad.x * 0.11, -p.y * P_MEMBRANE_TILT - grad.y * 0.11, 1.0));
vec3 V = normalize(vec3(-p * 0.25, 1.0));
float ndv = clamp(dot(N, V), 0.08, 1.0);
vec3 R = reflect(-V, N);
vec3 env = studioEnv(R);
float fres = 0.04 + 0.96 * pow(1.0 - ndv, 4.0);
vec3 irid = thinFilmRGB(thickness, ndv);
// Dark velvet backdrop behind translucent soap membrane reveals pure spectral interference
vec3 filmCol = irid * (0.28 + 1.45 * env) * (0.38 + 0.92 * fres);
// Highlight delicate specular crest along vibrating antinodes
vec3 L = normalize(vec3(0.45, 0.65, 0.62));
float spec = pow(max(dot(N, normalize(L + V)), 0.0), 48.0);
filmCol += mix(vec3(1.0), irid, 0.65) * spec * 1.15;
// Subtle black Newton film edge near top rim
filmCol *= smoothstep(0.965, 0.90, r);
col = filmCol + vec3(0.015, 0.018, 0.024);
}
}
if (ringMask > 0.01) {
float ang = atan(p.y, p.x);
float specRing = 0.45 + 0.55 * pow(0.5 + 0.5 * cos(ang * 2.0 - 0.8), 3.0);
vec3 brass = vec3(0.56, 0.44, 0.24) * specRing;
col = mix(col, brass, ringMask);
}
col = acesTone(col);
if (abs(uv.x) < 0.003) col = vec3(0.95, 0.93, 0.89);
fragColor = vec4(pow(clamp(col, 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Why they connect
Analytical Modal Synthesis of Vibrating Circular Plates and Membranes evaluates superposed circular Bessel eigenmodes and their spatial gradients across the film domain. The hop to Stable Fluids is composite: the acoustic radiation-pressure gradient and local surface acceleration are injected as external body forces and vorticity sources into the 2D incompressible Navier-Stokes velocity field, which advects a scalar soap-film thickness field (plus gravity drainage and surfactant diffusion). That advected thickness map (in nanometres) and surface normal enter Thin-film iridescence as material-params, turning every eddy and standing-wave ridge into physically ordered spectral fringes via Airy/Fresnel optical path interference.
How to build it
Run in WebGL2 or WebGPU on a circular 512x512 simulation grid. Evaluate a weighted sum of Bessel-function eigenmodes J_m(k_{m,n} r) cos(m theta) with slowly swept drive frequency and damping so modes crossfade smoothly. Feed the negative squared-amplitude gradient as a forcing term into a standard Stam stable-fluids solver (semi-Lagrangian or MacCormack velocity advection, Jacobi/multigrid pressure projection, curl-based vorticity confinement) and advect a 16-bit float thickness texture clamped between 80 nm and 1400 nm with gentle vertical drainage. In the display shader, displace a finely subdivided membrane mesh slightly by the instantaneous modal height, compute normals from height plus film slope, and shade with spectral thin-film iridescence (water/soap IOR ~1.33 over air) lit by a high-contrast studio environment map.
Field marks
- Over-aggressive modal forcing causes semi-Lagrangian advection to smear thickness into uniform grey unless vorticity confinement or higher-order advection is used.
- Thickness values above ~1500 nm desaturate into white under broadband light, losing vivid rainbow bands unless clamped or drained.
- Discontinuities when jumping between discrete Chladni mode indices create unnatural snaps without continuous frequency morphing.
- Aliasing appears in high-order interference fringes at grazing angles unless film thickness gradients are prefiltered or supersampled.
Prior art
- mrdoob/codevember-2026. Verified open-source interactive study coupling modal Bessel Chladni vibration with 2D fluid advection and thin-film soap iridescence; listed here as an open Arena cross awaiting a standalone WebGL2 proof.