[Paraview] Line plot with cell data: PlotOverLine ?

Andy Bauer andy.bauer at kitware.com
Tue Dec 23 14:02:09 EST 2014


I think what you would need to do is use a Python Programmable filter to
essentially generate a point data with 3 points at the interior points in
the grid. One would be for the point data for the first cell using the
original interior point, another point marked with vtkValidPointMask of 0
to indicate that it shouldn't be used for plotting and a third point for
the second cell using the original interior point. The first and third
points above would have a vtkValidPointMask of 1 to indicate that they
should be plotted. There was some talk about adding functionality to
ParaView's plotting to do this easier but no real action on it yet.

Regards,
Andy

On Tue, Dec 23, 2014 at 12:01 PM, Francois Beaubert <
Francois.Beaubert at univ-valenciennes.fr> wrote:
>
> Thanks Andy for your kind answer.
>
> I follow the same path as yours with two slices but sadly can't go any
> further.
> But perhaps someone can help us to overcome this  obstacle
>
> Be sure that I will share the solution if I found one :)
>
> Thanks again.
>
> Regards,
> François
>
> ------------------------------
> *De: *"Andy Bauer" <andy.bauer at kitware.com>
> *À: *"Francois Beaubert" <Francois.Beaubert at univ-valenciennes.fr>
> *Cc: *paraview at paraview.org
> *Envoyé: *Mardi 23 Décembre 2014 15:40:42
> *Objet: *Re: [Paraview] Line plot with cell data: PlotOverLine ?
>
>
> The plot over line filter only interpolates at the specified points so it
> will always have point data output for the plot. You can try using two
> slice planes that intersect at the location of the line and then maybe some
> cut filters to get rid of the rest of the line that's not wanted. I'm not
> sure of the details of how to turn this into a plot view in paraview with
> discontinuous values. If you figure that step out, please share it since I
> was trying to do similar things but didn't get to figuring out the last
> step in the process.
>
> Regards,
> Andy
>
> On Tue, Dec 23, 2014 at 8:41 AM, Francois Beaubert <
> Francois.Beaubert at univ-valenciennes.fr> wrote:
>>
>> Hello,
>>
>> I would like to see my finite volume mesh resolution in a line plot
>> (OpenFOAM data).  I would like to use the PlotOverLine filter or something
>> else that can plot :
>>
>> * only the cell center values when inside the internal mesh
>> * the boundary face values when on the computational domain boundary
>>
>> I've tried to use the PointDatatoCellData filter before using the
>> PlotOverLine filter but it doesn't change anything for me and I don't know
>> if it's the best procedure to accomplish this.
>>
>> Basically, I just want to have a line plot with the same number and
>> values as the cell centers when inside the internal mesh + 2 face centers
>> if the line cross the domain boundaries.
>>
>> Is it possible to use some filters in addition to PlotOverLine or
>> something else to obtain this behavior ?
>>
>> Any help will be warmly welcome
>> Thanks
>>
>> François,
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141223/6c5e610e/attachment.html>


More information about the ParaView mailing list