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

[OpenFOAM] why can't i get streamlines in paraview?

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 4 Post By wyldckat
  • 2 Post By mihaipruna
  • 1 Post By sharonyue
  • 3 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2012, 17:25
Default why can't i get streamlines in paraview?
  #1
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
No matter what I do, most extend only for a short length.
I'm running ParaView under Windows.
Attached Images
File Type: jpg steamlinesste.jpg (44.0 KB, 928 views)
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   June 12, 2012, 17:01
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi Mihai,

Interesting... OK, let's try to get to the bottom of this:
  1. What version of ParaView are you using?
  2. What plugin or file format are you reading from?
  3. Are you trying to see the results from a single "processor*" folder or a standard case folder?
  4. Try doing these steps, assuming you're opening a file with extension ".foam":
    1. Open the same file twice.
    2. On the first one, load only the internal fields.
    3. On the second one, load only that patch that you have the stream seed close to.
    4. Now, use apply filter "Streamlines from custom source" (haven't confirmed the real name) to the first file and choose the second file as Input (or Source, haven't confirmed this either).
    5. You should be able to see stream lines starting with your patch and ending wherever they end.
  5. Last but not least, try downloading an older version of ParaView, such as 3.12.0, since this might be a recently introduced bug .
Best regards,
Bruno
kiddmax, sharonyue, Pirlu and 1 others like this.
__________________
wyldckat is offline   Reply With Quote

Old   June 12, 2012, 17:55
Default
  #3
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
Hi Bruno
I think I tried the custom source as well. I used the STL file and extracted only the inlet face. Same thing. I get streamlines close to the surface, of the duct in this case, but inside they stop quickly.
I was able to get extended streamlines with a line source over a wing, but they seem to cross the wing surface at one point, see attached.
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   June 12, 2012, 17:58
Default
  #4
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
here is the instance it actually worked. paraview version is 3.14.1 64 bit.
Attached Images
File Type: jpg transportslices.jpg (98.3 KB, 579 views)
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   June 12, 2012, 18:08
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
OK, then try converting to VTK format, using polyhedrons for the mesh:
Code:
foamToVTK -poly
When you run checkMesh, is there any warning or error? I've got a feeling from this last image that the mesh might have some weird distortion that makes ParaView unable to calculate the streamlines.

Have you checked how the vectors look like in that break-off zone?
__________________
wyldckat is offline   Reply With Quote

Old   June 13, 2012, 15:58
Default
  #6
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
says mesh is OK.

I do have an area where the flow direction changes, not abruptly, where I see sharp gradients. The area of concern ,though, seems to be able to carry a streamline over the surface but not inside the duct.
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   June 13, 2012, 16:56
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi Mihai,

Mmm... OK, have you tried the line streamline with both ends of the line right on top or very close to the duct? Because sometimes only when the seed point is in the right place, will it be able to generate the lines your looking for.

Another possibility that I can think of is that the flow might be reversed somehow or have a static point and pushes the fluid away from the duct on the side of the streamlines you have.

You can also try using the "Extract Cells" filter to try and isolate the duct, then generate the streamlines only in that area, possibly even flooding it with seed points, or vector glyphs, to figure out what is going on!

Additionally, you can export the extracted region to a single & smaller VTK file and then attach it to your next post, if you want me or someone else to take a look at it to help you figure out what's wrong.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 13, 2012, 19:35
Default
  #8
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
Thank you Bruno
it seems, for a point source, the larger I set the number of points value the longer the streamlines get. But I wish for more control, of course, as it also gets slow at updates.
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   June 14, 2012, 09:11
Default
  #9
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
It works now. I did it on another machine, under Linux, and enabled the "use VTK polyhedron" option on the internal mesh.
Dunno which made the difference, but they show up nicely
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   June 14, 2012, 09:14
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
OK, OpenFOAM's official plugin has that option very visible

This command should export the data to that same polyhedron structure:
Code:
foamToVTK -poly
I don't know how the polyhedron recognition is working on the internal plugin (*.foam)... but if there are new options, they should show up at the bottom of the options window where you can choose the fields to load.
__________________
wyldckat is offline   Reply With Quote

Old   June 14, 2012, 19:28
Default
  #11
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
Thanks for all your help Bruno. For ParaView in Windows the option Decompose Polyhedra has to be disabled
wyldckat and abtinansari like this.
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   May 8, 2013, 23:44
Default
  #12
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17
sharonyue is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Mihai,

Interesting... OK, let's try to get to the bottom of this:
  1. What version of ParaView are you using?
  2. What plugin or file format are you reading from?
  3. Are you trying to see the results from a single "processor*" folder or a standard case folder?
  4. Try doing these steps, assuming you're opening a file with extension ".foam":
    1. Open the same file twice.
    2. On the first one, load only the internal fields.
    3. On the second one, load only that patch that you have the stream seed close to.
    4. Now, use apply filter "Streamlines from custom source" (haven't confirmed the real name) to the first file and choose the second file as Input (or Source, haven't confirmed this either).
    5. You should be able to see stream lines starting with your patch and ending wherever they end.
  5. Last but not least, try downloading an older version of ParaView, such as 3.12.0, since this might be a recently introduced bug .
Best regards,
Bruno
Hi Bruno,

I use your method and succeed!!but there is a little problem. you can see there are too many tubes around my impeller,I think its because the cells around the impeller are small.But how can I cease the number of this tubes?There are too many.

And if I use wallboundedstreamline funtions in controlDict. Will I get the same stream line with using the filter in paraview?

Thanks in advance!
Attached Images
File Type: jpg 1.jpg (30.9 KB, 307 views)
s.m likes this.
sharonyue is offline   Reply With Quote

Old   May 10, 2013, 18:32
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi Forrest,

You can create a plane or circle from the "Sources" menu, then use the "Subdivide" filter to divide it in a more well distributed source.
You might need to apply the "Transform" filter in order to place the plane or circle in the right place.
Then use this final shape as the custom source for the streamlines.

The other possibility is to apply a "Decimate" filter to the patch you were using as a source for the streamlines.

As for "wallboundedstreamline", I've never used, so I don't know how it works.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 30, 2013, 10:19
Default
  #14
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
s.m is on a distinguished road
Quote:
Originally Posted by sharonyue View Post
Hi Bruno,

I use your method and succeed!!but there is a little problem. you can see there are too many tubes around my impeller,I think its because the cells around the impeller are small.But how can I cease the number of this tubes?There are too many.

And if I use wallboundedstreamline funtions in controlDict. Will I get the same stream line with using the filter in paraview?

Thanks in advance!
Hi dear Dongyue and dear bruno
i didn't understand the steps that you explain, whould you please explain the steps more?
Thank you very much.
p.s. i want to have the streamline over an airfoil, paraview don't draw it completely, what should i do?
Attached Images
File Type: jpg streamline.jpg (46.7 KB, 209 views)
s.m is offline   Reply With Quote

Old   January 5, 2014, 16:41
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi Saeideh,

Just a quick note - I'll be trying to answer your recent questions about streamlines in air-foils in the following thread: http://www.cfd-online.com/Forums/ope...over-line.html

------------------

edit: Well, I was planning on answering to your post on that other thread, but I guess that it's best to answer this one here:
Quote:
Originally Posted by s.m View Post
i didn't understand the steps that you explain, whould you please explain the steps more?
[...]
p.s. i want to have the streamline over an airfoil, paraview don't draw it completely, what should i do?
OK, from my other post http://www.cfd-online.com/Forums/ope...tml#post468753 post #7, I was using a circle pretending to be an airfoil. You can use the same line strategy you use for plotting at each station, where you had to calculate the position of each point. The steps should be:
  1. Apply the filter "Streamlines" to a "Slice" entry, as shown in the first image attached.
  2. Configure the location of the points, the same way as explained in the other post:
    Quote:
    The position of the 2 points was done with the help of the big "Y axis" button on the lower left corner of the image to set the line aligned, then with the help of the mouse (+ the Shift key) to move the two extremities of the line.
    Note: you might have to manually calculate the positions of these two points, since you need them to be located exactly in the right place.
  3. As shown in the first image, "Resolution" can be defined to "20".
  4. Now, as also shown in the first image, the stream-lines might seem to be incomplete. This is because I applied them to "Slice1" instead of the ".OpenFOAM" entry. To fix this, right-click on the entry "Streamlines1", choose "Change Input..." and choose the ".OpenFOAM" entry to be the new input.
  5. You should now see something like in the second image. Notice that the value "Maximum Streamline Length" is the value for the total maximum length for any of the stream-lines.

Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2014-01-05 22:25:59.jpg (44.5 KB, 195 views)
File Type: jpg Screenshot from 2014-01-05 22:26:47.jpg (45.4 KB, 161 views)
s.m, cnzzuhsz and rasool_soofi like this.
__________________

Last edited by wyldckat; January 5, 2014 at 17:33. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   January 6, 2014, 13:17
Default
  #16
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
s.m is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Saeideh,

Just a quick note - I'll be trying to answer your recent questions about streamlines in air-foils in the following thread: http://www.cfd-online.com/Forums/ope...over-line.html

------------------

edit: Well, I was planning on answering to your post on that other thread, but I guess that it's best to answer this one here:


OK, from my other post http://www.cfd-online.com/Forums/ope...tml#post468753 post #7, I was using a circle pretending to be an airfoil. You can use the same line strategy you use for plotting at each station, where you had to calculate the position of each point. The steps should be:
  1. Apply the filter "Streamlines" to a "Slice" entry, as shown in the first image attached.
  2. Configure the location of the points, the same way as explained in the other post:
  3. As shown in the first image, "Resolution" can be defined to "20".
  4. Now, as also shown in the first image, the stream-lines might seem to be incomplete. This is because I applied them to "Slice1" instead of the ".OpenFOAM" entry. To fix this, right-click on the entry "Streamlines1", choose "Change Input..." and choose the ".OpenFOAM" entry to be the new input.
  5. You should now see something like in the second image. Notice that the value "Maximum Streamline Length" is the value for the total maximum length for any of the stream-lines.

Best regards,
Bruno
Hi, Thank you
i want to draw the streamline up an down of the airfoil, but the paraview draw it just for the upper side, what should i do to have the stream line up and down the airfoil?
Thank you again.
s.m is offline   Reply With Quote

Old   January 10, 2014, 14:55
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi Saeideh,

Quote:
Originally Posted by s.m View Post
i want to draw the streamline up an down of the airfoil, but the paraview draw it just for the upper side, what should i do to have the stream line up and down the airfoil?
You have at least 2 choices... actually 3:
  1. You can apply the "Streamlines" filter two times to the ".OpenFOAM" file. Then configure the first one to place the seed line on the top of the wing and another on the bottom of the wing.
  2. Or you can extend the first seed line to go beyond the top of the wing, right through the geometry, down to the other location where you need streamlines to go through.
  3. Or you can instead of all of this, place a single seed line in front of the wing.
Now, you might be wondering what I mean by "seed line". I'm referring to the one in the following image, where the important controls are outlined in red on the left and on the right there are 2 arrows pointing to the "seed line"



The idea is that along that line, there are 20 points, as requested in the "Resolution" entry. Those 20 points are the actual seeds for the calculation of the streamlines. Each seed point will use the flow velocity calculated for it, in order to figure out in which directions it should look at, in order to search for a streamline.

Therefore, if you're able to place the "seed line" in the right location, you should be able to see some of the streamlines you are looking for!

Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2014-01-10 19:49:00.jpg (72.1 KB, 1587 views)
__________________
wyldckat 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
[General] ParaView - limited Streamlines Kappa ParaView 7 July 5, 2019 14:27
[General] Generating streamlines in paraview ahirekar10 ParaView 0 November 1, 2017 07:01
[OpenFOAM] Streamlines through cyclic patches in Paraview kornickel ParaView 3 January 28, 2016 06:59
[OpenFOAM] Paraview: how to plot streamlines and surface mesh together serena ParaView 3 September 9, 2012 22:13
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 21:41


All times are GMT -4. The time now is 08:40.