Model.morphmapnormaloffset#
- Model.morphmapnormaloffset(collectionelem, collectionfix, sym, con, blend, offset, umark)#
Offsets elements on collection in normal direction.
- Parameters:
collectionelem (Collection) – The collection containing the element entities to map.
collectionfix (Collection) – The collection containing the fixed node entities.
sym (int) – 0 - Do not use symmetry (only option).
con (int) –
0 - Do not use constraints
1 - Use constraints
blend (int) –
0 - Do no blend unselected nodes
1 - Blend nodes between mapped and fixed nodes
offset (double) – Distance to offset elements
umark (int) –
0 - Use all elements to calculate normals
1 - Use selected elements to calculate normals
2 - Use CFD corners
Adding 10 to any value use only elements on mark for normal calculation. Otherwise, all elements are used.
Example#
If blend is on, no fixed nodes have been selected, and no mapped nodes are a part of any domain, this function will automatically assign all non-mapped nodes as fixed nodes#import hm import hm.entities as ent model = hm.Model() model.morphmapnormaloffset( collectionelem=hm.CollectionByInteractiveSelection(model, ent.Element), collectionfix=hm.CollectionByInteractiveSelection(model, ent.Node), sym=0, con=1, blend=0, offset=10.0, umark=1, )