Add 1d translational lever
somehow I don't understand your example
Yes, physically this makes no sense. For more "reality" look, there could be e.g. a gravity force. But to show the component's functionality, the example is IMO sufficient.
Yes, physically this makes no sense. Please provide an example that is not misleading and that makes sense. How should newbies undestand how to use that component? You could use that example in ModelicaTest, but not in MSL. Maybe such a senseless usage should be prevented in the component.
Additionally, this is not a purely 1d translational movement, it always includes a rotation around the pivot. I'm not sure whether this component should be part of MSL, especially without a meaningful demo/example.
Yes, physically this makes no sense.
I have to correct myself. An equivalent example is gearR2T - gearRotational - gearR2T, such as
So this is indeed a realistic example.
Additionally, this is not a purely 1d translational movement, it always includes a rotation around the pivot.
Probably it is rather the icon which is misleading as it makes an impression a rotational component being involved as the lever's pivot. But it is not. Thinking about the pure 1d translational movement of the two flanges/ends of a real lever, the rotational movement plays no role: ratio = flange_a.s/flange_b.s = y1/y2 = r1 * sin(phi) / r2 * sin(phi) = r1/r2
Maybe I could change the icon to something like the picture above and get off the idea of a lever.
Should it be added to
ModelicaTest.Translational.AllComponents?
IMO the functionality is fully covered with provided test case.
Nice example with gearR2T + rotationalGear + gearR2T. Both toothed racks slide with respect to the rotational gear until the maximum length of the racks is reached. I understand that your component replaces the mentioned combination. But why a new component? Why not use the mentioned combination?
If you want to model a real lever: How would such a lever look in reality? A lever always has limited motion. Could you provide a (rough) sketch to convince me (and other users)?
But why a new component? Why not use the mentioned combination?
IMO this is an equivalent to rotational gear and, thus, a base element missing so far. Moreover, as I can recognize, the MSL is not just a collection of basic elements. is it?
If you want to model a real lever:
No, I don't. This is an ideal lever (or however called) for simple "scaling" of a translational movement.
So, I have renamed the element, changed the icon and the example and adapted the documentation. Hope this make it more understandable.
Fine with the renaming. Pls. add the optional support connector(s) and rerequest reviews.