Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Language: Python A velocity field in the xy plane is given by Where: (1) (2) a) _Use the function down, Which plots contour lines for

Language: Python

A velocity field in the xy plane is given by image text in transcribed Where:

image text in transcribed (1)

image text in transcribed (2)

image text in transcribed

a)_Use the function image text in transcribed down, Which plots contour lines for image text in transcribed when:

image text in transcribed

_Represent cases (i) and (ii) in their respective diagrams. Compare the plots with point e) in the previous problem and discuss the selected values for n.

b) Write a function (filname velfield.py) that calculates velocities based on equation (1) at the call:

image text in transcribed

_The function image text in transcribed:

from numpy import linspace, meshgrid, cos, pi def streamfun(n=20): '''Regner ut et grid og en strmfunksjon''' x=linspace(-0.5*pi,0.5*pi,n) #resultatet er en vektor med n elementer, fra -pi/2 til pi/2 [X,Y] = meshgrid(x,x) psi=cos(X)*cos(Y) return X, Y, psi

Other details:

image text in transcribed = image text in transcribed

v=vi+vyj Uz = cos(2) sin(y), Vy = -sin :) cos(y). U = cos(2) cos(y). Ar = Ay = n1 streamfun (i) n=5 (ii) n = 30 >> x,y,u,v=velfield(n) v=vi+vyj Uz = cos(2) sin(y), Vy = -sin :) cos(y). U = cos(2) cos(y). Ar = Ay = n1 streamfun (i) n=5 (ii) n = 30 >> x,y,u,v=velfield(n)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Database Technology Edbt 88 International Conference On Extending Database Technology Venice Italy March 14 18 1988 Proceedings Lncs 303

Authors: Joachim W. Schmidt ,Stefano Ceri ,Michele Missikoff

1988th Edition

3540190740, 978-3540190745

More Books

Students also viewed these Databases questions

Question

What will you do or say to Anthony about this issue?

Answered: 1 week ago