|
[Sponsors] |
September 8, 2015, 04:49 |
External Source for PlotOverLine
|
#1 |
New Member
Richard Theodor
Join Date: Sep 2015
Posts: 1
Rep Power: 0 |
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') Code:
VTUFILE = FindSource('VTUFILE*') plotOverLine1 = PlotOverLine(Input=VTUFILE, Source='High Resolution Line Source') |
|
Tags |
numpy, paraview, plot over line, vtk |
|
|
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 |