Hi

On Wed, 2007-11-14 at 16:37 +0530, Prabhu Ramachandran wrote:
> Thats the information available in the VTK class.  The implementation is 
> here:
> 
> http://public.kitware.com/cgi-bin/cvsweb.cgi/VTK/Graphics/vtkCellDataToPointData.cxx
> 
> Basically, they find all the cells that share particular point. Then the 
> value at the point is the average of the values at the cells that share 
> the point.  The weights are the same for all cells.
> 

Eek - that doesn't look right. They should be using a finite element
type projection method. ie - it should be something like (I hope you
read latex)
\begin{equation}
field_n = (sum_e^{elements surrounding node n} field_e*volume_e)/
(sum_e^{elements surrounding node n}volume_e)
\end{equation}
I'm using "element" and "cell" interchangeably here. If you don't do
this then the result will be very inaccurate for inhomogeneous meshes.

Cheers
g



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to