Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Reset Integrator ODE

Gerhard Edmound Stebner

Please login with a confirmed email address before reporting spam

Hi community,

I'm having a problem and need some creative ideas. I switched from rotating machineries to linear actuators. Now my problem is the ODE for the definition of the movement. I use to make a transient analysis:


v: vt[m/s^2]-Fres/m[kg]
Position: Position t -v * (Position<Anker_MaxHub)*(Position>-Anker_MaxHub)

v - velocity
vt - acceleration
Fres - Resulting Force
Anker_MaxHub - is the maximum allowed displacement in one direction.



Everything is o.k. apart from the velocity. I use the expression



(Position<Anker_MaxHub)*(Position>-Anker_MaxHub)



to stop the movement of the actuator when reaching the upper and lower position. When the variable 'Position' isnt within the defined band the change of the position ist multiplied with zero.
My Problem is the velocity. If the actuator reaches the upper or lower position where it cant move on the velocity is still rising as the acceleration is integrated. I need to reset the velocities at that positions to zero. The Matlab Simulink Block "Integrator" has a reset port. I need something similar for COMSOL Multiphysics.

Any ideas?

0 Replies Last Post Mar 15, 2012, 4:24 a.m. EDT
COMSOL Moderator

Hello Gerhard Edmound Stebner

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.