Model.solidmap_begin#
- Model.solidmap_begin(ordered)#
Indicates the beginning of a solid mapping function block, that executed the solidmapping algorithm. It must be paired with a
Model.solidmap_end()function. A single solidmap mesh is a result of the block of the functions. In a solidmap function block, all of the functions beforeModel.solidmap_end()are for preparing input data.Model.solidmap_end()is the function that actually performs the solid mapping.- Parameters:
ordered (int) –
A flag indicating whether the input nodes will be reordered or not. This is meaningful only if nodes will be used as input. Valid values are:
0 - Nodes will be reordered in solidmap.
1 - Nodes will not be reordered in solidmap.
Example#
For a solidmap using the following inputs: Source geometry - lines with IDs 73 and 51; Destination geometry - lines with IDs 32 and 41; Along geometry - lines with IDs 74 and 75, surfaces with IDs 100 and 95, nodes with IDs 80 and 101-105; Element size - 10.0#import hm import hm.entities as ent model = hm.Model() model.solidmap_begin(ordered=1) model.solidmap_prepare_usrdataptr(type="SOURCE", options=10) source_line_collection = hm.Collection(model, ent.Line, [73, 51]) model.solid_prepare_entitylst(entity_type=ent.Line, reserved=0) model.solidmap_prepare_usrdataptr(type="DEST", options=2) dest_line_collection = hm.Collection(model, ent.Line, [32, 41]) model.solid_prepare_entitylst(entity_type=ent.Line, reserved=0) model.solidmap_prepare_usrdataptr(type="ALONG", options=7) along_line_collection = hm.Collection(model, ent.Line, [74, 75]) model.solid_prepare_entitylst(entity_type=ent.Line, reserved=0) surfaces_collection = hm.Collection(model, ent.Surface, [100, 95]) model.solid_prepare_entitylst(entity_type=ent.Surface, reserved=0) node_list = [ ent.Node(model, 80), ent.Node(model, 101), ent.Node(model, 102), ent.Node(model, 103), ent.Node(model, 104), ent.Node(model, 105), ] model.solid_prepare_nodeline(start=0) model.solidmap_end(options=0, density_or_size=10.0, bias_style=0, biasing=0, elemDest=0)