Home / Expert Answers / Mechanical Engineering / please-help-with-part-c-give-me-a-matlab-code-please-compressible-so-that-2-0-if-the-flow-pa169

(Solved): Please help with part c. Give me a matlab code please. compressible, so that 2=0. If the flow ...



student submitted image, transcription available below

Please help with part c. Give me a matlab code please.

compressible, so that . If the flow is mensional, we can also define a function . a. (10) Determine the general streamfunction for the flow under a surface gravity wave, of the form . b. (5) Simplify the expression for (i) shallow-water waves and (ii) deep-water waves. c. (10) Using your favorite computational package, plot BOTH the waveform and the streamlines (lines of constant ) underneath (1) a shallow-water wave and (2) a deepwater wave, at the instant (where is the wave period). For consistency, use and . To find the streamlines, use the general, unsimplified streamfunction that you found in (a), not the simplified ones from (b). You can use the dispersion relation and other known properties of waves to solve for the (circular) frequency . For the shallow-water wave use ; for the deep-water wave use . (For consistency, take the (unbounded) domain to be long and plot a minimum of 30 streamlines. Use a coordinate system where 0 at the unperturbed free surface. You do not have to plot any specific value of ; using a function like contour 0 in MATLAB is fine). Mark the direction of the streamlines if your computed plot doesn't show them. (Don't worry about covering up the streamlines that appear above the free surface, but make sure you include the waveform on the surface). For a good check, you can plot the velocity vectors on top of the streamlines using quiver() or similar-this is not required but is a good way to check that you are getting the right streamlines. d. (5) Comment on any differences you observe between the two streamline patterns. (Hint: zoom in on the domain bounded by and and compare the vertical vs. horizontal components of the water velocity near the surface).


We have an Answer from Expert

View Expert Answer

Expert Answer



We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe