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) is a script whith a function which calculates the power

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

image text in transcribedis a script whith a function which calculates the power function image text in transcribedin the area.

a)_Use the function image text in transcribed down to plot contour lines for image text in transcribed when:

image text in transcribed

_Represent cases (i) and (ii) in their respective diagrams.

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

Define promotion.

Answered: 1 week ago

Question

Write a note on transfer policy.

Answered: 1 week ago