Model.linemesh_preparenodeslist1#
- Model.linemesh_preparenodeslist1(entitylist, config)#
Prepares the selected node list for 1D meshing.
Each call to this function must be paired with a call to
Model.linemesh_savedata1()orModel.linemesh_savedata_bar1()to clean up memory.- Parameters:
entitylist (EntityList) – The list containing the node entities to be prepared for 1D meshing.
config (int) – If configuration of the element to create. Only 1D configs are valid.
Example#
Mesh between nodes with IDs 16 , 17 , and 2 with 3 rigid elements between nodes with IDs 16 and 17 and with 2 rigid elements between nodes 17 and 2 , with no property assignment#import hm import hm.entities as ent model = hm.Model() # Creating a collection of node entities which we will # prepare for 1D meshing. node_list = [ent.Node(model, 16), ent.Node(model, 17), ent.Node(model, 2)] model.linemesh_preparenodeslist1(entitylist=node_list, config=5) # Assing meshing parameters to line segments for 1D meshing. model.linemesh_saveparameters(segment=0, density=3, bias=0, bias_style=0) model.linemesh_saveparameters(segment=1, density=2, bias=0, bias_style=0) # Creating 1D elements and cleans up memory. model.linemesh_savedata1(create_flag=1, config=5, property_id=0, organize=0)