MATLAB Plot Streamlines in MATLAB for t=[1,5,10]s at (x0,y0)=(0,0)

  • Thread starter Thread starter Az83
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on plotting streamlines in MATLAB for a specified velocity field at times t = [1, 5, 10] seconds, with the initial point (x0, y0) set to (0, 0). The velocity components are defined as u = 5*t*y and v = 2*t^2*x^2. Participants suggest creating range vectors for x, y, and t, and evaluating u and v into corresponding vectors. Additionally, the use of the quiver command in MATLAB is recommended for visualizing the vector field.

PREREQUISITES
  • Familiarity with MATLAB syntax and functions
  • Understanding of vector fields and streamlines
  • Basic knowledge of plotting in MATLAB
  • Experience with MATLAB's quiver command
NEXT STEPS
  • Learn how to create range vectors in MATLAB
  • Explore MATLAB's quiver command for vector field visualization
  • Study the concept of streamlines in fluid dynamics
  • Investigate MATLAB's plotting functions for advanced visualizations
USEFUL FOR

Students, engineers, and researchers working with fluid dynamics simulations, particularly those using MATLAB for visualizing velocity fields and streamlines.

Az83
Messages
7
Reaction score
0
I'm not sure how to do this... I have the following velocity field:

t = [1,5,10] % in seconds
u=5*t*y
v=2*t^2*x^2

How do I plot in MATLAB the streamlines going through (x0,y0) = (0,0) at t = 1,5, and 10 s?
 
Physics news on Phys.org
sorry, I can't understand your question...
 
to start, create range vectors for x y and t, and evaluate your u and v into two more vectors

look into the quiver command in help as well
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
7K