How Can I Create Streamlines in Blood Flow Using Velocity Vectors?

  • Thread starter Thread starter neochan
  • Start date Start date
  • Tags Tags
    Blood Flow
Click For Summary
SUMMARY

The discussion focuses on creating streamlines in blood flow simulations using velocity vectors for a master's thesis on magnetic resonance angiography. The user employs Euler's approach to connect vectors but encounters inaccuracies in the streamline path. Recommendations include using MATLAB's streamline plot function for easy overlay of lines and arrows, calculating the stream function, and ensuring the flow is treated as two-dimensional for accurate results. The primary direction of velocity is upward, necessitating integration with respect to x to derive the stream function values.

PREREQUISITES
  • Understanding of Euler's method for numerical integration
  • Familiarity with C++ programming and Qt framework
  • Knowledge of MATLAB and its plotting functions
  • Concept of stream functions in fluid dynamics
NEXT STEPS
  • Implement MATLAB's streamline plot function for visualizing vector fields
  • Explore numerical integration techniques for calculating stream functions
  • Research two-dimensional flow dynamics and its implications on streamline accuracy
  • Investigate alternative methods for visualizing vector fields in C++
USEFUL FOR

Computer science students, researchers in fluid dynamics, and developers working on medical imaging simulations will benefit from this discussion.

neochan
Messages
1
Reaction score
0

Homework Statement


Hi!

I'm creating my master thesis in computer science. The title is 'simulator of magnetic resonance angiography'. My problem is that I have to create some kind of overlay on my image with streamlines of flowing blood. I have to arrays with velocity vectors in two directions up/down and left/right - each pixel has its two values in these two directions. How can I simply create streamlines using this data?

Homework Equations



I'm using Eulers approach - connecting vectors point by point

The Attempt at a Solution



I've tried to use Eulers approach, but at some point it didn't work (see picture)
Zrzut%20ekranu%202012-08-8%20o%2020.21.35.png

as you can see, this line isn't going right way. it should go into right part of the vessel, but it's not. Colours are representation of value of velocity (green means fast, red - slow). Is there any simple solution for my problem?

I'm creating it in c++ and qt if this information can help you :)
 
Physics news on Phys.org
If using Matlab is an option to you, then you can use its streamline plot function. You can easily overlay the lines onto your image. You can also overlay arrows representing the vector values.
 
You can calculate the stream function, and plot the lines of constant stream function. This will give the stream lines. The main direction of the velocity in your problem sees to be in the upward (y) direction. The partial derivative of the stream function with respect to x is equal to the velocity in the y-direction. You can integrate with respect to x to get the stream function values along each level of y. The stream function should be constant with respect to x along each boundary of the channel. Take the value at the left boundary equal to zero. Hopefully, the values of the stream function you calculate at the right boundary will all be approximately equal. This will be the case if the flow is incompressible. All this hinges, of course, if the flow is two dimensional (channel flow). If those are tubes, you have to proceed differently.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K