Model.refine_by_patterns_multiple_points#
- Model.refine_by_patterns_multiple_points(collection, strings)#
Refines multiple zones of elements using an all quad pattern. The zones are described by a refinement box and multiple center nodes. The refined mesh is then connected to the existing mesh using an all quad pattern through the transition zone, described by a transition box.
The refinement boxes will contain the refined elements, while the regions between the refinement boxes and the transition boxes will contain quads patterns used to transition between the refined mesh and base mesh size.
- Parameters:
collection (Collection) – The collection containing the refinement box center nodes entities.
strings (hwString) –
A string that contains the additional input parameters. Each string must be space separated, including between = and the value. All strings are mandatory. Valid strings are:
auto_transition = <value>
Currently unused and should be set to 0.
refine_zone_height = <value>
Defines the height of the refinement zone.
refine_zone_length = <value>
Defines the length of the refinement zone.
refine_zone_size = <value>
Defines the mesh size within the refinement zone.
refine_zone_width = <value>
Defines the width of the refinement zone.
squeez = <value>
Currently unused and should be set to 1.
system_id = <value>
The ID of a local coordinate system to which the zones are oriented. A default of 0 (global system) is used if not specified.
transition_zone_height = <value>
Defines the height of the transition zone.
transition_zone_length = <value>
Defines the length of the transition zone.
transition_zone_width = <value>
Defines the width of the transition zone.
Example#
Refine the elements around the nodes with IDs 60 , 61 and 63 with refinement size 1 use a refinement box of dimension ( 10,15,20 ) and transition box of dimension ( 40,50,45 )#import hm import hm.entities as ent model = hm.Model() model.refine_by_patterns_multiple_points( collection=hm.Collection(model, ent.Node, [60, 61, 63]), strings="refine_zone_size = 1 auto_transition = 0 transition_zone_length = 40 transition_zone_width = 50 transition_zone_height = 45 refine_zone_length = 10 refine_zone_width = 15 refine_zone_height = 20 system_id = 0 squeez = 1" )