Derive the formulae for the slope and curvature

Assignment Help MATLAB Programming
Reference no: EM131242042

Introduction

A type of electrical switch can be modelled as a simply-supported beam (Fig. 1), where the middle of the switch is pushed down until it makes contact and completes the circuit. Measure- ments have been made of the deflection of the switch; these measurements have been averaged at each location, with the averages stored in the file ass3q1in.csv.

1114_Figure.jpg

Figure 1: Simply-supported beam. The roller support on the left end provides a vertical reaction force which prevents vertical motion; the pin support on the right end provides both vertical and horizontal reaction forces, which prevent both vertical and horizontal motion. There is a point load with force P located in the middle of the beam.

The theoretical formula for the deflection is:

             - Px/48EI(3L2 - 4x2), 0 ≤ x ≤ L/2
v(x) =
             - P (x-L)/48EI (L2 - 8Lx + 4x2, L/2 < x ≤ L

For your assignment, the following values are to be used:

E = 1.6571 × 102 GPa

I = bh3/12

b = 5.0 mm

h = 0.25 mm

p = Ea

a = 10-10 m2

L = 2.0 cm.

where b is the width of the beam (in the z-direction), h is the thickness of the beam (in the y-direction) and a is a variable which doesn't represent any component of the structure.

Requirements

For this assessment item, you must perform hand calculations:

1. Derive the formulae for the slope ( v'), curvature (v'') and v''' of the beam from Eq. (1).

2. Estimate the value of the slope at the second measurement point using backward, forward and central differences.

3. Validate your answers from Requirement 2 using the appropriate formula from Requirement 1.

4. Estimate the numerical errors in the calculations of Requirement 2 using the appropriate formulae from Requirement 1. What is the ratio of (the numerical error) to (the deviations from the theoretical values calculated in Requirement 3)?

Be careful to get the sign consistent between the errors (i.e. that you compare the same thing)!

5. Discuss which is the best result out of the backward, forward and central differences and why.

You must also produce MATLAB code which:

6. Calculates backward, forward and central differences for the length of the beam.

7. Verifies the results from Requirement 6 using the results of Requirement 2.

8. Calculates the theoretical values at the measurement locations using the appropriate for- mula from Requirement 1. Calculates the error between the numerical and theoretical values.

9. Estimates the numerical error in the calculations of Requirement 6. Perform this using:

(a)analytical derivatives obtained from Eq. (1)

(b) numerical derivatives (for data spaced evenly in x) for as many data points as possible (you won't be able to calculate these at the ends of the data):

dy2/dx2|xi = yi-1 - 2yi + yi+1/(Δx)2

d3y/dx3|xi = yi+2 - 2yi+1 + 2yi-1 - yi -2/2(Δx)3

10. Plots the results from Requirements 6 and 8 on the same graph.

11. Plots the results from Requirements 8 and 9 and discusses the results, including which is the best method, reporting to the Command Window1.

12. Has appropriate comments throughout.

Introduction

One of the challenges with calculating derivatives is that noise in the data is amplified when the data is differentiated. However, random noise in data is diminished when the data is integrated. This is the philosophy behind the Integrated Radial Basis Function (IRBF) [1].

The file ass3q2in.csv contains data on the slope for the same beam as Question 1 with the same relative level of noise in the data as Question 1. Your task in this question is to compare integration versus differentiation.

Requirements

For this assessment item, you must perform hand calculations:

1. Use the trapezoidal method to determine the deflections at the mid-point and end of the beam using the data in ass3q2in.csv. Perform the calculations using the data at 5 mm intervals (do not calculate based on all the data).

2. Validate your answers using the theoretical values from Eq. (1).

You must also produce MATLAB code which:

3. Uses the trapezoidal method to determine the deflections at the mid-point and end of the beam using the same data as Requirement 1.

4. Verifies the results from Requirement 3 using the results of Requirement 1.

5. Uses the trapezoidal method to determine the deflections at the mid-point and end of the beam using all the data in ass3q2in.csv.

6. Reports the values from Requirements 3 and 5 and the theoretical values from Eq. (1), discussing the reasons for similarities or differences.

7. Estimates, reports and discusses the numerical error in the calculations of Requirement 5. Perform this using:

(a)analytical derivatives obtained from Eq. (1) (b)numerical derivatives based on the data in ass3q2in.csv

8. Plots the data from from ass3q2in.csv with the numerical results from Question 1 and the theoretical slope.

9. Plots the data from from ass3q1in.csv with trapezoidal integration of ass3q2in.csv at all locations of x and the theoretical deflection.

10. Discusses the results from the plots.

11. Has appropriate comments throughout.

Requirements

For this assessment item, you must perform hand calculations:

1. Assume that the properties of water are constant (use the values from Table 1 at 273 K). Use Euler's method to estimate the temperature after 10 s using five equal steps. Only use the first formula for Q''' (even if the temperature goes over 343 K).

2. Given the assumptions of Requirement 1, use Eq. (4) to obtain an analytical formula for d2T/dt2 that is a function of T .

3. Find the analytical solution of Eq. (4) given the assumptions of Requirement 1 and use that to determine if the temperature will reach 343 K before tres.

You must also produce MATLAB code which: 4.Repeats Requirement 1 to verify the method.

5. Repeats Requirement 1 using an appropriate timestep (which must be reported) to de- termine if the water's temperature reaches Tout and 373 K before tres. For both target temperatures:

- If the target temperature is reached, the time required to reach that temperature should be reported.
- If the target temperature is not reached, the temperature at tres should be reported. 6.Repeats Requirement 5 using the values of ρ and cp from Table 1.

7. Repeats Requirements 5 and 6 using the following MATLAB ode solvers:

(a)ode23

(b)ode45

If you use the default settings, report this, otherwise report what values you used for any changed settings.

8. Repeats Requirement 5 using Simulink with Euler's method and the same solvers as Requirement 7. For this Requirement, only test whether Tout reaches 343 K.

9. Repeats Requirement 5 using a variable timestep so that the numerical error divided by the change in temperature at each timestep (take the absolute value of this ratio) is:

(a) 0%
(b) 1% (c)0.1%

Estimate the numerical error using the formula from Requirement 2. The average timestep for each simulation is to be reported.

10. Plots the temperature versus the time normalised by residence time to non-dimensionalise the time axis. The following plots are to be produced:

(a) All results with constant values of thermodynamic properties. (b)All results with variable values of thermodynamic properties. (c)All results using Euler's method.

All plots where constant values of thermodynamic properties are shown must also show the analytical solution.

11. Compares the different methods shown in each plot and discusses which is the best for this problem.

12. Has appropriate comments throughout.

Requirements

For this assessment item, you must produce MATLAB code which:

1. Calculates the curvature profile under steady-state conditions, i.e. determines ω(x) = vtt(x). To achieve this, re-write the steady-state form of Eq. (7) so that ω is the dependent variable and solve.

2. Calculates the steady-state deflection profile directly from Eq. (7) and uses this result to determine if the beam deflects sufficiently to contact the terminal. To do this, do not solve Eq. (7) at the first interior nodes: instead, apply the curvature boundary conditions by specifying that the gradient between the boundary and first interior node is equal to the gradient between the first and second interior nodes (i.e. set vtt = 0 at the first interior node). From these results, calculate the curvature.

3. Plots the curvature and deflection results from all previous Requirements, also marking where the terminal is located on the deflection plot.

4. Discusses the similarities or differences between the curvature results and any reasons for them.

5. Has appropriate comments throughout.

Requirements

For this assessment item, you must produce MATLAB code which:

1. Simulates the system for a duration of 5 ms. The convective term [second term in Eq. (12)] should be "upwinded", i.e. use a backward difference.

2. Plots the temperature distribution in the pipe at initial conditions, final conditions and when the temperature at the outlet becomes greater than a multiple of 10?C, i.e. when T (L, t) = 273 K, 283 K, 293 K etc. Report on the plot how long it takes to reach each of these distributions.

3. Has appropriate comments throughout.

You are to write a brief report (about 100 words, excluding any code), which includes:

1.A description of an instance during the writing of your code for this assignment where there was a problem (e.g. a bug, an error, an unexpected result) or the most challenging aspect to overcome.

2. What steps you took to overcome the problem or challenge (including any code you wrote to test the problem/challenge).

3. The code before you resolved the problem or challenge, highlighting the line(s) of code where the problem or challenge occurred.

4. The code after you resolved the problem/overcame the challenge.

5. Code from the MATLAB editor is to be copied into Word; screenshots should be taken of the Command window.

Attachment:- simulation lab assignment.pdf

Reference no: EM131242042

Questions Cloud

Thick and of thermal conductivity : Consider a plane wall 100 mm thick and of thermal conductivity 100W/m. K. Steady-state conditions are known to exist with T1 = 400 K and T2 = 600 K. Determine the heat flux and the temperature gradient dT/dx for the coordinate systems shown.
What the ama statement of ethics contains : Does the AMA Statement of Ethics address this issue? Go to www. marketingpower.com and review the statement. Then, write a brief paragraph on what the AMA Statement of Ethics contains that relates to knockoff products.
What is the height of the building in meters : An object is launched at a speed of 22 m/s at an angle of 31 degrees above the horizontal from the top of a building at the edge of the building. When the object lands on the ground, it hits the ground at an angle of 68 degrees below the horizon..
Critically appraise the clinical and economic evidence : 23787 HEALTH TECHNOLOGY ASSIGNMENT. Your task is to critically appraise the clinical and economic evidence and prepare a report explaining why, on the basis of this evidence, it should or should not be funded in the Australia
Derive the formulae for the slope and curvature : ENG3104 Engineering Simulations and Computations - Derive the formulae for the slope ( v'), curvature (v'') and v''' of the beam from Eq. (1) and Estimate the value of the slope at the second measurement point using backward, forward and central diff..
What conclusions can you draw from distribution of products : Place each of your 100 new products into one of the six categories. Tabulate your results at the bottom of each column. What conclusions can you draw from the distribution of your products? Consider adding your results together with the rest of th..
Explain local ordinance in your municipality governing noise : Explain The local ordinance in your municipality governing noise. The pre-World War I opinion by the U.S. Supreme Court holding, on re-argument, that a federal income tax was unconstitutional.
Calculate the potential energy of the water in the lake : Calculate the potential energy of the water in the lake. For the PE formula use the average height of all the mass of water in the lake, which would be 15 meters (half of 30 meters).  1 m3 (cubic meter) of water has a mass of 1,000 kg.
Calculate the final volume and temperature : A sample consisting of 1.0mol of perfect gas molecules with C V =20.8 J K-1 is initially at 4.25 atm and 300K. It undergoes reversible adiabatic expansion until its pressure reaches 2.50 atm. Calculate the final volume and temperature and the work..

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Write a functions

The function range basis takes a matrix A as input, and outputs a basis (again written as columns) for the range space of A.

  Recall the velocity of the falling parachutist

Question: Recall the velocity of the falling parachutist can be computed by  V(t) = gm(1-e -c/mx )/c,  Use first order error analysis to estimate the error of v at t=6. If g=9.8 and m=50 but c=12.5 +_ 1.5

  Make a nichols plot of your systems response.

MECH 436 - Applied Controls. For this laboratory you will some of the tools from the Control Systems Toolbox in MATLAB to help visualize a systems open and/or closed loop response. Make a Nichols plot of your systems response. Make a Zero-Pole plot..

  Applications of multirate digital signal processing

ELEC 0316-SPRING - Discuss the applications of Multirate Digital Signal processing or Explain the need of Multirate Signal Processing with suitable Example.

  Write a matlab script that draws the function

Solve numerically the advection equation using the central difference method. Choose appropriate boundary conditions so that the wave is entering on the left side (west side) and is coming out on the right side (east side). Show on the same graph ..

  Plot fitted polynomial and all data points

Plot fitted polynomial and all data points (using linear-linear axes) as a fourth subplot in the same window (as shown below). Use intervals of 0.1.

  Modify the matlab code

understand the 2-D solution of the Laplace's equation in Examples 6.5 and 6.6 in your text book. Then modify the MATLAB code provided at the end of the example, and use it to draw the equipotential lines as well as the flux lines on two different ..

  Write a function in matlab

write a function in MATLAB

  Use matalb to plot the computed eigenvector

Write a Matlab code implementing the inverse power method to compute approximations of the smallest eigenvalue λ1 = π2 of L and corresponding eigenfunctions. Use matalb to plot the computed eigenvector

  Define the ideology of the pid block diagrams

I have this on an article that i can send to you and would want a soft copy of the saved designed in matlab and an analysis and interpretation of the result as a mini report. i would like this be done as soon as possible. The ideology of the PID b..

  How to write a program to prepare a marksheet in matlab

How to write a program to prepare a marksheet in MATLAB ?

  Create a function that returns true i

Create a function that returns true if the input is a numeric matrix and false otherwise.

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