Model.morphsetsmoothtests#
- Model.morphsetsmoothtests(mode, active, elem_type, test_id, warning, error, invalid)#
Sets the element test criteria used for shape combination checking via
Model.morphshapesmooth().Allows you to edit the element test criteria for shape combination checking used by the
Model.morphshapesmooth()function. You can make every supported test active or inactive for each of the six basic element types (trias, quads, tetras, pyras, pentas, and hexas) as well as set any thresholds for the warning, error, and invalid limits. Currently only aspect ratio, skew, minimum angle, maximum angle, warpage, tetra collapse, and jacobian tests are supported.- Parameters:
mode (int) –
0 - Set all element tests to be inactive
1 - Set all element tests to the default values
2 - Set one individual test to be active or inactive and set limits for the test
active (int) –
0 - Make test inactive
1 - Make test active
elem_type (int) –
0 - trias
1 - quads
2 - tetras
3 - pyras
4 - pentas
5 - hexas
test_id (int) –
0 - aspect ratio
1 - skew
2 - minimum angle
3 - maximum angle
4 - warpage
5 - tetra collapse
6 - Jacobian
warning (double) – The limit beyond which the element will report a warning for element quality.
error (double) – The limit beyond which the element will report an error for element quality.
invalid (double) – The limit at or beyond which the element will report invalid elements for element quality.
Note
The arguments
active,elem_type,test_id,warning,errorandinvalidare ignored whenmodes=0andmode=1.Example#
Clear all tests and then assign values of 0.3, 0.2, and 0.1 for quad element Jacobian#import hm import hm.entities as ent model = hm.Model() model.morphsetsmoothtests( mode=0, active=0, elem_type=0, test_id=0, warning=0.0, error=0.0, invalid=0.0 ) model.morphsetsmoothtests( mode=2, active=1, elem_type=1, test_id=6, warning=0.3, error=0.2, invalid=0.1 )