Model.morphshapelinkedapply#

Model.morphshapelinkedapply(n_collection)#

Applies all the shapes on an internal list (generated by using the Model.morphshapelinkedpush() function) at their stored 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. The shapes will be applied to only the nodes on the specified collection. This function will clear the internal list of shapes and multipliers created using the Model.morphshapelinkedpush() function.

Parameters:

n_collection (Collection) – The collection containing the affected node entities.

Example#

Apply the stored shapes and linked shapes to all of the nodes in the model#
import hm
import hm.entities as ent

model = hm.Model()

model.morphshapelinkedapply(n_collection=hm.Collection(model, ent.Node))