MATLAB: Plotting Velocity p m m m

differential equationspdeplotting

Hi, I have to generate a velocity potential and streamline as the one shown in the fig below. Can any one please indicate the appropriate code for that? Thanks

Best Answer

This is a boundary value problem. You need to have the initial and boundary conditions to develop the velocity field required for this.
Otherwise, you need to have the velocity field itself to calculate the velocity potential and draw streamlines.
Once you have the velocity field, you can draw the streamlines.
doc streamline
and the velocity potential could be drawn as filled contour below the streamlines.