Run the Applet Examples Source Code Version 2.0


Instructions/Features new to version 3.0

The Ideal Flow Machine is designed for students learning elementary ideal flow. The term 'Ideal flow' describes the way in which a fluid (liquid or gas) moves when the effects of compressibility and viscosity are negligible. Ideal flow is often the first type of fluid motion that student engineers and scientists study, because it is the simplest. Large parts of the flows past ships, submarines, cars and light aircraft are closely ideal.

This applet is designed to give students an environment where they may experiment with and visualize elementary two-dimensional ideal flows and thus better understand them. The following description assumes the reader has had some theoretical introduction to this subject (e.g. as given by J. J. Bertin and M. L. Smith, Aerodynamics for Engineers, Second Edition, Prentice Hall, 1989). However, this does not mean that you have to understand this stuff to use and enjoy the applet.

If you are not a fluid dynamicist, you may wish to skip the following and straight to the applet (its still a fun way of generating some pretty graphics patterns) If so, I suggest you start by clicking anywhere on the grid (this will start the flow moving at speed 1 from left to right - just like a real air or water flow you can't see the flow until you put dye or some other marker in it). Then select 'Source Sheet', change the strength to 2 and then click and drag the mouse to create a vertical line in the middle of the grid. Finally select 'Draw Streamline' which allows you to put dye in the flow so you can see where it is going. Click anywhere towards the left hand side of the grid. Keep on clicking at a range of different points within the grid and you will see a flow pattern emerge that looks like this. Note that the color of the streamlines depend on the speed of the flow. You may then add any number of other flows (sources, sinks, doublets, source panels and vortex panels) and see what they do by drawing more streamlines.

Back to the technical details...

Ideal fluid flows are solutions to Laplace's equation. This differential equation is linear, which means that adding together (superposing) any number of ideal flows produces a new ideal flow. One approach to finding the solution to complex flow problems is therefore to begin with very simple ideal flows, that are easily understood and described, and then to add them together to produce the complex flow patterns desired. This is exactly the process modelled in The Ideal Flow Machine.

When you go to the applet page and press the button, you will see a window like that shown below -

You may run as many versions of the applet simultaneously simply by repeatedly pressing the button. You can resize the window at any time by grabbing its corner (or using whatever other method your operating system prefers). You can also move onto another web page without loosing the applet.

The window shows a grid (the rectangular region containing the gray '+'s, origin at the big '+'), two buttons labeled 'New Flow' and 'Show Data', four text fields labeled 'Strength', 'Angle' 'X' and 'Y', and a choice menu with the selections 'Freestream', 'Source', 'Vortex', 'Doublet', 'Source Sheet', 'Vortex Sheet', 'Circle', 'Circle with K.c.' and 'Draw Streamline'. With the exception of 'Circle', 'Circle with K.c.' and 'Draw Streamline' these selections are the elementary ideal flows from which you are going to build your own complex fluid flow. The fields 'X' and 'Y' show the position of the mouse on the grid, the fields 'Strength' and 'Angle' may be edited - you can enter any numeric value you wish.

In short, what you do is select the type of flow you want to add, type in the strength and angle, as appropriate, and then click the mouse on the grid at the point where you want that flow to appear. You may add any number of sources, vortices doublets, source sheets or vortex sheets. Then you select 'Draw Streamline' and the computer will draw streamlines starting wherever you click your mouse on the grid. The whole thing is supposed to be a little like a real water tunnel, in which you set up your flow and then visualize the streamlines by adding dye at specific points (i.e. a Hele Shaw table, for those who remember). Please note the following;

If you are unfamiliar with the types of flow described here, add one of them (and nothing else) and then draw some streamlines to see what it looks like. The examples are some suggestions for slightly more complex flows you may like to try.

The choice-menu selections 'Circle' and 'Circle with K.c.' allow you to apply the Milne Thompson Circle Theorem to a flow. This theorem allows you to create a circular streamline in any flow, simply by manipulating the function that describes that flow. To use this feature, first put together a flow in which you want to create a circular streamline using the tools described above. Then select 'Circle'. Click the mouse at a point within the grid where you want your circular streamline to be centered and then drag the mouse to select the radius. Visualize the results using the 'Draw Streamline' option. Note that you can only add one circular streamline at a time (adding a second simply overwrites the first). The option 'Circle with K.c.' functions in the same way, except that it allows you, additionally to specify the point at which the flow detaches (or attaches) to the circular streamline (i.e. you get to specify a Kutta Condition). This point is specified by the location where you release the mouse after dragging it to create the circle. A good way to test both of these options is to try them on a uniform flow. Note, however, that they will work on any flow, however complex.

The two buttons work as labelled. 'New Flow' allows you to erase whatever elementary flows (and circle) you have created so that you can start with a clean slate. 'Show Data' brings up a window which (after a short delay for computation) shows a list of the X and Y coordinates of the last streamline plotted and the velocity components U and V at those coordinates. These data can be cut and pasted into any other spreadsheet/graphics application, so that you can plot such things as surface pressure coefficient distributions and, at least to some degree, store the results of your efforts. The (necessary) security features of the Java Language prevent saving data directly to files.

New to version 3.0
The applet now runs in a frame that can be resized to suit the users desktop, or duplicated if needed. The coding has also been improved to produce a platform independent GUI.

Please email me (using the hypertext at the bottom of this and the other IFM pages) if you have comments or suggestions (or you discover bugs).

William Devenport


Run the Applet Examples


Current Applet Version 3.0. Last HTML/Applet update 8/12/98. Questions or comments please contact William Devenport