← Hashito System Home 日本語 Tools Blog
Simulation
Pen
Mode
View
Water mode: the faster the flow, the brighter it gets, from deep blue to light blue and white. Swirling areas turn green or purple depending on the direction of rotation. Gray areas are the walls you drew.
Wind mode: the faster the flow, the brighter it gets, from gray to white. Swirling areas turn orange or light blue depending on the direction of rotation. Gray blobs are the walls you drew.

Tips for playing

Draw walls to change the flow

Drag on the canvas with your finger or mouse to draw gray walls. Water (or wind) constantly flows in from the left edge, so placing a wall splits the flow and creates vortices behind it. Try round versus angular walls and see how the vortices change.

How to read the colors

Brighter areas mean faster flow, while dark areas are stagnant. Places with strong vorticity (curl), that is where the flow is rotating, are shown in different colors (green and purple in water mode, orange and light blue in wind mode), and the color indicates the direction of rotation. You can also view Speed or Vorticity alone with the view switch.

Making beautiful vortices (Karman vortex street)

Place a single small round wall toward the left of the screen, raise the inflow speed a little, and lower the viscosity. A pattern of alternating vortices, like a Karman vortex street, will appear behind the wall. Wind mode keeps the vortices tighter and easier to observe.

Frequently asked questions (FAQ)

How does this work?

It uses Jos Stam's Stable Fluids method: the screen is divided into a 96×96 grid, and the advection and diffusion of the velocity field plus a pressure correction (projection) are computed every frame. Everything is computed in plain JavaScript with no external libraries.

Is what I draw or do sent to a server?

No. All simulation and rendering runs entirely within your browser. The obstacle shapes you draw and your interactions are never sent to or stored on any server.

What is the difference between water mode and wind mode?

Water mode uses a higher viscosity setting with a blue color scheme, while wind mode uses a lower viscosity setting with white and gray tones. Higher viscosity makes the flow smoother and calmer; lower viscosity produces finer, more turbulent vortices. You can also adjust the viscosity individually with the slider.

What if it runs slowly or stutters?

Switching the display to Speed only, raising the viscosity a little, or closing other tabs and apps may make it lighter. You can also stop the computation with the Pause button. On smartphones in power-saving mode it may run slower.