* Automatic fixing of deprecations and use non-quoted default planes by default Signed-off-by: Nick Cameron <nrc@ncameron.org> * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
23 lines
583 B
Plaintext
23 lines
583 B
Plaintext
---
|
|
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
|
|
bracket = startSketchOn(XY)
|
|
|> startProfileAt([0, 0], %)
|
|
|> 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)
|