Model.createnodesbetweennodelist#
- Model.createnodesbetweennodelist(nodelist, numberofnodes, biasstyle, biasingintensity)#
Creates nodes between each pair of nodes along a list.
- Parameters:
nodelist (EntityList) – The node entity containing the list of nodes that are to have nodes created between them.
numberofnodes (int) – The number of nodes to be created between the selected nodes.
biasstyle (int) –
The type of biasing to use. Valid values are:
0 - Linear
1 - Exponential
2 - Bell curve
biasingintensity (double) – The biasing intensity value.
Example#
Create 3 nodes between nodes 166 and 170 , and 3 more between nodes 170 and 174 , and so on#import hm import hm.entities as ent model = hm.Model() node_list=[ent.Node(model,id) for id in range(166,192,4) ] model.createnodesbetweennodelist(nodelist=node_list, numberofnodes=3, biasstyle=0, biasingintensity=0.0)