Model.hex_refinement#
- Model.hex_refinement(collection1, collection2, refinement_level)#
Refines selected hexa elements while maintaining connectivity.
- Parameters:
collection1 (Collection) – The collection containing the hexa element entities to be refined. Currently supported for elements.
collection2 (Collection) – The collection containing all the element entities attached to element in
collection1. Currently supported for elements.refinement_level (int) – The level of refinement. When
refinement_level=1will refine the hexa elements by splitting them to 1/3 of their original size.
Example#
Refine the displayed hexa elements to level 1#import hm import hm.entities as ent model = hm.Model() element_collection_1 = hm.CollectionByDisplayed(model, ent.Element) element_collection_2 = hm.Collection(model, ent.Element) model.hex_refinement( collection1=element_collection_1, collection2=element_collection_2, refinement_level=1, )