Simscape: Create unidirectional Locking mechanism component

4 views (last 30 days)
Hello,
I am using Simulink (Simscape foundation library) to simulate a physical mechanism: it's an electric motor connected to some gears, inertias, wheel&axle mechanisms, masses and hard stops. I've not been able to create a component with the simscape library, that transmits torque in one direction, but locks the mechanism in the other direction and I really need it. The company I am actually at can only afford the Simscape foundation library.
Can anybody help me with a few hints or show me a similar problem?
Best wishes,
fred

Answers (2)

Guy Rouleau
Guy Rouleau on 26 Mar 2013
You will not be able to implement a pure lock. Using Simscape language, you could write an ssc-file to "lock" by enabling a stiff spring damper when you want the system to be locked. I would use Hard-stop source file as a starting point.
In SimDriveline, the clutch could allow you to implement a perfect locking.

fred
fred on 27 Mar 2013
Edited: fred on 27 Mar 2013
Thank you for your answer.
I think I understand what you mean, but how to implement a physical model changing its layout (shaft connected& no dissipation, no connection between in and out & 100% dissipation) in an iteration?
I am quite familiar with the HardStop source file but the trouble with my desired component is that I want to affect a value to the torque output by comparing the input and output torque that are at the block's frontier:
if T_out > T_in
T_out == -T_out (*)
T_in == -T_in (*)
else
T_out == T_in
(*):Sum of torques on first and second node have to be 0.

Categories

Find more on Creating Custom Components and Libraries in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!