フィルターのクリア

Problem with custom simscape component "Gear shift drum"

3 ビュー (過去 30 日間)
Kerem
Kerem 2023 年 3 月 29 日
Hello, i am trying to model a "gear shift drum" using a custom component/block in simscape that looks like this:
The shift drum angle(deg) to fork movement(mm) graph (the orange line is the one used in my model):
But i have run into some problems. I used the following simscape code to model this mechanism:
The simulink file i used to test to model like this:
In the model there are two groups of blocks one is commented out the other isn't. The non-commented out part works and runs well and produces the results i want but the commented out part where the gear shift drum is connected to a synchronizer doesn't work, it will not run and
instead produces the following error:
--------------------------------------------------------------------------------------------------
=== Simulation (Elapsed: 3 sec) ===
Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
['matlab_ask/Motor1/Solver Configuration3']: Initial conditions solve failed to converge.
Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.
all components and nodal across variables involved
Cannot solve for one or more variables, including dynamic variable derivatives:
Time derivative of 'P1.x' (Position)
Time derivative of 'Sensors1.Ideal_Translational_Motion_Sensor.x' (Position)
Time derivative of 'fork_2orange1.x' (Position translational)
'P1.R.v' (Velocity)
'P1.v' (Velocity)
'Sensors1.C.v' (Velocity)
'Sensors1.Ideal_Force_Sensor.C.v' (Velocity)
'Sensors1.Ideal_Force_Sensor.R.v' (Velocity)
'Sensors1.Ideal_Translational_Motion_Sensor.R.v' (Velocity)
'Sensors1.Ideal_Translational_Motion_Sensor.V' (V)
'Sensors1.Ideal_Translational_Motion_Sensor_V' (Ideal_Translational_Motion_Sensor_V)
'Sensors1.R.v' (Velocity)
'fork_2orange1.P.v' (Velocity)
Problems possible for transient initialization, as well as stepsize control for transient solve, due to equations (including nonlinear equations) of one or more components:
all components involved
'matlab_ask/fork 2(orange)1'
Equation locations are:
'C:\Users\z0163568\Desktop\Polaris\shift_drum_ssc.ssc' (line 28)
'C:\Users\z0163568\Desktop\Polaris\shift_drum_ssc.ssc' (line 27)
--------------------------------------------------------------------------------------------------
Perhaps the differential equations i wrote in the code are incorrect? But if that was the case then why is it running
perfectly without the synchronizer? I find this error very strange please help me fix it, thank you.
I attached the model and data to this post so you can run it yourself.

回答 (0 件)

カテゴリ

Help Center および File ExchangeCustomization についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by