Model.elemswarpagefix#

Model.elemswarpagefix(collection, criteria_file_path, max_move, break_mode, feature_angle)#

Attempts to fix quad elements violating warpage criteria threshold. If necessary, tries to move nodes normal to surfaces.

Parameters:
  • collection (Collection) – The collection containing the quad element entities.

  • criteria_file_path (hwString) – The path to the criteria file. Use “dummy” for using the current criteria, set separately.

  • max_move (double) – The limit for node movement normal to the surface.

  • break_mode (int) –

    Specifies how node associativity of moved nodes is handled. Valid values are:

    0 - Associativity is broken for moved nodes.

    1 - Associativity is broken for all nodes of an element that has a moved node.

    2 - Associativity is not broken.

  • feature_angle (double) – The element feature angle in degrees.

Example#

Fix the displayed elements , use the criteria file C:/my_criteria / criteria.txt , with a maximum move of 0.1 , without break surface associativity#
import hm
import hm.entities as ent

model = hm.Model()

elems = hm.CollectionByDisplayed(model,ent.Element)

model.elemswarpagefix(
    collection=elems,
    criteria_file_path="C:/my_criteria/criteria.txt",
    max_move=0.1,
    break_mode=2,
    feature_angle=30.0
)