{"app":"protojoint","version":1,"name":"Spoked wheel for a D shaft","units":"mm","nextId":9,"rollTo":null,"analysis":{"load":{"equip":2000,"dist":"top","dyn":1.5,"extra":0,"lat":0,"selfw":true,"sup":"pin"},"mat":{"E":69000,"fy":240,"sf":2.5,"dlim":360,"K":1,"conn":"ic2"},"supports":[],"loads":[]},"components":[{"id":0,"name":"Root","T":{"p":[0,0,0],"q":[0,0,0,1]},"hidden":false,"material":{"name":"PLA","density":1240}}],"activeComp":0,"hidden":[],"joints":[],"links":[],"params":[{"name":"wheelDiameter","unit":"mm","expr":"60","comment":"Wheel diameter"},{"name":"wheelWidth","unit":"mm","expr":"12","comment":"Wheel width"},{"name":"spokes","unit":"","expr":"6","comment":"Number of spokes"},{"name":"spokeWidth","unit":"mm","expr":"5","comment":"Spoke width"},{"name":"webThickness","unit":"mm","expr":"4","comment":"Spoke thickness"},{"name":"rimThickness","unit":"mm","expr":"3","comment":"Rim thickness"},{"name":"hubDiameter","unit":"mm","expr":"14","comment":"Hub diameter"},{"name":"shaftDiameter","unit":"mm","expr":"5","comment":"Shaft diameter"},{"name":"shaftFlat","unit":"mm","expr":"4.5","comment":"Shaft across the flat"},{"name":"fit","unit":"mm","expr":"0.1","comment":"Bore clearance"},{"name":"oRingWidth","unit":"mm","expr":"3","comment":"Tyre groove width"},{"name":"oRingDepth","unit":"mm","expr":"1.5","comment":"Tyre groove depth"},{"name":"R","unit":"mm","expr":"wheelDiameter/2","comment":"wheel radius"},{"name":"Rin","unit":"mm","expr":"R - rimThickness","comment":"rim inner radius"},{"name":"hubUsed","unit":"mm","expr":"max(min(hubDiameter, 2*Rin - 8mm), shaftDiameter + 4mm)","comment":"hub diameter, kept 4 mm inside the rim and 2 mm round the shaft"},{"name":"Rh","unit":"mm","expr":"hubUsed/2","comment":"hub radius"},{"name":"m","unit":"mm","expr":"0.8mm","comment":"how far the windows stop short of the rim and the hub"},{"name":"Rwo","unit":"mm","expr":"Rin - m","comment":"window outer radius"},{"name":"Rwi","unit":"mm","expr":"Rh + m","comment":"window inner radius"},{"name":"wUsed","unit":"mm","expr":"min(spokeWidth, 1.5*Rwi*sin(180deg/spokes))","comment":"spoke width, kept narrow enough for a window between neighbours at the hub"},{"name":"webR","unit":"mm","expr":"R - rimThickness/2","comment":"web edge, inside the rim"},{"name":"webUsed","unit":"mm","expr":"min(webThickness, wheelWidth)","comment":"spoke web thickness, at most the wheel width"},{"name":"gwUsed","unit":"mm","expr":"min(oRingWidth, wheelWidth - 2mm)","comment":"tyre groove width, 1 mm of rim either side"},{"name":"gdUsed","unit":"mm","expr":"min(oRingDepth, rimThickness - 0.8mm)","comment":"tyre groove depth, 0.8 mm of rim under it"},{"name":"flatUsed","unit":"mm","expr":"min(max(shaftFlat, 0.6*shaftDiameter), shaftDiameter - 0.3mm)","comment":"across the flat, between 60 % of the diameter and a little under it"},{"name":"flatX","unit":"mm","expr":"flatUsed - shaftDiameter/2 + fit/2","comment":"the flat, from the axis"}],"sections":[],"features":[{"id":1,"type":"sketch","name":"Rim and hub","visible":true,"comp":0,"plane":{"origin":[0,0,0],"x":[1,0,0],"y":[0,1,0],"name":"XY"},"faceRef":null,"planeRef":null,"nextEid":4,"nextCid":7,"entities":[{"cst":false,"t":"circle","c":[0,0],"r":30,"id":1},{"cst":false,"t":"circle","c":[0,0],"r":27,"id":2},{"cst":false,"t":"circle","c":[0,0],"r":7,"id":3}],"constraints":[{"t":"coincident","refs":[{"e":1,"k":"c"},{"e":"origin"}],"id":1},{"t":"coincident","refs":[{"e":2,"k":"c"},{"e":"origin"}],"id":2},{"t":"coincident","refs":[{"e":3,"k":"c"},{"e":"origin"}],"id":3},{"t":"diameter","refs":[{"e":1}],"val":60,"expr":"wheelDiameter","id":4,"name":"d1"},{"t":"diameter","refs":[{"e":2}],"val":54,"expr":"2*Rin","id":5,"name":"d2"},{"t":"diameter","refs":[{"e":3}],"val":14,"expr":"hubUsed","id":6,"name":"d3"}]},{"type":"extrude","name":"","sketch":1,"seeds":[[28.5,0],[0,0]],"start":"profile","startOffset":0,"startRef":null,"side":"one","symTotal":true,"extent":"dist","dist":12,"to":null,"op":"new","exclude":[],"suppressed":false,"lumps":"split","exprs":{"dist":"wheelWidth"},"id":2,"comp":0,"seedIds":[{"o":[1],"h":[2]},{"o":[3],"h":[]}]},{"id":3,"type":"sketch","name":"Spokes","visible":true,"comp":0,"plane":{"origin":[0,0,0],"x":[1,0,0],"y":[0,1,0],"name":"XY"},"faceRef":null,"planeRef":null,"nextEid":26,"nextCid":16,"entities":[{"cst":false,"t":"circle","c":[0,0],"r":28.5,"id":1},{"cst":false,"t":"line","a":[7.38850458482635,2.5],"b":[26.080452450063053,2.5],"id":2},{"cst":false,"t":"line","a":[5.859315801874272,5.148632666437416],"b":[15.205289734492627,21.336334363946705],"id":3},{"cst":false,"t":"arc","c":[0,0],"r":26.2,"a0":0.09556524261662311,"a1":0.9516323085799745,"id":4},{"cst":false,"t":"arc","c":[0,0],"r":7.8,"a0":0.32627081928529583,"a1":0.7209267319113017,"id":5},{"cst":false,"t":"line","a":[1.5291887829520796,7.648632666437416],"b":[10.875162715570433,23.836334363946705],"id":6},{"cst":false,"t":"arc","c":[0,0],"r":26.2,"a0":1.1427627938132208,"a1":1.9988298597765721,"id":7},{"cst":false,"t":"line","a":[-1.5291887829520774,7.6486326664374165],"b":[-10.875162715570422,23.836334363946712],"id":8},{"cst":false,"t":"arc","c":[0,0],"r":7.8,"a0":1.3734683704818935,"a1":1.7681242831078994,"id":9},{"cst":false,"t":"line","a":[-5.859315801874271,5.1486326664374165],"b":[-15.205289734492618,21.33633436394671],"id":10},{"cst":false,"t":"arc","c":[0,0],"r":26.2,"a0":2.189960345009818,"a1":3.0460274109731698,"id":11},{"cst":false,"t":"line","a":[-7.388504584826348,2.5000000000000027],"b":[-26.08045245006305,2.5000000000000107],"id":12},{"cst":false,"t":"arc","c":[0,0],"r":7.8,"a0":2.420665921678491,"a1":2.815321834304497,"id":13},{"cst":false,"t":"line","a":[-7.38850458482635,-2.499999999999999],"b":[-26.080452450063053,-2.499999999999997],"id":14},{"cst":false,"t":"arc","c":[0,0],"r":26.2,"a0":3.237157896206416,"a1":4.093224962169767,"id":15},{"cst":false,"t":"line","a":[-5.859315801874273,-5.148632666437415],"b":[-15.205289734492629,-21.3363343639467],"id":16},{"cst":false,"t":"arc","c":[0,0],"r":7.8,"a0":3.467863472875089,"a1":3.862519385501095,"id":17},{"cst":false,"t":"line","a":[-1.5291887829520818,-7.648632666437416],"b":[-10.875162715570443,-23.836334363946705],"id":18},{"cst":false,"t":"arc","c":[0,0],"r":26.2,"a0":4.284355447403014,"a1":5.1404225133663655,"id":19},{"cst":false,"t":"line","a":[1.5291887829520743,-7.648632666437417],"b":[10.875162715570413,-23.836334363946715],"id":20},{"cst":false,"t":"arc","c":[0,0],"r":7.8,"a0":4.515061024071686,"a1":4.909716936697692,"id":21},{"cst":false,"t":"line","a":[5.859315801874268,-5.148632666437421],"b":[15.205289734492606,-21.33633436394672],"id":22},{"cst":false,"t":"arc","c":[0,0],"r":26.2,"a0":5.331552998599611,"a1":6.187620064562963,"id":23},{"cst":false,"t":"line","a":[7.388504584826348,-2.5000000000000067],"b":[26.080452450063053,-2.500000000000025],"id":24},{"cst":false,"t":"arc","c":[0,0],"r":7.8,"a0":5.562258575268284,"a1":5.95691448789429,"id":25}],"constraints":[{"t":"coincident","refs":[{"e":1,"k":"c"},{"e":"origin"}],"id":1},{"t":"diameter","refs":[{"e":1}],"val":57,"expr":"2*webR","id":2,"name":"d4"},{"t":"horizontal","refs":[{"e":2}],"id":3},{"t":"vdist","refs":[{"e":"origin"},{"e":2,"k":"a"}],"val":2.5,"expr":"wUsed/2","sign":1,"id":4,"name":"d5"},{"t":"coincident","refs":[{"e":4,"k":"c"},{"e":"origin"}],"id":5},{"t":"coincident","refs":[{"e":5,"k":"c"},{"e":"origin"}],"id":6},{"t":"radius","refs":[{"e":4}],"val":26.2,"expr":"Rwo","id":7,"name":"d6"},{"t":"radius","refs":[{"e":5}],"val":7.8,"expr":"Rwi","id":8,"name":"d7"},{"t":"coincident","refs":[{"e":4,"k":"s"},{"e":2,"k":"b"}],"id":9},{"t":"coincident","refs":[{"e":5,"k":"s"},{"e":2,"k":"a"}],"id":10},{"t":"angle","refs":[{"e":"xaxis"},{"e":3}],"val":1.0471975511965976,"expr":"360deg/spokes","id":11,"name":"d8"},{"t":"pldist","refs":[{"e":"origin"},{"e":3}],"val":2.5,"expr":"wUsed/2","sign":1,"id":12,"name":"d9"},{"t":"coincident","refs":[{"e":4,"k":"e"},{"e":3,"k":"b"}],"id":13},{"t":"coincident","refs":[{"e":5,"k":"e"},{"e":3,"k":"a"}],"id":14},{"t":"pattern","kind":"circ","src":[2,4,3,5],"center":{"e":"origin"},"count":6,"circ":"full","angle":360,"exprs":{"count":"spokes"},"inst":[{"k":1,"ids":[6,7,8,9]},{"k":2,"ids":[10,11,12,13]},{"k":3,"ids":[14,15,16,17]},{"k":4,"ids":[18,19,20,21]},{"k":5,"ids":[22,23,24,25]}],"refs":[{"e":"origin"},{"e":2},{"e":4},{"e":3},{"e":5},{"e":6},{"e":7},{"e":8},{"e":9},{"e":10},{"e":11},{"e":12},{"e":13},{"e":14},{"e":15},{"e":16},{"e":17},{"e":18},{"e":19},{"e":20},{"e":21},{"e":22},{"e":23},{"e":24},{"e":25}],"id":15}]},{"type":"extrude","name":"","sketch":3,"seeds":[[0,0]],"start":"offset","startOffset":4,"startRef":null,"side":"one","symTotal":true,"extent":"dist","dist":4,"to":null,"op":"join","exclude":[],"suppressed":false,"lumps":"split","exprs":{"startOffset":"(wheelWidth - webUsed)/2","dist":"webUsed"},"id":4,"comp":0,"seedIds":[{"o":[1],"h":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}]},{"id":5,"type":"sketch","name":"D bore","visible":true,"comp":0,"plane":{"origin":[0,0,0],"x":[1,0,0],"y":[0,1,0],"name":"XY"},"faceRef":null,"planeRef":null,"nextEid":3,"nextCid":7,"entities":[{"cst":false,"t":"circle","c":[0,0],"r":2.55,"id":1},{"cst":false,"t":"line","a":[2.05,-5],"b":[2.05,5],"id":2}],"constraints":[{"t":"coincident","refs":[{"e":1,"k":"c"},{"e":"origin"}],"id":1},{"t":"diameter","refs":[{"e":1}],"val":5.1,"expr":"shaftDiameter + fit","id":2,"name":"d10"},{"t":"vertical","refs":[{"e":2}],"id":3},{"t":"hdist","refs":[{"e":"origin"},{"e":2,"k":"a"}],"val":2.05,"expr":"flatX","sign":1,"id":4,"name":"d11"},{"t":"vdist","refs":[{"e":2,"k":"a"},{"e":"origin"}],"val":5,"expr":"shaftDiameter","sign":1,"id":5,"name":"d12"},{"t":"vdist","refs":[{"e":"origin"},{"e":2,"k":"b"}],"val":5,"expr":"shaftDiameter","sign":1,"id":6,"name":"d13"}]},{"type":"extrude","name":"","sketch":5,"seeds":[[0,0]],"start":"profile","startOffset":0,"startRef":null,"side":"sym","symTotal":true,"extent":"dist","dist":36,"to":null,"op":"cut","exclude":[],"suppressed":false,"lumps":"split","exprs":{"dist":"3*wheelWidth"},"id":6,"comp":0,"seedIds":[{"o":[1,2],"h":[]}]},{"id":7,"type":"sketch","name":"Tyre groove","visible":true,"comp":0,"plane":{"origin":[0,0,0],"x":[1,0,0],"y":[0,0,1],"name":"XZ"},"faceRef":null,"planeRef":null,"nextEid":5,"nextCid":13,"entities":[{"cst":false,"t":"line","a":[28.5,4.5],"b":[31,4.5],"id":1},{"cst":false,"t":"line","a":[31,4.5],"b":[31,7.5],"id":2},{"cst":false,"t":"line","a":[31,7.5],"b":[28.5,7.5],"id":3},{"cst":false,"t":"line","a":[28.5,7.5],"b":[28.5,4.5],"id":4}],"constraints":[{"t":"coincident","refs":[{"e":1,"k":"b"},{"e":2,"k":"a"}],"id":1},{"t":"coincident","refs":[{"e":2,"k":"b"},{"e":3,"k":"a"}],"id":2},{"t":"coincident","refs":[{"e":3,"k":"b"},{"e":4,"k":"a"}],"id":3},{"t":"coincident","refs":[{"e":4,"k":"b"},{"e":1,"k":"a"}],"id":4},{"t":"horizontal","refs":[{"e":1}],"id":5},{"t":"vertical","refs":[{"e":2}],"id":6},{"t":"horizontal","refs":[{"e":3}],"id":7},{"t":"vertical","refs":[{"e":4}],"id":8},{"t":"hdist","refs":[{"e":"origin"},{"e":1,"k":"a"}],"val":28.5,"expr":"R - gdUsed","sign":1,"id":9,"name":"d14"},{"t":"vdist","refs":[{"e":"origin"},{"e":1,"k":"a"}],"val":4.5,"expr":"wheelWidth/2 - gwUsed/2","sign":1,"id":10,"name":"d15"},{"t":"hdist","refs":[{"e":"origin"},{"e":3,"k":"a"}],"val":31,"expr":"R + 1mm","sign":1,"id":11,"name":"d16"},{"t":"vdist","refs":[{"e":"origin"},{"e":3,"k":"a"}],"val":7.5,"expr":"wheelWidth/2 + gwUsed/2","sign":1,"id":12,"name":"d17"}]},{"type":"revolve","name":"","sketch":7,"seeds":[[29.25,6]],"axis":{"kind":"y","id":null},"side":"one","symTotal":true,"extent":"full","angle":360,"to":null,"op":"cut","exclude":[],"suppressed":false,"lumps":"split","id":8,"comp":0,"seedIds":[{"o":[1,2,3,4],"h":[]}]}]}
