E. Deniz Gedikli← Home

Educational Content / Fluid Dynamics / Potential Flow

Fluid Dynamics · Module 01

Potential Flow Module

What happens when you put a source beside a sink? Or add a vortex to a current? Build the flow, move the pieces, and follow the water. The solver runs right here in your browser.

Add an element, then drag it

Streamline Velocity Tracer trail Fixed-point dye

Drag a marker, or select it and use the coordinate boxes. Arrow keys move a focused marker; Shift makes smaller steps. Hover over the panel to inspect the velocity. Arrow lengths are capped near singularities; the readout gives the calculated speed.

Probe (x, y)—
Velocity (u, v)—
Speed |V|—

Elapsed model time: 0.0. Changing the flow clears tracer history.

Try one change at a time

01 / BUILD A BOUNDARY

Find the cylinder

Begin with a doublet in a uniform current. Look for the two stagnation points. Raise the doublet strength while keeping the current fixed: how does the outlined radius change?

What to look for

The radius grows as R = √(D/U). Doubling D makes R larger by √2. At the front and rear, the speed is zero; at the sides it reaches 2U when there is no circulation.

02 / BREAK THE SYMMETRY

Add circulation

Choose “Cylinder with circulation.” Change the vortex strength. Which side speeds up? Try changing the vortex direction by removing it and adding the opposite type at x = 0, y = 0.

What to look for

A counterclockwise vortex opposes a rightward current above the cylinder and reinforces it below. The stagnation points shift. If you move the vortex away from the centre, the circle is no longer an impermeable boundary, so its outline disappears.

03 / FOLLOW THE FLUID

Watch a streakline form

Press Play tracers and follow the orange dye released from a fixed point. Compare it with a teal streamline, then move the emitter to another part of the flow.

What to look for

A streamline follows the instantaneous velocity direction. A pathline follows one particle; a streakline joins particles that passed through the same release point. In a steady flow, all three follow the same curves.

The equations behind the picture

The elements add together. Away from their singular points, each field is incompressible and irrotational. With velocity potential φ, V = ∇φ and ∇²φ = 0. This is why superposition works. A point vortex has its vorticity concentrated at its centre. [1]

Let X = x − x₀, Y = y − y₀, and r² = X² + Y² for an element at (x₀, y₀). The table uses the signs and coefficient definitions in this browser module.

ElementVelocity (u, v)Meaning
Uniform currentU(cos α, sin α)A constant speed and direction.
Source / sinkQ(X, Y)/(2πr²)Q > 0 flows out; Q < 0 flows in. Q is volume flow per unit depth.
Point vortexΓ(−Y, X)/(2πr²)Γ > 0 is counterclockwise circulation.
Doublet along +xD(Y² − X², −2XY)/r⁴Here φ = DX/r²; some references define doublet strength as 2πD.

For a centred doublet aligned with a uniform current, a circle of radius R = √(D/U) is a streamline. The program draws and excludes its interior only when the arrangement satisfies this relation. A centred vortex can be added without introducing a normal velocity on that circle. [2] [3]

How this connects to fluid dynamics. Potential flow is a starting point for understanding how water moves around a body. The next step is to couple fluid loads to body motion, as in the RAO module. This experiment keeps the elements fixed between your edits; it does not solve structural motion, surface waves, viscosity, separation, or vortex shedding.
How are the lines and tracers calculated?

Streamlines use fourth-order Runge–Kutta integration along the velocity direction. Tracers use the same integration method in model time, with smaller steps where the speed is large. The formulas become singular at an element’s centre, so integration stops within a radius of 0.13 model units. This is a numerical exclusion, not a physical vortex core.

The solver uses upward-positive y and illustrative model units. Default source and vortex strengths have magnitude 5π, and the default doublet coefficient is D = 6.25. A doublet alone has no solid boundary; adding unrelated elements also removes the circle interpretation.

Check the calculations

Check source and sink directions, circulation, the cylinder boundary, stagnation points, and uniform-flow tracer motion.

Read a little further

  1. MIT Fluid Mechanics Modules: Simple Potential Flows ↗ — uniform flow, sources, sinks, vortices, and doublets.
  2. MIT: Stream + Dipole — Circles and Spheres ↗ — the circle boundary and its stagnation points.
  3. Oregon State University: Potential Flows ↗ — superposition, circulation, and flow around a cylinder.