{"id":1874,"date":"2017-10-25T16:11:05","date_gmt":"2017-10-25T05:11:05","guid":{"rendered":"http:\/\/casestudyhelp.com\/sample-questions\/?p=1874"},"modified":"2019-09-20T21:12:12","modified_gmt":"2019-09-20T11:12:12","slug":"matlab-programming-assignment-on-engineering-simulations-and-computations","status":"publish","type":"post","link":"https:\/\/casestudyhelp.com\/sample-questions\/matlab-programming-assignment-on-engineering-simulations-and-computations\/","title":{"rendered":"MATLAB Programming Assignment on Engineering Simulations and Computations"},"content":{"rendered":"<p style=\"text-align: justify;\" align=\"center\"><strong>Get Questions in PDF Format <a href=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/ENG3104_assignment4.pdf\">ENG3104_assignment4<\/a><\/strong><\/p>\n<p style=\"text-align: justify;\" align=\"center\"><a href=\"https:\/\/chatserver.comm100.com\/ChatWindow.aspx?planId=135&amp;visitType=1&amp;byHref=1&amp;partnerId=-1&amp;siteid=207633\"><img decoding=\"async\" src=\"https:\/\/casestudyhelp.com\/images\/hire-best-assignment-experts-online.gif\" alt=\"Hire Your Assignment Writing Expert for  Collage\/University\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>Q 1\u00a0\u00a0 \u00a0(worth 115 marks)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>1.1\u00a0\u00a0 \u00a0Introduction<\/strong><\/p>\n<p style=\"text-align: justify;\">Further analysis of the viaduct from Assignment 3 Question 3 is to be performed. An important reason for the construction of the Range Crossing is to reduce the gradient of the road for trucks. You will analyse the data in ass4q1in.csv to calculate gradients of the road with and without the viaduct. For this question, we are assuming that the viaduct follows a straight line between its end-points and the <em>x<\/em>-coordinate has been reoriented to act along the length of the bridge.<\/p>\n<p style=\"text-align: justify;\"><strong>1.2\u00a0\u00a0 \u00a0Requirements<\/strong><\/p>\n<p style=\"text-align: justify;\">For this assessment item, you must perform hand calculations:<\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong> Assuming that there is no viaduct, estimate the value of the gradient <em>\u2202z\/\u2202x <\/em>at the second measurement point using backward, forward and central differences.<\/p>\n<p style=\"text-align: justify;\"><strong>2.<\/strong> Discuss which is the best result out of the backward, forward and central differences and why.<\/p>\n<p style=\"text-align: justify;\"><strong>3.<\/strong> Estimate the overall gradient of the viaduct. You must also produce MATLAB code which:<\/p>\n<p style=\"text-align: justify;\"><strong>4.<\/strong> Calculates backward, forward and central differences for <em>\u2202z\/\u2202x <\/em>for the length of the road, assuming there is no viaduct. The calculations should be for each possible section (you will not calculate differences for every value of <em>x<\/em>).<\/p>\n<p style=\"text-align: justify;\"><strong>5.<\/strong> Verifies the results from Requirement 4 using the results of Requirement 1.<\/p>\n<p style=\"text-align: justify;\"><strong>6.<\/strong> **Estimates the numerical error in the calculations of Requirement 4. Perform this using numerical derivatives for as many data points as possible; at the ends of the data, use the value closest to the end (e.g. for the 1st datum, use the second derivative calculated at the 2nd datum, and the third derivative calculated at the 3rd datum). \u00a0For data spaced evenly in <em>x<\/em>, the necessary formulae are [the methods are <em>O<\/em>(\u2206<em>x<\/em>2) accurate]:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/equation.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter  wp-image-4752\" src=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/equation.png\" alt=\"equation\" width=\"414\" height=\"213\" srcset=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/equation.png 313w, https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/equation-300x154.png 300w\" sizes=\"(max-width: 414px) 100vw, 414px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">For data unevenly \u00a0spaced in <em>x<\/em>, the necessary formulae are [the methods are <em>O<\/em>(\u2206<em>x<\/em>) accu- rate]:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4753\" src=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/1.png\" alt=\"1\" width=\"481\" height=\"105\" srcset=\"https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/1.png 481w, https:\/\/casestudyhelp.com\/sample-questions\/wp-content\/uploads\/2017\/10\/1-300x65.png 300w\" sizes=\"(max-width: 481px) 100vw, 481px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\"><strong>7.<\/strong> Plots the results from Requirements 4 and 6. Also plots <em>\u2202z\/\u2202x <\/em>(correct Requirement 4 us- ing Requirement 6) together with the central difference from Requirement 4. On the plots of the gradient, also show the viaduct average gradient. Discusses the results, including which is the best method.<\/p>\n<p style=\"text-align: justify;\"><strong>8.<\/strong> Has appropriate comments throughout.<\/p>\n<p style=\"text-align: justify;\"><strong>1.3\u00a0\u00a0 \u00a0Assessment Criteria<\/strong><\/p>\n<p style=\"text-align: justify;\">Your code will be assessed using \u00a0the following scheme. Note that you are marked based on how well you perform for each category, \u00a0so the correct answer determined in a basic way will receive half marks and the correct answer determined using an excellent method\/code will receive full marks.<\/p>\n<table style=\"height: 47px;\" width=\"703\">\n<tbody>\n<tr>\n<td width=\"241\">Quality of hand calculations<\/td>\n<td width=\"74\">30 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"241\">Quality of difference calculations<\/td>\n<td width=\"74\">30 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"241\">Quality of verification<\/td>\n<td width=\"74\">5 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"241\">Quality of error calculations<\/td>\n<td width=\"74\">30 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"241\">Quality of the plots<\/td>\n<td width=\"74\">10 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"241\">Quality of the discussion<\/td>\n<td width=\"74\">5 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"241\">Quality of header(s) and comments<\/td>\n<td width=\"74\">5 marks<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"text-align: justify;\"><\/h2>\n<p style=\"text-align: justify;\"><strong>Q 2 \u00a0\u00a0\u00a0 (worth 90 marks)<\/strong><\/p>\n<p><strong>2.1 \u00a0\u00a0\u00a0\u00a0 Introduction<\/strong><\/p>\n<p style=\"text-align: justify;\">The resistance of a resistor which has a constant cross-sectional area <em>A <\/em>can be calculated using the formula<\/p>\n<p style=\"text-align: center;\"><em>R=\u03c1L\/A ,<\/em><em>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/em>(5)<\/p>\n<p style=\"text-align: justify;\">where <em>\u03c1 <\/em>is the resistivity and <em>L <\/em>is the length of the resistor. If the geometric and\/or material properties are not constant, then (because each <em>x<\/em>-location can be considered to be a resistor in series) the formula is:<\/p>\n<p style=\"text-align: center;\"><em>R=\u222bL \u03c1(x)\/\u00a0A(x)\u00a0dx\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/em>(6)<\/p>\n<p style=\"text-align: justify;\">Thermoelectricity is a phenomenon that \u00a0relies on changing material properties: \u00a0electric currents produced by an applied voltage difference generate heat (which could replace chemical means), or temperature differences generate potential differences (most commonly applied in thermocouples). It is, however a very inefficient means of converting between heat and electricity (especially compared to heat engines using chemical reactions to drive an electric generator), which is fundamentally due to the relevant material properties.<\/p>\n<p style=\"text-align: justify;\">For your assignment, the following values are to be used for resistivities, radii and lengths. The properties for resistor 1 are:<\/p>\n<p style=\"text-align: center;\"><em>\u03c1<\/em>1\u00a0\u00a0\u00a0 = \u00a01<em>.<\/em>68 <em>\u00d7 <\/em>10<em>\u2212<\/em>8\u00a0\u00a0\u2126m<\/p>\n<p style=\"text-align: center;\"><em>r<\/em>1\u00a0\u00a0\u00a0\u00a0 =\u00a0 \u00a01 mm<\/p>\n<p style=\"text-align: center;\"><em>L<\/em>1 \u00a0\u00a0\u00a0 = \u00a01 cm <em>,<\/em><\/p>\n<p style=\"text-align: justify;\">\u00a0resistor 2:<\/p>\n<p style=\"text-align: center;\"><em>\u03c1<\/em>2\u00a0\u00a0\u00a0 = \u00a0(1 + 0<em>.<\/em>95179 <em>\u00d7 <\/em>10) <em>\u00d7 <\/em>10<em>\u2212<\/em>8\u00a0\u00a0\u2126m<\/p>\n<p style=\"text-align: center;\"><em>r<\/em>2\u00a0\u00a0\u00a0\u00a0 =\u00a0 \u00a01 + 8<em>.<\/em>8395 <em>\u00f7 <\/em>10 mm<\/p>\n<p style=\"text-align: center;\"><em>L<\/em>2 \u00a0\u00a0\u00a0\u00a0 = \u00a01 + 6<em>.<\/em>9848 <em>\u00f7 <\/em>10 cm <em>,<\/em><\/p>\n<p style=\"text-align: justify;\">\u00a0and resistor 3:<\/p>\n<p style=\"text-align: center;\"><em>\u03c1<\/em>3\u00a0\u00a0\u00a0 = \u00a0(1 + 9<em>.<\/em>198 <em>\u00d7 <\/em>10) <em>\u00d7 <\/em>10<em>\u2212<\/em>8\u00a0\u00a0\u2126m<\/p>\n<p style=\"text-align: center;\"><em>r<\/em>3\u00a0\u00a0\u00a0\u00a0 =\u00a0 \u00a01 + 7<em>.<\/em>2579 <em>\u00f7 <\/em>10 mm<\/p>\n<p style=\"text-align: center;\"><em>L<\/em>3 \u00a0\u00a0\u00a0\u00a0 = \u00a01 + 2<em>.<\/em>0632 <em>\u00f7 <\/em>10 cm <em>.<\/em><\/p>\n<p style=\"text-align: justify;\">In this question, you will calculate the resistances of a number of different resistor configu- rations:<\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong> Resistor 1 with uniform cross-section.<\/p>\n<p style=\"text-align: justify;\"><strong>2.<\/strong> Resistor 1 with radius <em>r<\/em>1 at the start and radius 2<em>r<\/em>1at the end (the radius changes at a constant rate between the two ends).<\/p>\n<p style=\"text-align: justify;\"><strong>3.<\/strong> A resistor constructed by joining resistor 2 end-to-end with resistor 3 (the component resistors each have a constant cross-section).<\/p>\n<p style=\"text-align: justify;\"><strong>4.<\/strong> *A resistor constructed by joining resistor 2 end-to-end with resistor 3 (the radius changes at a constant rate along each of the two component resistors so that the radius is <em>r<\/em>1 where they join).<\/p>\n<p style=\"text-align: justify;\"><strong>2.2\u00a0\u00a0 \u00a0Requirements<\/strong><\/p>\n<p style=\"text-align: justify;\">For this assessment item, you must perform hand calculations:<\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong> Find the resistances of configurations 1\u20134 analytically.<\/p>\n<p style=\"text-align: justify;\"><strong>2.<\/strong> Use the trapezoidal method to determine the resistance of configurations 2 and 3 using four intervals along the total length of each configuration. \u00a0Validate the results with Requirement 1.<\/p>\n<p style=\"text-align: justify;\">You must also produce MATLAB code which:<\/p>\n<p style=\"text-align: justify;\"><strong>3.<\/strong> Repeats Requirement 2 and verifies the code.<\/p>\n<p style=\"text-align: justify;\"><strong>4.<\/strong> Uses the trapezoidal method to solve configurations 1\u20134 using appropriate intervals.<\/p>\n<p style=\"text-align: justify;\"><strong>5.<\/strong> Reports the values from Requirements 1 and 4.<\/p>\n<p style=\"text-align: justify;\"><strong>6.<\/strong> *Estimates, reports and discusses the overall numerical error in the calculations of each configuration in Requirement 4.<\/p>\n<p style=\"text-align: justify;\"><strong>7.<\/strong> Plots <em>R<\/em>(<em>x<\/em>) from Requirements 1 and 4.<\/p>\n<p style=\"text-align: justify;\"><strong>8.<\/strong> Has appropriate comments throughout.<\/p>\n<p style=\"text-align: justify;\"><strong>2.3\u00a0\u00a0 \u00a0Assessment Criteria<\/strong><\/p>\n<p style=\"text-align: justify;\">Your code will be assessed using \u00a0the following scheme. Note that you are marked based on how well you perform for each category, \u00a0so the correct answer determined in a basic way will receive half marks and the correct answer determined using an excellent method\/code will receive full marks.<\/p>\n<table style=\"height: 64px;\" width=\"619\">\n<tbody>\n<tr>\n<td width=\"332\">Quality of hand calculations<\/td>\n<td width=\"74\">30 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">Quality of trapezoidal calculations and discussion<\/td>\n<td width=\"74\">35 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">Quality of error calculations<\/td>\n<td width=\"74\">10 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">Quality of the plots<\/td>\n<td width=\"74\">10 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"332\">Quality of header(s) and comments<\/td>\n<td width=\"74\">5 marks<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"text-align: justify;\"><\/h2>\n<p style=\"text-align: justify;\"><strong>3\u00a0\u00a0 \u00a0(worth 145 marks)<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>3.1\u00a0\u00a0 \u00a0Introduction<\/strong><\/p>\n<p style=\"text-align: justify;\">We return to Assignment 1. Your task is to simulate the droplet acceleration using the formulae and parameters supplied in Assignment 1, and starting with the initial \u00a0condition supplied in ass1in.csv.<\/p>\n<p style=\"text-align: justify;\">To obtain consistent results from your random number generation, you should initialise the seed to a fixed value using rng(seed). \u00a0For your assignment, the value is:<\/p>\n<p style=\"text-align: center;\"><em>seed = 8.2756<\/em><\/p>\n<p style=\"text-align: justify;\">\u00a0<strong>3.2\u00a0\u00a0 \u00a0Requirements<\/strong><\/p>\n<p style=\"text-align: justify;\">For this assessment item, you must perform hand calculations:<\/p>\n<p style=\"text-align: justify;\"><strong>1.<\/strong> Use Euler\u2019s method to estimate the velocity for the 2nd data value in ass1in.csv using 5 equal steps; validate against that data value.<\/p>\n<p style=\"text-align: justify;\">You must also produce MATLAB code which:<\/p>\n<p style=\"text-align: justify;\"><strong>2.<\/strong> Repeats Requirement 1 to verify the method.<\/p>\n<p style=\"text-align: justify;\"><strong>3.<\/strong> Simulates the entire duration of ass1in.csv using appropriate parameters for the following methods:<\/p>\n<p style=\"text-align: justify;\">(a) Euler\u2019s method<\/p>\n<p style=\"text-align: justify;\">(b) \u00a0ode23 (c) ode45<\/p>\n<p style=\"text-align: justify;\">Reports the timestep used for Euler\u2019s method; if you use the default settings for the MATLAB ode solvers, report this, otherwise report what values you used for any changed settings. \u00a0Graphically validates the simulation results with \u00a0the data in ass1in.csv and reports the outcome of the validation.<\/p>\n<p style=\"text-align: justify;\"><strong>4.<\/strong> Uses Simulink to:<\/p>\n<p style=\"text-align: justify;\">(a) Simulate up to the 5th data value.<\/p>\n<p style=\"text-align: justify;\">(b) \u00a0***Simulate the entire duration of ass1in.csv.<\/p>\n<p style=\"text-align: justify;\">Plots the results and reports the final velocity within Simulink. Uses MATLAB to validate the results with the data in ass1in.csv.<\/p>\n<p style=\"text-align: justify;\"><strong>5.<\/strong> ***Simulates droplet collisions and accelerations.<\/p>\n<p style=\"text-align: justify;\">(a) Loads the data in ass2in.csv and multiplies the velocities by 50.<\/p>\n<p style=\"text-align: justify;\">(b) \u00a0Assigns each droplet an \u201cage\u201d. The age grows \u00a0so that, on average, for each 0.5 mm the droplet travels, it collides with another droplet. Initialise the age of each droplet to be a uniformly-distributed random number between 0 mm and 1 mm.<\/p>\n<p style=\"text-align: justify;\">(c) At each timestep, accelerates every droplet according to Euler\u2019s method as in Re- quirement 3.<\/p>\n<p style=\"text-align: justify;\">(d) \u00a0For each \u00a0timestep, increments every droplet\u2019s age. \u00a0If \u00a0the age is greater than a uniformly-distributed \u00a0random number between 0 and 1 mm, then the droplet is to collide after the new velocity has been calculated \u00a0for the timestep.<\/p>\n<p style=\"text-align: justify;\">(e) Pairs up droplets that are to collide and collide them according to the algorithm of Assignment 2. Randomly assign droplets to be paired with each other. \u00a0If there is an odd number of droplets marked for collision, choose one to not collide. Reset the age of the new, combined droplet according to the initialisation in Requirement 5b.<\/p>\n<p style=\"text-align: justify;\">(f ) Simulates up to the entire duration of ass1in.csv.<\/p>\n<p style=\"text-align: justify;\">(g) Plots the mean velocity, standard deviation of velocity and total number of droplets as functions of time.<\/p>\n<p style=\"text-align: justify;\">(h) \u00a0Reports to the Command Window the total number of droplets remaining at the end of the simulation. If there is only a single droplet remaining, reports when the last droplet collision occurred.<\/p>\n<p style=\"text-align: justify;\"><strong>6.<\/strong> Has appropriate comments throughout.<\/p>\n<p style=\"text-align: justify;\"><strong>3.3\u00a0\u00a0 \u00a0Assessment Criteria<\/strong><\/p>\n<p style=\"text-align: justify;\">Your code will be assessed using \u00a0the following scheme. Note that you are marked based on how well you perform for each category, \u00a0so the correct answer determined in a basic way will receive half marks and the correct answer determined using an excellent method\/code will receive full marks.<\/p>\n<table style=\"height: 128px;\" width=\"780\">\n<tbody>\n<tr>\n<td width=\"372\">Quality of hand calculations<\/td>\n<td width=\"74\">30 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"372\">Quality of Requirement 2<\/td>\n<td width=\"74\">20 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"372\">Quality of Requirement 3<\/td>\n<td width=\"74\">30 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"372\">Quality of using Simulink<\/td>\n<td width=\"74\">30 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"372\">Quality of simulating droplet collisions and acceleration<\/td>\n<td width=\"74\">15 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"372\">Quality of the plots<\/td>\n<td width=\"74\">15 marks<\/td>\n<\/tr>\n<tr>\n<td width=\"372\">Quality of header(s) and comments<\/td>\n<td width=\"74\">5 marks<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<script type=\"text\/javascript\" charset=\"utf-8\" src=\"http:\/\/w.sharethis.com\/widget\/?wp=6.2.9\"><\/script>","protected":false},"excerpt":{"rendered":"<p>Get Questions in PDF Format ENG3104_assignment4 Q 1\u00a0\u00a0 \u00a0(worth 115 marks) 1.1\u00a0\u00a0 \u00a0Introduction Further analysis of the viaduct from Assignment 3 Question 3 is to be performed. An important reason for the construction of the Range Crossing is to reduce the gradient of the road for trucks. You will analyse the data in ass4q1in.csv to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[818,819],"tags":[820,821,822],"_links":{"self":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/1874"}],"collection":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/comments?post=1874"}],"version-history":[{"count":16,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/1874\/revisions"}],"predecessor-version":[{"id":4754,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/posts\/1874\/revisions\/4754"}],"wp:attachment":[{"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/media?parent=1874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/categories?post=1874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/casestudyhelp.com\/sample-questions\/wp-json\/wp\/v2\/tags?post=1874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}