Rotation (hwx.inspire)#
- class Rotation(location, direction, velocity=0, acceleration=0, **kwds)#
Bases:
BoundaryCondition
Global rotation velocity and acceleration of the model.
Angular velocity defines the speed of rotation of the entire model and the axis about which it rotates. Angular acceleration is the rate of change of the model’s angular velocity.
# Name
Type
property
Example
from hwx import inspire model = inspire.newModel() cylinder = model.createSolidCylinder(radius=1,height=6) rotation = inspire.Rotation( location=(0, 0, 0), direction=(0, 0, 1), velocity='15.0 rpm', acceleration='1.0 rad/s2', loadCase='current' ) print("Some Rotation values:") print("Rotation Velocity: " + str(rotation.velocity)) print("Rotation Acceleration: " + str(rotation.acceleration)) # modify some rotation attributes rotation.velocity = '0.10471 rad/s' rotation.acceleration = '10 rad/ms2' rotation.velocityEnabled = False inspire.orientView(direction="bottom") inspire.fitView() print("") print("Rotation values after modification:") print("Rotation Velocity: " + str(rotation.velocity)) print("Rotation Acceleration: " + str(rotation.acceleration))
- property velocity#
The angular velocity.
The angular velocity defines the speed of rotation of the entire model and the axis about which it rotates.
- property acceleration#
The angular acceleration.
The angular acceleration is the rate of change of the model’s angular velocity.
- property velocityEnabled#
Sets the state of angular velocity
- property accelerationEnabled#
Sets the state of angular acceleration
- property direction#
The axis of rotation.