Search for question
Question

Question 5 - Plotting 3D data and User-defined Functions. [9 Marks] 5.1 This question will look at predicting the power that can be generated from a turbine wheel powered by a

jet of water through a nozzle directed onto the paddles of the turbine wheel. The turbine wheel is connected to a DC motor to generate the power. The equations for the power generation are contained within a protected p-code user-defined function. You will not be able to view the contents of the file. You are going to look at how the power generated varies with the radius of the turbine wheel and the radius of the outlet water nozzle. Create two row vectors, wheel_radius that starts at 0.025m and goes up to 0.25m in steps of 25mm and nozzle_radius that starts at 0.005m and goes up to 0.02m in steps of 1mm. [2 marks] 5.2 waterwheel_generate.p is a protected function, help information is added below. Using nested for loops, pass each combination of wheel_radius and nozzle_radius to the waterwheel_generate function and create a matrix generated_power that contains the power generated for each combination, the nozzle_radius should change with each column and the wheel_radius with each row. Due to a cap on the power generated, limit generated_power to a maximum value of 180W. [4 marks] WATERWHEEL_GENERATE.m Format: power output = waterwheel_generate (nozzle_radius, wheel_radius) Calculates the generated power for a turbine wheel connected to a generator based on a particular water outlet nozzle. radius and turbine wheel radius. The inputs are in metres and output in watts. 5.3 Create a surface plot of the generated power (generated_power) as a function of nozzle_radius and wheel_radius. Label appropriately including a title. [3 marks]

Fig: 1