Model.hm_plotloads_bycollection#
- Model.hm_plotloads_bycollection(collection, dataname, plottype)#
Plots engineering loads with various options, by providing a collection.
- Parameters:
collection (Collection) – The collection containing the load entities requested for plotting.
dataname (hwString) – The data name of the load entity to plot. The
dataname="magnitude"is a special data name where even if magnitude is not explicitly available, it is computed on-the-fly.plottype (int) –
The requested plot type. A validation is performed for the selected loads to ensure they are valid for the specified plot type (e.g. a vector plot is not valid for temperature, but is for pressure). Valid values are:
0 - Clear all graphics (default if not specified)
1 - Vector plot
2 - Interactive scalar plot
3 - Static scalar plot
Example#
Create a vector plot for all force loads#import hm import hm.entities as ent model = hm.Model() load_force_collection = hm.Collection(model, ent.LoadForce) model.hm_plotloads_bycollection( collection=load_force_collection, dataname="magnitude", plottype=1 )