-
-
July 8, 2026 at 7:47 am
B10838033
SubscriberI am using Ansys Workbench Motion and need to define a force that dynamically updates based on a joint's rotational speed during the solution (e.g., the force increases as the speed increases).Could you please advise on:What is the exact Function Expression syntax to extract a joint's rotational speed in a specific direction (e.g., Z-axis)?How can I integrate this speed variable into a Force expression correctly?Any simple syntax examples would be highly appreciated.Best regards, -
August 21, 2026 at 2:21 pm
dlooman
SubscriberDoes the explanation below help?
How do you specify a joint moment as a function of rotational velocity in the Motion product?

In Ansys Motion you can apply a joint moment via a function expression, and this function can use a measure (such as the joint’s rotational velocity) as its input; you define the velocity measure for the joint, then assign it as the input of a torque (moment) function so that the applied torque becomes a user-defined function of that velocity.
1. Applying a joint moment using a function expression
- You can create a Joint Moment load and set its Moment to Function Expression, then select a torque expression (for example based on STEP or other functions) as the definition of the joint moment.
- In the Details of “Joint Moment”, the torque can be defined directly as a function expression (e.g. a step torque using STEP(TIME,…)), and this mechanism is the same place where you would use a velocity-based expression once the velocity is available as an input measure.
2. Getting joint rotational velocity as an input measure (command-based)
- The developer API provides a way to obtain the joint velocity: a joint is first found using CS_Joint.Find(_jid), and then its velocity measure is obtained with joint.GetVelocity().
- That velocity measure can then be assigned as the input measure of a load (actuator) using load.SetInputMeasure(vel); this is how you connect the joint’s rotational velocity to the function driving the torque.
- You can create a Joint Moment load and set its Moment to Function Expression, then select a torque expression (for example based on STEP or other functions) as the definition of the joint moment.
-
Viewing 1 reply thread
- 必須登入。
Innovation Space
Trending discussions
Top Contributors
-
6880
-
1906
-
1544
-
1344
-
1217
Top Rated Tags
© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.