Model.applyresults#
- Model.applyresults(collection, scale, component)#
Modifies node coordinates by applying displacements from a
.resfile. Requires the result data to be loaded via the deprecated HyperMesh post-processing infrastructure.- Parameters:
collection (Collection) – The collection containing the entities to apply the results to.
scale (double) – The scale factor to use for the displacements.
component (hwString) –
The string that identifies the component to use for the displacements. Valid values are:
total disp
x comp
y comp
z comp
Example#
Apply displacement results from Subcase 1 in the.resfilemodel.resuse component total disp to all displayed nodes#import hm import hm.entities as ent model = hm.Model() # Applying displacement to all displayed nodes model.applyresults( collection=hm.CollectionByDisplayed(model, ent.Node), scale=1.0, component="total disp", )