ModelicaStandardLibrary icon indicating copy to clipboard operation
ModelicaStandardLibrary copied to clipboard

Add 1d translational lever

Open tobolar opened this issue 11 months ago • 9 comments

This model is an equivalent to the rotational IdealGear

tobolar avatar Feb 19 '25 11:02 tobolar

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.

tobolar avatar Feb 19 '25 16:02 tobolar

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.

AHaumer avatar Feb 19 '25 19:02 AHaumer

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.

AHaumer avatar Feb 19 '25 20:02 AHaumer

Yes, physically this makes no sense.

I have to correct myself. An equivalent example is gearR2T - gearRotational - gearR2T, such as grafik

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.

tobolar avatar Feb 20 '25 09:02 tobolar

Should it be added to ModelicaTest.Translational.AllComponents?

IMO the functionality is fully covered with provided test case.

tobolar avatar Feb 20 '25 16:02 tobolar

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)?

AHaumer avatar Feb 20 '25 17:02 AHaumer

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.

tobolar avatar Feb 21 '25 11:02 tobolar

So, I have renamed the element, changed the icon and the example and adapted the documentation. Hope this make it more understandable.

tobolar avatar Feb 25 '25 12:02 tobolar

Fine with the renaming. Pls. add the optional support connector(s) and rerequest reviews.

AHaumer avatar May 23 '25 21:05 AHaumer