Update main.kcl (#5989)

* Update main.kcl

Improving parameter naming in I beam

* Update kcl-samples simulation test output

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Josh Gomez <114548659+jgomez720@users.noreply.github.com>
This commit is contained in:
Nicholas Boone
2025-03-25 16:36:53 -07:00
committed by GitHub
parent 58861cd24a
commit a15565682d
9 changed files with 476 additions and 187 deletions

View File

@ -1,21 +1,24 @@
// I-beam
// A structural metal beam with an I shaped cross section. Often used in construction
// A structural metal beam with an I shaped cross section. Often used in construction and architecture
// Set Units
@settings(defaultLengthUnit = in)
//Define Beam Dimensions
beamLength = 24
beamWidth = 2.663
// Define Beam Dimensions
beamLength = 6*ft()
beamHeight = 4
wallThickness = 0.293
flangeWidth = 2.663
flangeThickness = 0.293
webThickness = 0.193
rootRadius = 0.457
// Sketch a quadrant of the beam cross section, then mirror for symmetry across each axis. Extrude to the appropriate length
sketch001 = startSketchOn('-XZ')
|> startProfileAt([0, beamHeight/2], %)
|> xLine(length = beamWidth/2)
|> yLine(length = -wallThickness)
|> xLine(endAbsolute = wallThickness/2)
sketch001 = startSketchOn(-XZ)
|> startProfileAt([0, beamHeight / 2], %)
|> xLine(length = flangeWidth / 2)
|> yLine(length = -flangeThickness)
|> xLine(endAbsolute = webThickness / 2 + rootRadius)
|> tangentialArc({ radius = rootRadius, offset = 90 }, %)
|> yLine(endAbsolute = 0)
|> mirror2d({ axis = 'X' }, %)
|> mirror2d({ axis = 'Y' }, %)

View File

@ -158,7 +158,7 @@
"pathFromProjectDirectoryToFirstFile": "i-beam/main.kcl",
"multipleFiles": false,
"title": "I-beam",
"description": "A structural metal beam with an I shaped cross section. Often used in construction"
"description": "A structural metal beam with an I shaped cross section. Often used in construction and architecture"
},
{
"file": "main.kcl",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 23 KiB