Model.addposition#
- Model.addposition(collection1, collection2)#
Adds a solver position into another solver position entity. Currently only supported to add positions with config 407 into positions with config 408 in PAM-CRASH interface.
- Parameters:
collection1 (Collection) – The collection containing the position entities to which the positions in
collection2must be added to.collection2 (Collection) – The collection containing the position entities to be added.
Example#
Add all the positions with config 407 to all the positions with config 408#import hm import hm.entities as ent model = hm.Model() col_1 = hm.Collection(model, ent.Position, "config=407") col_2 = hm.Collection(model, ent.Position, "config=408") model.addposition(collection1=col_1, collection2=col_2)