Model.solidmap_solids_end#
- Model.solidmap_solids_end()#
This function is used by the multi-solid mapping algorithm to indicate the end of a solid mapping function block. It must be paired with the
Model.solidmap_solids_begin().The functions
Model.solidmap_solids_set_density(),Model.solidmap_solids_set_elemsize(),Model.solidmap_solids_set_face_params()andModel.solidmap_solids_set_mapface()can appear in a multi-solids solidmap function block betweenModel.solidmap_solids_begin()andModel.solidmap_solids_end().Example#
Mesh the solids with IDs 32 and 41 with a default elem size of 2.0 except on edges with IDs 2 and 4 which should have an element size of 1.0#import hm import hm.entities as ent model = hm.Model() model.solidmap_solids_begin(collection=hm.Collection(model,ent.Solid,[32,41]),options=0,elem_size=2.0) model.solidmap_solids_set_elemsize(edge_collection=hm.Collection(model,ent.Line,[2,4]),elemsize=1.0) model.solidmap_solids_end()