Model.elementtestchordaldeviation#
- Model.elementtestchordaldeviation(collection, maxdeviation, outputcollection, contour, title)#
Fits an inferred surface through the selected plate or shell elements and measures their chordal deviation from the inferred surface or from the geometric surface to which they belong, and puts those that exceed the given threshold on the specified
outputcollection.- Parameters:
collection (Collection) – The collection containing the element entities to test.
maxdeviation (double) – The value to use as a threshold beyond which elements should be considered to have failed the test.
outputcollection (Collection) – The collection containing the failed element entities.
contour (int) –
A code telling if should:
0 - Display the results of the test normally.
1 - Display the elements color coded by their ratings.
2 - Build a histogram showing the distribution of ratings.
title (hwString) – The title to label the curve in the histogram.
Example#
Put the elements that exceed a threshold of 0.1 in an output collection#import hm import hm.entities as ent model = hm.Model() elems1 = model.CreateCollectionByDisplayed(ent.Element) elems2 = hm.Collection(model, hm.FilterByEnumeration(ent.Element, ids=hm.hwUIntList([]))) model.elementtestchordaldeviation( collection=elems1, maxdeviation=0.1, output_collection=elems2, contour=0, title="Element Chordal Deviation" )
Note
It is somewhat problematic to define chordal deviation for second order elements. HyperMesh treats second order elements as if they were first order for the purposes of this check.