Ask Engineering Mathematics Expert

The figure below illustrates a thermocline, or region of strong temperature gradient in a stratified fluid. Oceans exhibit this type of behavior. The depth of the thermocline is defined as the location at which the curvature of the depth-temperature curve goes to zero (d2T/dz2 = 0, an in inflection point). The temperature gradient at this location determines the heat transfered between the ocean surface and the ocean floor according to Fourier s law, q = -kdT/dzwhere q is the heat flux density in W/m2 and k is the thermal conductivity in W/mK.

Note that the data should be plotted as shown in the figure with depth on the vertical axis, but that the curve t should be done for temperature as a function of depth (not depth as a function of temperature).

For this problem, assume these data are exact.

1420_Figure.jpg

Depth, m

 

0

100

300

400

500

700

1000

1250

1500

1750

Temperature,

C

22

21.9

20.8

19.1

16.4

10

6.2

5.1

4.6

4.4

(a) By solving a linear system (Vandermonde matrix), find the polynomial that passes through all data points. Plot the polynomial curve. On the same graph, plot the data points. Predict the thermocline depth using the interpolation results. You may want to use the MATLAB function roots for finding the inflection point, or you may wish to use fzero. Note any difficulties you have with this calculation. Estimate the temperature gradient at this location.

(b) What is the minimum-order polynomial that could reasonably be used to predict the thermocline depth? (Hint: you are looking for an in inflection point.) For this order polynomial, find the least-squares curve t using the MATLAB function polyfit. Plot the polynomial curve and the data points. Predict the thermocline location. Estimate the temperature gradient at this location.

(c) Use the MATLAB function spline to interpolate the data as cubic splines. You can call the function by typing

>>f = spline(x,y,xi);

wherex is the vector of depth locations, y is the vector of temperatures and xi is a vector of depths at which the interpolation is to be completed. fwill be a vector of interpolated temperatures. Plot the curve and the data points. To estimate the second derivative, you need to unmake the partial-polynomial form. To do this, type

>>pp = spline(x,y);

The resulting vector can be "unmade" by typing

>>[breaks,coef,L,K] = unmkpp(pp);

The matrix, coef, will be an N*4 matrix where N is the number of intervals. The rows of the matrix are the cubic polynomial coe¢ cients for the corresponding interval. For example, the cubic describing the second interval is given by

f2(x) = coef(2,1)(x -x2)3 + coef(2,2)(x- x2)2 + coef(2,3)(x- x2) + coef(2,4)

Since you ought to be able to determine in which interval the inflection point will occur, you should be able to extract the depth where the second derivative reaches zero.

(d) Compare the thermocline depth predictions and the temperature gradient estimates from each of the three methods. Discuss, including other observations about the three approximations. Which do you think is likely to give the most physically realistic result?

(e) With the help of the MATLAB function csape, repeat parts (c) and (d) for end conditions corresponding to the natural ( "variational" ) spline and the default ( Lagrange ) spline and compare with results for the MATLAB default "not-a-knot" end condition. Comment on the differences. Which do you think is likely more correct and why?

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M92365952
  • Price:- $60

Priced at Now at $60, Verified Solution

Have any Question?


Related Questions in Engineering Mathematics

Q undirected vs directed connectivitya prove that in any

Q: Undirected vs. directed connectivity. (a) Prove that in any connected undirected graph G = (V, E) there is a vertex v ? V whose removal leaves G connected. (Hint: Consider the DFS search tree for G.) (b) Give an examp ...

All these questions should be answered in matlab 1 generate

All these questions should be answered in MATLAB !!! 1. Generate a set of 3 random patterns of dimension 12 where each value is +1 or -1.(3 random 12*12 matrix) 2. Create a 12-unit Hopfield network (a 12x12 matrix) from ...

I have these questions for a homework assignment and have

I have these questions for a homework assignment and have to show work. This works with MIPS coding language and is the class Introduction to Computer Architecture. 1. Find the 2's complement representation (in 32-bit he ...

Question 1 - many spas many componentsconsider 4 types of

Question 1 - Many spas, many components Consider 4 types of spa tub: Aqua-Spa (or FirstSpa, or P1), Hydro-Lux (or SecondSpa, or P2), ThirdSpa (or P3) and FourthSpa (or P4), with the production of products P1, ..., P4 in ...

Analytical methods for engineers assignment - calculusthis

ANALYTICAL METHODS FOR ENGINEERS ASSIGNMENT - CALCULUS This assignment assesses Outcome - Analyse and model engineering situations and solve problems using calculus. Questions - Q1. Differentiate the following functions ...

Clculus assignment -q1 find the total differential of w

CALCULUS ASSIGNMENT - Q1. Find the total differential of w = x 3 yz + xy + z + 3 at (x, y, z) = (1, 2, 3). Q2. Find the value of the double integral ∫∫ R (6x + 2y 2 )dA where R = {(x, y)| - 2 ≤ y ≤ 1, y 2 ≤ x ≤ 2 - y. Q3 ...

Numerical analysis assignment -q1 define the following

Numerical Analysis Assignment - Q1. Define the following terms: (i) Truncation error (ii) Round-off error Q2. Show that if f(x) = logx, then the condition number, c(x) = |1/logx|. Hence show that log x is ill-conditioned ...

Question what is the signed binary sum of 1011100 and

Question : What is the signed binary sum of 1011100 and 1110101 in decimal? Show all of your work. What is the hexadecimal sum of 9A88 and 4AF6 in hexadecimal and decimal? Show all of your work.

Question a signal starts at point x as it travels to point

Question : A signal starts at point X. As it travels to point Y, it loses 8 dB. At point Y, the signal is boosted by 10 bB. As the signal travels to point Z, it loses 7 dB. The dB strength of the signal at point Z is -5 ...

Show all your work not just the answerswhen you multiply 21

(SHOW ALL YOUR WORK, not just the answers) When you multiply: 21 x 68 you most likely do: 8x1 + 8x20 + 60x1 + 60x20 = 1, 428 So, there are 4 multiplications and then 3 additions. How long would it take a computer to do t ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As