Model.split_elements_by_structure_pattern#
- Model.split_elements_by_structure_pattern(refine_collection, transition_collection, refine_size, num_layers=0)#
Creates a transition mesh between refined and boundary regions.
- Parameters:
refine_collection (Collection) – The collection containing the element entities in the refinement zone.
transition_collection (Collection) – The collection containing the element entities in the transition zone.
refine_size (double) – The element size for the refinement zone.
num_layers (int) – The number of element layers to use for making transitions.
Example#
Refine the element with ID 509 to a size of 0.5 , use the elements with IDs 511-518 as the transition zone#import hm import hm.entities as ent model = hm.Model() model.split_elements_by_structure_pattern( refine_collection=hm.Collection(model, ent.Element, [509]), transition_collection=hm.Collection( model, ent.Element, [511, 512, 513, 514, 515, 516, 517, 518] ), refine_size=0.5, )