ConcentratedMass (hwx.inspire)#
- class ConcentratedMass(parent=None, associatedFeatures=None, **kwds)#
Bases:
Part
ConcentratedMass creates a mass only object either on a part or at a point in space.
Concentrated Masses are useful when you need to account for the mass of a part but you do not want the complexity of the geometry to slow down the run. An example would be when running an optimization using frequency constraints or when analyzing for normal modes. When gravity is applied during optimization or analysis, the mass will impart a load on the structure.
# Name
Type
associatedFeatures
# Name
Description
addAssociatedFeatures
(self, features)Add the association with provided features.
removeAssociatedFeatures
(self, features)Remove the association with provided features.
Example
from hwx import inspire model = inspire.newModel() part = inspire.ConcentratedMass(mass=0.5, location=(1, 1, 1)) print("Part mass is: " + str(part.mass)) print("Part location is: " + str(part.location)) print("Part center of gravity is: " + str(part.cg)) print("Part has " + str(len(part.features)) + " features") print("Feature is: " + str(part.features[0])) part.mass = 1 part.location = (2, 2, 2) print("Part mass is: " + str(part.mass)) print("Part location is: " + str(part.location)) print("Part center of gravity is: " + str(part.cg)) inspire.fitView()
- property connectionRadius#
The search radius for the Concentrated Mass.