I am trying to resample my dataset in a programable filter using the vtkProbeFilter as a part of a much more complex final objective. However I couldn’t find any example to use it within ParaView and the vtkProbeFilter examples aren’t available anymore.
Would it be possible to have an example of a vtkProbeFilter where the point data of a dataset (unstructured, multiblock, composite, etc…) is proved in a given location (i.e. vtkPoints()) and output in ParaView?
My objective is to create a filter which permits to compute the boundary layer height over a wing and set the value in the wing surface. For this I need to trace normal lines from the surface, probe the velocity (the step where I am stuck), find its value and output the height in the wing’s surface . I believe that ResampleWithDataSet would add much more elements in my pipeline and I wanted to keep it as clean as possible.
I went over it and it seems to be useful for combining multiple filters. However I think that with the existing filters I won’t achieve my objective in the final format that I would like to have and my goal is to don’t use the GUI at all. This is why I was relying on the programmable filter and using the vtk library to perform the required operations.
It is better to create a programmable filter focused on the “feature gap” and do only the processing that ParaView cannot do, and then to combine them all in a custom filter.
I have been trying different filter combinations and I cannot make it work the way I would like to.
Given 2 datasets, A) one with the surface data and normal vectors and B) another with the flowfield, which would be the best approach to generate X normal lines (one per surface point) and use the ResampleWithDataSet to interpolate the point data over them?
This can be easily done with a for loop creating interpolate over line filters but this can flood the pipeline with thousands of operations (It would be ideal if it was possible to interpolate data on Glyphs )
One is a 3D surface that I slice to get the 2D normal vectors of the wing (V2C_3D_DDES_snapshot_surf.tec) and the other is a 2D flowfield (V2C_2D_RANS_KEps.plt). The extra operations that you can see are to adapt the .plt file to a real 2D because I’ve found that ParaView adds a Y component which should be 0 in our case.
From the looks it seems that you have interpolated the flowfield at the airfoil’s surface using resample with dataset. However here you have only the information of the flow in contact with the airfoil’s surface, I want to have the information in a normal direction. My intention is
Create normal lines on each surface point
Interpolate the flowfield on these lines (not the interpolated in surface)
Perform an operation (i.e. mean velocify in the line)
Store that value at the surface
I hope that this helps to understand what I am trying to achieve!
Exactly, this is why I was looking for an example of creating VTK points/lines with the VTK library and then interpolating using the vtkProbeFilter but I couldn’t find an example of doing this on the web. Any guidance on how to do it and export it back to ParaView would be extremely useful!