CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

XYZ starting points of streamtraces in Paraview

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 26, 2013, 10:37
Default XYZ starting points of streamtraces in Paraview
  #1
Member
 
Nico T
Join Date: Aug 2010
Location: Leipzig, Germany
Posts: 39
Rep Power: 6
deniggo is on a distinguished road
Hello,
in Paraview I want to draw streamtraces with defined starting points xyz.
In the Object Inspector I can only define the radius around a point (or a line) where Paraview creates randomized starting points.
I recorded a python-macro, where I can define at least one single starting point ([12.02, 2.52, 1.66], with a radius of 0):

Quote:
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

Calc_U1 = GetActiveSource()
StreamTracer2 = StreamTracer( SeedType="Point Source" )
StreamTracer2.SeedType.Center = [12.02, 2.52, 1.66]
StreamTracer2.Vectors = ['POINTS', 'U']
StreamTracer2.MaximumStreamlineLength = 29.85
StreamTracer2.TerminalSpeed = 1e-12
StreamTracer2.MaximumError = 1e-06
StreamTracer2.SeedType.Radius = 0.0
StreamTracer2.SeedType.NumberOfPoints = 1

RenderView1 = GetRenderView()
DataRepresentation4 = Show()
DataRepresentation4.EdgeColor = [0.0, 0.0, 0.5]
Render()
I there a possibility to import a list of more than one starting points into Paraview? Just adding a similar block under this one, does not work.

Thank's for your help.
deniggo is offline   Reply With Quote

Old   March 27, 2013, 07:00
Default
  #2
Member
 
Nico T
Join Date: Aug 2010
Location: Leipzig, Germany
Posts: 39
Rep Power: 6
deniggo is on a distinguished road
Ok,
I found a solution, without using a python macro:

1. Save your xyz-coordinates as *.csv.
2. load them in Paraview, they appear as a table.
3. apply the filter "Table to points" (Filters>Alphabetical) to the table and define x,y,z directions.
4. Activate the velocity field/variable and apply the filter "Stream Tracer with Custom Source".
5. Choose "Source" on the left bar and choose the TableToPoints-variable (created under 3.)
6. Activate the Filter

Hope that helps someone....

BTW: When exporting the streamtraces as *.csv the column "Integration Time Steps" can be used for travel time analysis.
deniggo is offline   Reply With Quote

Old   May 21, 2013, 15:17
Default
  #3
New Member
 
Anirban Jana
Join Date: Apr 2010
Location: Pittsburgh, PA, USA
Posts: 19
Rep Power: 6
jans is on a distinguished road
This was really helpful
jans is offline   Reply With Quote

Old   May 22, 2013, 04:02
Default
  #4
Member
 
Nico T
Join Date: Aug 2010
Location: Leipzig, Germany
Posts: 39
Rep Power: 6
deniggo is on a distinguished road
Yes, but it's a bit intricate. In case of more than one run automatization with a script would be nice where loading xyz data, activating the filters, and finally write new csv file would be done by one click....
deniggo 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
Sliding Interface issues philippose OpenFOAM Running, Solving & CFD 7 May 5, 2014 04:13
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 08:36
XYZ (ASCII format) data points into GAMBIT Neil FLUENT 1 August 7, 2007 10:24
extreme points problem Lipo Wang Main CFD Forum 2 August 18, 2004 04:15


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