Skip to content

Instantly share code, notes, and snippets.

View aidanjohnson2's full-sized avatar

aidanjohnson2

View GitHub Profile
@aidanjohnson2
aidanjohnson2 / wilson-bearing.txt
Created March 29, 2026 10:57
Wilson bearing pressure solver for Hurmet/CalcPad — handles biaxial uplift (4/3/2/1 corners in bearing)
function wilsonBearing(P, B, L, eB, eL)
if eB × L > eL × B
t = B
B = L
L = t
t = eB
eB = eL
eL = t
end
qa = P / (B × L)
@aidanjohnson2
aidanjohnson2 / bs6399-Ca.tsv
Last active March 22, 2026 18:26
BS 6399-2 Standard Method lookup tables for Hurmet wind load calculations
#Name A B C
Unit
1 1.00 1.00 1.00
2 1.00 0.99 0.98
5 0.98 0.95 0.90
10 0.96 0.91 0.83
15 0.95 0.88 0.78
20 0.93 0.86 0.75
30 0.91 0.83 0.71
50 0.88 0.79 0.65
@aidanjohnson2
aidanjohnson2 / rhs-compression-s355.tsv
Created March 7, 2026 17:55
HF RHS axial compression capacities BS 5950 S355
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 19 columns, instead of 18 in line 9.
#name Mass per metre LE=1.0 LE=1.5 LE=2.0 LE=2.5 LE=3.0 LE=3.5 LE=4.0 LE=5.0 LE=6.0 LE=7.0 LE=8.0 LE=9.0 LE=10.0 LE=11.0 LE=12.0 LE=13.0 LE=14.0
kg/m kN kN kN kN kN kN kN kN kN kN kN kN kN kN kN kN kN
50x30x3.2_Pcx 3.61 140 99.8 63.1 42.1 29.8 22.2 17.1 11.1 7.75 5.72 4.40 3.48 2.83 2.34 1.97 1.68 1.45
50x30x3.2_Pcy 3.61 98.3 50.0 29.2 19.0 13.3 9.85 7.58 4.88 3.40 2.51 1.93 1.52 1.24 1.02 0.860 0.734 0.633
50x30x3.6_Pcx 4.01 155 109 68.6 45.7 32.3 24.0 18.6 12.0 8.40 6.20 4.76 3.77 3.06 2.54 2.13 1.82 1.57
50x30x3.6_Pcy 4.01 106 53.7 31.3 20.3 14.3 10.6 8.12 5.23 3.65 2.69 2.06 1.63 1.32 1.10 0.921 0.786 0.678
50x30x4.0_Pcx 4.39 169 118 73.7 49.0 34.7 25.8 19.9 12.9 9.00 6.64 5.10 4.04 3.28 2.72 2.29 1.95 1.68
50x30x4.0_Pcy 4.39 115 58.0 33.7 21.9 15.4 11.4 8.74 5.63 3.93 2.89 2.22 1.76 1.43 1.18 0.992 0.846 0.730
50x30x5.0_Pcx 5.28 201 136 84.1 55.8 39.4 29.3 22.6 14.6 10.2 7.55 5.80 4.59 3.73 3.09 2.60 2.21 1.91
50x30x5.0_Pcy 5.28 130 64.2 37.2 24.2 16.9 12.5 9.63 6.20 4.32 3.19 2.44 1.93 1.57 1.30 1.09 0
@aidanjohnson2
aidanjohnson2 / shs-bending-s355.tsv
Created March 7, 2026 17:55
HF SHS bending capacities BS 5950 S355
#name Mass per metre Class Mc I Pv
kg/m kNm cm^4 kN
40x40x3.2 3.61 Plastic 2.18 10.2 49.0
40x40x3.6 4.01 Plastic 2.36 11.1 54.3
40x40x4.0 4.39 Plastic 2.52 11.8 59.5
40x40x5.0 5.28 Plastic 2.85 13.4 71.7
40x40x6.3 6.33 Plastic 3.13 14.7 85.9
50x50x3.2 4.62 Plastic 3.62 21.2 62.6
50x50x3.6 5.14 Plastic 3.95 23.2 69.7
50x50x4.0 5.64 Plastic 4.26 25 76.6
@aidanjohnson2
aidanjohnson2 / ub-compression-s275.tsv
Created March 7, 2026 17:54
UB axial compression capacities BS 5950 S275
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 19 columns, instead of 18 in line 8.
#Name Mass per metre LE=1.0 LE=1.5 LE=2.0 LE=2.5 LE=3.0 LE=3.5 LE=4.0 LE=5.0 LE=6.0 LE=7.0 LE=8.0 LE=9.0 LE=10.0 LE=11.0 LE=12.0 LE=13.0 LE=14.0
kg/m kN kN kN kN kN kN kN kN kN kN kN kN kN kN kN kN kN
1016x305x584_Pcx 584 18200 18200 18200 18200 18200 18200 18200 18200 18200 18200 18100 18000 17800 17600 17500 17300 17100
1016x305x584_Pcy 584 18200 17800 17000 16200 15400 14500 13600 11800 9930 8300 6940 5830 4940 4230 3650 3180 2790
1016x305x494_Pcx 494 16000 16000 16000 16000 16000 16000 16000 16000 16000 16000 15900 15800 15600 15500 15300 15200 15000
1016x305x494_Pcy 494 16000 15600 14900 14100 13400 12600 11700 10000 8370 6930 5750 4810 4060 3460 2980 2590 2280
1016x305x438_Pcx 438 14200 14200 14200 14200 14200 14200 14200 14200 14200 14200 14100 14000 13900 13800 13700 13600 13500
1016x305x438_Pcy 438 14200 13800 13300 12800 12200 11500 10900 9360 7830 6460 5330 4430 3720 3160 2710 2350 2060
1016x305x415_Pcx 415 13500 13500 13500 13500 13500 13500 13500 13500 13500 13500 13400 13300 13200 13100 13000 1