Making the Animation Finally, we are ready to create an animation of the Wankel engine showing the triangular rotor turning inside the epitrochoidal bore. These movies are the best way to understand how the rotor and the epitrochoidal bore fit together in the Wankel engine. Plot the Epitrochoidal Bore Recall we chose the parameters r = 1, R = 2 and h = 1/2 for our engine design. Enter these into MATLAB now as well as the equations for an epitrochoid.
Plot the Triangular Rotor We shall enter the rotor in such a way that you can easily change the number of sides from three to any other value N. The rotor doesn't have to be triangular. For example, five sides are used in the Thomas engine. If the rotor has N sides, then the angle between its vertices is 2*Pi/N. Let 's not specify N until we are ready. At time t, the kth vertex of the polygonal rotor lies at the angle (t + k*a). Thus the vertices of the rotor are given by entering the following command. To test that we have entered everything correctly, let N = 3 and plot the rotor at time t = 0.
If everything in your code is correct (and the MATLAB computer gremlins aren't against you), you should get a nice blue triangle at this stage. If not, check your code for errors and knock on the monitor 3 times for luck. Now we are ready to put the pieces together. |
|