From 664106ca91a352a3dca78db236ecedae127d423b Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Mon, 30 Nov 2026 13:10:52 +0900 Subject: [PATCH 1/2] feat: CIGRE TB 880 Case studies 2 and 8 rows; IEC thermal resistances Rows TB880-C2 and TB880-C8 compare compute_thermal with CIGRE TB 880 (2022) Case study 2 (3x630 mm2 18/30 kV, lead sheaths, galvanised steel wire armour) and Case study 8 (3x1000 mm2 220 kV, lead sheaths, stainless armour), on cables built from the brochure's datasheets (tests/data/tb880/). Bands registered before the first run: T1, T3, y_s, y_p, W_d within 0.5 %, lambda1' within 1 %; T2 and the ratings stated. T1, T3, y_s, y_p and lambda1' agree to the printed digits; W_d is +0.136 % (TB 880's eps0 = 1e-9/(36 pi) against IEC's 8.854e-12). T2 is -5.1 % in Case 2 (TB 880 takes the cores touching for s but the assembled diameter for x; the code then selects the other curve) and +0.43 % in Case 8 (the lead sheath's own resistance). The ratings at 90 degC with TB 880's loss factors are 841.50 A (838.34 A) and 1134.95 A (1134.82 A). ThermalResult.resistances returns the T1, T2, T3, T4 of IEC 60287-1-1 Formula (1) that compute_thermal used, split at the innermost armour. Fix: the sheath reactance of the 5.3.2 route (SL-type cores, unarmoured or under non-magnetic armour) now carries the lay-up factor C_LL, as Annex A gives it to per-metre properties of laid-up cores and as 5.3.11 and TB 880 Case 8 apply it; R_s already did. Case 8 read lambda1' 2.2 % low without it. Signed-off-by: Jae Hoon Seo --- CHANGELOG.md | 14 ++ doc/benchmarks.md | 57 +++++++ doc/local_analysis_guide.md | 8 +- src/cablexsec/mechanics/thermal.py | 76 +++++++++- tests/data/tb880/case2_30kv.yaml | 163 ++++++++++++++++++++ tests/data/tb880/case8_220kv.yaml | 161 ++++++++++++++++++++ tests/test_thermal_tb880.py | 140 +++++++++++++++++ validation/scripts/check_tb880.py | 216 +++++++++++++++++++++++++++ validation/scripts/run_validation.py | 42 ++++++ validation/validation_report.md | 4 +- 10 files changed, 869 insertions(+), 12 deletions(-) create mode 100644 tests/data/tb880/case2_30kv.yaml create mode 100644 tests/data/tb880/case8_220kv.yaml create mode 100644 tests/test_thermal_tb880.py create mode 100644 validation/scripts/check_tb880.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d213d0..7742661 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,16 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Added +- `ThermalResult.resistances`: the `T1`, `T2`, `T3` and `T4` of IEC 60287-1-1 Formula (1) that + `compute_thermal` used, split at the innermost armour (`T2` counts a per-core jacket `1/n`, as + CIGRE TB 880 Guidance Point 45 does). +- Rows TB880-C2 and TB880-C8 (registered before the first run): CIGRE TB 880 (2022) Case studies + 2 (3x630 mm2 18/30 kV, lead sheaths, steel wire armour) and 8 (3x1000 mm2 220 kV, lead sheaths, + stainless armour) against `compute_thermal`, from cables built on the brochure's datasheets + (`tests/data/tb880/`). `T1`, `T3`, `y_s`, `y_p` and `lambda1'` agree to the printed digits and + `W_d` by +0.136 % (TB 880's `eps0 = 1e-9/(36 pi)` against IEC's 8.854e-12); `T2` (-5.1 %, +0.43 + %) and the ratings at 90 degC with TB 880's loss factors (841.50 A against 838.34 A, 1134.95 A + against 1134.82 A) are stated. - Reported rows SV11-LK, SV11-SIDE, SV11-SUB and SV11-NORM (registered before the runs): what the SV11 measurements are. Lukassen's (2019) thesis plots both narrow sides of the tendon at stations 3.1-3.5 for LC 14 (digitised from the native PDF paths, @@ -91,6 +101,10 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Fixed +- The sheath reactance of the IEC 60287-1-1 5.3.2 route (SL-type cores, unarmoured or under + non-magnetic armour) now carries the lay-up factor `C_LL`, as Annex A gives it to any per-metre + property of laid-up cores and as 5.3.11 and CIGRE TB 880 Case study 8 apply it; `R_s` already + did. TB 880 Case 8 read `lambda1'` 2.2 % low without it. - Every public function of the submodules that takes a cable now reads the cable's own materials when it is called directly, as the functions of `cablexsec` and `cablexsec.api` already did. Before, `xi_for_layer`, `yun_shear_stack`, `ei_min_slip` diff --git a/doc/benchmarks.md b/doc/benchmarks.md index 811cf6c..8f88693 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -96,6 +96,7 @@ model) is the full construction. | Tjahjanto et al. (2017), Leroy et al. (2017) FE armour slip | MM | Qualitative agreement only | | Sævik and Bruaseth (2005) umbilical axial stiffness | M | NOT VALIDATED | | Poradowski (2025) conductor temperature | MM | PARTIAL | +| CIGRE TB 880 Case studies 2 and 8, ladder and losses of `compute_thermal` (TB880-C2, TB880-C8) | MM | PASS: `T1`, `T3`, `y_s`, `y_p`, `λ1′` to the printed digits, `W_d` +0.136 % (ε0); `T2` −5.1 % and +0.43 % and ratings +0.38 % and +0.011 % with TB 880's loss factors (stated) | | Global–local consistency, floating-wind application | I | Full-slip results are upper estimates | | Laid-core friction (gap R1b), Ménard and Cartraud (2023) six ranges | M | FAIL (BM1-ID, gated). With the transferred 0.3 MPa the cores raise the work (range (b) +30.2 %); identified on (b) with the full accounting, predictions (a) and (c) outside the registered target (+28.5, +26.2 %), (d)–(f) within 16 % | | Laid-core law, distributed form and contact loads that follow the tension (CF-D, CF-T) | A, I | PASS except CF-D-slip (1.02e-4 against 1e-4 at the default stations: station quadrature, documented) | @@ -1024,6 +1025,62 @@ geometric factor need the three cores, so `compute_thermal` on the stack is not comparable, and the comparison uses the tabulated network (`tests/test_thermal.py`, `validation/scripts/run_validation.py`). +## CIGRE TB 880 Case studies 2 and 8 (TB880-C2, TB880-C8) + +Source: CIGRE TB 880 (2022), *Power cable rating examples for calculation tool +verification*, Section 6 (Case study 2: 3×630 mm² Cu/XLPE/PB/SCPE/PPY/SWA/PPY +18/30 kV array cable, lead sheaths, galvanised steel wire armour) and Section +12 (Case study 8: 3×1000 mm² 220 kV export cable, lead sheaths, stainless steel +wire armour). Both are buried 1 m deep in 0.7 K·m/W soil at 15 °C with solidly +bonded sheaths. The cables are `tests/data/tb880/case2_30kv.yaml` and +`case8_220kv.yaml`, built from the datasheets (Figs 29 and 40) and the +diameters and resistivities of the input tables; the references are the +brochure's printed results. + +### Registered targets (registered 2026-11-30, before the first run) + +| Quantity | Geometry | Band | +| --- | --- | --- | +| `T1`, `T3`, `y_s`, `W_d` | datasheet (core offset from the diameter over the assembled cores) | 0.5 % | +| `y_p` | cores touching, `s` = core diameter (as TB 880) | 0.5 % | +| `λ1′` | cores touching, with the factor 1.5 of TB 880 Guidance Point 25 on `y_s + y_p` under magnetic armour (Case 2) and the datasheet resistance per metre of core times `C_LL` (Case 8, Guidance Point 23) | 1 % | +| `T2` | datasheet | stated | +| Rating at 90 °C, with TB 880's `λ1` (eddy loss times `F`), `λ2` and the same choices; and with the IEC defaults | datasheet | stated | + +TB 880 takes the cores touching for `s` (proximity effect, sheath reactance) +but the datasheet diameter over the assembled cores for `x` of the filler +factor and for `c` of the armour loss. One core offset cannot give both, so +each gated quantity is compared in the geometry TB 880 uses for it, and `T2` +is stated. + +### Results + +| Case | `T1`, `T3`, `y_s`, `y_p` | `W_d` | `λ1′` | `T2` (stated) | Rating, TB 880 choices (stated) | Rating, IEC defaults (stated) | +| --- | --- | --- | --- | --- | --- | --- | +| 2 | to the printed digits | +0.136 % | to the printed digits | −5.11 % | 841.50 A (TB 880 838.34 A) | 864.29 A | +| 8 | to the printed digits | +0.136 % | +0.0001 % | +0.43 % | 1134.95 A (TB 880 1134.82 A) | 1168.86 A | + +Both rows PASS. The differences are explained: + +- `W_d`: TB 880 writes the capacitance as `ε/(18 ln(D/d)) 10⁻⁹`, that is + `ε0 = 10⁻⁹/(36π)`; IEC 60287-1-1:2023 5.2 gives `ε0 = 8.854×10⁻¹²` F/m. The + ratio is 1.001364. +- `T2`, Case 2: the touching test of the code selects the curve for equal + thicknesses (at the 134.9 mm assembled diameter the core axes are 63.05 mm + apart, 1.5 % more than the core diameter), TB 880 the curve for sheaths + touching; `x` = 0.0193 in both. +- `T2`, Case 8: the lead sheath keeps its own small conduction resistance in + the ladder (0.00011 K·m/W in `T2`); IEC takes it as an isotherm. +- The IEC-default ratings are 3.1 % and 3.0 % higher: without the eddy loss + (`λ1″` = 0 in IEC) and, in Case 2, without the factor 1.5 on `y_s + y_p` + that IEC 60287-1-1 5.1.6 gives only to pipe-type cables. + +The first run found that the sheath reactance of the 5.3.2 route (SL-type +cores under non-magnetic armour, TB 880 Guidance Point 38) did not carry the +lay-up factor that IEC 60287-1-1 Annex A gives to any per-metre property of +laid-up cores, and that 5.3.11 writes into `X`; Case 8 then read `λ1′` 2.2 % +low. It now does (`tests/test_thermal_tb880.py`). + ## Temperature history coupled into clamping and fatigue (gap 4.1) Gates of `tests/test_thermal_history.py` for the slow-time driver diff --git a/doc/local_analysis_guide.md b/doc/local_analysis_guide.md index 22cc2cd..676375f 100644 --- a/doc/local_analysis_guide.md +++ b/doc/local_analysis_guide.md @@ -1308,10 +1308,12 @@ in IEC), and the dielectric loss from the `U0` of the insulation's as CIGRE TB 880 does; a metal tape over the wires is left out (TB 880 Guidance Point 29). A single-core cable gets no proximity or sheath loss (they depend on the circuit): pass `y_p` and `lambda1`. `result.losses` holds the -values used and the provenance their basis. The ladder is the IEC -single-core-equivalent model, which can read a three-core cable's conductor +values used, `result.resistances` the `T1` to `T4` of IEC 60287-1-1 Formula (1) +(split at the innermost armour), and the provenance their basis. The ladder is the +IEC single-core-equivalent model, which can read a three-core cable's conductor temperature up to 8 °C low (Chatzipetros and Pilgrim 2018; Section 2). The -section state applies each layer's free thermal strain and the registered polymer E(T) laws within their source +section state applies each layer's free thermal strain and the registered +polymer E(T) laws within their source ranges, with one temperature per annulus; `temperature_C=` (a value or a mapping covering every layer) replaces the profile. On this path `sigma_A_Pa` already contains the thermal stress and `sigma_T_Pa` is zero. Do not combine it diff --git a/src/cablexsec/mechanics/thermal.py b/src/cablexsec/mechanics/thermal.py index 29e5ed8..74aae61 100644 --- a/src/cablexsec/mechanics/thermal.py +++ b/src/cablexsec/mechanics/thermal.py @@ -239,6 +239,14 @@ class ThermalResult: Loss terms of one core used by :func:`compute_thermal`: ``R0_ohm_m``, ``R_ac_ohm_m``, ``y_s``, ``y_p``, ``lay_length_factor``, ``W_c_W_m``, ``W_d_W_m``, ``lambda1``, ``lambda2``. + resistances : dict or None + The thermal resistances of [IEC60287-1-1] 4.2.1, Formula (1), from + :func:`compute_thermal` [K m/W]: ``T1_Km_W`` (conductor to sheath, per + core), ``T2_Km_W`` (sheath to the innermost armour, per core of the + ``n`` loaded cores: a per-core jacket counts ``1/n``, as in CIGRE TB + 880 Guidance Point 45), ``T3_Km_W`` (outside the innermost armour) and + ``T4_Km_W``. Without a structural armour ``T3`` is zero and ``T2`` + holds everything outside the sheath. """ r_m: FloatArray @@ -248,6 +256,7 @@ class ThermalResult: P_total_W_m: float provenance: Provenance | None = None losses: dict[str, float] | None = None + resistances: dict[str, float] | None = None def thermal_resistance(r_inner_m: float, r_outer_m: float, lambda_W_mK: float) -> float: @@ -780,12 +789,15 @@ def _sheath_loss_factor( """Sheath loss factor ``λ1`` of the cable from its geometry, and a note. Computed for the per-core metallic screens of a two- or three-core - (SL-type) cable: [IEC60287-1-1] 5.3.11 under magnetic armour (factor 1.5, - ``X`` times ``C_LL``) and 5.3.2 otherwise, following CIGRE TB 880 (2022) - Guidance Point 38 for non-magnetic armour; ``λ1'' = 0`` in both clauses. - ``R_s`` is that of one core's screen at the sheath temperature, times - ``C_LL``: the wires of a wire screen (``strand_layers``) over their own - lay (CIGRE TB 880 Guidance Point 27), a solid sheath or foil by its + (SL-type) cable: [IEC60287-1-1] 5.3.11 under magnetic armour (factor 1.5) + and 5.3.2 otherwise, following CIGRE TB 880 (2022) Guidance Point 38 for + non-magnetic armour; ``λ1'' = 0`` in both clauses. ``X`` and ``R_s`` are + per metre of cable in both: the values of a straight core times ``C_LL`` + ([IEC60287-1-1] Annex A; 5.3.11 writes it into ``X``; TB 880 Case 8 applies + it to ``X`` under non-magnetic armour). ``R_s`` is that of one core's + screen at the sheath temperature: the wires of a wire screen + (``strand_layers``) over their own lay (CIGRE TB 880 Guidance Point 27), + a solid sheath or foil by its annulus, and further per-core metallic layers over the screen (a laminated foil) in parallel with it, as in TB 880 Case 2; metal tapes are left out (Guidance Point 29, counter helix tapes). A single-core cable (bonding and @@ -885,13 +897,14 @@ def _sheath_loss_factor( spacing, d_mean, frequency_Hz=cable.environment.frequency_Hz, - lay_length_factor=lay_factor if sl_armoured else 1.0, + lay_length_factor=lay_factor, ) lam1 = sheath_circulating_loss_factor(r_s, r_ac_ohm_m, x, sl_armoured=sl_armoured) clause = ( "5.3.11 (SL type under magnetic armour: factor 1.5, X times C_LL)" if sl_armoured - else "5.3.2 (SL type, unarmoured or non-magnetic armour; CIGRE TB 880 GP 38)" + else "5.3.2 (SL type, unarmoured or non-magnetic armour; CIGRE TB 880 GP " + "38; X times C_LL, Annex A)" ) screen = metal common = [a.layer_name for a in geo.path if a.metallic and not a.per_core] + [ @@ -1557,6 +1570,13 @@ def compute_thermal( "lambda1": float(lambda1), "lambda2": float(lambda2), } + t1_out, t2_out, t3_out = _iec_resistances(cable, geo) + resistances = { + "T1_Km_W": t1_out, + "T2_Km_W": t2_out, + "T3_Km_W": t3_out, + "T4_Km_W": float(t4), + } return ThermalResult( r_m, t_profile, @@ -1565,7 +1585,47 @@ def compute_thermal( float(p_total), provenance=prov, losses=losses, + resistances=resistances, + ) + + +def _iec_resistances( + cable: CableData, geo: _LadderGeometry +) -> tuple[float, float, float]: + """``T1``, ``T2``, ``T3`` of [IEC60287-1-1] Formula (1) from the ladder. + + The per-core equivalents of :func:`_layer_heat_flows` (a cable-level + annulus counts once per cable, a per-core annulus ``1/n`` outside ``T1``), + with ``T2`` and ``T3`` split at the inner radius of the innermost + structural armour (cable axis). Without such an armour ``T3`` is zero. + """ + armour = [a for a in cable.helical_layers if a.structural and a.r_helix_m] + r_arm = ( + min( + float(a.r_helix_m or 0.0) + - 0.5 * float(getattr(a, "wire_thickness_m", None) or a.d_wire_m or 0.0) + for a in armour + ) + if armour + else math.inf ) + n = float(geo.n) + t1 = t2 = t3 = 0.0 + for annulus, inner in zip(geo.path, geo.in_t1, strict=True): + r_i = thermal_resistance( + annulus.layer.r_inner_m, annulus.layer.r_outer_m, annulus.layer.lambda_W_mK + ) + if geo.multi_core: + mult = 1.0 if annulus.per_core else n + else: + mult = 1.0 if inner else n + if inner: + t1 += mult * r_i + elif annulus.per_core or annulus.layer.r_inner_m < r_arm - _RADIUS_TOL_M: + t2 += mult * r_i / n + else: + t3 += mult * r_i / n + return t1, t2, t3 def _cable_dielectric_loss( diff --git a/tests/data/tb880/case2_30kv.yaml b/tests/data/tb880/case2_30kv.yaml new file mode 100644 index 0000000..81e00fd --- /dev/null +++ b/tests/data/tb880/case2_30kv.yaml @@ -0,0 +1,163 @@ +# SPDX-License-Identifier: Apache-2.0 +# CIGRE TB 880 (2022) Case study 2: 3x630 mm2 Cu/XLPE/PB/SCPE/PPY/SWA/PPY +# 18/30 (36) kV submarine array cable, for the thermal rating check only +# (validation rows TB880-C2-*). Dimensions from the datasheet of Fig. 29 and +# Tables 6-1 to 6-17; thermal resistivities as TB 880 uses them (Tables 6-11, +# 6-13, 6-15). No mechanical properties: not for stress or fatigue analysis. +--- +cable: + name: "CIGRE TB 880 Case study 2, 3x630 mm2 18/30 kV submarine array cable" + description: "Thermal-rating verification case; layer stack of TB 880 Fig. 29" + source_document: "CIGRE TB 880 (2022) Section 6, Fig. 29, Tables 6-1 to 6-17" + voltage_kV: 30 +materials: + tb880_sc_tape: + description: Semiconducting tape over the conductor (TB 880 Table 6-11, 6 K m/W) + polymer: true + lambda_W_mK: {value: 0.16666666666666666, source: "CIGRE TB 880 Table 6-11 (rho 6 K m/W)"} + tb880_semicon: + description: Extruded semiconducting screens and the SC PE sheath (2.5 K m/W) + polymer: true + lambda_W_mK: {value: 0.4, source: "CIGRE TB 880 Tables 6-11 and 6-13 (rho 2.5 K m/W)"} + tb880_xlpe: + description: XLPE insulation (3.5 K m/W) + polymer: true + lambda_W_mK: {value: 0.2857142857142857, source: "IEC 60287-2-1:2023 Table 1; CIGRE TB 880 Table 6-11"} + tb880_water_blocking_tape: + description: Semiconducting water-blocking tape (12 K m/W) + polymer: true + lambda_W_mK: {value: 0.08333333333333333, source: "CIGRE TB 880 Table 6-11 (rho 12 K m/W)"} + tb880_pp_yarn: + description: Profile fillers, binder, PP yarn bedding and serving (6 K m/W) + polymer: true + lambda_W_mK: {value: 0.16666666666666666, source: "CIGRE TB 880 Tables 6-13 and 6-15 (rho 6 K m/W)"} + tb880_swa: + description: Galvanised steel armour wires (magnetic) + lambda_W_mK: {value: 50.0, source: "standard steel"} + rho_ohm_m: {value: 13.8e-8, source: "CIGRE TB 880 Table 6-9; IEC 60287-1-1:2023 Table 1"} + alpha_R_per_K: {value: 4.5e-3, source: "CIGRE TB 880 Table 6-9; IEC 60287-1-1:2023 Table 1"} + relative_permeability: {value: 400.0, source: "IEC 60287-1-1:2023 5.4.3.1 d), steel wires"} +core_lay: + pitch_m: 2.152 + lay_direction: right_hand + source: "CIGRE TB 880 Table 6-1 (lay length of core stranding 2152 mm); hand not given" +layers: + - name: cu_conductor + layer_type: cylindrical_offset + material: copper_stranded + n_cores: 3 + r_offset_m: 0.0364 + r_inner_m: 0.0 + r_outer_m: 0.014161046158239446 # area-equivalent 630 mm2 + conductor_area_mm2: 630.0 + d_conductor_m: 0.030 + construction: aligned_solid_equivalent + notes: >- + Round compacted class 2, 630 mm2, diameter 30 mm (IEC d_c). R0 0.0283 + ohm/km per cable (datasheet; IEC 60228:2023 Table 4). Core offset from + the diameter over the assembled cores, 134.9 mm: (134.9 - 62.1)/2, the + value c = 36.4 mm of TB 880 step 6.6 (Guidance Point 33). + source: "CIGRE TB 880 Fig. 29 items 1 and 9, Tables 6-3, 6-9, 6-11" + - name: conductor_sc_tape + layer_type: cylindrical_offset + material: tb880_sc_tape + n_cores: 3 + r_offset_m: 0.0364 + r_inner_m: 0.014161046158239446 + r_outer_m: 0.01525 + structural: false + notes: "Over the conductor diameter 30 mm to 30.5 mm; the ladder starts it at d_c" + source: "CIGRE TB 880 Fig. 29 item 2, Table 6-11" + - name: conductor_screen + layer_type: cylindrical_offset + material: tb880_semicon + n_cores: 3 + r_offset_m: 0.0364 + r_inner_m: 0.01525 + r_outer_m: 0.01625 + structural: false + source: "CIGRE TB 880 Fig. 29 item 3, Table 6-11 (32.5 mm)" + - name: xlpe_insulation + layer_type: cylindrical_offset + material: tb880_xlpe + n_cores: 3 + r_offset_m: 0.0364 + r_inner_m: 0.01625 + r_outer_m: 0.02425 + electrical: + permittivity_relative: 2.5 + loss_factor_tan_delta: 0.004 + insulation_type: xlpe + notes: "tan delta 40e-4 as TB 880 Table 6-5 uses it" + source: "CIGRE TB 880 Fig. 29 item 4, Tables 6-5 and 6-11 (48.5 mm)" + - name: insulation_screen + layer_type: cylindrical_offset + material: tb880_semicon + n_cores: 3 + r_offset_m: 0.0364 + r_inner_m: 0.02425 + r_outer_m: 0.02515 + structural: false + source: "CIGRE TB 880 Fig. 29 item 5, Table 6-11 (50.3 mm)" + - name: water_blocking_tape + layer_type: cylindrical_offset + material: tb880_water_blocking_tape + n_cores: 3 + r_offset_m: 0.0364 + r_inner_m: 0.02515 + r_outer_m: 0.02625 + structural: false + source: "CIGRE TB 880 Fig. 29 item 6, Table 6-11 (52.5 mm)" + - name: lead_sheath + layer_type: cylindrical_offset + material: lead_sheath + n_cores: 3 + r_offset_m: 0.0364 + r_inner_m: 0.02625 + r_outer_m: 0.02855 + notes: "Lead alloy, 2.3 mm, mean diameter 54.8 mm" + source: "CIGRE TB 880 Fig. 29 item 7, Tables 6-7 and 6-13 (57.1 mm)" + - name: scpe_sheath + layer_type: cylindrical_offset + material: tb880_semicon + n_cores: 3 + r_offset_m: 0.0364 + r_inner_m: 0.02855 + r_outer_m: 0.03105 + structural: false + source: "CIGRE TB 880 Fig. 29 item 8, Table 6-13 (62.1 mm)" + - name: profile_fillers + layer_type: cylindrical + material: tb880_pp_yarn + r_inner_m: 0.0 + r_outer_m: 0.06745 + structural: false + source: "CIGRE TB 880 Fig. 29 item 9 (134.9 mm after cabling), Table 6-13" + - name: binder_and_bedding + layer_type: cylindrical + material: tb880_pp_yarn + r_inner_m: 0.06745 + r_outer_m: 0.06865 + structural: false + notes: "Binding tape (135.3 mm) and PP yarn bedding (137.3 mm), one resistivity" + source: "CIGRE TB 880 Fig. 29 items 10 and 11, Table 6-13" + - name: armour + layer_type: helical + material: tb880_swa + n_wires: 71 + d_wire_m: 0.006 + r_helix_m: 0.07165 + lay_angle_deg: 14.1559 + lay_direction: left_hand + notes: "71 x 6.0 mm galvanised steel wires, mean diameter 143.3 mm, lay 1785 mm (atan(pi 143.3 / 1785)); hand not given" + source: "CIGRE TB 880 Fig. 29 item 12, Table 6-9" + - name: serving + layer_type: cylindrical + material: tb880_pp_yarn + construction: serving + r_inner_m: 0.07465 + r_outer_m: 0.07765 + structural: false + source: "CIGRE TB 880 Fig. 29 item 13, Table 6-15 (3 mm over 149.3 mm; OD 155.3 mm)" +aggregate_properties: + OD_mm: 155.3 diff --git a/tests/data/tb880/case8_220kv.yaml b/tests/data/tb880/case8_220kv.yaml new file mode 100644 index 0000000..d424b69 --- /dev/null +++ b/tests/data/tb880/case8_220kv.yaml @@ -0,0 +1,161 @@ +# SPDX-License-Identifier: Apache-2.0 +# CIGRE TB 880 (2022) Case study 8: 3x1000 mm2 220 kV three-core submarine +# export cable with a lead sheath and stainless steel wire armour, for the +# thermal rating check only (validation rows TB880-C8-*). Dimensions from the +# datasheet of Fig. 40 and Tables 12-1 to 12-15; thermal resistivities as TB +# 880 uses them (Tables 12-9, 12-11, 12-13). No mechanical properties: not +# for stress or fatigue analysis. +--- +cable: + name: "CIGRE TB 880 Case study 8, 3x1000 mm2 220 kV submarine export cable" + description: "Thermal-rating verification case; layer stack of TB 880 Fig. 40" + source_document: "CIGRE TB 880 (2022) Section 12, Fig. 40, Tables 12-1 to 12-15" + voltage_kV: 220 +materials: + tb880_sc_tape: + description: Semiconducting conductor tape (6 K m/W) + polymer: true + lambda_W_mK: {value: 0.16666666666666666, source: "CIGRE TB 880 Table 12-9 (rho 6 K m/W)"} + tb880_semicon: + description: Extruded semiconducting screens and the SC PE sheath (2.5 K m/W) + polymer: true + lambda_W_mK: {value: 0.4, source: "CIGRE TB 880 Tables 12-9 and 12-11 (rho 2.5 K m/W)"} + tb880_xlpe: + description: XLPE insulation (3.5 K m/W) + polymer: true + lambda_W_mK: {value: 0.2857142857142857, source: "IEC 60287-2-1:2023 Table 1; CIGRE TB 880 Table 12-9"} + tb880_water_blocking_tape: + description: Swelling tape under the lead sheath (12 K m/W) + polymer: true + lambda_W_mK: {value: 0.08333333333333333, source: "CIGRE TB 880 Table 12-9 (rho 12 K m/W)"} + tb880_filler: + description: PE fillers with voids, binder and bedding tapes, PP yarn serving (6 K m/W) + polymer: true + lambda_W_mK: {value: 0.16666666666666666, source: "CIGRE TB 880 Table 12-11 note 2 and Table 12-13 (rho 6 K m/W)"} + tb880_stainless_armour: + description: Stainless steel armour wires (non-magnetic) + lambda_W_mK: {value: 16.0, source: "standard austenitic stainless steel"} + relative_permeability: {value: 1.0, source: "non-magnetic armour, CIGRE TB 880 Guidance Point 26"} +core_lay: + pitch_m: 2.75 + lay_direction: left_hand + source: "CIGRE TB 880 Fig. 40 (assembling, length of lay 2750 mm, left) and Table 12-1" +layers: + - name: cu_conductor + layer_type: cylindrical_offset + material: copper_stranded + n_cores: 3 + r_offset_m: 0.0607 + r_inner_m: 0.0 + r_outer_m: 0.01784124116152771 # area-equivalent 1000 mm2 + conductor_area_mm2: 1000.0 + d_conductor_m: 0.0386 + construction: aligned_solid_equivalent + notes: >- + Round compacted, 1000 mm2, diameter 38.6 mm (IEC d_c). TB 880 takes the + datasheet R0 0.0176 ohm/km per metre of core and multiplies the AC + resistance by the lay-up factor (Guidance Point 23). Core offset from the + diameter over the assembled cores, 226 mm: (226 - 104.6)/2. + source: "CIGRE TB 880 Fig. 40, Tables 12-1, 12-3, 12-9, 12-11" + - name: conductor_sc_tape + layer_type: cylindrical_offset + material: tb880_sc_tape + n_cores: 3 + r_offset_m: 0.0607 + r_inner_m: 0.01784124116152771 + r_outer_m: 0.0195 + structural: false + notes: "Over the conductor diameter 38.6 mm to 39.0 mm; the ladder starts it at d_c" + source: "CIGRE TB 880 Fig. 40 (conductor tape 0.2 mm), Table 12-9" + - name: conductor_screen + layer_type: cylindrical_offset + material: tb880_semicon + n_cores: 3 + r_offset_m: 0.0607 + r_inner_m: 0.0195 + r_outer_m: 0.021 + structural: false + source: "CIGRE TB 880 Fig. 40, Table 12-9 (42.0 mm)" + - name: xlpe_insulation + layer_type: cylindrical_offset + material: tb880_xlpe + n_cores: 3 + r_offset_m: 0.0607 + r_inner_m: 0.021 + r_outer_m: 0.044 + electrical: + permittivity_relative: 2.5 + loss_factor_tan_delta: 0.001 + insulation_type: xlpe + source: "CIGRE TB 880 Fig. 40, Tables 12-5 and 12-9 (88.0 mm)" + - name: insulation_screen + layer_type: cylindrical_offset + material: tb880_semicon + n_cores: 3 + r_offset_m: 0.0607 + r_inner_m: 0.044 + r_outer_m: 0.0454 + structural: false + source: "CIGRE TB 880 Fig. 40, Table 12-9 (90.8 mm)" + - name: water_blocking_tape + layer_type: cylindrical_offset + material: tb880_water_blocking_tape + n_cores: 3 + r_offset_m: 0.0607 + r_inner_m: 0.0454 + r_outer_m: 0.0461 + structural: false + source: "CIGRE TB 880 Fig. 40 (swelling tape 0.7 mm), Table 12-9 (92.2 mm)" + - name: lead_sheath + layer_type: cylindrical_offset + material: lead_sheath + n_cores: 3 + r_offset_m: 0.0607 + r_inner_m: 0.0461 + r_outer_m: 0.0497 + notes: "Lead alloy, 3.6 mm, mean diameter 95.8 mm" + source: "CIGRE TB 880 Fig. 40, Tables 12-7 and 12-11 (99.4 mm)" + - name: scpe_sheath + layer_type: cylindrical_offset + material: tb880_semicon + n_cores: 3 + r_offset_m: 0.0607 + r_inner_m: 0.0497 + r_outer_m: 0.0523 + structural: false + source: "CIGRE TB 880 Fig. 40, Table 12-11 (104.6 mm)" + - name: fillers + layer_type: cylindrical + material: tb880_filler + r_inner_m: 0.0 + r_outer_m: 0.113 + structural: false + source: "CIGRE TB 880 Fig. 40 (assembling diameter 226 mm), Table 12-11" + - name: binder_and_bedding + layer_type: cylindrical + material: tb880_filler + r_inner_m: 0.113 + r_outer_m: 0.1135 + structural: false + notes: "Core binder 0.3 mm and armour bedding 0.2 mm (inner diameter of the armour 227 mm)" + source: "CIGRE TB 880 Fig. 40, Table 12-11" + - name: armour + layer_type: helical + material: tb880_stainless_armour + n_wires: 133 + d_wire_m: 0.005 + r_helix_m: 0.116 + lay_angle_deg: 14.1083 + lay_direction: right_hand + notes: "133 x 5.0 mm stainless steel wires over 227 mm to 237 mm, lay 2900 mm right (atan(pi 232 / 2900))" + source: "CIGRE TB 880 Fig. 40, Table 12-13" + - name: serving + layer_type: cylindrical + material: tb880_filler + construction: serving + r_inner_m: 0.1185 + r_outer_m: 0.1225 + structural: false + source: "CIGRE TB 880 Fig. 40 (outer cover 2 x 2 mm), Table 12-13 (245 mm)" +aggregate_properties: + OD_mm: 245.0 diff --git a/tests/test_thermal_tb880.py b/tests/test_thermal_tb880.py new file mode 100644 index 0000000..ad801f1 --- /dev/null +++ b/tests/test_thermal_tb880.py @@ -0,0 +1,140 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""CIGRE TB 880 (2022) Case studies 2 and 8 against ``compute_thermal``. + +Rows TB880-C2 and TB880-C8 (doc/benchmarks.md, "CIGRE TB 880 Case studies 2 +and 8"; validation/scripts/check_tb880.py). The ladder terms are compared with +the brochure's printed results; the registered bands are 0.5 % (T1, T3, y_s, +y_p, W_d) and 1 % (lambda1'). Same formulas and diameters agree to the printed +digits; W_d differs by TB 880's eps0 = 1e-9/(36 pi), +0.137 %. +""" + +from __future__ import annotations + +import math +import warnings + +import check_tb880 as tb +import pytest + +import cablexsec as cx +from cablexsec.mechanics.thermal import compute_thermal, iec_conductor_temperature + +pytestmark = pytest.mark.independent_method + +_CASES = {case.key: case for case in tb.CASES} + + +@pytest.fixture(scope="module", params=sorted(_CASES)) +def evaluated(request): + case = _CASES[request.param] + return case, tb.evaluate(case) + + +def test_registered_bands(evaluated) -> None: + _case, out = evaluated + assert out["pass"] + + +def test_ladder_terms_to_the_printed_digits(evaluated) -> None: + # Same formulas, diameters and resistivities: round-off of TB 880's 10 digits. + _case, out = evaluated + for key in ("T1", "T3", "y_s", "y_p"): + assert abs(float(out[key])) < 1e-8, key + assert abs(float(out["lambda1_circ"])) < 1e-5 + + +def test_dielectric_loss_differs_by_the_eps0_of_tb880(evaluated) -> None: + # TB 880 writes C = eps/(18 ln(D/d)) 1e-9, i.e. eps0 = 1e-9/(36 pi); + # IEC 60287-1-1:2023 5.2 gives eps0 = 8.854e-12 F/m, as compute_thermal. + _case, out = evaluated + ratio = 8.854e-12 / (1e-9 / (36.0 * math.pi)) + assert 1.0 + float(out["W_d"]) == pytest.approx(ratio, rel=1e-9) + + +def test_stated_ratings_stay_where_recorded(evaluated) -> None: + # Stated, not gated: regression bounds on the recorded ratings. + case, out = evaluated + tb_rating = float(out["rating_tb_A"]) / case.current_amps - 1.0 + iec_rating = float(out["rating_iec_A"]) / case.current_amps - 1.0 + if case.key == "C2": + # T2 -5.1 %: the cores are touching for s but 134.9 mm for x. + assert 0.0 < tb_rating < 0.005 + else: + assert abs(tb_rating) < 0.0005 + assert 0.02 < iec_rating < 0.04 # no eddy loss, no GP 25 factor (IEC defaults) + + +def _case8(): + return cx.load_cable(tb.DATA / "case8_220kv.yaml", geometry_override=None) + + +def test_resistances_split_at_the_armour() -> None: + case = _CASES["C8"] + cable = _case8() + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + res = compute_thermal( + cable, + case.current_amps, + case.area_m2, + T4_external_Km_W=case.T4, + ambient_C=15.0, + ) + r = res.resistances + assert r is not None and res.losses is not None + # T3: the serving over the armour, 237 mm to 245 mm at 6 K m/W. + assert r["T3_Km_W"] == pytest.approx( + 6.0 / (2 * math.pi) * math.log(245 / 237), rel=1e-12 + ) + assert r["T4_Km_W"] == case.T4 + # Formula (1) with these resistances reproduces the ladder (lambda2 = 0). + theta = iec_conductor_temperature( + r["T1_Km_W"], + r["T2_Km_W"], + r["T3_Km_W"], + r["T4_Km_W"], + W_c=res.losses["W_c_W_m"], + W_d=res.losses["W_d_W_m"], + lambda1=res.losses["lambda1"], + n_conductors=3, + T_ambient_C=15.0, + ) + assert theta == pytest.approx(res.T_conductor_C, rel=1e-12) + + +def test_unarmoured_cable_has_no_t3() -> None: + cable = _case8() + layers = tuple(x for x in cable.layers if x.name != "armour") + bare = cable.model_copy(update={"layers": layers}) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + res = compute_thermal( + bare, 800.0, 1000e-6, T4_external_Km_W=0.31, ambient_C=15.0 + ) + assert res.resistances is not None + assert res.resistances["T3_Km_W"] == 0.0 + assert res.resistances["T2_Km_W"] > 0.0 + + +def test_sheath_reactance_carries_the_lay_factor_without_magnetic_armour() -> None: + # 2026-11-30 (TB880-C8): IEC 60287-1-1 Annex A gives X per metre of cable + # as the straight-core value times C_LL also on the 5.3.2 route + # (non-magnetic armour, TB 880 GP 38), as TB 880 Case 8 step 12.4 does. + case = _CASES["C8"] + cable = tb._touching(_case8(), case.spacing_m) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + res = compute_thermal( + cable, + case.current_amps, + case.area_m2, + T4_external_Km_W=case.T4, + ambient_C=15.0, + conductor_resistance_20C_ohm_m=case.r20_ohm_m, + y_s=case.y_s, + y_p=case.y_p, + ) + note = next(x for x in res.provenance.limitations if "lambda1'" in x) + assert "X times C_LL" in note + assert res.losses["lambda1"] == pytest.approx(case.lambda1_circ, rel=2e-5) diff --git a/validation/scripts/check_tb880.py b/validation/scripts/check_tb880.py new file mode 100644 index 0000000..58edc50 --- /dev/null +++ b/validation/scripts/check_tb880.py @@ -0,0 +1,216 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""CIGRE TB 880 (2022) Case studies 2 and 8 against ``compute_thermal``. + +Rows TB880-C2 and TB880-C8 of the validation report (targets registered in +``doc/benchmarks.md`` before the first run). The cables are +``tests/data/tb880/case2_30kv.yaml`` (3x630 mm2 18/30 kV, lead sheaths, +galvanised steel wire armour) and ``case8_220kv.yaml`` (3x1000 mm2 220 kV, lead +sheaths, stainless steel wire armour), built from the TB 880 datasheets +(Figs 29 and 40) and the dimensions of its input tables. Reference values +are the brochure's printed results. + +Each case is compared in two parts: + +* the ladder and loss terms (gated): ``T1``, ``T3``, ``y_s`` and ``W_d`` on + the datasheet geometry, within 0.5 %; ``y_p`` and ``lambda1'`` in the + spacing TB 880 uses for them (cores touching, ``s`` = core diameter), with + the factor 1.5 that TB 880 Guidance Point 25 puts on ``y_s + y_p`` under + magnetic armour, within 0.5 % and 1 %. TB 880 takes the cores touching for + ``s`` but the datasheet diameter over the assembled cores for ``x`` of the + filler factor and for ``c`` of the armour loss; one core offset cannot give + both, so ``T2`` is stated, not gated. +* the rating (stated): the current at a 90 degC conductor with TB 880's loss + choices (``lambda1`` with the eddy loss times ``F``, ``lambda2``, the + Guidance Point 25 factor, the datasheet resistance per metre of core times + ``C_LL`` in Case 8) and with the IEC defaults of ``compute_thermal``. +""" + +from __future__ import annotations + +import math +import warnings +from dataclasses import dataclass +from pathlib import Path + +import cablexsec as cx +from cablexsec.cables.schema import CableData +from cablexsec.mechanics.thermal import ThermalResult, compute_thermal + +ROOT = Path(__file__).resolve().parents[2] +DATA = ROOT / "tests" / "data" / "tb880" + +#: Registered bands (doc/benchmarks.md, "CIGRE TB 880 Case studies 2 and 8"). +BAND_LADDER = 0.005 # T1, T3, y_s, y_p, W_d: relative +BAND_LAMBDA1 = 0.01 # lambda1' in the TB 880 spacing: relative + + +@dataclass(frozen=True) +class Case: + """A TB 880 case: inputs and the printed results used here.""" + + key: str + file: str + current_amps: float + area_m2: float + T4: float + spacing_m: float # distance between conductor axes TB 880 uses (touching) + armour_factor: float # TB 880 GP 25 factor on y_s + y_p (1.5 magnetic armour) + r20_ohm_m: float | None # datasheet resistance as compute_thermal reads it + T1: float + T2: float + T3: float + y_s: float + y_p: float + lambda1_circ: float + W_d: float + lambda1: float + lambda2: float + + +CASES = ( + # TB 880 Section 6: Tables 6-1 to 6-17, steps 6.2 to 6.11. + Case( + "C2", + "case2_30kv.yaml", + current_amps=838.3399739336, + area_m2=630e-6, + T4=0.3617633359, + spacing_m=0.0621, + armour_factor=1.5, + r20_ohm_m=None, # IEC 60228 Table 4 = datasheet 0.0283 ohm/km per cable + T1=0.3578707848, + T2=0.0779300464, + T3=0.0376252079, + y_s=0.0601241268, + y_p=0.0511765348, + lambda1_circ=0.1408854886, + W_d=0.1316852157, + lambda1=0.1628367815, + lambda2=0.4206526837, + ), + # TB 880 Section 12: Tables 12-1 to 12-18; converged values of step 12.11. + Case( + "C8", + "case8_220kv.yaml", + current_amps=1134.8196615454, + area_m2=1000e-6, + T4=0.3107202651, + spacing_m=0.1046, + armour_factor=1.0, + # 0.0176 ohm/km per metre of core, times C_LL = 1.0118110892 (GP 23). + r20_ohm_m=0.0176e-3 * 1.0118110892, + T1=0.48728714947, + T2=0.02641373992, + T3=0.03170182109, + y_s=0.1444369104, + y_p=0.05683893091, + lambda1_circ=0.3584934634, + W_d=0.96295182288, + lambda1=0.4557096608, + lambda2=0.0, + ), +) + + +def _rel(value: float, ref: float) -> float: + return (value - ref) / ref + + +def _touching(cable: CableData, spacing_m: float) -> CableData: + """The cable with its cores touching at ``spacing_m`` between axes.""" + r_offset = spacing_m / math.sqrt(3.0) + layers = tuple( + layer.model_copy(update={"r_offset_m": r_offset}) + if layer.layer_type == "cylindrical_offset" + else layer + for layer in cable.layers + ) + return cable.model_copy(update={"layers": layers}) + + +def _thermal( + case: Case, cable: CableData, current_A: float, **kw: object +) -> ThermalResult: + with warnings.catch_warnings(): + warnings.simplefilter("ignore") # the 90 degC range guard near the rating + return compute_thermal( + cable, + current_A, + case.area_m2, + T4_external_Km_W=case.T4, + ambient_C=15.0, + include_dielectric_loss=True, + **kw, # type: ignore[arg-type] + ) + + +def _rating(case: Case, cable: CableData, **kw: object) -> float: + """Current at a 90 degC conductor (bisection to 1e-9 A).""" + lo, hi = 0.25 * case.current_amps, 2.0 * case.current_amps + while hi - lo > 1e-9: + mid = 0.5 * (lo + hi) + if _thermal(case, cable, mid, **kw).T_conductor_C > 90.0: + hi = mid + else: + lo = mid + return 0.5 * (lo + hi) + + +def evaluate(case: Case) -> dict[str, float | bool]: + """Relative deviations of the ladder terms and the ratings of one case.""" + cable = cx.load_cable(DATA / case.file, geometry_override=None) + base = _thermal(case, cable, case.current_amps) + assert base.resistances is not None and base.losses is not None + touch = _touching(cable, case.spacing_m) + plain = _thermal(case, touch, case.current_amps) + assert plain.losses is not None + f = case.armour_factor + tb_y = {"y_s": f * plain.losses["y_s"], "y_p": f * plain.losses["y_p"]} + sheath = _thermal( + case, + touch, + case.current_amps, + conductor_resistance_20C_ohm_m=case.r20_ohm_m, + **tb_y, + ) + assert sheath.losses is not None + out: dict[str, float | bool] = { + "T1": _rel(base.resistances["T1_Km_W"], case.T1), + "T2": _rel(base.resistances["T2_Km_W"], case.T2), + "T3": _rel(base.resistances["T3_Km_W"], case.T3), + "y_s": _rel(base.losses["y_s"], case.y_s), + "W_d": _rel(base.losses["W_d_W_m"], case.W_d), + "y_p": _rel(plain.losses["y_p"], case.y_p), + "lambda1_circ": _rel(sheath.losses["lambda1"], case.lambda1_circ), + } + gated = ("T1", "T3", "y_s", "W_d", "y_p") + out["pass"] = all(abs(float(out[k])) <= BAND_LADDER for k in gated) and ( + abs(float(out["lambda1_circ"])) <= BAND_LAMBDA1 + ) + tb_choices = { + "y_s": f * base.losses["y_s"], + "y_p": f * base.losses["y_p"], + "lambda1": case.lambda1, + "lambda2": case.lambda2, + "conductor_resistance_20C_ohm_m": case.r20_ohm_m, + } + out["rating_tb_A"] = _rating(case, cable, **tb_choices) + out["rating_iec_A"] = _rating(case, cable, lambda2=case.lambda2) + return out + + +if __name__ == "__main__": + for c in CASES: + result = evaluate(c) + print( + c.key, + { + k: ( + f"{v * 100:+.4f} %" + if k not in ("pass",) and abs(float(v)) < 1 + else v + ) + for k, v in result.items() + }, + ) diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index 33c88e6..065202b 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -1449,6 +1449,47 @@ def _zeidan_rows() -> list[Row]: return rows +def _tb880_rows() -> list[Row]: + """Rows TB880-C2 and TB880-C8: CIGRE TB 880 (2022) Case studies 2 and 8 + against compute_thermal (registered targets in doc/benchmarks.md; + check_tb880.py).""" + import check_tb880 as tb # noqa: PLC0415 + + rows: list[Row] = [] + for case, title in zip( + tb.CASES, + ( + "CIGRE TB 880 Case study 2, 3x630 mm2 18/30 kV array cable (lead " + "sheaths, galvanised steel wire armour)", + "CIGRE TB 880 Case study 8, 3x1000 mm2 220 kV export cable (lead " + "sheaths, stainless steel wire armour)", + ), + strict=True, + ): + out = tb.evaluate(case) + + def p(key: str, out: dict[str, float | bool] = out) -> str: + return f"{float(out[key]) * 100:+.4f}%" + + rows.append( + Row( + "2", + f"TB880-{case.key}", + f"{title}: T1, T3, y_s, W_d on the datasheet geometry; y_p and " + "lambda1' in the spacing TB 880 uses (cores touching), with its " + "GP 25 factor on y_s + y_p; T2 stated", + "T1, T3, y_s, y_p, W_d within 0.5%; lambda1' within 1%", + f"T1 {p('T1')}, T3 {p('T3')}, y_s {p('y_s')}, W_d {p('W_d')} " + f"(TB 880 eps0 1e-9/36pi, IEC 8.854e-12), y_p {p('y_p')}, lambda1' " + f"{p('lambda1_circ')}; T2 {p('T2')} (stated); rating at 90 °C with " + f"TB 880's loss factors {float(out['rating_tb_A']):.2f} A vs " + f"{case.current_amps:.2f} A, IEC defaults {float(out['rating_iec_A']):.2f} A", + "PASS" if out["pass"] else "FAIL", + ) + ) + return rows + + def _rows() -> list[Row]: rows: list[Row] = _normal_state_rows() menard = cx.load_cable(cx.menard2023_yaml_path(), geometry_override=None) @@ -2308,6 +2349,7 @@ def _comp_row(tier: str, ident: str, quantity: str, keys: tuple[str, ...]) -> Ro "PARTIAL (cited network)", ) ) + rows.extend(_tb880_rows()) rows.append( Row( diff --git a/validation/validation_report.md b/validation/validation_report.md index 52c63f9..76ed0a0 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -80,12 +80,14 @@ Every row is computed from published data or closed-form references in this repo | 2 | DAI18-T1 | Dai et al. (2018) Test 1 loops vs spring-slider with the printed mu_s/mu_d, stick_time_s = 0 and each loop's stick slope (last 0.5 mm before each reversal excluded): peak and dynamic level (+x/-x stroke), stroke work; decay and peak position, Tests 1 and 3 | stated, not gated | 8 MPa: peak -1.8/-0.8%, level +0.1/+4.7%, work -2.6%; 4 MPa: peak -0.4/+0.6%, level -1.0/+6.6%, work -1.9%; 1 MPa: peak +1.0/+0.2%, level -3.3/+12.3%, work -2.1%; decay to 10% of peak-level 0.6-2.3 mm (model: one step); peak 1.4-2.5x the slider's elastic travel from the reversal | INFO | | 2 | DAI18-T3 | Dai et al. (2018) Test 3 (4 MPa, groove track, 0.01-0.2 Hz) vs the rate-independent spring-slider with the 0.01 Hz peak and level | stated, not gated | dynamic level vs 0.01 Hz -3.5, -2.4, +0.3% at 0.05/0.1/0.2 Hz (model 0); static peak +10.6% at 0.2 Hz (model 0: no rate term on mu_s); 0.2 Hz peak error -7.9/-11.4%; work -5.4 to -0.9% | INFO | | 2 | BM5 | Poradowski (2025) 220 kV conductor temperature (cited tabulated T-network; R0 [IEC60228], λ1' IEC 5.3.2) | ≤ 90 °C (λ1″ = 0, IEC) | 85.8 °C with λ1″ = 0; 90.9 °C with the CIGRE TB 880 GP 6/31 eddy loss (FEM 89.62 / IEC 90). Not from compute_thermal(cable): the packaged cable is a single-core-equivalent stack of a three-core cable | PARTIAL (cited network) | +| 2 | TB880-C2 | CIGRE TB 880 Case study 2, 3x630 mm2 18/30 kV array cable (lead sheaths, galvanised steel wire armour): T1, T3, y_s, W_d on the datasheet geometry; y_p and lambda1' in the spacing TB 880 uses (cores touching), with its GP 25 factor on y_s + y_p; T2 stated | T1, T3, y_s, y_p, W_d within 0.5%; lambda1' within 1% | T1 +0.0000%, T3 +0.0000%, y_s +0.0000%, W_d +0.1364% (TB 880 eps0 1e-9/36pi, IEC 8.854e-12), y_p +0.0000%, lambda1' +0.0000%; T2 -5.1137% (stated); rating at 90 °C with TB 880's loss factors 841.50 A vs 838.34 A, IEC defaults 864.29 A | PASS | +| 2 | TB880-C8 | CIGRE TB 880 Case study 8, 3x1000 mm2 220 kV export cable (lead sheaths, stainless steel wire armour): T1, T3, y_s, W_d on the datasheet geometry; y_p and lambda1' in the spacing TB 880 uses (cores touching), with its GP 25 factor on y_s + y_p; T2 stated | T1, T3, y_s, y_p, W_d within 0.5%; lambda1' within 1% | T1 -0.0000%, T3 -0.0000%, y_s +0.0000%, W_d +0.1364% (TB 880 eps0 1e-9/36pi, IEC 8.854e-12), y_p -0.0000%, lambda1' +0.0001%; T2 +0.4265% (stated); rating at 90 °C with TB 880's loss factors 1134.95 A vs 1134.82 A, IEC defaults 1168.86 A | PASS | | 2 | BM4 | Saevik-Bruaseth EA population; no-radial-interaction bound | mean model/measured < 1.25 | mean ratio about 1.45; U1 > 2.0 | NOT VALIDATED (negative finding; radial interaction missing) | ## Test taxonomy (full gate suite) - analytical_sanity: `1347 passed` -- independent_method: `93 passed` +- independent_method: `104 passed` - full_scale: `62 passed` Run `pytest -m ` to reproduce each group. From 3926fe198be1eac08cb6e7162dfcb2cbcbd9648c Mon Sep 17 00:00:00 2001 From: Jae Hoon Seo Date: Mon, 30 Nov 2026 15:02:50 +0900 Subject: [PATCH 2/2] fix: split T2/T3 by the armour-loss share of each annulus With two armour layers the solver releases the armour loss in equal shares at the armour radii, so an annulus between them (the bedding of iea_task49_66kv) carries half of it. ThermalResult.resistances put that whole annulus in T3, where Formula (1) applies the full armour loss, so the resistances did not reproduce T_conductor_C for a nonzero lambda2. Each annulus outside k of m armour layers now goes (1 - k/m) to T2 and k/m to T3, which reproduces the ladder for any lambda2; single-armour cables (the TB 880 cases) are unchanged. New test reconstructs the 66 kV two-armour template with lambda2 = 0.3. Signed-off-by: Jae Hoon Seo --- src/cablexsec/mechanics/thermal.py | 34 +++++++++++++++--------------- tests/test_thermal_tb880.py | 27 ++++++++++++++++++++++++ validation/validation_report.md | 2 +- 3 files changed, 45 insertions(+), 18 deletions(-) diff --git a/src/cablexsec/mechanics/thermal.py b/src/cablexsec/mechanics/thermal.py index 74aae61..970005a 100644 --- a/src/cablexsec/mechanics/thermal.py +++ b/src/cablexsec/mechanics/thermal.py @@ -1595,20 +1595,16 @@ def _iec_resistances( """``T1``, ``T2``, ``T3`` of [IEC60287-1-1] Formula (1) from the ladder. The per-core equivalents of :func:`_layer_heat_flows` (a cable-level - annulus counts once per cable, a per-core annulus ``1/n`` outside ``T1``), - with ``T2`` and ``T3`` split at the inner radius of the innermost - structural armour (cable axis). Without such an armour ``T3`` is zero. + annulus counts once per cable, a per-core annulus ``1/n`` outside ``T1``). + Outside ``T1`` a cable-level annulus outside ``k`` of ``m`` structural + armour layers carries the share ``s = k/m`` of the armour loss in the + solver; its resistance goes ``(1 - s)`` to ``T2`` and ``s`` to ``T3``, so + that Formula (1) with these values reproduces the ladder for any + ``lambda2`` (the split depends on the geometry only). Per-core annuli and + those inside every armour (``s = 0``) are ``T2``; those outside every + armour (``s = 1``) are ``T3``. Without a structural armour ``T3`` is zero. """ - armour = [a for a in cable.helical_layers if a.structural and a.r_helix_m] - r_arm = ( - min( - float(a.r_helix_m or 0.0) - - 0.5 * float(getattr(a, "wire_thickness_m", None) or a.d_wire_m or 0.0) - for a in armour - ) - if armour - else math.inf - ) + radii = _armour_radii(cable) n = float(geo.n) t1 = t2 = t3 = 0.0 for annulus, inner in zip(geo.path, geo.in_t1, strict=True): @@ -1621,10 +1617,14 @@ def _iec_resistances( mult = 1.0 if inner else n if inner: t1 += mult * r_i - elif annulus.per_core or annulus.layer.r_inner_m < r_arm - _RADIUS_TOL_M: - t2 += mult * r_i / n - else: - t3 += mult * r_i / n + continue + share = 0.0 + if radii and not annulus.per_core: + share = sum( + 1.0 for r_a in radii if r_a <= annulus.layer.r_inner_m + 1e-12 + ) / len(radii) + t2 += (1.0 - share) * mult * r_i / n + t3 += share * mult * r_i / n return t1, t2, t3 diff --git a/tests/test_thermal_tb880.py b/tests/test_thermal_tb880.py index ad801f1..8a8e969 100644 --- a/tests/test_thermal_tb880.py +++ b/tests/test_thermal_tb880.py @@ -138,3 +138,30 @@ def test_sheath_reactance_carries_the_lay_factor_without_magnetic_armour() -> No note = next(x for x in res.provenance.limitations if "lambda1'" in x) assert "X times C_LL" in note assert res.losses["lambda1"] == pytest.approx(case.lambda1_circ, rel=2e-5) + + +def test_resistances_reproduce_two_armour_cable_with_armour_loss() -> None: + # 2026-11-30 (PR #69 review): with two armour layers the bedding between + # them carries half the armour loss; Formula (1) with the returned T1-T4 + # must still reproduce the ladder for a nonzero lambda2. + cable = cx.load_cable(cx.iea_task49_66kv_yaml_path(), geometry_override=None) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + res = compute_thermal( + cable, 800.0, 630e-6, T4_external_Km_W=0.5, ambient_C=15.0, lambda2=0.3 + ) + r = res.resistances + assert r is not None and res.losses is not None + theta = iec_conductor_temperature( + r["T1_Km_W"], + r["T2_Km_W"], + r["T3_Km_W"], + r["T4_Km_W"], + W_c=res.losses["W_c_W_m"], + W_d=res.losses["W_d_W_m"], + lambda1=res.losses["lambda1"], + lambda2=res.losses["lambda2"], + n_conductors=3, + T_ambient_C=15.0, + ) + assert theta == pytest.approx(res.T_conductor_C, rel=1e-12) diff --git a/validation/validation_report.md b/validation/validation_report.md index 76ed0a0..3414054 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -87,7 +87,7 @@ Every row is computed from published data or closed-form references in this repo ## Test taxonomy (full gate suite) - analytical_sanity: `1347 passed` -- independent_method: `104 passed` +- independent_method: `105 passed` - full_scale: `62 passed` Run `pytest -m ` to reproduce each group.