Model.applyresultsasloads#
- Model.applyresultsasloads(collection, multiplier, datatype, loadtype, loadcomp)#
Create loads at an entity’s nodes based on a models result information. Requires the result data to be loaded via the deprecated HyperMesh post-processing infrastructure.
- Parameters:
collection (Collection) – The collection containing the entities with nodes.
multiplier (double) – The multiplier to apply to the result.
datatype (hwString) – The data type.
loadtype (hwString) –
The type of load to create.
For vector datatypes:
forces
moments
velocities
accels
For scalar datatypes:
temp temp
flux flux
loadcomp (hwString) –
The load component. The value is only used for vector data types; it should be set to 0 for scalar data types. It may be specified as one of the following:
For vector datatypes:
total
comp1 comp1
comp2 comp2
comp3 comp3
For scalar datatypes:
0
Example#
Apply load results use Applied Forces from Subcase 1 in the.resfilemodel.resuse total component to all nodes#import hm import hm.entities as ent model = hm.Model() model.applyresultsasloads(collection=hm.Collection(model,ent.Node),multiplier=1.0,datatype="Applied Forces",loadtype="forces",loadcomp="total")