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

[General] External Source for PlotOverLine

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2015, 04:49
Default External Source for PlotOverLine
  #1
New Member
 
Richard Theodor
Join Date: Sep 2015
Posts: 1
Rep Power: 0
xtlc is on a distinguished road
Hi there

I have to visualize a bunch of Data from thousands of VTU files, but I also have a log file with seperate Information, basically x,y values for a plotoverline.

I want to run through all the VTU files and also plot something in a POL next to the main view. These data comes from a log file, I handle it like this:

Code:
from vtk.util import numpy_support 
values = np.array((x,y))
vtk_values = numpy_support.numpy_to_vtk(values, array_type=vtk.VTK_FLOAT)
vtk_values.setName('values_2_show')
vtk_values.setComponentName(1, 'x_value')
vtk_values.setComponentName(2, 'y_value')
Now the tricky part for me is to tell POL that the source of it's data is not a file, but some variables already defined:

Code:
VTUFILE = FindSource('VTUFILE*')
plotOverLine1 = PlotOverLine(Input=VTUFILE, Source='High Resolution Line Source')
Does anyone have a hint where I could start digging?
xtlc is offline   Reply With Quote

Reply

Tags
numpy, paraview, plot over line, vtk

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57


All times are GMT -4. The time now is 20:49.