EnforcedDisplacement (hwx.inspire)#
- class EnforcedDisplacement(features, location=None, direction=None, magnitude=0.001, name='', isRemote=False, **kwds)#
Bases:
BoundaryCondition
Create enforced displacement on supplied features.
# Name
Type
# Name
Description
updatePosition
(self, m44)Update the position by multiplying input M44 matrix.
Example
from hwx import inspire model = inspire.newModel() sheet = model.createSheetRectangle() planarFeature = sheet.features[8] enforcedDisp = inspire.EnforcedDisplacement( planarFeature, location=[1.0, 1.0, 1.0], magnitude=0.001, loadCase='current' ) # show some properties print("Some Displacement Contraint properties:") print("Location: " + str(enforcedDisp.location)) print("Direction: " + str(enforcedDisp.direction)) print(type(planarFeature).__name__ + " belongs to: " + str(planarFeature.part)) # modify some properties enforcedDisp.location = planarFeature.location enforcedDisp.direction = [0.0, 0.0, -1.0] inspire.orientView(direction="front") inspire.fitView() # show modified properties print("") print("Displacement Contraint properties after modification:") print("Location: " + str(enforcedDisp.location)) print("Direction: " + str(enforcedDisp.direction))
- property magnitude#
The magnitude of displacement.
- property connectionType#
The type of the connection. Valid choices are:
Rigid
Flexible
- updatePosition(m44)#
Update the position by multiplying input M44 matrix.