Write a MATLAB script or function to find the exact solution

Assignment Help MATLAB Programming
Reference no: EM132097648

Engineering Computing Assignment -

Question 1: Numerical vs. Analytical Solution

The exact solution of the falling parachutist problem can be expressed as:

v(t) = g(mman+mchute)/c[1-e(-ct/mman+mchute)]

where, v is the velocity, g is the gravity, mman and mchute are the mass of the parachutist and the parachute respectively, c is the drag coefficient, and t the time.

(a) Write a MATLAB script/function and use symbolic programming to find the exact solution from t = 0 to t = 50.0 seconds. Use g = 9.81 m/s2, mman = 84.0 kg, mchute = 31.0 kg and c = 75.0 kg/s. Assume v = 0.0 at t = 0.0. Plot the exact solution (v vs t).

(b) The numerical solution to the same problem can be computed using Euler's method with the equations below:

vt_(i+1) = vt_i + dv/dt(ti+1 - ti)

with dv/dt = g - (c/(mman+mchute))vt_i

Implement this in MATLAB and find a time step for the numerical solution that brings the largest error between the numerical and analytical velocities to under 1.0 m/s. Plot the numerical solution over the exact solution from (a).

(c) Use your implementation of the numerical method to find a value of the drag coefficient c, that results in a steady-state velocity of less than 10m/s. Plot the solution over those from (a) and (b).

Question 2: Design of a Rollercoaster

1456_figure.png

You work at an engineering firm that specialises in the design of rollercoasters. The hard work is already over! Your colleague has designed a rollercoaster for a client and it is your job to present the results to the client. Here is the information that you receive from your colleague.

The rollercoaster consists of an inner and outer track, the 3D profile of which are based on a helix as follows:

x = βcos(αθ)

y = βsin(αθ)

z = θ

For the inside track, βinner linearly increases from 10.0 to 20.0 m. For the outside track, βouter linearly increases from 15.0 to 25.0 m. For both tracks, θ linearly increases from 0 to 20*pi radians. The variable α controls the overall shape and number of rotations of the tracks.

(a) Write a function in MATLAB that computes and plots the inner and outer tracks in 3D. Join corresponding points on the inner and outer tracks with lines (e.g. see figure above). Plot the changing track shapes using α values ranging from 0.1 to 0.5 in steps of 0.125 (use a new figure or subplot for each α value). Hint: Use the linspace, plot3 and plot commands. Additional useful commands may be grid, hold, axis, view, xlabel, title, subplot etc.

(b) Compute the total path length for each of the track shapes above. Assuming that each meter of track costs 40000 AUD to construct, calculate the total cost of constructing each of them and print this cost in millions of AUD in the figure title (e.g. see figure above).

Hint: Use an average βmiddle ranging from 12.5 to 22.5 m. Compute the path and approximate it with a series of small line segments to get the total length as the sum of individual lengths.

Question 3: Beam Deflection Analysis

The deflection y of a beam subject to a tapering load w, may be computed as

y(x) = w/120EIL[-x5+2L2x3 - L4x]

Use w = 122.35 kN/cm, L = 150 cm, E = 27000 kN/cm2, I = 35000 cm4.

(a) Compute and plot the beam deflection, y, along the beam length, x, as well as the rate of change of deflection (dy/dx).

(b) Implement the bracketing method "false position" and use the plots from step (a) to choose a sensible bracketing window. Find the point of maximum deflection (where dy/dx = 0), and compute the x and y(x) values at this point. DO NOT use the MATLAB built-in function fzero. Write your own bracketing function that implements the false-position method. Use εs = 0.01%.

Hint: Use the MATLAB examples from Week 3's lecture as a template.

(c) Use fprintf to print the bracketing results for each iteration as values of: [iteration_number xl xu xr f(xl) f(xr) f(xl)f(xr) εa].

Attachment:- Matlab Assingment File.rar

Reference no: EM132097648

Questions Cloud

Overall effectiveness of that particular medication : What element of Statistics would I use for example if I were to mention that in the medical field, before using any medication
What is the overall texture of the given piece : What is the relationship between the four choral entrances in the beginning of the piece? What is the overall texture of this piece?
Determining ?the null and alternative?hypotheses : What formula would I use to conduct the following test at the a=0.05 level of significance by determining ?the null and alternative?hypotheses
Conduct a hypothesis test using the? p-value approach : Conduct a hypothesis test using the? P-value approach and a level of significance of a=0.05, determining the t0=__ and finding the P-value?
Write a MATLAB script or function to find the exact solution : ENGG952 Engineering Computing Assignment, University of Wollongong, Australia. Write MATLAB script/function and use symbolic programming to find exact solution
What is the critical path for the project : Create a multi-level work breakdown structure (WBS) and detailed project schedule, using the information from the "Greendale Stadium Case".
Conduct an appropriate test : How would I conduct an appropriate test at the a=0.05 level of significance to find the test statistic t0= __ and then also determine the P-Value?
Confidence interval for the mean age : How would I construct a 90?% confidence interval for the mean age for all the real estate? agent's clients who purchased investment property?
What can americans and our political leaders learn from this : Summarize in your own words what Bin Laden is stating to America.What can Americans and our political leaders learn from this letter?

Reviews

len2097648

8/27/2018 11:08:52 PM

Hint: Look up the lecture and MATLAB notes for the syms and subs commands. Hint: Evaluate the exact solution at the same time steps as the analytical solution and look at the difference. The assignment may be completed individually or by a group of up to 3 students. The group formation is your own responsibility. Members may be from the same or different tutorial groups. Any case of plagiarism including copying, sharing works/results between groups, will be penalized. Students should make themselves aware of the university policies regarding plagiarism (see Subject Outline under University and Faculty Policies).

len2097648

8/27/2018 11:08:39 PM

The assignment is due Monday and to be submitted to EIS Central Bldg. 4 as a report. For each of the questions, the report should include a short description of the solution methods, use figures to explain the results if required, and contain a short discussion of the results as appropriate. Use the barcoded page as the cover sheet for your report (see Subject Outline under Submission and Return of Assessments). Late submission will incur penalties as described in the Subject Outline. If the assignment is completed by a group, a statement indicating the effort or contribution to the assignment by each member and signed by all members must be included in the beginning of the report. Alternatively, all group members agree that they have contributed equally to the report and a statement to this effect is added to the front of the report and signed by all members.

len2097648

8/27/2018 11:08:30 PM

All MATLAB code (script files and function files) must be included in the hard copy of your report. If required, you will be asked for the files to be provided electronically and these must be made available promptly. Please make sure your MATLAB code is well commented and that your variable and function names are understandable. Use the lecture and tutorial examples for guidance. Scripts without comments and badly named variables will be graded poorly.

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd