Average element size for 2D elements

User: "Sebastian_Karp"
Altair Employee
Updated by Sebastian_Karp

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

 

Find more posts tagged with

Comments

No comments on this post.

Share projects with the Community

Share your models, scripts, workspaces, and more with the Altair Community.
New Exchange Project