Shaft dynamic in Simulink with standstill initial condition

1 view (last 30 days)
Hello, I want to make a simple shaft model in Simulink which calculates rotational speed with input and output powers, according to Newton's law:
(Pin-Pout)/(J*w)=wdot
So I built the following model:
My question is about a standstill initial condition which stops the simulation due to Inf value at integrator input. A successful trick was to start from a very small number rather than 0 (i.e. w0=1e-5) but I would like to know if there is any other solution in order to start from 0.
Many thanks, Alessandro

Answers (1)

Sebastian Castro
Sebastian Castro on 6 Nov 2015
Your workaround is a good way to get around it -- however, it makes it such that an initial condition of zero velocity will get you "stuck" in that position no matter how large your power is.
This is something you will have to deal with because your model uses power instead of torque. If you were supplying torque instead, you could directly integrate that using T = J*w.
Some other approaches you could try, depending on your problem:
  • Make sure that your shaft has an initial "idle speed", so you cannot have a speed less than a certain value.
  • Apply a small minimum power value at zero velocity. That is, instead of the zero-velocity case yielding zero power, it is able to push the shaft a little bit to get it started.
- Sebastian

Categories

Find more on Automotive Applications in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!