|
The Jakowski transform z --> z+a2/z maps a circle of radius
a in the complex z-plane into a slot of length 4a. Slightly larger
circles map to an airfoil shape you see in the picture to the right.
Creating this picture required about 60 lines of yorick code, which
you can study in the source file demo4.i. There, the
get_mesh function creates a 120x30 mesh of complex numbers,
uniformly distributed in radius and angle around the outside of a
circle. The solve function distorts this uniform mesh into
the shape you see by means of two Jakowski transformations, performed
by the one-line jakowski function. At the same time,
solve keeps track of the velocity potential, and finally
computes the pressure field from Bernoulli's law and the velocity
field. Finally, the display function uses yorick's plotting functions to draw the
background shading (using plf) -- light where the pressure is
high, and dark where the pressure is low -- contours of the imaginary
part of the velocity potential (using plc) -- the flow lines
-- and the outline of the airfoil itself (using plg).
|
|