![]() ![]() attached annotation(Placement(visible = true, transformation(origin =, rotation = -90))) į = if attached then c * (s_rel - s_rel0) else 0 Parameter SI.Distance s_rel0 = 0 "unstretched spring length" Parameter SI.TranslationalSpringConstant c(final min = 0, start = 1) "spring constant " The detachable spring is coded: model DetachableSpringĮxtends .PartialCompliant By editing a spring component, you can make the spring "give up" and apply no force when a boolean variable changes. The way to model a detaching mass is as a lineforce combined with a stiff spring representing the rigid translation. ![]() You can extract the equations of motion of the system from SystemModeler to Mathematica and find the steady state solution on your own by setting all the derivatives to zero. I would try the same system without the Multibody components - that will likely initialize and you can use those settings to initialize the Multibody simulation. I suppose you can simulate to steady state and manually copy the steady state but I guess this will be problematic because you can't get the numbers exact so your system will not be consistent. I suspect a bug or incompatibility with the Multibody model? Why does Kinsol fail when I put damping in and get it to reach steady state? Some other IdeasĪlternatively, you can simulate the model to steady state yourself (if you add damping) and do initialize from Experiment, but this also does not seem to work with this model. Maybe Naik has some insight on how to make initialization work with this model.ĭoes the steady state initialization work on models without damping? Without damping there is a steady state but with any offset, the model will never get there. BUT, even trying this, I get errors from Kinsol (the kinematic solver) so I am not sure what the problem is. ![]() You need to damp the pendulum effect to get the model to settle out. But even making the spring damped, the model takes a REALLY long time to settle (like never). One possibility is that you need to add some damping to the model so it eventually simulates to steady state. You certainly would need to replace the detachable spring with a regular one. There is an option in Simulation Center under Tools>initialize>To Steady State but I could not get it to work for this model. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |