Search for question
Question

MATLAB Part B Assignment. Introduction to programming. AC electrical motor Total for assignment [60 marks] INTRODUCTION An AC electrical motor is used to drive the engine cooling fan of a commercial vehicle. The load torque characteristics of the cooling fan can be predicted using the following equation: T = kn² + k₂n where T is the load torque in N.m (newton-metre), n is the rotating speed of the cooling fan given in rpm (revolutions per minute), and k₁ and k₂ are constants given by, k₁=1.36×10-7 and k2=2.45×10-6 The maximum speed of the motor/fan can reach is 6,000 rpm. And the nominal speed of the motor/fan is 3,000 rpm. TASKS Task I: [Total 40 Marks] Create a MATLAB script file named plottorque.m which completes the following tasks a. [5 marks] Find the values of the torque load T when the motor/fan speed accelerates from 0 to 6,000 rpm by a step of 500 rpm. b. [15 marks] Plot the generated load torques of the cooling fan against the motor/fan speed values. Label your axes accordingly. Do not forget a title and major grid lines. Enhance your plots by using plot 'specifiers' and 'property values'. c. [10 marks] In the same figure, use a green star as a marker to highlight the load torque at nominal speed (3,000 rpm) and use a red circle as a marker to highlight the load torque at maximum speed (6,000 rpm). d. [5 marks] Do not forget to comment your computations and statements accordingly. e. [5 marks] Open the Figure Editor and customise your plot further. Save the customised plot as myplotfigure.fig. Page 1 of 2 Task II: [Total 20 marks] Using the equation for torque load in Task 1, create a MATLAB function file named torquemeasure.m. The function should take a single measured speed value as input and return the calculated load torque as output. It should also output a variable called ‘warninglevel': 1) [5 marks] When the calculated torque is lower than or equal to the torque level at nominal speed, 'warninglevel' should be set to 0. 2) [5 marks] When the calculated torque is higher than the torque level at nominal speed but lower than 1.5 times of the torque level at nominal speed, 'warninglevel' should be set to 1. 3) [5 marks] When the calculated torque is higher than or equal to 1.5 times of the torque level at nominal speed, 'warninglevel' should be set to 2. 4) [5 marks] Comments should be provided for all code that describe the workings of the program in detail. In all plots all axes should be labelled, the plots should have titles, and you should use both line specs and property values for each plot. All programs when run should produce outputs that are informative indicating what the program is producing. Also the programs should run with minimal input. SUBMISSION DETAILS Zip all three Matlab files together (plottorque.m, myplotfigure.fig, torquemeasure.m). Name the resulted Zip file as 'PartB_yourname.Zip' (replace 'yourname' by your surname) and uploaded it to the Blackboard folder "002 Written Assignment - Submission Point" before the deadline (9th of May, 15:00). Page 2 of 2