# CableDataSheet Annealing Engineering — Formula and Calculation Manual

Version 3.1. Engineering documentation of the implemented PHP model, not a certified machine recipe.

## 1. Symbols and units

- `d` wire diameter [m]; input `diameter_mm` is divided by 1000.
- `A = πd²/4` conductor area [m²].
- `ρm` mass density [kg/m³]; `ρe` electrical resistivity [Ω m].
- `v` wire speed [m/s]; input m/min is divided by 60.
- `ṁ` mass flow [kg/s]; `T` temperature [°C] unless converted to Kelvin for radiation.
- `cp` specific heat [J/(kg K)], `h` convection coefficient [W/(m² K)].
- `ε` emissivity [1], `σ = 5.670374419e-8 W/(m² K⁴)`.
- `H` lumped thermal conductance [W/K], `C` lumped heat capacity [J/K], `UA` heat loss conductance [W/K].

## 2. Material approximations

The V3 engine uses approximate high-purity Cu/Al values, NOT certified grade-specific functions. `cp(T) = cp20 + b(T−20)` and `ρe(T) = ρe20[1+α(T−20)]`. These linear approximations require validation across the relevant temperature interval. The 6xxx aluminium entries intentionally reject inline electrical calculation because calibrated resistivity is missing. Surface emissivity depends on oxidation and finish. No latent heat or phase transformations are modeled.

## 3. Inline electrical resistance annealing

### 3.1 Geometry, throughput and dwell

`A = πd²/4`; `ṁ = ρm A v`; `tres = ΣLz/v`. Derived from circular geometry, volume throughput and travel distance. Valid for constant wire cross-section and line speed through heating zones.

### 3.2 Temperature-dependent resistivity

`ρe(T)=ρe20[1+α(T−20)]`, `dR=ρe(T)dx/A`. This is the local resistance of a differential wire element. Wire deformation and impurities affect the true resistivity.

### 3.3 Electrical Joule heating

For zone `z` with current `Iz = Ibase × current_fraction_z`:

`q′J = Iz² ρe(T)/A [W/m]`; `dVz = Iz ρe(T)dx/A [V]`; `Pz = ∫ q′J dx [W]`.

The engine computes zone wire voltage drops and wire Joule power. **The sum of voltage drops across independently energized zones must not be interpreted as actual rectifier/supply voltage.** Supply voltage requires the physical circuit topology, contact resistances and waveform.

### 3.4 Thermal losses

`q′conv = hπd(T−Ta)`; `q′rad = εσπd[(T+273.15)^4−(Ta+273.15)^4]`; `q′loss = q′conv+q′rad` [W/m]. From Newton cooling and Stefan–Boltzmann radiation on a cylindrical wire. Does not include contact wheel conduction, enclosed furnace radiation exchange or quench heat transfer.

### 3.5 Moving wire temperature differential equation

`ṁ cp(T) dT/dx = Iz²ρe(T)/A − q′loss`.

Derived by applying the steady-state first law to an element of moving wire. Discretization: `T[i+1] = T[i] + Δx(q′J−q′loss)/(ṁ cp(T[i]))`. This is **explicit Euler** in space. Decreasing the spatial step and checking convergence is necessary; this package does not automatically prove convergence.

### 3.6 Required current

The engine numerically finds `Ibase` such that `T_exit(Ibase) ≈ T_target` by bracketing and bisection. This is a theoretical wire current and is not a machine control setpoint. If the target is outside the numerical safe domain, an error is returned.

### 3.7 Metal sensible heating and specific energy

`Δh = ∫ cp(T)dT = cp20(T1−T0) + b/2[(T1−20)^2−(T0−20)^2] [J/kg]`.

`Pmetal = ṁ Δh [W]`; `e_wire = Pjoule/(ṁ × 3.6e6) [kWh/kg]`. Wire Joule power includes heat losses in the heating zones; electrical supply losses, cooling pumps and auxiliaries are excluded.

### 3.8 Simplified analytical comparison

With constant properties and zero losses, `Ireq = A sqrt(ρm v cp ΔT/(ρe L))` and `Uwire = sqrt(ρm v cp ΔT ρe L)`. Hence `Uwire ∝ sqrt(v)` for fixed material, geometry, length and temperature rise. **These analytical formulas are NOT the numerical model implemented by the V3 engine**, and should be used only as sanity checks.

### 3.9 Worked example — theoretical, not a machine recipe

For 1 mm Cu wire at 600 m/min, `A=7.8539816e−7 m²`, `v=10 m/s`, `ṁ=8960×A×10=0.07037 kg/s ≈253.34 kg/h`; for 2 m heating length `tres=0.2 s`. For constant `cp=400 J/kg K`, heating from 25 to 325°C requires `Pmetal≈0.07037×400×300=8444 W`. The actual V3 engine uses a temperature-dependent cp approximation and loss terms, so its result is different.

## 4. Batch furnace model

### 4.1 Programmed temperature ramp

`Tset(t)=min(Ttarget,T0+βt/3600)` with β in °C/hour, t in seconds. `tramp=3600(Ttarget−T0)/β`. The programmed hold starts at the end of the ramp, not when the coil core reaches the target.

### 4.2 Four thermal nodes

Furnace `Tf`, coil surface `Ts`, coil core `Tc`, fixture `Tfix`. Lumped capacities `Cf`, `Cs = mw fs cp(Ts)`, `Cc = mw(1−fs)cp(Tc)`, `Cfix = max(1,mfix cpfix)` [J/K].

`qfs=Hfs(Tf−Ts)`, `qsc=Hsc(Ts−Tc)`, `qfix=Hfix(Tf−Tfix)`, `qloss=UA(Tf−Ta)` [W]. Current implementation assumes `Hfix = 0.12 Hfs` if fixture mass >0. The factor 0.12 is **an uncalibrated modeling assumption**.

`Cf dTf/dt = η Pin−qfs−qfix−qloss`

`Cs dTs/dt = qfs−qsc`

`Cc dTc/dt = qsc`

`Cfix dTfix/dt = qfix`.

These equations follow conservation of energy in each node. The solver uses explicit time stepping with internal substeps ≤1 second; despite the old source comment, it is **not a true implicit integrator**. Large heat transfer coefficients and small heat capacities may require substantially shorter steps. Verify time-step convergence.

### 4.3 Heater input and energy

The power-limited setpoint-following controller calculates a nonnegative requested power and caps it at rated heater power: `Pin = min(Prated,max(0,Prequested))`. `Eelec = ΣPin Δt/3.6e6 [kWh]`. `Eloss = ΣUA(Tf−Ta) Δt/3.6e6 [kWh]`. The heater efficiency `η` multiplies input power in the thermal balance. No cooling controller, exhaust mass flow or PID dynamics are implemented.

### 4.4 Coil core target and process completion

`tcore` is the first simulated time when `Tc >= Tcore,target`. `core_target_reached` is a Boolean at the end of the simulated cycle. It does not mean the whole coil has undergone sufficient recrystallization, and a two-node core cannot prove the true coldest-point location.

### 4.5 Ideal wire energy

`Eideal = mw Δh/3.6e6 [kWh]`. This is a thermodynamic baseline; it excludes fixture heating, furnace heat capacity and losses.

### 4.6 Worked example — thermodynamic baseline

For 1000 kg Cu with constant `cp=400 J/kg K` heated from 25 to 350°C: `Eideal=1000×400×325/3.6e6=36.11 kWh`. With 150 kg of fixture at 500 J/kg K, fixture sensible heat is `6.77 kWh`. These are lower-bound component energies, NOT a prediction of furnace electrical energy or cycle duration.

## 5. Metallurgy (experimental option, not production prediction)

At constant temperature, the JMAK relation `X = 1−exp[−(k t)^n]` with `k(T)=k0 exp[−Qa/(Rg TK)]`, `Rg=8.314462618 J/(mol K)`, `TK=T°C+273.15`. `X` is recrystallized fraction, `n` Avrami exponent, `Qa` activation energy [J/mol], `k0` [1/s]. The PHP engine exposes `metallurgy()` but it is not connected to the user interface or the furnace/inline outputs. Constants MUST be fitted from experimental measurements for each grade and cold-work condition. There is no universal conversion from X to elongation or tensile strength.

## 6. What this model does NOT calculate

Real rectifier voltage or waveform, electrical contact wheel losses, wire quench temperature profile, furnace gas flow, coil geometry-derived thermal conductivity, cooling profile, oxidation, validated recrystallization fraction, tensile strength, elongation, actual certified grade property curves, or a machine-approved annealing recipe. These must not be inferred from displayed results.

## 7. Validation protocol

1. Check input units and physically feasible temperature limits.
2. Compare inline results with analytical zero-loss limiting cases.
3. Repeat inline calculation with doubled `steps_per_zone` and inspect differences.
4. Repeat furnace calculation with halved `time_step_s`; inspect temperatures and energy.
5. Verify thermal energy conservation in each node and aggregate.
6. Measure true wire temperature, current, voltage, speed and quench exit temperature on an instrumented annealer.
7. Measure furnace atmosphere, coil surface and multiple core points with thermocouples.
8. Fit material properties and effective thermal coefficients to recorded measurements.
9. Confirm final elongation, tensile strength and electrical resistance against applicable product standards.
10. Record uncertainty and only then approve plant-specific setpoints.

## 8. Reference framework

- Joule–Lenz law and Ohm's law: electrical resistance heating.
- Newton's law of cooling; Stefan–Boltzmann law: surface thermal losses.
- First law of thermodynamics: energy conservation.
- JMAK and Arrhenius: empirical transformation kinetics; require fitted constants.
- IEC 60228: conductor electrical resistance and construction requirements; not annealing temperatures.
- ASTM B3: annealed/soft copper wire product requirements.
- ASTM B609/B609M: aluminium 1350 wire temper-related product requirements.
- NIEHOFF technical catalogues: examples of machine-dependent annealer configurations and limits, not transferable recipes.

The model does not assert that these standards prescribe its approximate thermal coefficients or furnace conductances. Obtain current editions from the publishers and confirm applicability to the intended product.
