[Paraview] Calculate Edge Lengths in Unstructured Grid

Fastl, Thomas thomas.fastl at kcl.ac.uk
Sat Jan 30 16:50:31 EST 2016


Hey Tim,


you're absolutely right, thanks for pointing this out! I just wanted to mention, especially for other users searching through all the mails, that this actually provides the minimum, average, and maximum of the quality metric calculated, rather then the minimum, average, and maximum element edge length, which is what I'd need, but thanks anyway!


Best, Tom

________________________________
From: Tim Gallagher <tim.gallagher at gatech.edu>
Sent: Wednesday, January 27, 2016 12:27 AM
To: Fastl, Thomas
Cc: paraview at paraview.org
Subject: Re: [Paraview] Calculate Edge Lengths in Unstructured Grid

Hi Thomas,

Sorry for the delay responding, I got side tracked doing some other stuff and didn't know the answer off the top of my head! But, it looks the filter provides what you are looking for. Based on the documentation of the vktMeshQuality filter (http://www.vtk.org/doc/nightly/html/classvtkMeshQuality.html#details), in addition to the per-cell value in the Quality scalar, there is also a Field Data set that is produced called Mesh <type> Quality. In your case, you are looking for the Mesh Tetrahedron Quality field.

The field has 5 components. The first 4 are the ones you are looking for, and they are:

> The minimum, average, maximum, and unbiased variance of quality for each type of cell is stored in the output mesh's FieldData.

When you visualize the Mesh Tetrahedron Quality variable, it will default to the Magnitude. If you change it to show component 0 you will get the minimum for each cell, 1 is the average, etc.. The 5th field (component 4) is used internally and doesn't matter.

Hope that helps,

Tim

________________________________
From: "Thomas Fastl" <thomas.fastl at kcl.ac.uk>
To: "tim gallagher" <tim.gallagher at gatech.edu>
Cc: paraview at paraview.org
Sent: Monday, January 25, 2016 5:07:29 PM
Subject: Re: [Paraview] Calculate Edge Lengths in Unstructured Grid


Hey Tim,


thanks for your reply! The Mesh Quality filter indeed provides the Edge Ratio for all tetrahedral elements, a single value calculated for every cell using the values I actually need. There must be a way to access them specifically (min/max/mean edge length) or a workaround to obtain this information. Does anybody know how I could do that? Thank you for your help!


Best, Tom

________________________________
From: Tim Gallagher <tim.gallagher at gatech.edu>
Sent: Monday, January 25, 2016 8:13 PM
To: Fastl, Thomas
Cc: paraview at paraview.org
Subject: Re: [Paraview] Calculate Edge Lengths in Unstructured Grid

Thomas,

You can use the MeshQuality filter to compute the Edge Ratio for tetrahedral cells. This will give you a field called Quality in your dataset. You can then compute the statistics on it using other filters as needed.

That should do what you are looking for. The definitions used in the MeshQuality filter can be found at: http://www.vtk.org/Wiki/images/6/6b/VerdictManual-revA.pdf

Tim

________________________________
From: "Thomas Fastl" <thomas.fastl at kcl.ac.uk>
To: paraview at paraview.org
Sent: Monday, January 25, 2016 1:02:35 PM
Subject: [Paraview] Calculate Edge Lengths in Unstructured Grid


Hello Community,


I'm trying to calculate the min/max/mean edge length (or even an edge length distribution) in a tetrahedral element mesh specified as an unstructured grid in Paraview. I've played with the 'Extract Edges' filter, however, wasn't successful so far. Does anybody know how I could do that? Thank you for your input!


Best, Thomas Fastl


_______________________________________________
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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160130/b28c3060/attachment.html>


More information about the ParaView mailing list