- Index
- » Users
- » bennhatton
- » Profile
Posts
Posts
Page Start Prev 1 Next End
Rheological models are usually build using three (or four) basics elements, which are :
- The spring (existing in Modelica.Mechanics.Translational.Components for example). Its equation is f = c * (s_rel - s_rel0);
- The damper (dashpot) (also existing in Modelica.Mechanics.Translational.Components). Its equation is f = d * v_rel; for a linear damper, an could be easily modified to model a non-linear damper : f = d * v_rel^(1/n);
- The slider, not existing (as far as I know) in this library... It's equation is abs(f)<= flim. Unfortunately, I don't really understand how I could write the corresponding Modelica model...
I think this model should extend Modelica.Mechanics.Translational.Interfaces.PartialCompliant, but the problem is that f (the force measured between flange_b and flange_a) should be modified only when it's greater than flim... If the slider extends PartialCompliant, it means that it already follows the equations flange_b.f = f; and flange_a.f = -f;
Adding the equation f = if abs(f)>flim then sign(f)*flim else f; gives me an error "An independent subset of the model has imbalanced number of equations and variables", which I couldn't really explain, even if I understand that if abs(f)<=flim, the equation f = f is useless...
Actually, the slider element doesn't generate a new force (just like the spring does, depending on its strain, or just like the damper does, depending on its strain rate). The force is an input for the slider element, which is sometime modified (when this force becomes greater than the limit allowed by the element). That's why I don't really understand if I should define this force as an input or an output....
If you have any suggestion, I would greatly appreciate it ! Thanks
Hi,
I encountered the same problem with the 'MyPendulum3D example' using OpenModelica 1.7.0.
Using the OpenModelica 1.8.0 beta 3, I get a different error message : Class SimpleVisual.PositionSize not found in scope MyPendulum3D
Does anyone have more information about this ?
Thanks a lot
Benjamin
Page Start Prev 1 Next End
- Index
- » Users
- » bennhatton
- » Profile