WAVE(6D) WAVE(6D)
NAME
wave - real-time simulation of the surface of an idealized
waterbed
SYNOPSIS
/usr/demos/wave
DESCRIPTION
Wave displays a grid where the vertices are masses and the
line segments are springs. Each segment (spring) obeys
Hooke's law, F = -kx, where x is the displacement of the
spring, and k is a constant. A perturbation of a mass
causes a displacement of the springs which sends waves
throughout the grid. The mouse valuators and buttons
control the display. This demo is computationally intensive
and is only sent with the turbo release.
To change the display, press the right mouse button to
display a popup menu. Move the cursor until the menu option
you select is highlighted and release the button. A menu
option may have an arrow which indicates a rollover menu is
available for that menu option. To bring up a rollover
menu, continue displaying the first popup menu and pressing
the right mouse button and move the cursor to the left or
right of the currently highlighted menu entry. The rollover
menu will overlap the first pop-up menu, and the choices on
this overlapping menu will be active.
To get rid of all menus without changing the display, move
the cursor clear of all menus and release the button.
Operation
Select the wave window for input. Press and hold the right
mouse button. A menu of operations appears. Move the
cursor to the menu entry for the desired mode and release
the right mouse button to select it.
edit--stretching the springs
With the popup menu select edit. The grid will turn red
except for blue crosshairs on the surface of the grid. The
crosshairs move around with the mouse. Choose a point on
the grid and press the left mouse button. Holding the left
mouse button down and moving the mouse up or down will move
that point on the grid up or down. In effect, you are
pulling the mass to a new position and stretching the
springs. Releasing the mouse button will leave the point
where it is. You may move any of the points on the grid
this way except those on the outer edge which are fixed.
wave motion
To start the waves select go. You may select reverse at any
time to reverse the velocities of the masses. The grid will
Page 1 (last mod. 8/20/87)
WAVE(6D) WAVE(6D)
eventually return to the starting condition and keep going.
Selecting reset will return all the masses and their
velocities to zero. The middle mouse button controls the
orientation of the grid. Kill or ESC terminates the
program.
Motion of the grid continues with the system unattended.
harmonics
The menu entry labeled harmonics has a corresponding
rollover menu. The entries on the rollover menu specify
inital conditions for the grid. The two numbers in each
menu entry specify the number of antinodes (humps) in the x
and y directions of the grid.
view of scene
Arrow keys allow you to move closer to or further away from
the scene. The up arrow key moves your viewpoint towards
the grid. The down arrow key moves your viewpoint away from
the grid.
AUTHOR
Thant Tessman
HARDWARE REQUIREMENTS
Eight bitplanes and 2 Megabytes of memory are necessary.
ORIGIN
Silicon Graphics, Inc.
Page 2 (last mod. 8/20/87)