Average element size for 3D elements

User: "Sebastian_Karp"
Altair Employee
Updated by Sebastian_Karp

Overview

These scripts calculate the average size of a user solid element selection.

 

Scripts use different calculation methods:

"AverageElemSize_FEsolids.tcl"

Command hm_getelemcheckvalues gives element length value for solid elements.
Average of all elements in mark is calculated by dividing "sum of element lengths" by "number of elements".
The method used for length calculation is the method used by HM, see settings in criteria editor (nextGen GUI) or check elems panel (classic GUI).

 

"AverageElemSize_FEsolids_CubicRoot.tcl"

Command hm_getvalue gives element volume value for solid elements.
Cubic root of volume is calculated with procedure nthroot.
Procedure is from: https://rosettacode.org/wiki/Nth_root#Tcl
using Newton-Raphson and a self-tuning termination test.
Average of all elements in mark is calculated by dividing "sum of cubic roots of volumes" by "number of elements".

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):

 

"AverageElemSize_FEsolids.tcl"

image

 

"AverageElemSize_FEsolids_CubicRoot.tcl"

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