2025-03-20 11:06:27 +13:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Result of unparsing parametric.kcl
|
|
|
|
---
|
|
|
|
sigmaAllow = 35000 // psi
|
|
|
|
width = 9 // inch
|
|
|
|
p = 150 // Force on shelf - lbs
|
|
|
|
distance = 6 // inches
|
|
|
|
FOS = 2
|
|
|
|
|
|
|
|
leg1 = 5 // inches
|
|
|
|
leg2 = 8 // inches
|
|
|
|
thickness = sqrt(distance * p * FOS * 6 / sigmaAllow / width) // inches
|
2025-03-21 22:39:12 +13:00
|
|
|
bracket = startSketchOn(XY)
|
2025-04-25 16:01:35 -05:00
|
|
|
|> startProfile(at = [0, 0])
|
2025-03-20 11:06:27 +13:00
|
|
|
|> line(end = [0, leg1])
|
|
|
|
|> line(end = [leg2, 0])
|
|
|
|
|> line(end = [0, -thickness])
|
|
|
|
|> line(end = [-leg2 + thickness, 0])
|
|
|
|
|> line(end = [0, -leg1 + thickness])
|
|
|
|
|> close(%)
|
|
|
|
|> extrude(length = width)
|