Model.linearsolids#
- Model.linearsolids(collection1, collection2, align1, align2, align3, align4, align5, align6, number, biasstyle, biasing)#
Creates solid elements between two groups of plate elements.
- Parameters:
collection1 (Collection) – The collection containing the element entities of the first group of plate elements.
collection2 (Collection) – The collection containing the entities entities of the second group of plate elements.
align1 (Entity) – The ID of the node to be used as an alignment node for the first group of elements.
align2 (Entity) – The node entity to be used as an alignment node for the first group of elements.
align3 (Entity) – The node eneity to be used as an alignment node for the first group of elements.
align4 (Entity) – The node entity to be used as an alignment node for the second group of elements.
align5 (Entity) – The node entity to be used as an alignment node for the second group of elements.
align6 (Entity) – The node entity to be used as an alignment node for the second group of elements.
number (int) – The number of solid elements to be created between the two groups of plate elements.
biasstyle (int) –
The type of biasing to use. Valid values are:
0 - Linear
1 - Exponential
2 - Bell curve
biasing (double) – The biasing factor for the mesh.
Example#
Create 8 solids with linear biasing between plates with IDs 10 , 11 , 12 , 13 and 20 , 21 , 22 , 23 , with alignment node 1 being node with ID 5 and alignment node 4 being node with ID 6#import hm import hm.entities as ent model = hm.Model() model.linearsolids( collection1=hm.Collection(model, ent.Element, [10, 11, 12, 13]), collection2=hm.Collection(model, ent.Element, [20, 21, 22, 23]), align1=ent.Node(model, 5), align2=None, align3=None, align4=ent.Node(model, 6), align5=None, align6=None, number=8, biasstyle=0, biasing=0.0, )