Add load-determination worksheet for steel beam loads

This commit is contained in:
Smill 2026-11-30 22:08:58 -04:00
commit 09a6dba5ad
6 changed files with 1108 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

View file

@ -0,0 +1,82 @@
#let navy = rgb("#1a3a5f")
#let muted = rgb("#626b73")
#let pass = rgb("#1f6b45")
#let fail = rgb("#9b2c2c")
#let calcsheet(
title: "Structural Calculation",
project: "",
prepared-by: "",
body,
) = {
set document(title: title, author: prepared-by)
set page(
paper: "us-letter",
margin: (x: 1in, top: 1.25in, bottom: 1in),
header: context {
grid(
columns: (1fr, 1fr),
align: (left, right),
image("../assets/logo.png", height: 30pt),
[#text(size: 9pt)[Project:] \
#text(size: 10pt, weight: "bold")[#project]],
)
},
footer: context {
set text(size: 8.5pt, fill: muted)
stack(
spacing: 4pt,
line(length: 100%, stroke: 0.5pt + muted),
[#prepared-by],
)
},
)
set text(font: "Libertinus Serif", size: 10pt, lang: "en")
set par(justify: true)
set heading(numbering: none)
show heading.where(level: 1): set text(size: 14pt, weight: "bold", fill: black)
show heading.where(level: 2): set text(size: 11pt, weight: "bold", fill: black)
show heading.where(level: 2): set block(above: 2em, below: 1em)
body
}
#let calcline(formula, note) = grid(
columns: (1.7fr, 1fr),
gutter: 4pt,
align: (left, left),
formula, text(size: 9pt, fill: muted, note),
)
#let check(label, demand, capacity, unit: "", ok: auto) = {
let utilization = demand / capacity
let passes = if ok == auto { utilization <= 1 } else { ok }
let color = if passes { pass } else { fail }
block(
breakable: false,
width: 100%,
stroke: 0.8pt + black,
inset: 8pt,
radius: 2pt,
)[
#grid(
columns: (1fr, auto),
[#text(weight: "bold")[#label]],
box(stroke: 0.8pt + color, inset: (x: 6pt, y: 2pt))[
#text(weight: "bold", fill: color)[#if passes { "OK" } else { "NOT OK" }]
],
)
#v(4pt)
#grid(
columns: (1fr, auto),
[
Demand: #calc.round(demand, digits: 2) #unit #h(14pt)
Capacity: #calc.round(capacity, digits: 2) #unit
],
[
D/C: #calc.round(utilization, digits: 2)
],
)
]
}

View file

@ -0,0 +1,50 @@
<svg xmlns="http://www.w3.org/2000/svg" width="760" height="420" viewBox="0 0 760 420">
<defs>
<marker id="arrow" markerWidth="8" markerHeight="8" refX="4" refY="4" orient="auto">
<path d="M0,0 L8,4 L0,8 Z" fill="#1a3a5f"/>
</marker>
<pattern id="hatch" width="8" height="8" patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<line x1="0" y1="0" x2="0" y2="8" stroke="#9fb2c7" stroke-width="2"/>
</pattern>
</defs>
<rect width="760" height="420" fill="white"/>
<g stroke="#3d4650" stroke-width="3" fill="none">
<line x1="90" y1="60" x2="90" y2="360"/>
<line x1="300" y1="60" x2="300" y2="360"/>
<line x1="510" y1="60" x2="510" y2="360"/>
<line x1="720" y1="60" x2="720" y2="360"/>
<line x1="60" y1="90" x2="760" y2="90"/>
<line x1="60" y1="210" x2="760" y2="210"/>
<line x1="60" y1="330" x2="760" y2="330"/>
</g>
<rect x="300" y="90" width="210" height="120" fill="url(#hatch)" stroke="#1a3a5f" stroke-width="2" stroke-dasharray="8 6"/>
<rect x="300" y="210" width="210" height="120" fill="url(#hatch)" stroke="#1a3a5f" stroke-width="2" stroke-dasharray="8 6"/>
<rect x="386" y="195" width="38" height="30" fill="#111827"/>
<rect x="512" y="195" width="20" height="30" fill="#111827"/>
<rect x="378" y="183" width="54" height="6" fill="#4a5568"/>
<g fill="#626b73">
<rect x="120" y="70" width="22" height="16"/>
<rect x="120" y="140" width="22" height="16"/>
<rect x="120" y="210" width="22" height="16"/>
<rect x="120" y="280" width="22" height="16"/>
<rect x="120" y="350" width="22" height="16"/>
<rect x="250" y="70" width="22" height="16"/>
<rect x="250" y="140" width="22" height="16"/>
<rect x="250" y="210" width="22" height="16"/>
<rect x="250" y="280" width="22" height="16"/>
<rect x="250" y="350" width="22" height="16"/>
</g>
<g stroke="#1a3a5f" stroke-width="1.5" fill="none" marker-start="url(#arrow)" marker-end="url(#arrow)">
<line x1="300" y1="390" x2="510" y2="390"/>
<line x1="620" y1="90" x2="620" y2="330"/>
</g>
<g font-family="Arial, sans-serif" fill="#1a3a5f" font-size="17">
<text x="340" y="415">tributary width in x: 7.2 ft</text>
<text x="640" y="215" transform="rotate(90 640 215)">tributary width in y: 10.0 ft</text>
<text x="335" y="230" font-weight="bold">SHORE POST REACTION</text>
<text x="333" y="150">support area</text>
<text x="333" y="300">support area</text>
<text x="405" y="215">shore post</text>
</g>
<line x1="424" y1="210" x2="424" y2="150" stroke="#1a3a5f" stroke-width="2" marker-end="url(#arrow)"/>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB