Plotting from stream function in Maple

In summary, the conversation discusses the task of plotting streamlines for a given stream function using either MATLAB or Maple. The equations needed to plot the streamlines are also mentioned. The person responding requests that the asker show their attempt and code, as doing the problem for them is not allowed on Physics Forums.
  • #1
Qwinzzi
1
0

Homework Statement


So the question is to plot the streamlines of the stream function.
ψ(r,θ)=[v][/0](r-1/r)sin(θ)=constant

Homework Equations


Im asked to do this in MATLAB or maple. preferably maple. But equations that is needed to plot it is also totally fine.

The Attempt at a Solution


It should look something like this
 

Attachments

  • 2000px-Potential_cylinder.svg.png
    2000px-Potential_cylinder.svg.png
    34.6 KB · Views: 456
Physics news on Phys.org
  • #2
You'll need to show your attempt to achieve the desired result. As it stands you haven't asked a question that can be addressed without doing the problem for you. That's not allowed by the rules of Physics Forums (You've read the rules, right?).

What have you tried? Show your code. Show your equations.
 

1. How do I plot streamlines from a stream function in Maple?

To plot streamlines from a stream function in Maple, you will need to first define a stream function using the StreamFunction command. Then, you can use the StreamlinePlot command to create a plot of the streamlines. Make sure to specify the range of the plot and any other desired options in the StreamlinePlot command.

2. Can I change the color or style of the streamlines in the plot?

Yes, you can change the color and style of the streamlines in the plot by using the color and style options in the StreamlinePlot command. For example, you could use color = "blue" and style = "dashed" to change the color to blue and the style to dashed lines.

3. How do I add additional features to the plot, such as a title or axes labels?

To add additional features to the plot, you can use the title, xlabel, and ylabel options in the StreamlinePlot command. For example, you could use title = "Streamlines for Flow Field" to add a title to the plot.

4. Can I change the resolution or number of streamlines in the plot?

Yes, you can change the resolution or number of streamlines in the plot by using the resolution option in the StreamlinePlot command. The default resolution is 20, but you can increase this number to get a more detailed plot with more streamlines.

5. Is it possible to overlay multiple streamlines plots in one plot?

Yes, you can overlay multiple streamlines plots in one plot by using the display option in the StreamlinePlot command. This allows you to combine multiple plots into one, with each plot having its own set of options for customization.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
1
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
864
  • Differential Equations
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
0
Views
519
  • Engineering and Comp Sci Homework Help
Replies
9
Views
2K
Back
Top