Added wire gauge

This commit is contained in:
Louis Burke 2025-01-13 22:10:43 -05:00
parent 0caedcc0df
commit bde9221519

View file

@ -28,7 +28,9 @@ export to₆
export wave_number
export span, tick, egg, spark, lotta, alotta, brr
export ball, touch, jolt
export ball, touch, jolt, cell, wire
export wg
function __init__()
Unitful.register(IIPAU)
@ -46,10 +48,10 @@ brr = 1@unit bʳ "bʳ" Brr (Natural.ΔEₕ / Natural.hexit) false # ~0.04K
# Derived Units
ball = 1@unit "" Ball ((π/6)*span^3) false # ~5L (sphere of diameter 1ṡ)
touch = 1@unit "" Touch (egg * span / tick ^2) false # ~0.1N (10grams of weight)
touch = 1@unit "" Touch (egg * span / tick^2) false # ~0.1N (10grams of weight)
jolt = 1@unit j "j" Jolt (spark / tick) false # ~0.04A
cell = 1@unit ċ "ċ" Cell (span * touch / spark) false # ~1.1V (just shy of zinc/copper electrode)
# TODO: resistance is at about 26.6Ω
wire = 1@unit w "w" Wire (span^2 * egg / spark^2 / tick) false # ~26.6Ω almost exactly 1 kile span of b6"2e-3"-span diameter copper wire (especially if the copper has some impurities)
# Convenience Units
instant = 1@unit i "i" Instant (b6"3e-2" * tick) false # ~5ms (300₆ instants to a tick)
@ -58,7 +60,17 @@ wait = 1@unit ẇ "ẇ" Wait (b6"300" * pause) false # ~100 minutes
# Useful references
resistance_of_wire(ρ, L, d) = ρ * L / (π * (d/2)^2)
# Note: 1 kile span of 1 mille span diameter silver wire has a resistance of about 210Ω
ρAg = 1.59e-8u"Ω*m"
ρCu = 1.68e-8u"Ω*m"
gauge = 1@unit WG "WG" WireGauge (b6"1e-4" * span) false
wg(n) = 3 * span * 6.0^(-n/6) # wg(24) is the gauge for the wire unit
wgo(n) = resistance_of_wire(ρCu, kile * span, wg(n))
ρIdealWire = wire * π * (wg(24) / 2)^2 / (kile * span) |> u"m * Ω"
# temporary definition of american wire gauge:
awg(n) = 0.127u"mm" * 92^((36-n)/39)
#egg = 1@unit e "e" Egg (b6"1e53" * (Unitful.mp + Unitful.me)) false # ~80g