Model.morphshapelinkedpush#
- Model.morphshapelinkedpush(shape_entity, mult)#
Adds the specified shape to an internal list along with the multiplier for the shape which you wish to apply. The list may contain one or more shapes. Calling the function
Model.morphshapelinkedapply()will apply all the shapes on the list at their specified multiplier values. It will also apply any shapes linked to the applied shapes via desvar, deqatn, and dlink2 cards, such as those created during non-linear design variable generation. CallingModel.morphshapelinkedapply()will clear the internal list of shapes and multipliers.- Parameters:
shape_entity (Entity) – The object describing the shaep entity to add.
mult (double) – The multiplication factor for the shape.
Example#
Add the shape with ID 3 to an internal list with multiplier of 0.5#import hm import hm.entities as ent model = hm.Model() model.morphshapelinkedpush(shape_entity=ent.Shape(model, 3), mult=0.5)