Menu

[Solved]Task 2 46 Points 4 Comments Write Computer Code Perform Central Finite Difference Data Att Q37190043

matlab code please
Task 2 (46 points+ 4 for comments): Write computer code to perform a Central Finite Difference of the data in the attached ex14 46 72 57 72 57 72 14 72 14 45 45 05 45 45 05 45 45 45 45奶45 05 45 45 45 45 45 45 45 05 05 45 05 45 45 45 45 05 45 45 45 45Task 2 (46 points+ 4 for comments): Write computer code to perform a Central Finite Difference of the data in the attached excel file to determine the derivative of the cylinder pressure with respect to crank angle First calculate the derivative using an O(h2) central difference equation. Remember that the central difference has trouble with the first and last points in a vector because it needs the i-1th point and the i+1th point, respectively. However, the data in the file is for one average engine cycle, which repeats itself. Based on the fact that the engine cycle repeats itself, make sure to use a central difference derivative for every crank angle location, i.e. there should be 3600 derivative values that are all O(h2) accurate. What was the largest value of the derivative in pressure and at what crank angle location did it occur? What was the lowest value of the derivative in pressure and at what crank angle location did it occur? Now repeat part a) but use an O(h”) central difference. Again, make sure to properly treat the first two points, and the last two points in the vector. Make a plot of the O(h2) line one color and the O(h) dashed and a different color. Make your plot look nice Calculate the ratio of the O(h2) estimate of the derivative to the O(h4). Make a plot of this ratio and make your plot look nice Explain your results a) b) c) d) 14 46 72 57 72 57 72 14 72 14 45 45 05 45 45 05 45 45 45 45奶45 05 45 45 45 45 45 45 45 05 05 45 05 45 45 45 45 05 45 45 45 45 45 45 45 45 05 45 45 45 05 45 45 05 45 3 3 3 3 3 64 64 64 64 64 64 6 5 .8 6 4 2 9 8 6 4 2 58 6 4 2 7 6 4 2 6 6 4 2500 6 4 2 4 8 6 4 2 3 .8 6 4 2 2 6 4218642 12 3 4 5 67 8901234 5 6 7 8 9 20 21 22 23 24 25 26 27 28 29 3 3 3 3 3 3 3 3 3 39 40 4 4 4 44 45 46 48 49 50 Show transcribed image text Task 2 (46 points+ 4 for comments): Write computer code to perform a Central Finite Difference of the data in the attached excel file to determine the derivative of the cylinder pressure with respect to crank angle First calculate the derivative using an O(h2) central difference equation. Remember that the central difference has trouble with the first and last points in a vector because it needs the i-1th point and the i+1th point, respectively. However, the data in the file is for one average engine cycle, which repeats itself. Based on the fact that the engine cycle repeats itself, make sure to use a central difference derivative for every crank angle location, i.e. there should be 3600 derivative values that are all O(h2) accurate. What was the largest value of the derivative in pressure and at what crank angle location did it occur? What was the lowest value of the derivative in pressure and at what crank angle location did it occur? Now repeat part a) but use an O(h”) central difference. Again, make sure to properly treat the first two points, and the last two points in the vector. Make a plot of the O(h2) line one color and the O(h) dashed and a different color. Make your plot look nice Calculate the ratio of the O(h2) estimate of the derivative to the O(h4). Make a plot of this ratio and make your plot look nice Explain your results a) b) c) d)
14 46 72 57 72 57 72 14 72 14 45 45 05 45 45 05 45 45 45 45奶45 05 45 45 45 45 45 45 45 05 05 45 05 45 45 45 45 05 45 45 45 45 45 45 45 45 05 45 45 45 05 45 45 05 45 3 3 3 3 3 64 64 64 64 64 64 6 5 .8 6 4 2 9 8 6 4 2 58 6 4 2 7 6 4 2 6 6 4 2500 6 4 2 4 8 6 4 2 3 .8 6 4 2 2 6 4218642 12 3 4 5 67 8901234 5 6 7 8 9 20 21 22 23 24 25 26 27 28 29 3 3 3 3 3 3 3 3 3 39 40 4 4 4 44 45 46 48 49 50

Expert Answer


Answer to Task 2 (46 points+ 4 for comments): Write computer code to perform a Central Finite Difference of the data in the attach… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *