Problem 2. An incompressible, inviscid (or frictionless) flow field is specified by the stream function, Ax²y - Ay³/3, where x and y are coordinates in meters and A = 1 /m . s. (a) Solve for u and v, the x and y components of velocity, respectively. (b) Use the contour() function in Matlab to make a contour plot of for-3 m≤x≤ 3 m and 0 m≤ y ≤ 6 m. On top of the contour plot of the streamlines (use the "hold on" command to overlay the plots), use the quiver() function to add velocity vectors. For both functions, use the meshgrid()function to set values for x and y at which to evaluate u, u, and v. Use 100 and 20 locations in each direction for the contour lines and velocity vectors, respectively. HINT: you will need to use "element-wise" operations with your x and y vectors. For example, for use: psi = A*(x.^2.*y - y.^3/3). (c) Determine the magnitude of the flowrate per unit width between the streamlines passing through ( 0 m, y 3 m) and ( x = 0 m, y = 6 m). =

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question
Problem 2. An incompressible, inviscid (or frictionless) flow field is specified by the stream function,
Ax²y - Ay³/3, where x and y are coordinates in meters and A = 1 /m . s. (a) Solve for u and v, the x
and y components of velocity, respectively. (b) Use the contour() function in Matlab to make a contour plot of
for-3 m≤x≤ 3 m and 0 m≤ y ≤ 6 m. On top of the contour plot of the streamlines (use the "hold on"
command to overlay the plots), use the quiver() function to add velocity vectors. For both functions, use the
meshgrid()function to set values for x and y at which to evaluate u, u, and v. Use 100 and 20 locations in each
direction for the contour lines and velocity vectors, respectively. HINT: you will need to use "element-wise"
operations with your x and y vectors. For example, for use: psi = A*(x.^2.*y - y.^3/3). (c) Determine the
magnitude of the flowrate per unit width between the streamlines passing through ( 0 m, y 3 m) and (
x = 0 m, y = 6 m).
=
Transcribed Image Text:Problem 2. An incompressible, inviscid (or frictionless) flow field is specified by the stream function, Ax²y - Ay³/3, where x and y are coordinates in meters and A = 1 /m . s. (a) Solve for u and v, the x and y components of velocity, respectively. (b) Use the contour() function in Matlab to make a contour plot of for-3 m≤x≤ 3 m and 0 m≤ y ≤ 6 m. On top of the contour plot of the streamlines (use the "hold on" command to overlay the plots), use the quiver() function to add velocity vectors. For both functions, use the meshgrid()function to set values for x and y at which to evaluate u, u, and v. Use 100 and 20 locations in each direction for the contour lines and velocity vectors, respectively. HINT: you will need to use "element-wise" operations with your x and y vectors. For example, for use: psi = A*(x.^2.*y - y.^3/3). (c) Determine the magnitude of the flowrate per unit width between the streamlines passing through ( 0 m, y 3 m) and ( x = 0 m, y = 6 m). =
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY