Vortex Formation Simulator Back
Fluid Dynamics / CFD

Vortex Formation Simulator

Click and drag to stir a fluid and generate vortex structures. Rankine vortex model velocity field with particle tracer visualization. Karman vortex street and vortex-pair presets included.

Control Panel

🖱 Drag: clockwise vortex | Right-click + drag: counter-clockwise vortex
0.008
200
30
0.60

Display Options

SlowFast

Presets

Actions

Statistics

Active Vortices
0
Total Circ. Γ
0.0
Particles
0
FPS
0

Theory Notes

Rankine Vortex Model
Induced velocity at point (x,y) by vortex i at (xi,yi) with strength Γi:
u = −Γ(y−yi) / 2π(r²+ε²)
v = +Γ(x−xi) / 2π(r²+ε²)

Kelvin's Circulation Theorem
Inviscid, incompressible → effective circulation Γ = ∮v·ds is conserved

CAE Applications
Vortex Method, Vortex-Induced Vibration (VIV), turbulence modeling
Drag to generate vortices

What is a Vortex?

🧑‍🎓
What exactly is a vortex? I see them in water and smoke, but what's the physics behind the swirling motion?
🎓
Basically, a vortex is a region in a fluid where the flow revolves around an axis line. The key is that it has *circulation*, meaning the fluid particles have angular momentum. In this simulator, when you click and drag, you're injecting that rotational motion into the fluid. Try it now—you'll see the particle tracers start to swirl.
🧑‍🎓
Wait, really? So the "Core radius ε" slider must be important. What does it control in the vortex I just made?
🎓
Exactly! The core radius, often called $\epsilon$, defines the size of the vortex's solid, rotating heart. Inside this core, the fluid spins like a rigid disk. Outside, the swirl speed dies off. Slide it smaller and you get a tighter, more intense core. Make it larger, and the rotation is spread out over a bigger area. It's a key parameter in the Rankine vortex model this simulator uses.
🧑‍🎓
That makes sense. And the "Viscosity" slider? It says it's the decay rate—does that mean my vortex will eventually fade away?
🎓
In practice, yes! Real fluids have viscosity, which is internal friction that dissipates kinetic energy as heat. A high viscosity (move the slider right) causes your vortex to decay quickly, smoothing out the motion. A low viscosity (move it left) lets the vortex persist much longer, creating those beautiful, sustained swirls. This is why smoke rings in air last longer than similar swirls in honey.

Physical Model & Key Equations

The simulator uses the Rankine vortex model, which combines two flow regimes. Inside the core, the flow rotates with constant vorticity (like a solid). Outside, it behaves as an irrotational (potential) flow.

$$v_{\theta}(r) = \begin{cases}\frac{\Gamma}{2\pi \epsilon^2}r & \text{for }r \le \epsilon \quad \text{(Solid-body rotation)}\\ \frac{\Gamma}{2\pi r}& \text{for }r > \epsilon \quad \text{(Potential flow)}\end{cases}$$

Here, $v_{\theta}$ is the tangential (swirling) velocity at a distance $r$ from the vortex center. $\Gamma$ is the circulation strength (set by your click-and-drag force), and $\epsilon$ is the core radius you control with the slider. This model avoids the infinite velocity at $r=0$ that a simple potential vortex would have.

The motion of the tracer particles is calculated by integrating their velocity over time. The simulator also models viscous decay, which gradually reduces the circulation $\Gamma$.

$$\frac{d\Gamma}{dt} = -\nu \, \nabla^2 \omega$$

In simpler terms, the change in vortex strength over time ($d\Gamma/dt$) is proportional to the fluid viscosity $\nu$ (your "Viscosity" slider) and the Laplacian of vorticity $\omega$. A higher $\nu$ leads to faster decay ($\Gamma$ drops quickly), causing the vortex to fade.

Real-World Applications

Aerospace & Automotive Design: Engineers simulate vortex formation around wingtips (wingtip vortices) and car side mirrors to understand and reduce drag. Using CAE tools, they can optimize shapes to minimize these energy-shedding structures, directly improving fuel efficiency.

Structural Engineering: Tall buildings and bridges must be analyzed for vortex shedding, which can cause dangerous oscillations. The alternating pattern seen in a Kármán vortex street (which you can create by dragging multiple times in a row) is a key phenomenon studied to prevent failures like the infamous Tacoma Narrows Bridge collapse.

Meteorology & Oceanography: Large-scale vortices are the engines of weather systems. Hurricanes and typhoons are massive atmospheric vortices with a distinct calm eye (the core) and high-speed rotating winds. Oceanic eddies similarly transport heat and nutrients across vast distances.

Industrial Mixing & Process Engineering: In chemical reactors or water treatment plants, controlled vortices are used to mix fluids efficiently. The core radius and decay rate are critical parameters for ensuring reactants are blended thoroughly without creating dead zones or excessive energy loss.

Common Misconceptions and Points to Note

There are a few key points you should be aware of when starting to play with this tool. First, you might think "moving the mouse quickly creates a stronger vortex," but it's not that simple. This simulator assigns vortex strength, called "circulation Γ," along the mouse's trajectory. This means the 'area enclosed by the trajectory' you move has a greater impact than the 'speed' of the movement. Drawing a large circle slowly can sometimes create a stronger vortex than moving quickly in small, jittery motions. This connects to a practical caution: not to confuse "velocity" and "vorticity" when setting boundary conditions.

Next is the relationship between the parameters "Viscosity" and "Vortex Core Radius ε." Both relate to how a vortex spreads, so they might seem to have similar effects, but their physical meanings are completely different. "Viscosity" is a property of the fluid itself, representing the process where vortex energy dissipates into heat (decays). On the other hand, "Vortex Core Radius ε" is a parameter in the computational model, determining at what scale the structure of the vortex core is smoothed out. For example, setting ε extremely small (like 0.01) and viscosity to zero makes the vortex very sharp and barely decaying, which can easily lead to numerical instability (the vortex strength exploding). In practical CFD as well, it's crucial to distinguish between parameters for modeling and physical property values.

Finally, don't forget the fundamental limitation that this is a "2D" simulation. The screen is flat, right? Real flows are 3D, so the beautiful vortex filaments you see here would actually stretch and tangle complexly as vortex tubes. Even if you recreate a Kármán vortex street with this tool, 3D disturbances (spanwise fluctuations) quickly arise in the actual wake behind a cylinder. While 2D calculations are excellent for grasping the essence of a phenomenon, a major pitfall in practical analysis seeking quantitative values is the constant need to consider 3D effects.

Related Engineering Fields

The concepts based on this "Vortex Method" are applied across various fields of CAE fluid analysis. The first to mention is Aerospace Engineering. Vortices shedding from airplane wings (wingtip vortices) cause dangerous turbulent wakes that affect following aircraft. To efficiently track such large vortex structures, the "Vortex Method," a type of Lagrangian particle method, has a history of research. Also, the flow around helicopter rotors involves complex vortex interactions.

Another field is Automotive Engineering, particularly aerodynamic design. Turbulent flow (wake flow) generated behind the vehicle body is a primary cause of drag. To understand the large vortex structures occurring here, advanced turbulence models like DES (Detached Eddy Simulation) are used. DES is a hybrid method solving with RANS (Reynolds-Averaged Navier-Stokes) near objects and LES (Large Eddy Simulation) in regions where shed vortices develop. Its philosophy is close to directly calculating the behavior of "distinct vortices" like you see in this tool.

More surprisingly, it's also relevant to Plant Piping Design. When flow discharged from a pump passes through pipe bends (elbows), secondary flow vortices are generated. These can disrupt the measurement accuracy of downstream flow meters or promote corrosion at specific points. Predicting such internal flow vortices is also an important task for CFD, and the underlying concept of vorticity is shared.

For Further Learning

Once you're comfortable with this tool and think "I want to know more," I strongly recommend learning the "Vorticity Equation" as your next step. Derived from the Navier-Stokes equations, this equation directly describes the mechanism of vortex "generation, transport, diffusion, and dissipation." For a 2D, viscous fluid, it takes the following form:

$$ \frac{\partial \omega}{\partial t} + (\vec{v} \cdot \nabla) \omega = \nu \nabla^2 \omega $$

The second term on the left corresponds to vortex transport (the part visualized by particles in this simulator), and the right side corresponds to vortex diffusion due to viscosity (the part adjusted by the "Viscosity" parameter). Looking at this equation, you'll see that in 3D, a more complex "vortex stretching" term is added. For a textbook, the chapter on vortex motion in "Fluid Dynamics (Part 1)" by Isao Imai is exceptionally clear.

For practical learning, try playing with this simulator while recording the behavior when you change parameters in a hypothesis → verification cycle. For example, "Does increasing the vortex core radius ε make the merger of two close vortices faster or slower?" After developing that intuition, try running a basic tutorial like "2D cavity flow" on a practical-level CFD software (there are free options like OpenFOAM). You'll encounter new elements like meshes and solvers, but you'll realize the underlying vortex physics remains the same. For your next topics, progressing to the turbulent energy cascade or the basics of Fluid-Structure Interaction (FSI) will help you understand how the phenomena you observe in this tool develop into real-world problems like "structural vibration."