///////////
// BUILD //
///////////
- Linux:   GOOS=linux GOARCH=amd64 go build -o tc-lin
- Windows: GOOS=windows GOARCH=amd64 go build -o tc-win.exe
- Mac:     GOOS=darwin GOARCH=amd64 go build -o tc-mac
- Mac M1:  GOOS=darwin GOARCH=arm64 go build -o tc-mm1
- ARM64:   GOOS=linux GOARCH=arm64 go build -o tc-arm
- ARM32:   GOOS=linux GOARCH=arm go build -o tc-a32

//////////////////
// TODO (maybe) //
//////////////////
- Spiral gradual winding pitch increase?
- Self C calcs seem out of reach?

////////////////
// CHANGE LOG //
////////////////
2025-09-25
- Fixed typo in xfmr_cmd() wire mass reporting.

2025-02-08 : v3 release
- Now reports mass of wire (g).

2025-01-03
- Small changes to tcoil_help.go.

2024-07-23
- xfmr_cmd() all '2' flags default to non '2' inputs.

2024-07-23
- xfmr_cmd() now allows awg & wd2/wcd2 mixing.

2024-05-17
- coil_cmd() now gets mode from command line os.Args[1].

2024-05-13
- Fuzzy command hinting.

2024-05-07
- xfmr can now use -awg -awg2 -b -b2 instead of -wcd -wcd2 -wd -wd2.

2024-05-05
- xfmr report was missing secondary Cu Dia.

2024-04-23 : v2 release
- New "spiral" command for flat (-ow=1) spirals.
- Solvers can now use -awg & -b instead of -wcd & -wd.
- Build -b=1 is now the default.

2024-03-29
- Now report wire Cu dia.

2024-03-24 : v1 release
- Proximity calcs now correct.
- Included Alan Payne spreadsheet in archive.

2024-03-23
- Command wire: skin frequency calc now @ 10% increase in DCR (a bit more practical).

2024-03-21
- od* => fd* (really donut ID, so was confusing).
- Ripped out all self / mutual C code (again).
- Work on stats reporting display.
- ACR s/b == DCR @ 0 Hz and it isn't! => Using HF limit rather than full Butterworth.

2024-03-20
- Attempting C calcs (again): a bust (again).

2024-03-19
- Don't report donut specs for solenoid.
- Fixed choke donut height calcs.
- GO compile shell script "build_all.sh".

2024-03-18
- Alan Payne proximity effect ACR - good stuff!

2024-03-14
- Alan Payne empirical skin ACR (very slight difference from previous).

2024-03-13
- Showing activity for long calcs.

2024-03-12 :
- Fixed choke layers, other dim stats.
- Choke gap calc now inter-donuts & exhaustive.

2024-03-11 :
- Negative -oo now goes radial rather than axial, need to fix gap measurements & stuff.

2024-03-08 :
- Brooks coil 3 way solve done.
- Now kicks out OpenSCAD files for viewing!

2024-03-07 :
- Working on brooks coil 3 way solve (like the others).
- Tweaked winding collision detection / reporting.

2024-03-06 :
- Improved choke_rx() donuts wire distribution (single layer corner cases).
- Exhaustive winding collision detection for choke & xfmr.

2024-03-05 :
- All coming together.

2024-03-04 :
- Much dinking around.
- Ripped out all self / mutual C code.

2024-03-03 :
- New xfmr command.
- Some sub refactoring / renaming.

2024-02-29 :
- New -f freq khz flag for coil commands.
- Commands rename: solenoid => sl_sol; donut => ml_sol.

2024-02-28 :
- New "brooks" command calculates Brooks coil.
- New "pvc" command shows pipe dimensions table.
- Command "lcf" optional "-r" param for calculating Q.

2024-02-27 :
- Parameter -oo => -og (donuts offset => gap width mm).
- So in general:
- "Width" = distance along the coil former axis.
- "Height" = radial distance off of the coil former.
- "Length" = wire length, etc.

2024-02-26 :
- Can now calculate coils given input param -wl (wire length).
- Mass renaming of some parameters.

2024-02-25 :
- Solenoid and donut commands back.
- Choke windings now based on N rather than -on.

2024-02-24 :
- Testing capacitance estimation, seems like a dud.

2024-02-22 :
- Fixed -on, -o, length calculations.
- Renaming of some input parameters.
- Deleted solenoid and donut commands.

2024-02-20 :
- Choke command seems to be working OK.

2024-02-05 :
- Fixed loop_l_self() to use r_cond.

2024-02-04 :
- Added "donut" commmand.
- Improved "sol" commmand L search.

2024-02-03 :
- Added "sol" command.

2024-02-02 :
- "awg" command combined w/ "wire".

2024-02-01 :
- Exe changed to "tcoil".
- Added "wire" cmd.
- Added skin depth ACR calcs.

2024-01-30 :
- Spent a lot of time on insulation_dia(), it's key to many things.

2024-01-29 : BORN
- Base is copy of D-Lev librarian d-lib.

