Fluid mechanics Matlab the question is in first picture the

Fluid mechanics Matlab, the question is in first picture, the method is given in last two pictures. How to use matlab to plot it in 3D? what is the code?

3. Using the difference method discussed in class, numerically determine the velocity distribution for a pressure driven viscous flow in a rectangular duct with duct aspect ratio of 0.5. Calculate the z direction velocity at each point in a 100 by 100 x,y grid. Plot your results in a 3D or contour plot.

Solution

mat lab uses the peaks function to define the coordinates x,y,z

the matrix can be of size 25*25

aftr creating peak function by using matrices we can create a surface

slce function can also be used to dispaly the data so that it can be slide through volumetric data

here if we do not define color then the z coordinate is used to define the color

Fluid mechanics Matlab, the question is in first picture, the method is given in last two pictures. How to use matlab to plot it in 3D? what is the code? 3. Usi

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site