Model.masselement#
- Model.masselement(collection, mass, property, name)#
Creates a mass element.
- Parameters:
collection (Collection) – The collection containing the node entities which should have mass elements created on them.
mass (double) – The mass of the mass elements.
property (hwString) – The name of the property to which the elements should point.
name (Entity) – The system entity in which the mass elements are built.
Example#
Create a mass element on node with ID 3 with a mass value of 5.0 and type of element “ CONM2 “ , built in system entity with ID 1#import hm import hm.entities as ent model = hm.Model() sys_name = ent.System(model, 1) collection = hm.Collection(model,ent.Node,[3]) model.elementtype(config="mass", type="CONM2") model.masselement(collection=collection, mass=5.0, property="", name=sys_name)