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

[OpenFOAM] Streamlines through cyclic patches in Paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2013, 09:56
Default Streamlines through cyclic patches in Paraview
  #1
Member
 
Frank Ubber
Join Date: Aug 2013
Posts: 32
Rep Power: 13
kornickel is on a distinguished road
Hello everyone,

I am struggling with Paraview at the moment. I have a turbomachinery case with two cyclic patches. Now I am trying to add stream traces to my geometry but everytime they hit the cyclic wall they just stop (as Paraview usually does, I know, that's not a bug). Is there any way to tell Paraview to continue the streamlines on the neighbour-patch?


Kind regards,

Frank Ubber


edit: I've just seen there's a special section for Paraview in the Post-Processing section, can anybody move this thread, please (or tell me how to move it on my own )
kornickel is offline   Reply With Quote

Old   January 18, 2014, 06:40
Default
  #2
Member
 
Julian Langowski
Join Date: May 2011
Location: Bremen, Germany
Posts: 91
Rep Power: 15
Ruli is on a distinguished road
Hi kornickel,

I would like to know about streamlines and cyclic patches as well.

Does anybody have a clue?

Best regards
Julian
Ruli is offline   Reply With Quote

Old   January 26, 2014, 16:03
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 to all!

Well, a few quick tests of my own on the tutorial case "DNS/dnsFoam/boxTurb16", which has got 6 patches in a cube which are all cyclic in pairs, I can come up with the following possible solutions:
  1. The lazy way - use the filter "Stream Tracer With Custom Source":
    1. Open the file ".OpenFOAM" a second time on the same ParaView, but on this second one choose to only load all of the patches that have the cyclic characteristics you want.
    2. Select the first file and apply the filter "Stream Tracer With Custom Source" to it. It will ask to choose an "Input" and a "Source". The input is the first file and the source is the second file.
    3. And that's it! It will use the vertexes of the faces on the patches as sources for the streamlines.
  2. The very hard and annoying way - still use the filter "Stream Tracer With Custom Source", but use a point replicating strategy:
    1. Apply the standard Streamlines filter near the first patch, if you want greater control on the number of points. Or use "Stream Tracer With Custom Source" using a single patch as source, not all.
    2. Then apply the filter "Slice" to the result of the streamline. The slice place should be as close as possible to the other patch, so that you catch the points very near to the patch surface.
    3. Then apply the "Transform" filter to the slice and specify iit to translate the points on the slice to be X metres to the left or right, depending on where the corresponding patch on the other end is.
    4. Then choose the initial file entry on the "Pipeline Browser" an apply the filter "Stream Tracer With Custom Source". The input is the first file and the source is the transformation entry.
    5. Repeat the process as many times as you deem necessary.
  3. The "clone-a-lot" strategy - shown in attachment:
    1. Apply the "Transform" filter to the original file entry and configure it to be X metres to the side of the cyclic patch.
    2. Repeat as many times as you want to see the evolution of the streamline. In the attached case, I only used once.
    3. Select all transformation entries and the first entry and apply the filter "Group Datasets".
    4. You can now use the resulting entry as the input for your streamlines.
    Note: Since you can group datasets, you can exponentially increase the number of clones, since you can apply the "Transform" filter to each group as well!
  4. Mix the grouping strategy from #3 with the strategy on #2, i.e., group the slices into a single group that is transformed to the left or right... er, be careful to not try and create a recursive loop, because it will crash ParaView
Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2014-01-26 19:41:16.jpg (63.6 KB, 186 views)
File Type: jpg Screenshot from 2014-01-26 19:48:02.jpg (56.3 KB, 135 views)
Ruli likes this.
__________________
wyldckat is offline   Reply With Quote

Old   January 28, 2016, 07:59
Default
  #4
Member
 
yehanyu
Join Date: Mar 2012
Location: Beijing, China
Posts: 48
Rep Power: 14
yhy20081016 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all!

Well, a few quick tests of my own on the tutorial case "DNS/dnsFoam/boxTurb16", which has got 6 patches in a cube which are all cyclic in pairs, I can come up with the following possible solutions:
  1. The lazy way - use the filter "Stream Tracer With Custom Source":
    1. Open the file ".OpenFOAM" a second time on the same ParaView, but on this second one choose to only load all of the patches that have the cyclic characteristics you want.
    2. Select the first file and apply the filter "Stream Tracer With Custom Source" to it. It will ask to choose an "Input" and a "Source". The input is the first file and the source is the second file.
    3. And that's it! It will use the vertexes of the faces on the patches as sources for the streamlines.
  2. The very hard and annoying way - still use the filter "Stream Tracer With Custom Source", but use a point replicating strategy:
    1. Apply the standard Streamlines filter near the first patch, if you want greater control on the number of points. Or use "Stream Tracer With Custom Source" using a single patch as source, not all.
    2. Then apply the filter "Slice" to the result of the streamline. The slice place should be as close as possible to the other patch, so that you catch the points very near to the patch surface.
    3. Then apply the "Transform" filter to the slice and specify iit to translate the points on the slice to be X metres to the left or right, depending on where the corresponding patch on the other end is.
    4. Then choose the initial file entry on the "Pipeline Browser" an apply the filter "Stream Tracer With Custom Source". The input is the first file and the source is the transformation entry.
    5. Repeat the process as many times as you deem necessary.
  3. The "clone-a-lot" strategy - shown in attachment:
    1. Apply the "Transform" filter to the original file entry and configure it to be X metres to the side of the cyclic patch.
    2. Repeat as many times as you want to see the evolution of the streamline. In the attached case, I only used once.
    3. Select all transformation entries and the first entry and apply the filter "Group Datasets".
    4. You can now use the resulting entry as the input for your streamlines.
    Note: Since you can group datasets, you can exponentially increase the number of clones, since you can apply the "Transform" filter to each group as well!
  4. Mix the grouping strategy from #3 with the strategy on #2, i.e., group the slices into a single group that is transformed to the left or right... er, be careful to not try and create a recursive loop, because it will crash ParaView
Best regards,
Bruno
The "Transform" filter does work for translational-periodic cases, but it does not work for rotational-periodic cases. For rotational-periodic cases, after the "Transform" filter is applied, although the geometry rotates, the velocity vectors don't rotate.
yhy20081016 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] Generating streamlines in paraview ahirekar10 ParaView 0 November 1, 2017 08:01
[mesh manipulation] mirrorMesh and undoing the joining of patches chegdan OpenFOAM Meshing & Mesh Conversion 3 October 21, 2015 09:09
StreamLines crossing cyclic patches jlobera OpenFOAM Programming & Development 0 October 19, 2015 11:08
Regarding periodic BC in ICEM generated grid Tarak OpenFOAM 32 April 30, 2013 15:46
MRFSimpleFoam amp cyclic patches david OpenFOAM Running, Solving & CFD 36 October 21, 2008 22:55


All times are GMT -4. The time now is 17:31.