CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] generation of streamlines: is it possible to have an area source as the seed type?

Register Blogs Community New Posts Updated Threads Search

Like Tree20Likes
  • 14 Post By MartinB
  • 2 Post By wyldckat
  • 1 Post By t.oliveira
  • 1 Post By jf_vt
  • 2 Post By Deagle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2011, 12:52
Question generation of streamlines: is it possible to have an area source as the seed type?
  #1
New Member
 
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 16
alkochevsky is on a distinguished road
Hi dear OpenFOAMers,
I am trying to generate streamlines in Paraview in some domain where I have just simulated the fluid flow. As far as I see, the only possible seed types (where the streamlines will have their origins) are Point Source and Line Source. For me it would be quite naturally, however, to generate streamlines starting, for example, from the inlet, i.e., by taking it as an area source. Is it possible in Paraview? I work now with the version 3.8.0, under Linux SuSE 11.

Regards,
Alexey Kochevsky
alkochevsky is offline   Reply With Quote

Old   April 11, 2011, 12:19
Default
  #2
Senior Member
 
Martin
Join Date: Oct 2009
Location: Aachen, Germany
Posts: 255
Rep Power: 22
MartinB will become famous soon enough
Hi Alexey,

it is possible in Paraview:

- Separate your inlet face (for example via foamToVTK or File->Save Data or Filters->Alphabetical->Slice ...) so that you have it listed in the Pipeline Browser as a selectable object.
- Select filter "Filters->Alphabetical->Stream Tracer With Custom Source", as "Input" select your simulation results, as "Source" select your inlet face.

Martin
MartinB is offline   Reply With Quote

Old   April 11, 2011, 13:43
Default
  #3
New Member
 
Alexey Kochevsky
Join Date: Nov 2010
Location: Munich, Germany
Posts: 16
Rep Power: 16
alkochevsky is on a distinguished road
Hi Martin,
thank you very much, it is exactly what I needed. Paraview seems to be still more powerful than I thought before.

Regards, Alexey
alkochevsky is offline   Reply With Quote

Old   October 15, 2012, 07:40
Default paraview
  #4
New Member
 
Islam Elqatary
Join Date: May 2011
Posts: 19
Rep Power: 15
Islam ElQatary is on a distinguished road
Quote:
Originally Posted by MartinB View Post
Hi Alexey,

it is possible in Paraview:

- Separate your inlet face (for example via foamToVTK or File->Save Data or Filters->Alphabetical->Slice ...) so that you have it listed in the Pipeline Browser as a selectable object.
- Select filter "Filters->Alphabetical->Stream Tracer With Custom Source", as "Input" select your simulation results, as "Source" select your inlet face.

Martin
how to make streamlines like in the pic
Attached Images
File Type: gif Jean_Figure5.gif (42.9 KB, 1256 views)
Islam ElQatary is offline   Reply With Quote

Old   April 26, 2013, 21:13
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by Islam ElQatary View Post
how to make streamlines like in the pic
Sorry for the reaaaaaally late reply, but I only found out about this recently - what you're looking for is the "surfaceLIC" plug-in: http://www.cfd-online.com/Forums/par...ic-plugin.html
Tobi and DPPA like this.
__________________
wyldckat is offline   Reply With Quote

Old   May 28, 2015, 14:00
Default Detailed instructions
  #6
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Hi,

I have created streamlines from an area source, but the results is far from the expected. This is the pressure field of the flow through a cubic sample of rock. Inlet is at left, outlet at right. All the other four faces are walls.
1.png


I can display velocity vectors coloured by their magnitude. Then, I extract a plane near the inlet and use it to create the streamlines:
2.png 3.png 4.png

As you can see comparing the streamlines with the velocity field, the streamlines don't show the trajectories that lead the fluid from the inlet to the outlet, let alone the two high speed paths that can be seen in the velocity field image.

I have already tried tweaking the properties of the streamlines in all ways I could imagine.

Do you have any suggestion on how to display them properly?

Thanks, Thomas
t.oliveira is offline   Reply With Quote

Old   September 21, 2015, 15:37
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Thomas,

I've had your question on my to-do list for quite some time now and I've finally come to it. Fortunately, I found about this issue and the solution for it a few days ago as well, which I'll quote from where I found it (link in the quote):
Quote:
Originally Posted by taalf View Post
As I though, the problem came from the polyhedral nature of the mesh.

The use of the Tetrahedralize filter allowed to convert it into a tetra mesh, on which the Stream Tracer filter works perfectly.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 23, 2015, 18:21
Default
  #8
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Bruno,

Thank you for your suggestion, which was very useful!

I would just like to register here, for future readers of the post, that in Paraview v.4.4.0 I am now able to visualize the streamlines without recurring to the Tetrahedralize filter.
wyldckat likes this.
t.oliveira is offline   Reply With Quote

Old   May 20, 2016, 15:15
Default How to tune number ofpoint and number of line in steam tracer with custom source?
  #9
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 10
jf_vt is on a distinguished road
Hi
When using steam tracer with custom source I dont see the ability to set the length of the line and their number.
Is there any way to do it?
Thanks
JF
jf_vt is offline   Reply With Quote

Old   May 29, 2016, 11:59
Default
  #10
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Hi JF,

I am using Paraview v.4.4.0.

Regarding the length of the line, on the "Properties" tab of the stream tracer with custom source, the white gear that is at the right of the "Search" field toggles advanced properties. If you toggle it on, you will see on the "Properties" section of the "Properties" tab the settings related to the integration step length, maximum steps and maximum streamline length.

I couldn't find setting related to the number of streamlines. I believe this is something to be set on the object used as a source, and not on the streamline.

Best regards,
Thomas
t.oliveira is offline   Reply With Quote

Old   June 1, 2016, 11:32
Default
  #11
Member
 
Jeff
Join Date: May 2016
Posts: 44
Rep Power: 10
jf_vt is on a distinguished road
Thank You Thomas I am not sure how long it will have taken me to figure that out on my own

.... I am still looking for settings the number of streamlines

JF
kostnermo likes this.
jf_vt is offline   Reply With Quote

Old   July 28, 2016, 05:10
Default streamlines in Postporcessing
  #12
Member
 
Justin Maris L. Natividad
Join Date: Mar 2016
Posts: 38
Rep Power: 10
Juzzvy is on a distinguished road
Hello everyone, How can I produce multiple streamline "seeds" (i don't know the term) using the streamline in system? I can only produce one streamline. Thank you
Juzzvy is offline   Reply With Quote

Old   November 29, 2016, 07:11
Default
  #13
New Member
 
Dennis
Join Date: Oct 2016
Posts: 11
Rep Power: 10
Deagle is on a distinguished road
Maybe this will help someone:
To create multiple streamlines from a slice, but not from all cell centers in a slice, first create a slice from where you want to initiate the streamlines.
Next, use the filter MaskPoints and set a certain amount of points can be place at random).
Then use the Stream Tracer With Custom Source as mentioned above with the MaskPoints as source.

This will create a number of streamlines from the slice, in which you can determine the amount of tubes yourself.
lac and schnafkid like this.

Last edited by Deagle; December 2, 2016 at 03:14.
Deagle is offline   Reply With Quote

Old   June 27, 2019, 09:37
Default
  #14
Member
 
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8
Rasmusiwersen is on a distinguished road
Quote:
Originally Posted by MartinB View Post
Hi Alexey,

it is possible in Paraview:

- Separate your inlet face (for example via foamToVTK or File->Save Data or Filters->Alphabetical->Slice ...) so that you have it listed in the Pipeline Browser as a selectable object.
- Select filter "Filters->Alphabetical->Stream Tracer With Custom Source", as "Input" select your simulation results, as "Source" select your inlet face.

Martin
Martin, one of the best suggestions i've ever read.. This has saved me so much time and made it possible for me to visualize flows in a completely different way. Thank you!
Rasmusiwersen is offline   Reply With Quote

Old   March 19, 2021, 05:09
Thumbs up
  #15
New Member
 
David Dudli
Join Date: Oct 2020
Location: Switzerland
Posts: 8
Rep Power: 6
schnafkid is on a distinguished road
Quote:
Originally Posted by Deagle View Post
Maybe this will help someone:
To create multiple streamlines from a slice, but not from all cell centers in a slice, first create a slice from where you want to initiate the streamlines.
Next, use the filter MaskPoints and set a certain amount of points can be place at random).
Thats a real cool approach to randomize the seed points. However, I couldn't manage to get seed sources off the already existing vertecies on the inlet patch.


I stumbled upon this other approach, where you slice the seed patch multiple times (using the 'add a range of values' button in the advanced properties of slice) in in y and z direction (if inlet normal points in x direction). See https://www.youtube.com/watch?v=4IA62XElbfI&t=651s "Streamlines With Patch Seeds ∇ ParaView®" by Holzmann CFD.


That way, you get a new grid of seed points without beeing bound to your original vertex number on the inlet. It's kind of hard to determine the number of seed points if you don't have a rectangular inlet patch, though. And, the distribution isn't really random that way...


For my problem, I should have a random distribution of seed points on the inlet, and way more than mesh vertecies... Anyone an idea...?
schnafkid is offline   Reply With Quote

Reply

Tags
area source, streamlines


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
rSF: p divergence in combustor (wt negative value) zonda OpenFOAM Pre-Processing 4 April 10, 2018 07:59
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 03:50
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28
[swak4Foam] Air Conditioned room groovyBC Sebaj OpenFOAM Community Contributions 7 October 31, 2012 15:16


All times are GMT -4. The time now is 15:00.