Model.removeposition#
- Model.removeposition(collection1, collection2)#
Removes a solver position from another solver position entity. Currently only supported to remove positions with config=407 from positions with config=408 in PAM-CRASH Interface.
- Parameters:
collection1 (Collection) – The collection containing the position entities to which the positions in
collection2must be removed.collection2 (Collection) – The collection containing the position entities entities to be removed.
Example#
Remove all the positions with * config=407 * from all the positions with * config=408 *#import hm import hm.entities as ent model = hm.Model() pos1_collection = hm.Collection(model, ent.Position, "config=407") pos2_collection = hm.Collection(model, ent.Position, "config=408") model.removeposition(collection1=pos1_collection, collection2=pos2_collection)