Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

How do gear mates work?

onshaperonshaper Member, Mentor Posts: 94 ✭✭✭
edited April 2015 in Community Support
Hi all,

I've been trying to implement a gear mate to connect the crank pulley to the timing pulley, but I can't get it to work.

Also, is there a way to reset part orientation in an assembly? I drew everything correct but I haven't been able to line it up after I dragged the pulley to see if the gear mate was working.

Thanks
Luke

https://cad.onshape.com/documents/fab7f27232d3460081425531/w/0f689583090f433b8719c49b

Best Answer

Answers

  • andrew_troupandrew_troup Member, Mentor Posts: 1,584 ✭✭✭✭✭
    edited April 2015
    @Onshaper  You first need to add revolute mates to each of the pulleys, then the gear mate requires picking those.
    The orientation of the part will be determined by the orientations of the connectors.
    (ON EDIT: I got that last statement wrong: that's true in the general case but NOT in the case of gear, or rack and pinion mates, which are "mates of mates", not mates of connectors.
    The linked clip does explain the synchronisation process nicely)

    Here's a clip explaining how it all works:
    https://www.onshape.com/videos/whats-new-gear-mates

    Good luck!
  • onshaperonshaper Member, Mentor Posts: 94 ✭✭✭
    Hi Andrew,

    Here's where I got lost. One of my gears is fixed to a shaft which is on a cylindrical mate. Seems reasonable. I have it as a cylinder mate because that way the model is more robust.

    In the end, I had to delete the cylinder mate and replace it with an offset revolute. While it does work, a change in one of many dimensions will lock up the mate solver.
  • philip_thomasphilip_thomas Member, Moderator, Onshape Employees, Developers Posts: 1,381
    Guys - I am glad someone posted the video. I cannot emphasize the importance of 'resetting' the mates before you add the gear relation. It will drive you nuts if you dont. The reason is that when you apply the gear mate, the first thing it does is reset the mates. If the teeth dont mesh to begin with (in the reset state), it will not work. Tip, get the teeth to mesh first by editing the one of the mate connectors in one of the revolute mates. Once you understand whats going on, this gets a lot easier.
    Philip Thomas - Onshape
  • andrew_troupandrew_troup Member, Mentor Posts: 1,584 ✭✭✭✭✭
    @Onshaper Ideally, the selection of mates is governed by the degrees of freedom each part would need to have in real life. Unless you have encountered a bug, it should not be the case that you have to select an unrealistic mate type, with extra degrees of freedom (which the cylindrical mate has - it permits axial translation as well as the rotation you would normally expect to be appropriate to a gear)

    If you need your gear to slide (say along a splined shaft) then you cannot use a gear mate, unless you use a workaround. For example, you could model a dummy disc (hidden in the assembly) to act as an intermediary. I'm thinking this disc could have the necessary revolute mate to the mating gear, and a slider mate to your sliding gear. You could then create a gear mate between the mating gear (provided it used a revolute mate) and the dummy disc.
  • andrew_troupandrew_troup Member, Mentor Posts: 1,584 ✭✭✭✭✭
    edited April 2015
    @Onshaper
    Without seeing your model it's hard to know why your mate solver is locking up; unless it's a bug (it probably isn't) then you must have overconstrained the assembly with your mate scheme.

    Check that you have not removed the same degree of freedom with several mates, for instance.
  • onshaperonshaper Member, Mentor Posts: 94 ✭✭✭
    edited April 2015
    Hi, perhaps I can be more specific.

    First of all, a link to my file is in my original post! You can see the working model there.

    The axial translation of the crankshaft is constrained by the cylindrical mate used on the piston and all other mates in between. I ORIGINALLY chose to use a cylindrical mate on my crankshaft>crankcase because that would allow for the whole assembly to automatically center itself making for a robust assembly. It worked well.

    The problem WAS that I cannot use a cylindrical mate in a gear relationship. It appears to only work with revolute and slider. I see this as an area where gear relationship falls short. :smile: 

    Is it because gear relationship can only handle 1 DOF? Seems to me that "gear" should work fine with any two mates that have only 1 rotational DOF.

    By changing the mate to a revolute, I have lost some robustness in my assembly, but the gear assembly works! A trade off.

    Thanks for the good discussion!


  • andrew_troupandrew_troup Member, Mentor Posts: 1,584 ✭✭✭✭✭
    @Onshaper
    Sorry about my selective blindness. When I got to the signature of your original post, I thought everything below it was none of my business :-)

    It seems to me that you might have picked the way you modelled the assembly in an unrealistic way:
    A real engine does not use the piston's inability to walk sideways to control the end-float of the crankshaft!

    But you could choose to get similar convenience, plus what I would call (from a solid modelling perspective) robustness, if you modelled the crankshaft big-end journal midplane so that it was constrained to lie on the same construction plane as the midplane of the piston, regardless of changes to the lengthwise dimensions of the crankshaft.

    Then you would not require a cylindrical mate for the crankshaft (I presume).  You seem to be exploiting that extra degree of freedom 
    for expediency (the sworn enemy of true robustness in a solid model), rather than to portray the real assembly motion which would happen in a real engine. 

    When I get time, I'll look at your model, (I'll grab a copy now so you can carry on changing it if you want) but I hope I at least gave you some things to think about.
  • onshaperonshaper Member, Mentor Posts: 94 ✭✭✭
    Makes sense, thanks Andrew!
  • jon_woellhafjon_woellhaf Member Posts: 92 ✭✭✭
    @Onshaper  You first need to add revolute mates to each of the pulleys, then the gear mate requires picking those.
    The orientation of the part will be determined by the orientations of the connectors.
    (ON EDIT: I got that last statement wrong: that's true in the general case but NOT in the case of gear, or rack and pinion mates, which are "mates of mates", not mates of connectors.
    The linked clip does explain the synchronisation process nicely)

    Here's a clip explaining how it all works:
    https://www.onshape.com/videos/whats-new-gear-mates

    Good luck!
    Just what I want to see, but the video has been removed! :(
  • brucebartlettbrucebartlett Member, OS Professional, Mentor, User Group Leader Posts: 2,141 PRO
    Engineer ı Product Designer ı Onshape Consulting Partner
    Twitter: @onshapetricks  & @babart1977   
  • jon_woellhafjon_woellhaf Member Posts: 92 ✭✭✭
    Excellent! Just what I needed, Bruce. I didn't think to expand the revolute so I couldn't find the control.
Sign In or Register to comment.