Help calculating piston rod angle - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: General (https://forums.ldraw.org/forum-12.html) +--- Forum: Help (https://forums.ldraw.org/forum-13.html) +--- Thread: Help calculating piston rod angle (/thread-23686.html) |
Help calculating piston rod angle - N. W. Perry - 2019-09-26 I can't quite figure out how to calculate the angle and vertical distance of a piston rod on a rotated crankshaft, specifically using LDCad's Selection Info tool. Here's a diagram: So the crankshaft has been rotated -49.5 degrees. The piston rod (A-B) will move up the Y-axis, but I don't know that distance (it's slightly less than the current Y distance between A and C). Also, point B will remain at its current X position but point A will rotate around point B to connect with the axle at point C. The angle of that rotation is the second thing I don't know. No doubt this has been tackled many times before, but I'd like to know the precise way to figure it out (rather than downloading an already finished model). It's either slightly more difficult, or vastly simpler than I realize. (And I do know about the piston placement script in LDCad, but AFAIK it doesn't recognize these old-style piston parts or brick-built cylinders.) Again, the two values I need to find are:
RE: Help calculating piston rod angle - David Manley - 2019-09-26 (2019-09-26, 3:59)N. W. Perry Wrote: I can't quite figure out how to calculate the angle and vertical distance of a piston rod on a rotated crankshaft, specifically using LDCad's Selection Info tool. Here's a diagram: There is a feature in LDCad which may help you do this automatically. See the following image: If you select the three points you are interested in, then right mouse click a part, the "Selection" menu pops up. At the bottom of the menu, there is a menu item "Selection info". Click it and a number of options are shown. For example, to get the angles shown in my diagram, I have "Show Info" set to yes, "Show distance" set to no and "Show angles" set to yes. Try this and see if you can get the information you are looking for. Regards, David RE: Help calculating piston rod angle - N. W. Perry - 2019-09-26 (2019-09-26, 7:34)David Manley Wrote: There is a feature in LDCad which may help you do this automatically. See the following image: Yep, that's the same selection info tool I mentioned. Trouble is, I can't figure out quite how to use its features to get the precise measurements I need, because I don't yet have all three of the points I'm interested in. Looking at my diagram, I can't just take the angle of ABC, because A and B will have moved up the Y axis to a new position, which I don't know. So the angle I need is A'B'C, and first I need to find A' (and by extension, B'). Alternatively, if I knew the angle, I could get the new Y position perfectly easily by using part snapping. RE: Help calculating piston rod angle - Philippe Hurbain - 2019-09-26 (2019-09-26, 13:20)N. W. Perry Wrote: Yep, that's the same selection info tool I mentioned. Trouble is, I can't figure out quite how to use its features to get the precise measurements I need, because I don't yet have all three of the points I'm interested in. Looking at my diagram, I can't just take the angle of ABC, because A and B will have moved up the Y axis to a new position, which I don't know. So the angle I need is A'B'C, and first I need to find A' (and by extension, B').Yes, you need to do a bit of trigonometry here... We want to turn the piston arm so that its tip is at the distance between red pin and initial axis of arm (vertical here). Since I put the gear on the origin, this distance is directly pin X coordinates (13.856), but you can also derive it in the general case from LDCad measurements as sin(16.10°)*49.96. Note that the blue parts are just helpers parts to get the right measurements points. Once we get this value, we calculate piston arm rotation angle as arcsin(13.856/60)=13.35°. Rotate the arm by this value and use snapping on red pin to correctly position the pistion arm... RE: Help calculating piston rod angle - Roland Melkert - 2019-09-26 (2019-09-26, 14:09)Philippe Hurbain Wrote: Yes, you need to do a bit of trigonometry here...Philo is right, you can't use the tool directly because you would need to know the final coordinates for a,b and c to get to an angle you don't need anymore in that situation. I would solve it like so (almost identical to Philo's solution but without the use of the tool): -take the x distance between a and c -> lx -take the piston length (b-a=60) -> lp -cos(cc)=lx/lp -snap the piston using a to c -rotate the piston over c using angle a 90-cc angle -snap the piston head to b RE: Help calculating piston rod angle - N. W. Perry - 2019-09-27 (2019-09-26, 14:09)Philippe Hurbain Wrote: Yes, you need to do a bit of trigonometry here... Ah, yes, that's what I was afraid of: the 't' word would come into play! OK, so, since I have to do this again a few times, let me try putting this into a sequence that makes sense to me:
(angle B) [sin] * (distance B-C) / 60 = [sin-1] = How'd I do? RE: Help calculating piston rod angle - Philippe Hurbain - 2019-09-27 (2019-09-27, 5:44)N. W. Perry Wrote: (angle B) [sin] * (distance B-C) / 60 = [sin-1] =Yes, you got the key sequence right RE: Help calculating piston rod angle - Philippe Hurbain - 2019-09-27 (2019-09-26, 19:25)Roland Melkert Wrote: -take the x distance between a and c -> lxLooks simpler, but ...I can't make to work? RE: Help calculating piston rod angle - N. W. Perry - 2019-09-27 (2019-09-27, 6:48)Philippe Hurbain Wrote: Yes, you got the key sequence right Thanks for the tip! I gave myself a quick refresher on trigonometric functions, so hopefully I can figure out how to solve similar problems in the future. RE: Help calculating piston rod angle - Roland Melkert - 2019-09-27 (2019-09-27, 7:13)Philippe Hurbain Wrote: Looks simpler, but ...I can't make to work?Should work 90-acos(13.856/60) 90-76,648 13.352 degrees you could use asin instead of 90-acos, as the angle for the related corner is the same (hence the 90-cc), just thought it would be more clear using cos as that is piston length orientated. |