CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Streamlines of Lagrangian Particles [Unsteady]

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2019, 11:28
Default Streamlines of Lagrangian Particles [Unsteady]
  #1
New Member
 
Rod Lamar
Join Date: Apr 2019
Posts: 19
Rep Power: 7
Lapidus is on a distinguished road
Hello,

Today I come to you with a question regarding Lagrangian particles: I would like to create a scene showing the trajectories of the particles. Usually this is done with the information contained in a track file, but this only works for steady sims. A simulation history file can be used to see the movement of the different particles in time, which is both useful and insightful. Yet, I am after the streamlines rather than the particles themselves.

I was thinking maybe a massless particle can be injected as kind of a seed for the streamlines, nonetheless I believe this would grant me the paths followed by the gas rather than the particles.

Anybody has experience creating the described scene? Thank you beforehand!
Lapidus is offline   Reply With Quote

Old   July 4, 2019, 12:31
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Lapidus View Post
Hello,

Today I come to you with a question regarding Lagrangian particles: I would like to create a scene showing the trajectories of the particles. Usually this is done with the information contained in a track file, but this only works for steady sims. A simulation history file can be used to see the movement of the different particles in time, which is both useful and insightful. Yet, I am after the streamlines rather than the particles themselves.

I was thinking maybe a massless particle can be injected as kind of a seed for the streamlines, nonetheless I believe this would grant me the paths followed by the gas rather than the particles.

Anybody has experience creating the described scene? Thank you beforehand!



You are wrong in the theory, in the unsteady scenario the streamlines are different from the path-lines. You need to compute the streamlines at each time by definition of envelop of the velocity vector field. Then you can create a movie of the time-evolution of the streamlines from the collected data-base.
FMDenaro is offline   Reply With Quote

Old   July 5, 2019, 06:59
Default
  #3
New Member
 
Rod Lamar
Join Date: Apr 2019
Posts: 19
Rep Power: 7
Lapidus is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
You are wrong in the theory, in the unsteady scenario the streamlines are different from the path-lines. You need to compute the streamlines at each time by definition of envelop of the velocity vector field. Then you can create a movie of the time-evolution of the streamlines from the collected data-base.
Thank you for the answer!
Can you dwell on in what way streamlines and path-lines differ for the transient simulation?
In order to gather the data of the paths followed by particles in time; can you elaborate on the way of doing so (envelope of the velocity vector field)?

Regards
Lapidus is offline   Reply With Quote

Old   July 5, 2019, 08:40
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Lapidus View Post
Thank you for the answer!
Can you dwell on in what way streamlines and path-lines differ for the transient simulation?
In order to gather the data of the paths followed by particles in time; can you elaborate on the way of doing so (envelope of the velocity vector field)?

Regards



This is a topic for any student in its first-course of fluid mechanics. Read and study that in any fundamental textbook.
FMDenaro is offline   Reply With Quote

Old   July 15, 2019, 06:40
Default
  #5
New Member
 
Rod Lamar
Join Date: Apr 2019
Posts: 19
Rep Power: 7
Lapidus is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
You are wrong in the theory, in the unsteady scenario the streamlines are different from the path-lines. You need to compute the streamlines at each time by definition of envelop of the velocity vector field. Then you can create a movie of the time-evolution of the streamlines from the collected data-base.
I have indeed had several fluid-mechanics courses over the years, yet, that is beyond the point.

Relevant to the thread is how to plot the path-lines followed by the Lagrangian particles. Since the calculation is Lagrangian, that information should be stored somewhere. In case of a steady sims, it is contained in the track file (in Star CCM+).

What exactly do you mean by the "definition of the envelope of the velocity vector field"? You seem knowledgeable about simulation and have probably encountered a similar situation in the past. Thanks!
Lapidus is offline   Reply With Quote

Old   July 15, 2019, 07:01
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Lapidus View Post
I have indeed had several fluid-mechanics courses over the years, yet, that is beyond the point.

Relevant to the thread is how to plot the path-lines followed by the Lagrangian particles. Since the calculation is Lagrangian, that information should be stored somewhere. In case of a steady sims, it is contained in the track file (in Star CCM+).

What exactly do you mean by the "definition of the envelope of the velocity vector field"? You seem knowledgeable about simulation and have probably encountered a similar situation in the past. Thanks!



Again, such definitions are very basic.
The streamlines is a curve in the space that obeys the constraint


dr(t) x v(x,t) = 0 at each time t
+ initial condition


that is the vector field is always tangent along the whole curve. This is an Eulerian representation, you compute the streamline in a fixed volume.


The pathline is a curve in the space-time that obeys the governing equation



dx/dt = v[x(t),t]

+ initial condition


that is the locus of all the positions of a particle that starts from an initial position at t=0. This is a Lagrangian representation.


The numerical computation is quite simple, you can use Tecplot to create the movies.
FMDenaro is offline   Reply With Quote

Old   July 15, 2019, 17:32
Default
  #7
Senior Member
 
adrin
Join Date: Mar 2009
Posts: 115
Rep Power: 17
adrin is on a distinguished road
Filippo has done an excellent job of explaining the difference! From a practical point of view, I don't use CCM+ or other commercial codes, so I don't know which buttons to push, so to speak, but plotting path lines seems fairly straightforward -> just save (and/or plot) the positions of (massless) particles that you would (continuously?) inject from a set of stations in the fluid. These particle positions, when displayed in an animation, would show the path lines. To repeat Filippo, there is no such thing as streamline in an unsteady flow (creating the streamlines for each fixed time and then displaying them as a time evolution doesn't really make sense either, though many researchers do this probably out of a habit of having worked on steady-state problems for such a long time)

adrin
adrin is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Streamlines of Lagrangian Particles [Unsteady] Lapidus STAR-CCM+ 0 July 3, 2019 05:30
Lagrangian particles injection with interFoam and swak4foam Cluap OpenFOAM Running, Solving & CFD 0 June 12, 2018 12:37
How to get Path lines for lagrangian particles? vidyadhar OpenFOAM Post-Processing 0 January 31, 2017 06:38
Corellation dimension of lagrangian particles oswald OpenFOAM Post-Processing 0 January 27, 2016 08:30
Add lagrangian particles to OpenFoam solver luchen2408 OpenFOAM 0 June 2, 2015 04:10


All times are GMT -4. The time now is 14:20.