Christoph,

To my knowledge, there is no direct way to do this. If your data are in an 
ImageData or some other type of structured grid, it should be fairly 
straightforward to use a programmable filter to build a new grid with one fewer 
point in each dimension and then copy the cell data of this original mesh to 
the point data of the new mesh. You can then do finite differences on the 
points of the new mesh and get the result you are looking for.

-Ken

-----Original Message-----
From: ParaView [mailto:[email protected]] On Behalf Of Christoph 
Grüninger
Sent: Thursday, January 26, 2017 6:09 AM
To: [email protected]
Subject: [EXTERNAL] [Paraview] Gradient between cell data

Dear ParaView!

I have a simulation computed with a finite volume method which outputs pressure 
as cell data. The pressure gradient is related to the velocity (Darcy's law). 
Is it possible to calculate the gradient as a finite difference between the 
cell centers of adjacent cells?
The result would be located between the cells, not sure whether this works at 
all.

Converting cell data to point data and using the gradient filter is not what I 
want.

Bye
Christoph
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to