CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Streamlines through cyclic patches in Paraview

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools 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: 4
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: 6
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 45 views)
File Type: jpg Screenshot from 2014-01-26 19:48:02.jpg (56.3 KB, 33 views)
Ruli likes this.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Case running in serial, but Parallel run gives error atmcfd OpenFOAM Running, Solving & CFD 14 July 25, 2015 14:15
Problem with cyclic patches sven OpenFOAM Running, Solving & CFD 0 December 5, 2011 15:27
Cyclic patches and parallel postprocessing problems askjak OpenFOAM Bugs 18 October 27, 2010 03:35
snappyHexMesh with cyclic patches? Axel_T OpenFOAM Native Meshers: snappyHexMesh and Others 1 October 12, 2010 10:03
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


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