Average element size for 2D elements

Sebastian_Karp
Sebastian_Karp
Altair Employee
edited December 2023 in Altair Exchange

Overview

This script calculates the average size of a user element selection.

Average is calculated as follows through command hm_getaverageelemsize: 

quad elements:  
average size of one element = sqrt(1/2 * (longest diagonal) * (sum of the parallel altitudes))

tria elements:  
average size of one element = sqrt(area)

The total average size is then calculated by summing each average size and dividing by the number of elements considered.

Usage/Installation Instructions

Run script e.g. from DropDown  File > Load > Script

 

Select elements to consider in calculation:

image

 

 

Average element size will be written to TCL Console (open from DropDown View):

image