diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 0974976..795452e 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -51,7 +51,7 @@ src/cablexsec/ cores), field validators that reject non-finite values, and `load_cable`. - `__init__.py`: paths to the packaged definitions `inter_array_single_core_33kv.yaml`, `inter_array_three_core_33kv.yaml`, - `export_three_core_220kv.yaml`, `cigre_tb880_220kv.yaml`, `menard2023.yaml` + `export_three_core_220kv.yaml`, `poradowski2025_220kv.yaml`, `menard2023.yaml` and `menard2023_filled.yaml`, `iea_task49_66kv.yaml` (public 66 kV wet-design template) and `iea_task49_66kv_300.yaml` (derived 300 mm² section), `chae2023_coiling.yaml` (Chae, Nam and Shim 2023 coiling case), diff --git a/CHANGELOG.md b/CHANGELOG.md index 75904e2..789db7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,57 @@ All notable changes to CableXSec are recorded in this file. The format follows cases). The Zeidan section adds what the paper's EPR layer holds, that the source compares monotonic curves in plotted curvature (not loops), and the record zero and centre. No target, band, gated input or default changes; SV11-PLANE and SV11-GJ stay FAIL. +- Thermal functions of IEC 60287-1-1:2023: `lay_length_factor` (Annex A), + `conductor_resistance_20C` (IEC 60228:2023 Table 4), `sheath_reactance`, + `sheath_eddy_loss_factor` (5.3.7.1, with the solid-bonding factor of 5.3.6 that CIGRE TB + 880 Guidance Point 31 applies), `sl_filler_geometric_factor` (IEC 60287-2-1:2023 5.6) and + `DIELECTRIC_LOSS_U0_KV` (5.2). `ThermalResult.losses` holds the loss terms used. New + inputs: `d_conductor_m` of a conductor (the IEC `d_c` of a stranded conductor), + `insulation_type` of an `electrical` block, the material property + `relative_permeability`, and the `compute_thermal` / `thermal_network` options + `conductor_resistance_20C_ohm_m`, `k_s`, `k_p` and `include_dielectric_loss` + (`thermal_network` also `rating_temperature_C` and `rating_current_A`). + +### Changed + +- The thermal ladder follows IEC 60287-1-1:2023 and IEC 60287-2-1:2023, and the loss terms + are computed from the cable unless given (they defaulted to zero, which put the conductor + loss of a 630 mm² three-core cable about 9 % low, and more with its sheath loss): + - `R0` from IEC 60228 Table 4 (per km of the complete cable, as its Annex A states), else + `ρ/A` times the lay-up factor `C_LL`; `ρ` of copper 1.7241e-8 Ω m (IEC 60287-1-1 Table 1); + - the skin factor over the three ranges of `x_s` (5.1.3) and the proximity factor of a two- + or three-core cable (5.1.4, 5.1.5.1); + - the sheath loss of the per-core screens of an SL-type cable: 5.3.11 (factor 1.5, `X` + times `C_LL`) under magnetic armour, 5.3.2 otherwise (CIGRE TB 880 Guidance Point 38); + `λ1″` = 0 as in IEC (TB 880 Guidance Point 6 keeps it; see `sheath_eddy_loss_factor`); + single-core cables and common sheaths keep `λ1` = 0 with a note; the screen resistance + is that of the wires of a wire screen over their lay (TB 880 Guidance Point 27), with a + laminated foil over them in parallel and a metal tape left out (Guidance Point 29); + - the dielectric loss from the `U0` of the insulation type (127 kV for XLPE), not from a + 100 kV line voltage, with the capacitance times `C_LL`; an insulation layer that + declares its type without the loss data is an error from that type's `U0`; + - per-core thermal resistances divided by `C_LL`; `T1` from the conductor diameter `d_c`, + not from an area-equivalent radius (+7 % on the 66 kV template); the fillers and bedding + of an armoured three-core SL-type cable carry `T2 = ρ/(6π) Ḡ` (IEC 60287-2-1 4.1.4.2, + 5.6; TB 880 Guidance Point 45) instead of the equal-area annulus. + On the 66 kV template at 1093 A the conductor is at 118.3 °C under the assumed burial + (95.3 °C before), and the AC resistance at 90 °C, 0.0395 Ω/km, rounds to the 0.04 Ω/km of + IEA Wind Task 49 Table 13. The project `thermal` settings default to the computed values. +- Thermal resistivities: polyethylene 3.5 K m/W (IEC 60287-2-1 Table 1, was 2.5), + polypropylene fillers and yarns 6.0 K m/W (IEC 60287-2-1 4.1.2.2.4 and CIGRE TB 880 Table + 2-3, was 4.5 without a source). Lead and aluminium sheaths have their IEC 60287-1-1 Table 1 + resistivities. +- The 220 kV cable of Poradowski and Anders (2025) is `poradowski2025_220kv.yaml` + (`cx.poradowski2025_220kv_yaml_path()`), not `cigre_tb880_220kv.yaml`: its data are the + paper's Table 1, not CIGRE TB 880. It has every layer of that table with its published + resistivity: the semiconducting conductor and insulation screens, the swelling tape, the + assembly (5.5 K m/W) and the air layers below and above the corrugated sheath (6.0 K m/W); + its `T1` is 0.6578 K m/W against the paper's 0.6579. The export 220 kV template has its + semiconducting screens; both left zero-resistance gaps there. +- BM5: with `R0` from IEC 60228 the tabulated network gives 85.8 °C (84.4 °C with `ρ/A`), and + 90.9 °C with the eddy loss that CIGRE TB 880 keeps (FEM 89.62, IEC 90 °C). The earlier + diagnosis named only the eddy loss. The factor 1.5 of IEC 5.3.11 is for magnetic armour; with + the stainless armour of this cable it would give 100 °C. ### Fixed @@ -37,6 +88,11 @@ All notable changes to CableXSec are recorded in this file. The format follows ### Documentation +- The thermal modules and guides cite the 2023 editions of IEC 60287-1-1, IEC 60287-2-1 and + IEC 60228 by clause and drop the notes that the standards were not held. They state that a + three-core cable with spaced-wire core screens is treated as belted by IEC 60287-2-1 + 4.1.2.2.4, which this ladder does not implement (it takes the screen as an isotherm, a + lower `T1`); a copper tape screen follows the SL-type route (4.1.2.3.1) that it does. - Credit: the coupled intralayer slip of laid cores (`core_core_coupling="relative"`, 0.2.1) follows Skeie, Sødahl, Pettersen and Verde (2023, OMAE2023-104817, doi:10.1115/OMAE2023-104817), who formulated the relative slip of three cores, its onset diff --git a/VALIDATION.md b/VALIDATION.md index dd71a4a..b0b6f28 100644 --- a/VALIDATION.md +++ b/VALIDATION.md @@ -89,7 +89,7 @@ afterwards: a comparison that misses its target is reported as failed. | **DAI18-RS** | Re-stick peak at every reversal, seven loops; spring-slider with `stick_time_s = 0` against the default `inf` | Dai, Sævik and Ye (2018), Figs 4a, 4c | measured 14 of 14 strokes; `0`: 14 of 14; `inf`: 0 of 14 | all; all; none | Pass | | **DAI18-T1** | Test 1 loops (8, 4, 1 MPa) against the spring-slider with the printed coefficients | Dai, Sævik and Ye (2018), Fig. 4a | peak −1.8 to +1.0 %; level −3.3 to +12.3 %; work −1.9 to −2.6 %; no gradual decay after the peak | stated, not gated | Info | | **DAI18-T3** | Test 3 loops (0.01–0.2 Hz) against the rate-independent spring-slider | Dai, Sævik and Ye (2018), Fig. 4c | dynamic level −3.5 to +0.3 %; static peak +10.6 % at 0.2 Hz not represented | stated, not gated | Info | -| **BM5** | Conductor temperature of the CIGRE TB 880 export cable, from the source's tabulated network inputs (`compute_thermal` on the cable itself is not yet comparable) | Poradowski tabulated thermal network; FEM 89.62 °C | 84.4 °C | ≤90 °C, about 5 K low | Partial | +| **BM5** | Conductor temperature of the Poradowski and Anders (2025) 220 kV export cable, from the source's tabulated network inputs (the packaged single-core-equivalent stack is not comparable with `compute_thermal`) | Poradowski tabulated thermal network; FEM 89.62 °C, IEC 90 °C | 85.8 °C (`R0` from IEC 60228, `λ1″` = 0); 90.9 °C with the CIGRE TB 880 eddy loss | ≤90 °C | Partial | | **BM4** | Axial stiffness of a population of umbilicals | Sævik and Bruaseth (2005) | mean ratio about 1.45 | <1.25 | Not validated | **Pass** meets the registered target. **Fail** does not; the target is unchanged and the row diff --git a/doc/benchmarks.md b/doc/benchmarks.md index be96885..811cf6c 100644 --- a/doc/benchmarks.md +++ b/doc/benchmarks.md @@ -71,7 +71,7 @@ The Yun shear coefficient of the finite-support no-slip EI counted an interstitial filler as a concentric shear layer in series with the armour, although it lies beside the cores. It is now left out. This raises the no-slip EI of every cable with an interstitial filler (IEA Task 49 66 kV, the bundled -33 kV and 220 kV three-core cables, Chae 2023, CIGRE TB 880 and Thies 2016 by +33 kV and 220 kV three-core cables, Chae 2023, Poradowski 2025 and Thies 2016 by 14 to 58%) and moves the loops that use the coefficient slightly. Full-slip EI, the plane-section full-stick EI and the cables without a filler (Ménard BM1, Witz, Sævik) are unchanged. The benchmark input `menard2023.yaml` is @@ -95,7 +95,7 @@ model) is the full construction. | Armour longitudinal displacement, Ménard and Cartraud FE | MM | Phase and scale reproduced; peaks over-predicted | | 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 | -| CIGRE TB880 conductor temperature | MM | PARTIAL | +| Poradowski (2025) conductor temperature | MM | PARTIAL | | 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) | @@ -833,7 +833,7 @@ no loop or beam solver run): | `inter_array_single_core_33kv.yaml` | inner 0.0248 → 0.0248 (concentric core layers); outer 0.0333 → 1.0000 | 2.20 → 33.0 | | `inter_array_single_core_33kv_legacy_r2.yaml` | inner 0.0305 → 0.0305; outer 0.0409 → 1.0000 | 2.88 → 38.0 | | `export_three_core_220kv.yaml` | inner 0.2613 → 0.9363; outer 0.2809 → 1.0000 | 3422 → 9394 | -| `cigre_tb880_220kv.yaml` | inner 0.4692 → 0.4692 (single core: all concentric); outer 0.4957 → 0.9848 | 11425 → 17640 | +| `poradowski2025_220kv.yaml` | inner 0.4692 → 0.4692 (single core: all concentric); outer 0.4957 → 0.9848 | 11425 → 17640 | | `thies2016_30kv.yaml` | armour 0.2083 → 0.8428 (bedding) | 105 → 322 | | `chae2023_coiling.yaml` | armour 0.5427 → 0.9633 (inner yarn) | 860 → 1314 | @@ -995,16 +995,34 @@ elements and behaves as the source's no-radial-interaction analytical bound; the source FE with radial interaction gives a mean ratio of 0.946. Retained as a negative finding. -## CIGRE TB880 thermal benchmark (BM5) +## Poradowski (2025) thermal benchmark (BM5) + +Source: Poradowski and Anders (2025), Ocean Eng. 328, 121027, Table 1 and +NOTE 1: a 220 kV three-core export cable, 1200 mm² copper, corrugated copper +sheath, non-magnetic stainless armour, buried at 1.5 m (T4 = 0.3211 K·m/W, +15 °C), 908.45 A. The source cites CIGRE TB 880 for the construction; no TB +880 data are used here. | Class | Quantity | Reference | Result | Status | | --- | --- | --- | --- | --- | -| MM | Conductor temperature, three-core 220 kV cable, tabulated thermal network of Poradowski (2025) with circulating-current sheath loss only | FEM 89.62 °C; IEC 90 °C | 84.4 °C, about 5 K low | PARTIAL | - -The eddy-current loss term is not included, and the IEC 60287-2-1 three-core -geometric factor is not yet applied, so `compute_thermal` on the TB880 cable -input reads 136.1 °C with the BM5 inputs (908.45 A, three cores, λ1′, T4 = 0.3211 K·m/W, 15 °C; after the filler is represented as an equal-area annulus, which overestimates the filler resistance: 0.166 against 0.112 K·m/W). The comparison uses the cited tabulated network, not -the cable definition. +| MM | Conductor temperature from the tabulated network (T1 0.6579, T2 0.1121, T3 0.0357 K·m/W); `R0` 0.0151 Ω/km (IEC 60228 Table 4); `λ1′` 1.027 (IEC 60287-1-1 5.3.2); `λ1″` = 0 (IEC) | FEM 89.62 °C; IEC 90 °C | 85.8 °C | PARTIAL | +| MM | Same with the sheath eddy loss of IEC 60287-1-1 5.3.7.1 times the solid-bonding factor F (5.3.6), as CIGRE TB 880 Guidance Points 6 and 31 keep it (`λ1″` 0.186) | FEM 89.62 °C; IEC 90 °C | 90.9 °C | stated | + +The earlier result, 84.4 °C, took `R0 = ρ/A` (5 % below the IEC 60228 +value), which gives 1.4 K of the 5.6 K difference; the eddy loss gives the +rest. Its earlier diagnosis named only the eddy loss. The sheath formula is +that of IEC 60287-1-1 5.3.2: CIGRE TB 880 Guidance Point 38 gives the factor +1.5 of 5.3.11 to SL-type cables under magnetic armour, and with the +stainless armour of this cable that factor would give 100.0 °C. + +The packaged `poradowski2025_220kv.yaml` is a single-core-equivalent stack of +the three-core cable, as in the source's axisymmetric thermal model, with +every layer of Table 1 (the semiconducting screens, the swelling tape and the +air layers of footnote d) and its published resistivity; its `T1` is +0.6578 K·m/W against the source's 0.6579. The SL-type losses and the filler +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`). ## Temperature history coupled into clamping and fatigue (gap 4.1) @@ -1013,8 +1031,8 @@ Gates of `tests/test_thermal_history.py` for the slow-time driver | Class | Quantity | Reference | Result | Status | | --- | --- | --- | --- | --- | -| A | Steady state of the transient RC ladder at the BM5 inputs (908.45 A, three cores, λ1′, `T4` 0.3211 K·m/W, 15 °C, `R_ac` at 90 °C) | `compute_thermal` 136.06 °C (IEC-consistent profile) | Equal to 1e-12 at 1, 3 and 8 sub-annuli per layer; every annulus edge to 1e-11; heat through `T4` equals the heat generated to 1e-10 | PASS | -| A | Same, 66 kV three-core template at 1093 A | `compute_thermal` 95.35 °C | Equal to 1e-8 (conditioning of the 0.10 mm copper tape screens) | PASS | +| A | Steady state of the transient RC ladder at the BM5 inputs (908.45 A, three cores, λ1′, `T4` 0.3211 K·m/W, 15 °C, `R_ac` at 90 °C) on the single-core-equivalent stack | `compute_thermal` (IEC-consistent profile) | Equal to 1e-12 at 1, 3 and 8 sub-annuli per layer; every annulus edge to 1e-11; heat through `T4` equals the heat generated to 1e-10 | PASS | +| A | Same, 66 kV three-core template at 1093 A, computed losses (`rating_current_A` 1093 A) | `compute_thermal` 118.3 °C | Equal to 1e-8 (conditioning of the 0.10 mm copper tape screens) | PASS | | A | Crank–Nicolson energy balance of the transient network | Discrete identity `ΣC ΔT = h/2 (Q_n + Q_n+1)` | Round-off (1e-9) | PASS | | A | TR-BDF2 order; steady hold; step response | Second order; steady state | Error ratio 3–5 on halving the step; drift < 1e-8 K; step reaches the steady state to 1e-3 K | PASS | | A | Coupled `R_ac(T_c)` | Fixed point | Re-evaluating `R_ac` at `T_c` changes no node by more than 1e-10 | PASS | @@ -3261,7 +3279,7 @@ Electro-thermo-mechanical benchmarks for the energised-cable chain. | Benchmark | Class | Quantity | Prerequisite | | --- | --- | --- | --- | -| CIGRE TB880 (BM5) completion | MM | Conductor temperature of the three-core 220 kV cable from the cable definition, not only the tabulated network | λ1″ eddy-current loss and the IEC 60287-2-1 three-core factor; full IEC 60287-1-1 and 2-1 texts (previews only in the library) | +| Poradowski (2025) (BM5) completion | MM | Conductor temperature of the three-core 220 kV cable from the cable definition, not only the tabulated network | a three-core definition of the cable (cores, fillers, armour) in place of the single-core-equivalent stack | | Transient conductor temperature under a current step and a daily cycle | A | Crank–Nicolson solution against the closed-form exponential response of a lumped ladder | The current-history driver is in place (`ThermalHistory.from_current`, gap 4.1); remaining: registered targets | | Fixed temperature against temperature history | I | Armour damage at the governing and hang-off sections of the floating-wind reference case with a synthetic power-correlated current history | Clamping history into `fast_slip`; joint current–sea-state binning | | Komperød (2017), bending at two temperatures | M | Bending-stiffness change between +5 and +20 °C | Published construction and heating condition | diff --git a/doc/file_formats.md b/doc/file_formats.md index 8b00438..18b9361 100644 --- a/doc/file_formats.md +++ b/doc/file_formats.md @@ -96,7 +96,7 @@ them filled. | `helical` (armour wires) | `n_wires`, `d_wire_m`, `r_helix_m`, `lay_angle_deg` | `lay_direction` (`right_hand` default, `left_hand`), `manufacturing_clamping`, `bulk_sn`, `fretting_sn`, `transverse_slip_fraction`; flat or profiled wires: `wire_shape` (`round` default, `rectangular`, `profiled`), `wire_width_m`, `wire_thickness_m`, `wire_corner_radius_m`, `wire_area_m2`, `wire_I_normal_m4`, `wire_I_lateral_m4`, `wire_J_m4` | | `helical_stranded` (strand within conductor within cable) | `n_conductors`, `r_cable_m`, `lay_angle_cable_deg`, `n_strands`, `r_strand_m`, `d_strand_m`, `lay_angle_strand_deg` | `bulk_sn`, `fretting_sn` | | `cylindrical` (polymer annulus, bedding, filler, sheath, serving) | `r_inner_m`, `r_outer_m` | `tape` (helical tape winding), `strain_life`, `extrusion_shrinkage`, `construction` (`serving`), `stiffness` (instead of `material`) | -| `cylindrical_offset` (core component: conductor, insulation, screen) | `r_offset_m`, `r_inner_m`, `r_outer_m` | `n_cores` (default 3), `conductor_area_mm2`, `strand_layers`, `n_strands`, `strand_diameter_mm`, `strand_lay_angle_deg`, `construction`, `electrical`, `bulk_sn`, `fretting_sn`, `strain_life`, `outer_face_pressure`, `tape` | +| `cylindrical_offset` (core component: conductor, insulation, screen) | `r_offset_m`, `r_inner_m`, `r_outer_m` | `n_cores` (default 3), `conductor_area_mm2`, `d_conductor_m` (conductor diameter over the wires, the IEC 60287 `d_c`), `strand_layers`, `n_strands`, `strand_diameter_mm`, `strand_lay_angle_deg`, `construction`, `electrical`, `bulk_sn`, `fretting_sn`, `strain_life`, `outer_face_pressure`, `tape` | | `cylindrical_shell` (lead or corrugated aluminium sheath) | `r_mid_m`, `t_m` | `f_corrugation` (default 1), `scf` (default 1), `construction` (`bonded_laminate`), `bulk_sn`, `fretting_sn`, `strain_life` | `construction: serving` on a `cylindrical` layer declares a served yarn or a @@ -235,6 +235,7 @@ temperature, scaled to `E_Pa`. | `creep_coeff`, `creep_exponent` | – | `rho_ohm_m` | Ω m | | `sigma_y_Pa`, `sigma_UTS_Pa` | Pa | `alpha_R_per_K` | 1/K | | `epsilon_allow` | – (a ratio) | `epsilon_r` | – | +| | | `relative_permeability` | – | Values outside the admissible range of a property are rejected. Materials and S–N curves can also be registered for a session with `cx.register_material` diff --git a/doc/glossary.rst b/doc/glossary.rst index 9f9ca9e..861a9a4 100644 --- a/doc/glossary.rst +++ b/doc/glossary.rst @@ -221,8 +221,8 @@ Terms and abbreviations CIGRE TB A Technical Brochure of CIGRE, the international council on large electric systems. TB - 610 defines the wet and dry cable designs; TB 862 gives mechanical tests; TB 880 is the source of a bundled 220 kV export cable - (:func:`~cablexsec.cigre_tb880_yaml_path`). + 610 defines the wet and dry cable designs; TB 862 gives mechanical tests; TB 880 gives guidance on IEC 60287 rating calculations + (:func:`~cablexsec.poradowski2025_220kv_yaml_path`). clamp boundary layer The length from an anchor over which the friction-fed wire force decays to the sectional diff --git a/doc/howto.md b/doc/howto.md index 921f204..6af1a10 100644 --- a/doc/howto.md +++ b/doc/howto.md @@ -268,10 +268,10 @@ without the heat of armour friction. ```text coupling none friction heat 0.00 W/m at start, 0.00 W/m at 6 h - after 6 h: conductor 31.9 C, outer armour 24.7 C + after 6 h: conductor 34.8 C, outer armour 25.8 C coupling two_way - friction heat 9.90 W/m at start, 18.24 W/m at 6 h - after 6 h: conductor 34.7 C, outer armour 27.8 C + friction heat 9.90 W/m at start, 22.27 W/m at 6 h + after 6 h: conductor 38.0 C, outer armour 29.5 C ``` This cable declares no manufacturing clamping, so the friction rests on the diff --git a/doc/index.rst b/doc/index.rst index 68f88a2..7f11621 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -47,9 +47,10 @@ What CableXSec computes - Hertz contact and subsurface stress, Mindlin partial slip, fretting regimes, wear, SWT critical-plane recovery * - Thermal - - IEC 60287 thermal ladder for the conductor temperature (three-core geometric factor and - sheath eddy loss not applied, so conservative for three-core cables), a transient thermal - network, frictional heating and the thermal change of the clamping + - IEC 60287-1-1/2-1:2023 thermal ladder for the conductor temperature (IEC 60228 + resistance, skin, proximity and SL-type sheath losses, lay-up factor, SL filler geometric + factor), a transient thermal network, frictional heating and the thermal change of the + clamping * - Limit states - armour yield and sheath strain envelopes, armour compression, coiling, sheaves, capacity checks of time series diff --git a/doc/local_analysis_guide.md b/doc/local_analysis_guide.md index 23b30fd..43a2be8 100644 --- a/doc/local_analysis_guide.md +++ b/doc/local_analysis_guide.md @@ -95,8 +95,11 @@ verification gates and active limitations. Read it. 2.4, tension–tension location not reproduced). The trellis term is off by default; the legacy surface rule (`trellis_model="surface_swt"`) is not validated. -- The IEC three-core mutual-heating factor. (Transient heat transfer through - the IEC 60287 ladder is available, Section 7.3.) +- The IEC 60287-2-1 thermal resistance of belted and screened three-core + cables (4.1.2.2, 4.1.2.3), and of a three-core cable with spaced-wire core + screens, which 4.1.2.2.4 treats as belted. (The SL-type route, with the + filler geometric factor, and transient heat transfer through the IEC 60287 + ladder are available, Section 7.3.) - The slip-branch bending stiffness of a compact, solid-filler three-core cable (known limitation, gap G8; [benchmarks.md](benchmarks.md), "Known limitation: slip-branch stiffness of compact sections"). @@ -133,7 +136,7 @@ A cable is a YAML file validated by the Pydantic schema in | `inter_array_three_core_yaml_path()` | `inter_array_three_core_33kv.yaml` | Public representative 33 kV three core (61 + 67 wires); cores laid at 10° (pitch 0.926 m, the IEA 66 kV bundle lay angle at this core-centre radius; direction assumed) | | `cablexsec.cables.inter_array_single_core_legacy_r2_yaml_path()`, `..._three_core_legacy_r2_yaml_path()` | `*_33kv_legacy_r2.yaml` | Pinned pre-correction copies (armour fill 1.13–1.24, undeclared screens): reproduction of the figures of an earlier revision of the companion article and of the validation report only | | `export_three_core_yaml_path()` | `export_three_core_220kv.yaml` | Public 220 kV topology example with corrugated Al sheath; cores laid at 10° (pitch 2.138 m, as the 33 kV template); not a qualified design | -| `cigre_tb880_yaml_path()` | `cigre_tb880_220kv.yaml` | Public CIGRE TB 880 / Poradowski 220 kV export cable | +| `poradowski2025_220kv_yaml_path()` | `poradowski2025_220kv.yaml` | Public Poradowski and Anders (2025) 220 kV export cable (single-core-equivalent stack) | | `menard2023_yaml_path()` | `menard2023.yaml` | Public Ménard and Cartraud (2023) three-core cable | | `witz1996_yaml_path()` | `witz1996.yaml` | Public Witz (1996) ISSC 2.5-inch flexible pipe (benchmarks WITZ-EI, WITZ-ID); area-equivalent round wires, initial pressure identified on the 0-bar loop | | `witz1996_yaml_path(wires="rectangular")` | `witz1996_rect.yaml` | The same pipe with its 6 × 3 mm strips, profiled carcass and Zeta (gap G1) | @@ -499,7 +502,7 @@ Packaged cables: | Ménard and Cartraud (2023) | `initial_state` 0.3 MPa | published calibration, all contacts | | Witz (1996) 2.5-inch pipe | `initial_state` 1.037 MPa | identified (0-bar loop width, μ = 0.10), armour only | | 66 kV IEA Task 49 template | zero | not published (warns) | -| CIGRE TB 880 export | none declared | missing (warns) | +| Poradowski (2025) export | none declared | missing (warns) | ## 5. Worked workflow: global history to fatigue and contact indices @@ -1285,7 +1288,19 @@ components = cx.compute_component_response(cable, 0.02, section_state=state) ``` `compute_thermal` takes `ambient_C` and `T4_external_Km_W` from the -`environment` block unless passed. The section state applies each layer's free +`environment` block unless passed. It follows IEC 60287-1-1:2023 and IEC +60287-2-1:2023 and computes each loss term not passed: `R0` from IEC 60228 +Table 4 (`conductor_resistance_20C_ohm_m=` for a datasheet value), the skin and +proximity factors (`d_conductor_m` of the conductor gives the IEC `d_c` of a +stranded conductor), the sheath loss of the per-core screens of a two- or +three-core cable (5.3.11 under magnetic armour, 5.3.2 otherwise; `λ1″` = 0 as +in IEC), and the dielectric loss from the `U0` of the insulation's +`insulation_type`. The screen resistance takes the wires of a wire screen +(`strand_layers`) over their lay and a laminated foil over them in parallel, +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 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` @@ -1465,9 +1480,14 @@ Rules and limits: - All layers at `T_ref` (`ThermalHistory.isothermal`) reproduce the unenergised solved results bit for bit (without relaxation). -- The thermal network has no armour loss `λ2`, no sheath eddy loss `λ1″` and - no IEC 60287-2-1 three-core factor (the full IEC texts are not held); a - three-core filler is the equal-filler-area annulus; `T4` has no heat +- The thermal network takes the losses of `compute_thermal` (IEC + 60287-1-1:2023: `R_0` from IEC 60228, skin and proximity factors, the + sheath loss of an SL-type cable, the dielectric loss above its `U_0` + threshold) and holds them at their rated values; it has no armour loss + `λ2` unless given and no sheath eddy loss `λ1″` (zero in IEC; CIGRE TB 880 + keeps it). A three-core filler keeps the heat capacity of the + equal-filler-area annulus and, in an armoured SL-type cable, the thermal + resistance of the IEC 60287-2-1 geometric factor; `T4` has no heat capacity, so a buried cable responds faster than in reality. - Cooling below `T_ref` contracts the outer sheath onto the armour while the inner polymers shrink away from it; heating does the opposite. Both can diff --git a/doc/radial_model.md b/doc/radial_model.md index 79cc050..a53fd31 100644 --- a/doc/radial_model.md +++ b/doc/radial_model.md @@ -207,7 +207,7 @@ The section state minimises the small-strain elastic energy per axial metre with - `"void"`: flooded or loose yarn. - `"auto"`: as declared. The central interstice is void. - Saint-Venant twist rigidity: the bonded ring layers twist about the cable axis and each core about its own centre (both exact for annuli). The filler lobes touch cores and ring through frictionless contacts that carry no axial shear, so they twist as separate bodies with their own warping (`saint_venant_rigidity`, validation row TQ-SV), not with their polar moment about the cable axis. The filler then adds 0.32 kN m² to the Chae, Nam and Shim (2023) cable instead of 7.9 kN m², and 0.14 kN m² instead of 3.6 kN m² to the Su et al. (2026) 35 kV cable. -- Stranded conductors whose metal area differs from the envelope, nested strands and corrugated shells are rejected, as in A3. The 220 kV template and CIGRE TB 880 are therefore unsupported. +- Stranded conductors whose metal area differs from the envelope, nested strands and corrugated shells are rejected, as in A3. The 220 kV template and the Poradowski (2025) cable are therefore unsupported. ### 3.5 Limits @@ -305,7 +305,7 @@ count. **Single-core 33 kV template.** +11 % inner `P1+P2` at 0 kN (line-force transmission), −3 % outer at 100 kN. Damage is unchanged. -**220 kV three-core template and CIGRE TB 880.** Rejected: the stranded conductor area differs from its envelope, and the sheath is corrugated. +**220 kV three-core template and Poradowski (2025).** Rejected: the stranded conductor area differs from its envelope, and the sheath is corrugated. **Loads only the solved model represents** (33 kV three-core, T = 50 kN, inner / outer `P1+P2` in MPa): diff --git a/doc/template_66kv.md b/doc/template_66kv.md index 82c269f..94b646d 100644 --- a/doc/template_66kv.md +++ b/doc/template_66kv.md @@ -65,7 +65,7 @@ Status: **P** published value; **D** derived from published values; | PE allowable strain | 7.7 % (MDPE, HDPE) | API 17J Table 6, p. 19 (PE sheaths of unbonded flexible pipe), transferred; no power-cable value is published (DNVGL-ST-0119 16.2.2, p. 149) | P (other source) | | XLPE, PPY, copper tape screen limits | none | No public value; the results say "no limit given" | — | | Copper bending modulus | 5 GPa effective | Same model assumption as `copper_stranded` | A | -| Thermal properties | λ, ρc_p, α of the generic library grades | [IEC60287], [Qiao2025] as cited in the library | P (other source) | +| Thermal properties | λ, ρc_p, α of the generic library grades | λ: IEC 60287-2-1:2023 Table 1 (XLPE and PE 3.5 K·m/W), CIGRE TB 880 Table 2-3 (PP yarn 6.0 K·m/W); ρc_p, α as cited in the library | P (other source) | | Manufacturing clamping | `manufacturing_clamping` of both armour layers: zero, basis `not_published`; friction-dependent analyses warn (`MissingClampingStateWarning`) | Not stated by the source (no winding stress or extrusion pressure) | A | | Wet design, flooded annulus | `water_ingress: {design: wet, armour_annulus: flooded}` | No barrier in Table 1; CIGRE TB 610 5.4.3; ORE Catapult 2022 | D | | Armour S–N | `saevik_2011_flat_steel` (seawater, CP) | Flooded annulus; the source uses a DNV-RP-C203 curve (Fig. 27) of unstated class | A | @@ -159,7 +159,8 @@ th = cx.compute_thermal(cable, current_A=1093.0, conductor_area_m2=630e-6, | Armour yield, pure tension | about 1.1 MN | about 1000 kN, Section 3.3 | | | Copper 120 MPa plastic limit, pure tension | 704 kN (characteristic envelope, factors 1.0) | about 600 kN (Fig. 21); MBL 659 kN (IEA Table 13) | +6.9 % against the MBL; governs the envelope (Section 4.6) | | Copper 120 MPa plastic limit, pure bending | 0.362 1/m, bend radius 2.76 m, bent towards a core; 0.353 1/m, 2.84 m in the worst bending direction, 30° from a core (strand basis of the 5 GPa bending modulus) | 0.5 1/m (Section 3.3); MBR 2.76 m (IEA Table 13) | Set by the assumed bending modulus (Section 4.6) | -| Conductor temperature at 1093 A (125 MW) | 95.3 °C (armour 61.0 °C) | 125 MW rating, IEA Table 13 (90 °C XLPE basis) | Assumed T4; no three-core factor or λ2; the semiconducting screens count with the insulation (88.9 °C with the earlier full copper screens), and the stranding voids of the area-equivalent conductor, counted with the conductor screen, add about 1 K | +| AC resistance at 90 °C | 0.0395 Ω/km (`R0` 0.0283 Ω/km, IEC 60228 Table 4; `y_s` 0.060, `y_p` 0.039) | 0.04 Ω/km, IEA Table 13 | IEC 60287-1-1:2023 5.1 | +| Conductor temperature at 1093 A (125 MW) | 118.3 °C (armour 73.6 °C); 90 °C at about 932 A | 125 MW, IEA Table 13 (installation not stated) | Under the assumed burial (`T4` 0.343 K·m/W, 15 °C); IEC 60287:2023 losses (`λ1` 0.093 of the copper tape screens, IEC 60287-1-1 5.3.11) and thermal resistances (lay-up factor 1.019, `T1` from the 29.90 mm conductor, PE 3.5 and PP yarn 6.0 K·m/W, filler geometric factor `T2` 0.109 K·m/W); no `λ2`. Before these, 95.3 °C | | Mass | 55.4 kg/m (54.9 kg/m without the assumed copper tape) | 55.76 kg/m, IEA Table 13; 547 N/m in air, Janocha Table 5 | −0.6 %; screens after the source's section model (Section 2.1); 76.3 kg/m with Table 1 read as copper | The friction-dependent values from here to the end of the page were computed @@ -282,6 +283,15 @@ What the comparison shows: ### 4.2 Energised cable: temperature history into clamping and fatigue +**Status (28 November 2026).** The thermal ladder now follows IEC +60287-1-1/2-1:2023 (Section 2 table, conductor temperature row). Under the +assumed burial the conductor is at 131.6 °C at 1093 A with the coupled +`R_ac` (`T_ref` 20 °C, 50 kN), above the 90 °C of XLPE, with an inner-armour +clamping of 681 kPa against 44.4 kPa unenergised and a thermal wire stress of ++143.1 MPa; the cold state has 45.4 kPa and the relaxed variant (`T_ref` +15 °C, f = 0.2) 348 kPa against 46.9 kPa. The tables below are kept as the +record of 18 November and are not regenerated. + **Status (18 November 2026).** The tables and factors of Sections 4.2 and 4.2.1 were computed with the earlier full copper screens of Table 1 and are kept as that record; they are not regenerated. With the screens of @@ -506,8 +516,7 @@ solid, which the radial solution needs. thickness `t = 29.90/9 = 3.322` mm, helix radii `i t`, and `630/61 = 10.33` mm² of copper per wire (`wire_area_m2`, the compacted area; fill 0.90 of the envelope). The envelope lies within the 28.7–32.5 mm of a compacted 630 mm² - Class 2 conductor (IEC 60228:2004, Annex C, as reproduced by a manufacturer's - catalogue; the standard itself is not held). + Class 2 conductor (IEC 60228:2023, Annex C, Table C.2). - **Lay ratios** (pitch over the ring's outer diameter) of the public copper conductors: diff --git a/doc/user_guide.md b/doc/user_guide.md index ade19c4..d73257c 100644 --- a/doc/user_guide.md +++ b/doc/user_guide.md @@ -32,7 +32,7 @@ Start with one of these: - **A {term}`bundled cable`**: published constructions such as the IEA Wind Task 49 66 kV three-core cable (`cx.iea_task49_66kv_yaml_path()`), {term}`CIGRE TB` 880 - 220 kV (`cx.cigre_tb880_yaml_path()`), the Ménard and Cartraud (2023) cable + 220 kV (`cx.poradowski2025_220kv_yaml_path()`), the Ménard and Cartraud (2023) cable (`cx.menard2023_yaml_path()`) or the Sævik (2011) riser (`cx.saevik2011_yaml_path()`). Each states its source. Load one with `cx.load_cable(path, geometry_override=None)`. @@ -126,7 +126,8 @@ for screening. of the conductor, the armour and the surface at an entered current, with the environment of the cable (or the ambient and external resistance entered as arguments). It gives the temperatures of that current; it does not search - for the rating. + for the rating. The losses (IEC 60228 conductor resistance, skin, proximity, + sheath and dielectric losses) are computed from the cable unless entered. - **Frictional heating in bending** (`cablexsec.analysis.frictional_heating.simulate_frictional_heating`): an energised cable bent cyclically, as in a heated bending test or at a bend diff --git a/examples/torque_balance_templates.py b/examples/torque_balance_templates.py index cf74e6d..28418d9 100644 --- a/examples/torque_balance_templates.py +++ b/examples/torque_balance_templates.py @@ -36,7 +36,7 @@ ("33 kV single-core", cx.inter_array_single_core_yaml_path), ("33 kV three-core", cx.inter_array_three_core_yaml_path), ("220 kV export", cx.export_three_core_yaml_path), - ("CIGRE TB 880", cx.cigre_tb880_yaml_path), + ("CIGRE TB 880", cx.poradowski2025_220kv_yaml_path), ("Menard 2023", cx.menard2023_yaml_path), ) diff --git a/src/cablexsec/__init__.py b/src/cablexsec/__init__.py index 9253f34..fb3b69f 100644 --- a/src/cablexsec/__init__.py +++ b/src/cablexsec/__init__.py @@ -208,7 +208,6 @@ birdcage_buckling_detail, cable_to_fatigue_layers, cable_to_mkappa_specs, - cigre_tb880_yaml_path, compression_screen, compute_capacity, compute_component_response, @@ -232,6 +231,7 @@ inter_array_three_core_yaml_path, load_cable, menard2023_yaml_path, + poradowski2025_220kv_yaml_path, saevik2011_yaml_path, solve_cable_radial_state, solve_concentric_section, @@ -388,7 +388,7 @@ "ClampingState", "LayerClamping", "clamping_state", - "cigre_tb880_yaml_path", + "poradowski2025_220kv_yaml_path", "menard2023_yaml_path", "inter_array_single_core_yaml_path", "inter_array_three_core_yaml_path", diff --git a/src/cablexsec/analysis/thermal_coupling.py b/src/cablexsec/analysis/thermal_coupling.py index 0d3f8d8..b383504 100644 --- a/src/cablexsec/analysis/thermal_coupling.py +++ b/src/cablexsec/analysis/thermal_coupling.py @@ -415,9 +415,9 @@ def from_current( conductor_area_m2: float | None = None, conductor_material: str | None = None, n_cores: int | None = None, - y_s: float = 0.0, - y_p: float = 0.0, - lambda1: float = 0.0, + y_s: float | None = None, + y_p: float | None = None, + lambda1: float | None = None, ambient_C: Sequence[float] | FloatArray | float | None = None, T4_external_Km_W: float | None = None, resistance_temperature_C: float | None = None, @@ -454,6 +454,7 @@ def from_current( lambda1=lambda1, T4_external_Km_W=T4_external_Km_W, n_per_layer=n_per_layer, + rating_current_A=_peak_current(current_A), ) t = np.asarray(time_s, dtype=np.float64) cur = np.broadcast_to(np.asarray(current_A, dtype=np.float64), t.shape).copy() @@ -512,9 +513,9 @@ def steady( conductor_area_m2: float | None = None, conductor_material: str | None = None, n_cores: int | None = None, - y_s: float = 0.0, - y_p: float = 0.0, - lambda1: float = 0.0, + y_s: float | None = None, + y_p: float | None = None, + lambda1: float | None = None, ambient_C: float | None = None, T4_external_Km_W: float | None = None, resistance_temperature_C: float | None = None, @@ -544,6 +545,7 @@ def steady( T4_external_Km_W=T4_external_Km_W, ambient_C=ambient_C, n_per_layer=n_per_layer, + rating_current_A=_peak_current(current_A), ) nodes = net.steady_state( current_A, resistance_temperature_C=resistance_temperature_C @@ -745,6 +747,19 @@ def _interval_mean(t: FloatArray, y: FloatArray, a: float, b: float) -> float: return float(np.sum(0.5 * (values[1:] + values[:-1]) * np.diff(grid)) / (b - a)) +def _peak_current(current_A: Sequence[float] | FloatArray | float) -> float | None: + """Largest current of a history: the rating current of a computed ``lambda1``. + + ``None`` when it is not a finite positive number (the network then + refuses or records the inputs as usual). + """ + try: + peak = float(np.max(np.abs(np.asarray(current_A, dtype=np.float64)))) + except (TypeError, ValueError): + return None + return peak if math.isfinite(peak) and peak > 0.0 else None + + def _conductor_defaults( cable: CableData, area_m2: float | None, material: str | None ) -> tuple[float, str]: @@ -1702,8 +1717,8 @@ def run(state: ThermalState) -> FatigueResult: "block-mean state frozen within a block; record repeated per block", "friction coefficient independent of temperature", "E(T) only for registered laws (10-90 degC) or explicit transfers", - "lambda2, lambda1'' and the IEC 60287-2-1 three-core factor are not " - "included in the thermal network (IEC full texts not held)", + "the armour loss lambda2 (unless given) and the sheath eddy loss " + "lambda1'' (zero in IEC 60287-1-1) are not in the thermal network", f"stress-free reference T_ref {thermal.T_ref_C:g} deg C" + (f" ({thermal.T_ref_basis})" if thermal.T_ref_basis else ""), f"damage ratios scale with a power of the friction stress range: " diff --git a/src/cablexsec/api.py b/src/cablexsec/api.py index bc3111c..41397fe 100644 --- a/src/cablexsec/api.py +++ b/src/cablexsec/api.py @@ -126,7 +126,6 @@ structural_armour_layers, ) from cablexsec.cables import ( - cigre_tb880_yaml_path, export_three_core_yaml_path, iea_task49_66kv_300_yaml_path, iea_task49_66kv_stranded, @@ -135,6 +134,7 @@ inter_array_three_core_yaml_path, load_cable, menard2023_yaml_path, + poradowski2025_220kv_yaml_path, saevik2011_yaml_path, witz1996_yaml_path, ) @@ -244,7 +244,7 @@ __all__ = [ # loading "load_cable", - "cigre_tb880_yaml_path", + "poradowski2025_220kv_yaml_path", "menard2023_yaml_path", "inter_array_single_core_yaml_path", "inter_array_three_core_yaml_path", @@ -1398,8 +1398,9 @@ def compute_shell_stress( Examples -------- - >>> from cablexsec import load_cable, compute_shell_stress, cigre_tb880_yaml_path - >>> cab = load_cable(cigre_tb880_yaml_path(), geometry_override=None) + >>> from cablexsec import load_cable, compute_shell_stress + >>> from cablexsec import poradowski2025_220kv_yaml_path + >>> cab = load_cable(poradowski2025_220kv_yaml_path(), geometry_override=None) >>> s = compute_shell_stress(cab, "cu_metallic_sheath", 0.03, 1e-3, ... p_ext_Pa=2e6, delta_T_K=40.0) >>> s.sigma_total_Pa > 0.0 diff --git a/src/cablexsec/cables/__init__.py b/src/cablexsec/cables/__init__.py index dd2e872..93cc2ea 100644 --- a/src/cablexsec/cables/__init__.py +++ b/src/cablexsec/cables/__init__.py @@ -14,7 +14,7 @@ __all__ = [ "CableData", "chae2023_yaml_path", - "cigre_tb880_yaml_path", + "poradowski2025_220kv_yaml_path", "export_three_core_yaml_path", "iea_task49_66kv_300_yaml_path", "iea_task49_66kv_stranded", @@ -204,13 +204,14 @@ def iea_task49_66kv_stranded( ) -def cigre_tb880_yaml_path() -> Path: - """Return the path to the packaged CIGRE TB 880 / Poradowski 220 kV cable. +def poradowski2025_220kv_yaml_path() -> Path: + """Return the path to the packaged Poradowski & Anders (2025) 220 kV cable. - A fully public export-cable definition (published geometry) used for - the export demonstration and benchmark BM5. + A fully public export-cable definition (Ocean Eng. 328, 121027, Table 1) + as a single-core-equivalent stack, used for the export demonstration and + benchmark BM5. """ - return Path(str(resources.files("cablexsec.cables") / "cigre_tb880_220kv.yaml")) + return Path(str(resources.files("cablexsec.cables") / "poradowski2025_220kv.yaml")) def menard2023_yaml_path() -> Path: diff --git a/src/cablexsec/cables/cigre_tb880_220kv.yaml b/src/cablexsec/cables/cigre_tb880_220kv.yaml deleted file mode 100644 index a452006..0000000 --- a/src/cablexsec/cables/cigre_tb880_220kv.yaml +++ /dev/null @@ -1,140 +0,0 @@ ---- -# CIGRE TB 880 / Poradowski-Anders (2025) 220 kV export cable — PUBLIC. -# -# Geometry and materials are from the public benchmark cable of -# Poradowski & Anders, Ocean Engineering 328 (2025) 121027, Table 1 -# (construction detailed in CIGRE TB 880, 2022). Public data only: this is -# the section-0.9-safe export demonstration cable. It is modelled here as a -# single-core-equivalent concentric stack (as Poradowski uses for the thermal -# axisymmetric model); radii are cumulative outer radii from the published -# nominal diameters. -# -# Values flagged "representative" are NOT in Poradowski Table 1 (armour lay -# angles; corrugation stiffness factor; armour material). They are typical -# submarine-cable values used only for the mechanical demonstration and are -# clearly marked; the published thermal/electrical reproduction (BM5) does not -# depend on them. -cable: - name: "CIGRE TB 880 reference export cable" - description: "220 kV export submarine cable (public benchmark, Poradowski 2025)" - manufacturer: "Public (CIGRE TB 880, 2022)" - source_document: "Poradowski & Anders, Ocean Engineering 328 (2025) 121027, Table 1" - voltage_kV: 220 - design_life_years: 25 - -environment: - ambient_C: 15.0 # [Poradowski2025] Table 1 NOTE 1 (buried 15 degC) - T4_external_Km_W: 0.3211 # [Poradowski2025] Table 1 NOTE 1 (external/soil) - frequency_Hz: 50.0 - source: "[Poradowski2025] Table 1 NOTE 1 (directly buried reference case)" - -layers: - - - name: cu_conductor - layer_type: cylindrical_offset - material: copper_stranded - n_cores: 1 - r_offset_m: 0.0 - r_inner_m: 0.0 - r_outer_m: 0.0210 # dia 42.0 mm [Poradowski2025] Table 1 - conductor_area_mm2: 1200.0 # [Poradowski2025] Table 1 (stranded Cu) - construction: stranded - notes: "Internal lay not tabulated; axial reduction uses actual Cu area, not the envelope. No solid-annulus radial substitution." - source: "[Poradowski2025] Table 1" - - - name: xlpe_insulation - layer_type: cylindrical_offset - material: xlpe_qiao2025 - n_cores: 1 - r_offset_m: 0.0 - r_inner_m: 0.0227 # over conductor screen, dia 45.4 mm - r_outer_m: 0.0466 # under insulation screen, dia 93.2 mm - electrical: - permittivity_relative: 2.5 # [IEC60287-1-1] Table 3, XLPE > 30 kV - loss_factor_tan_delta: 0.001 # [IEC60287-1-1] Table 3, XLPE > 30 kV - vec_exponent_n: 15.0 # n0 [Mazzanti2007] Table I (XLPE) - thermal_b_k: 12430 # B [K] [Mazzanti2007] Table I (XLPE) - vec_synergism_b: 4420 # b [Mazzanti2007] Table I (XLPE) - field_threshold_kV_mm: 5.0 # E0 [Mazzanti2007] Table I - mechanical_beta: 100.0 # CableXSec screening extension (NOT Mazzanti) - source: "[Poradowski2025] Table 1 (XLPE 23.9 mm); electrical [IEC60287]/[Mazzanti2007] Table I" - - - name: water_barrier - layer_type: cylindrical - material: hdpe - r_inner_m: 0.0481 # over insulation screen, dia 96.2 mm - r_outer_m: 0.0517 # dia 103.4 mm (swelling tape) - structural: false - source: "[Poradowski2025] Table 1" - - - name: cu_metallic_sheath - layer_type: cylindrical_shell - material: copper_tape_screen - r_mid_m: 0.05650 # corrugated Cu ring (modelled 111.95/113.95 mm) - t_m: 0.001 # 1.0 mm [Poradowski2025] Table 1 footnote d - f_corrugation: 0.5 # representative corrugation stiffness factor (NOT TB 880) - scf: 2.0 # representative corrugation-root SCF (NOT TB 880) - source: "[Poradowski2025] Table 1 footnote d (dims); f_corr/SCF representative" - - - name: anti_corrosion_sheath - layer_type: cylindrical - material: hdpe - r_inner_m: 0.0613 # dia 122.5 mm - r_outer_m: 0.0659 # dia 131.75 mm (semi-conductive PE) - source: "[Poradowski2025] Table 1" - - - name: assembly_filler - layer_type: cylindrical - material: pp_filler - r_inner_m: 0.0659 - r_outer_m: 0.14195 # dia 283.9 mm (assembling / fillers) - structural: false - source: "[Poradowski2025] Table 1" - - - name: inner_armour_bedding - layer_type: cylindrical - material: hdpe - r_inner_m: 0.14195 - r_outer_m: 0.14495 # dia 289.9 mm - structural: false - source: "[Poradowski2025] Table 1" - - - name: inner_armour - layer_type: helical - material: galvanised_steel_armour # representative (Poradowski: stainless, non-magnetic) - n_wires: 128 # [Poradowski2025] Table 1 - d_wire_m: 0.007 # 7.0 mm [Poradowski2025] Table 1 - r_helix_m: 0.14845 # bedding OD + d_wire/2 - lay_angle_deg: 12.0 # representative submarine armour lay angle (NOT TB 880) - lay_direction: right_hand - bulk_sn: saevik_2011_flat_steel - source: "[Poradowski2025] Table 1 (count/dia); lay angle representative; material representative" - - - name: outer_armour_bedding - layer_type: cylindrical - material: hdpe - r_inner_m: 0.15195 - r_outer_m: 0.15425 # dia 308.5 mm - structural: false - source: "[Poradowski2025] Table 1" - - - name: outer_armour - layer_type: helical - material: galvanised_steel_armour # representative (Poradowski: stainless, non-magnetic) - n_wires: 135 # [Poradowski2025] Table 1 - d_wire_m: 0.007 # 7.0 mm [Poradowski2025] Table 1 - r_helix_m: 0.15775 # bedding OD + d_wire/2 - lay_angle_deg: 12.0 # representative submarine armour lay angle (NOT TB 880) - lay_direction: left_hand - bulk_sn: saevik_2011_flat_steel - source: "[Poradowski2025] Table 1 (count/dia); lay angle representative; material representative" - - - name: outer_cover - layer_type: cylindrical - material: hdpe - r_inner_m: 0.16125 # dia 322.5 mm - r_outer_m: 0.16755 # dia 335.1 mm - source: "[Poradowski2025] Table 1" - -aggregate_properties: - OD_mm: 335.1 # [Poradowski2025] Table 1 diff --git a/src/cablexsec/cables/export_three_core_220kv.yaml b/src/cablexsec/cables/export_three_core_220kv.yaml index 8c7120a..60cbbba 100644 --- a/src/cablexsec/cables/export_three_core_220kv.yaml +++ b/src/cablexsec/cables/export_three_core_220kv.yaml @@ -3,7 +3,8 @@ # # Generic, public geometry for a 220 kV three-core export cable: three # offset cores (Cu + XLPE + lead sheath per core, modelled as offset annuli), -# PP filler, HDPE bedding, an overall corrugated-aluminium metallic sheath +# semiconducting screens with the XLPE properties, PP filler, HDPE bedding, +# an overall corrugated-aluminium metallic sheath # (cylindrical_shell), double steel armour, HDPE outer sheath. Round # representative numbers for a topology integration test. The corrugated-Al # sheath exercises the metallic-sheath wall-stress path with f_corr/SCF. @@ -41,6 +42,17 @@ layers: notes: "Internal lay unspecified; axial calculation uses stated Cu area in an aligned-axis reduction" source: "Representative" + - name: conductor_screen + layer_type: cylindrical_offset + material: xlpe_qiao2025 + n_cores: 3 + r_offset_m: 0.060 + r_inner_m: 0.0190 + r_outer_m: 0.0210 + structural: false + notes: "Semiconducting screen with the XLPE properties ([IEC60287-2-1] Table 1, note a)" + source: "Representative" + - name: xlpe_insulation layer_type: cylindrical_offset material: xlpe_qiao2025 @@ -57,6 +69,17 @@ layers: field_threshold_kV_mm: 5.0 source: "Representative; electrical [IEC60287]/[Mazzanti2007] Table I" + - name: insulation_screen + layer_type: cylindrical_offset + material: xlpe_qiao2025 + n_cores: 3 + r_offset_m: 0.060 + r_inner_m: 0.0420 + r_outer_m: 0.0430 + structural: false + notes: "Semiconducting screen with the XLPE properties ([IEC60287-2-1] Table 1, note a)" + source: "Representative" + - name: lead_core_sheath layer_type: cylindrical_offset material: lead_sheath diff --git a/src/cablexsec/cables/iea_task49_66kv.yaml b/src/cablexsec/cables/iea_task49_66kv.yaml index e3e9581..74989e8 100644 --- a/src/cablexsec/cables/iea_task49_66kv.yaml +++ b/src/cablexsec/cables/iea_task49_66kv.yaml @@ -90,6 +90,7 @@ layers: r_inner_m: 0.0 r_outer_m: 0.014161046158239446 # exactly 630 mm2 in the aligned equivalent conductor_area_mm2: 630.0 # [Janocha2024] Section 2.1; [IEATask49] Table 13 + d_conductor_m: 0.02990 # [Janocha2024] Table 1 (Conductor 29.90 mm): IEC 60287 d_c construction: aligned_solid_equivalent notes: >- Stranded copper of 29.90 mm envelope (Table 1, Fig. 4a); wire count and diff --git a/src/cablexsec/cables/iea_task49_66kv_300.yaml b/src/cablexsec/cables/iea_task49_66kv_300.yaml index 22eb111..6e88fd0 100644 --- a/src/cablexsec/cables/iea_task49_66kv_300.yaml +++ b/src/cablexsec/cables/iea_task49_66kv_300.yaml @@ -69,6 +69,7 @@ layers: r_inner_m: 0.0 r_outer_m: 0.009772050238058398 # exactly 300 mm2 in the aligned equivalent conductor_area_mm2: 300.0 # [IEATask49] Table 13, 300 mm2 row + d_conductor_m: 0.02063 # envelope with the 630 mm2 fill ratio (header): IEC 60287 d_c construction: aligned_solid_equivalent notes: >- Stranded copper of 29.90 mm envelope (Table 1, Fig. 4a); wire count and diff --git a/src/cablexsec/cables/poradowski2025_220kv.yaml b/src/cablexsec/cables/poradowski2025_220kv.yaml new file mode 100644 index 0000000..5a37fa3 --- /dev/null +++ b/src/cablexsec/cables/poradowski2025_220kv.yaml @@ -0,0 +1,225 @@ +--- +# Poradowski & Anders (2025) 220 kV export cable — PUBLIC. +# +# Geometry and thermal resistivities are from Poradowski & Anders, Ocean +# Engineering 328 (2025) 121027, Table 1 and its footnotes (the source cites +# CIGRE TB 880 for the construction; nothing here is taken from TB 880). +# Public data only: this is the section-0.9-safe export demonstration cable. +# It is modelled as a single-core-equivalent concentric stack, as in the +# source's axisymmetric thermal model; radii are cumulative outer radii from +# the published nominal diameters. Every layer of Table 1 is present with its +# published thermal resistivity: the semiconducting conductor and insulation +# screens (2.5 K m/W), the swelling tape (12), the assembly (5.5, footnote b) +# and the polymeric tapes (6.0), and the air layers of 6.0 K m/W that the +# source puts below and above the corrugated sheath, modelled as a ring of +# 111.95/113.95 mm (footnote d). +# +# Values flagged "representative" are NOT in Poradowski Table 1 (armour lay +# angles; corrugation stiffness factor; armour material; the elastic +# properties of the screens, tapes, fillers and air layers, materials block). +# They are typical values used only for the mechanical demonstration and are +# clearly marked. +cable: + name: "Poradowski & Anders (2025) 220 kV export cable" + description: "220 kV three-core export cable as a single-core-equivalent stack (Poradowski & Anders 2025, Table 1)" + manufacturer: "Public (Poradowski & Anders 2025)" + source_document: "Poradowski & Anders, Ocean Engineering 328 (2025) 121027, Table 1" + voltage_kV: 220 + design_life_years: 25 + +environment: + ambient_C: 15.0 # [Poradowski2025] Table 1 NOTE 1 (buried 15 degC) + T4_external_Km_W: 0.3211 # [Poradowski2025] Table 1 NOTE 1 (external/soil) + frequency_Hz: 50.0 + source: "[Poradowski2025] Table 1 NOTE 1 (directly buried reference case)" + +materials: + semicon_poradowski2025: + description: Semiconducting tape of the conductor and insulation screens + polymer: true + E_Pa: {value: 150.0e6, source: "representative: as xlpe_qiao2025 at 20 degC"} + nu: {value: 0.45, source: "representative: as xlpe_qiao2025"} + rho_kg_m3: {value: 920.0, source: "representative: as xlpe_qiao2025"} + alpha_T_K: {value: 1.0e-4, source: "representative: as xlpe_qiao2025"} + rho_cp_J_m3K: {value: 2.4e6, source: "representative: as xlpe_qiao2025"} + lambda_W_mK: {value: 0.4, source: "[Poradowski2025] Table 1, Nos. 2 and 4: 2.5 K m/W"} + swelling_tape_poradowski2025: + description: Swelling tape of the water barrier + E_Pa: {value: 3.0e9, source: "representative: as polyester_tape"} + nu: {value: 0.38, source: "representative: as polyester_tape"} + rho_kg_m3: {value: 1380.0, source: "representative: as polyester_tape"} + alpha_T_K: {value: 7.0e-5, source: "representative: as polyester_tape"} + rho_cp_J_m3K: {value: 1.7e6, source: "representative: as polyester_tape"} + lambda_W_mK: {value: 0.08333333333333333, source: "[Poradowski2025] Table 1, No. 5: 12 K m/W"} + sheath_air_poradowski2025: + description: Air below and above the corrugated sheath (source's thermal model) + E_Pa: {value: 1.0e5, source: "representative: an air layer carries no load; small modulus"} + nu: {value: 0.0, source: "representative"} + rho_kg_m3: {value: 1.2, source: "representative: air"} + alpha_T_K: {value: 0.0, source: "representative"} + rho_cp_J_m3K: {value: 1.2e3, source: "representative: air"} + lambda_W_mK: {value: 0.16666666666666666, source: "[Poradowski2025] Table 1, footnote d: 6.0 K m/W"} + filler_poradowski2025: + description: Semiconducting polymeric fillers with voids (assembly) + polymer: true + E_Pa: {value: 1.5e9, source: "representative: as pp_filler"} + nu: {value: 0.40, source: "representative: as pp_filler"} + rho_kg_m3: {value: 905.0, source: "representative: as pp_filler"} + alpha_T_K: {value: 1.5e-4, source: "representative: as pp_filler"} + rho_cp_J_m3K: {value: 1.8e6, source: "representative: as pp_filler"} + lambda_W_mK: {value: 0.18181818181818182, source: "[Poradowski2025] Table 1, No. 8 and footnote b: 5.5 K m/W for the assembly"} + polymeric_tape_poradowski2025: + description: Polymeric tapes of the outer armour bedding + E_Pa: {value: 3.0e9, source: "representative: as polyester_tape"} + nu: {value: 0.38, source: "representative: as polyester_tape"} + rho_kg_m3: {value: 1380.0, source: "representative: as polyester_tape"} + alpha_T_K: {value: 7.0e-5, source: "representative: as polyester_tape"} + rho_cp_J_m3K: {value: 1.7e6, source: "representative: as polyester_tape"} + lambda_W_mK: {value: 0.16666666666666666, source: "[Poradowski2025] Table 1, No. 11: 6.0 K m/W"} + +layers: + + - name: cu_conductor + layer_type: cylindrical_offset + material: copper_stranded + n_cores: 1 + r_offset_m: 0.0 + r_inner_m: 0.0 + r_outer_m: 0.0210 # dia 42.0 mm [Poradowski2025] Table 1 + conductor_area_mm2: 1200.0 # [Poradowski2025] Table 1 (stranded Cu) + construction: stranded + notes: "Internal lay not tabulated; axial reduction uses actual Cu area, not the envelope. No solid-annulus radial substitution." + source: "[Poradowski2025] Table 1" + + - name: conductor_screen + layer_type: cylindrical_offset + material: semicon_poradowski2025 + n_cores: 1 + r_offset_m: 0.0 + r_inner_m: 0.0210 + r_outer_m: 0.0227 # dia 45.4 mm (1.7 mm) + structural: false + source: "[Poradowski2025] Table 1, No. 2 (semi-conductive tape)" + + - name: xlpe_insulation + layer_type: cylindrical_offset + material: xlpe_qiao2025 + n_cores: 1 + r_offset_m: 0.0 + r_inner_m: 0.0227 # over conductor screen, dia 45.4 mm + r_outer_m: 0.0466 # under insulation screen, dia 93.2 mm + electrical: + permittivity_relative: 2.5 # [IEC60287-1-1] Table 3, XLPE > 30 kV + loss_factor_tan_delta: 0.001 # [IEC60287-1-1] Table 3, XLPE > 30 kV + vec_exponent_n: 15.0 # n0 [Mazzanti2007] Table I (XLPE) + thermal_b_k: 12430 # B [K] [Mazzanti2007] Table I (XLPE) + vec_synergism_b: 4420 # b [Mazzanti2007] Table I (XLPE) + field_threshold_kV_mm: 5.0 # E0 [Mazzanti2007] Table I + mechanical_beta: 100.0 # CableXSec screening extension (NOT Mazzanti) + source: "[Poradowski2025] Table 1 (XLPE 23.9 mm); electrical [IEC60287]/[Mazzanti2007] Table I" + + - name: insulation_screen + layer_type: cylindrical_offset + material: semicon_poradowski2025 + n_cores: 1 + r_offset_m: 0.0 + r_inner_m: 0.0466 + r_outer_m: 0.0481 # dia 96.2 mm (1.5 mm) + structural: false + source: "[Poradowski2025] Table 1, No. 4 (semi-conductive tape)" + + - name: water_barrier + layer_type: cylindrical + material: swelling_tape_poradowski2025 + r_inner_m: 0.0481 # over insulation screen, dia 96.2 mm + r_outer_m: 0.0517 # dia 103.4 mm (swelling tape) + structural: false + source: "[Poradowski2025] Table 1, No. 5" + + - name: sheath_air_inner + layer_type: cylindrical + material: sheath_air_poradowski2025 + r_inner_m: 0.0517 + r_outer_m: 0.055975 # inside of the modelled ring, dia 111.95 mm + structural: false + source: "[Poradowski2025] Table 1, footnote d (air layer below the sheath)" + + - name: cu_metallic_sheath + layer_type: cylindrical_shell + material: copper_tape_screen + r_mid_m: 0.056475 # corrugated Cu ring, modelled 111.95/113.95 mm + t_m: 0.001 # 1.0 mm [Poradowski2025] Table 1 footnote d + f_corrugation: 0.5 # representative corrugation stiffness factor (NOT TB 880) + scf: 2.0 # representative corrugation-root SCF (NOT TB 880) + source: "[Poradowski2025] Table 1 footnote d (dims); f_corr/SCF representative" + + - name: sheath_air_outer + layer_type: cylindrical + material: sheath_air_poradowski2025 + r_inner_m: 0.056975 # outside of the modelled ring, dia 113.95 mm + r_outer_m: 0.06125 # dia 122.5 mm + structural: false + source: "[Poradowski2025] Table 1, footnote d (air layer above the sheath)" + + - name: anti_corrosion_sheath + layer_type: cylindrical + material: hdpe + r_inner_m: 0.06125 # dia 122.5 mm + r_outer_m: 0.065875 # dia 131.75 mm (semi-conductive PE) + source: "[Poradowski2025] Table 1" + + - name: assembly_filler + layer_type: cylindrical + material: filler_poradowski2025 + r_inner_m: 0.065875 + r_outer_m: 0.14195 # dia 283.9 mm (assembling / fillers) + structural: false + source: "[Poradowski2025] Table 1" + + - name: inner_armour_bedding + layer_type: cylindrical + material: hdpe + r_inner_m: 0.14195 + r_outer_m: 0.14495 # dia 289.9 mm + structural: false + source: "[Poradowski2025] Table 1" + + - name: inner_armour + layer_type: helical + material: galvanised_steel_armour # representative (Poradowski: stainless, non-magnetic) + n_wires: 128 # [Poradowski2025] Table 1 + d_wire_m: 0.007 # 7.0 mm [Poradowski2025] Table 1 + r_helix_m: 0.14845 # bedding OD + d_wire/2 + lay_angle_deg: 12.0 # representative submarine armour lay angle (NOT TB 880) + lay_direction: right_hand + bulk_sn: saevik_2011_flat_steel + source: "[Poradowski2025] Table 1 (count/dia); lay angle representative; material representative" + + - name: outer_armour_bedding + layer_type: cylindrical + material: polymeric_tape_poradowski2025 + r_inner_m: 0.15195 + r_outer_m: 0.15425 # dia 308.5 mm + structural: false + source: "[Poradowski2025] Table 1" + + - name: outer_armour + layer_type: helical + material: galvanised_steel_armour # representative (Poradowski: stainless, non-magnetic) + n_wires: 135 # [Poradowski2025] Table 1 + d_wire_m: 0.007 # 7.0 mm [Poradowski2025] Table 1 + r_helix_m: 0.15775 # bedding OD + d_wire/2 + lay_angle_deg: 12.0 # representative submarine armour lay angle (NOT TB 880) + lay_direction: left_hand + bulk_sn: saevik_2011_flat_steel + source: "[Poradowski2025] Table 1 (count/dia); lay angle representative; material representative" + + - name: outer_cover + layer_type: cylindrical + material: hdpe + r_inner_m: 0.16125 # dia 322.5 mm + r_outer_m: 0.16755 # dia 335.1 mm + source: "[Poradowski2025] Table 1" + +aggregate_properties: + OD_mm: 335.1 # [Poradowski2025] Table 1 diff --git a/src/cablexsec/cables/schema.py b/src/cablexsec/cables/schema.py index 497f8d8..8054bb6 100644 --- a/src/cablexsec/cables/schema.py +++ b/src/cablexsec/cables/schema.py @@ -135,6 +135,22 @@ class ElectricalProperties(_Frozen): permittivity_relative: float | None = None loss_factor_tan_delta: float | None = None + # [IEC60287-1-1] 5.2 insulation class for the U0 from which the dielectric + # loss counts; None is unfilled XLPE. + insulation_type: ( + Literal[ + "xlpe", + "xlpe_filled", + "pe", + "epr", + "pvc", + "butyl_rubber", + "paper_solid", + "paper_fluid", + "ppl", + ] + | None + ) = None vec_exponent_n: float | None = None # n0 — VEC at T0 [Mazzanti2007] Table I thermal_b_k: float | None = None # B [K] [Mazzanti2007] Table I vec_synergism_b: float | None = None # b — electrical-thermal synergism @@ -1183,6 +1199,9 @@ class CylindricalOffsetLayer(_LayerBase): r_outer_m: float | None = None # Conductor-specific (concentric-stranded) descriptors. conductor_area_mm2: float | None = None + # External diameter of a stranded conductor over its wires, the d_c of + # IEC 60287 (r_outer_m of an area-equivalent conductor is smaller). + d_conductor_m: float | None = None strand_diameter_mm: float | None = None n_strands: _Count | None = None strand_lay_angle_deg: float | None = None @@ -1215,6 +1234,7 @@ def _offset_physical_values(self) -> CylindricalOffsetLayer: for name in ( "r_outer_m", "conductor_area_mm2", + "d_conductor_m", "strand_diameter_mm", ): value = getattr(self, name) @@ -1228,6 +1248,18 @@ def _offset_physical_values(self) -> CylindricalOffsetLayer: and self.r_outer_m <= self.r_inner_m ): raise ValueError("r_outer_m must be greater than r_inner_m") + if self.d_conductor_m is not None: + if self.r_inner_m is None or self.r_inner_m > 0.0: + raise ValueError( + "d_conductor_m belongs to the conductor (r_inner_m = 0)" + ) + if ( + self.r_outer_m is not None + and self.d_conductor_m < 2.0 * self.r_outer_m * (1.0 - 1e-9) + ): + raise ValueError( + "d_conductor_m is smaller than the conductor (2 r_outer_m)" + ) if self.n_strands is not None and self.n_strands <= 0: raise ValueError("n_strands must be > 0") if ( @@ -1371,6 +1403,7 @@ class CableMaterial(_Frozen): rho_ohm_m: MaterialValue | None = None alpha_R_per_K: MaterialValue | None = None epsilon_r: MaterialValue | None = None + relative_permeability: MaterialValue | None = None @model_validator(mode="before") @classmethod diff --git a/src/cablexsec/materials/library.py b/src/cablexsec/materials/library.py index 41fea28..cba5fa2 100644 --- a/src/cablexsec/materials/library.py +++ b/src/cablexsec/materials/library.py @@ -259,8 +259,8 @@ def active_overlay() -> MaterialOverlay | None: "alpha_T_K": (17.0e-6, "Standard Cu"), "lambda_W_mK": (400.0, "Standard Cu"), "rho_cp_J_m3K": (3.45e6, "Standard Cu"), - "rho_ohm_m": (1.724e-8, "[IEC60228] at 20 degC"), - "alpha_R_per_K": (3.93e-3, "[IEC60287-1-1] Cu resistivity temp. coeff."), + "rho_ohm_m": (1.7241e-8, "[IEC60287-1-1] Table 1, copper at 20 degC"), + "alpha_R_per_K": (3.93e-3, "[IEC60287-1-1] Table 1, copper"), # F6 citation fix (18 Oct 2026): [Poon2022] contains no 0.25 (it uses # 0.8, range 0.08-1.4). No library source gives 0.25 for Cu-Cu # stranded wire, so the value is kept (results unchanged) as an @@ -281,7 +281,8 @@ def active_overlay() -> MaterialOverlay | None: "alpha_T_K": (17.0e-6, "Standard Cu"), "lambda_W_mK": (400.0, "Standard Cu"), "rho_cp_J_m3K": (3.45e6, "Standard Cu"), - "rho_ohm_m": (1.724e-8, "[IEC60228] at 20 degC"), + "rho_ohm_m": (1.7241e-8, "[IEC60287-1-1] Table 1, copper at 20 degC"), + "alpha_R_per_K": (3.93e-3, "[IEC60287-1-1] Table 1, copper"), # Gap P1/P4. Cold-drawn and annealed ETP Cu wire, lowest strain rate # (1e-4 1/s) of [Wan2022] Table 2 (range 145-155 / 235-262 MPa). "sigma_y_Pa": (145.0e6, "[Wan2022] Table 2, annealed ETP Cu wire, 1e-4 1/s"), @@ -305,7 +306,8 @@ def active_overlay() -> MaterialOverlay | None: "alpha_T_K": (17.0e-6, "Standard Cu"), "lambda_W_mK": (400.0, "Standard Cu"), "rho_cp_J_m3K": (3.45e6, "Standard Cu"), - "rho_ohm_m": (1.724e-8, "[IEC60228] at 20 degC"), + "rho_ohm_m": (1.7241e-8, "[IEC60287-1-1] Table 1, copper at 20 degC"), + "alpha_R_per_K": (3.93e-3, "[IEC60287-1-1] Table 1, copper"), }, "xlpe_qiao2025": { "E_Pa": (150.0e6, "[Qiao2025] Eq. 9 evaluated at 20 degC"), @@ -321,7 +323,11 @@ def active_overlay() -> MaterialOverlay | None: "nu": (0.48, "[Qiao2025] Table 2"), "rho_kg_m3": (955.0, "Standard HDPE"), "alpha_T_K": (100.0e-6, "[Qiao2025] Table 2"), - "lambda_W_mK": (0.4, "[Qiao2025] Table 2"), + "lambda_W_mK": ( + 1.0 / 3.5, + "[IEC60287-2-1] Table 1: polyethylene 3.5 K m/W (insulation, " + "protective covering)", + ), "rho_cp_J_m3K": (1.9e6, "Standard HDPE"), "epsilon_allow": ( 0.077, @@ -336,7 +342,12 @@ def active_overlay() -> MaterialOverlay | None: "nu": (0.40, "Standard PP"), "rho_kg_m3": (905.0, "Standard PP"), "alpha_T_K": (1.5e-4, "Standard PP"), - "lambda_W_mK": (0.22, "[IEC60287]"), + "lambda_W_mK": ( + 1.0 / 6.0, + "[IEC60287-2-1] 4.1.2.2.4: fillers of extruded-insulation cables " + "6 to 13 K m/W, the lower value; 6.0 for polypropylene yarn in " + "CIGRE TB 880 (2022) Table 2-3", + ), "rho_cp_J_m3K": (1.8e6, "Standard PP"), }, "polyester_tape": { @@ -415,8 +426,8 @@ def active_overlay() -> MaterialOverlay | None: "alpha_T_K": (17.0e-6, "Standard Cu, as copper_stranded"), "lambda_W_mK": (400.0, "Standard Cu, as copper_stranded"), "rho_cp_J_m3K": (3.45e6, "Standard Cu, as copper_stranded"), - "rho_ohm_m": (1.724e-8, "[IEC60228] at 20 degC"), - "alpha_R_per_K": (3.93e-3, "[IEC60287-1-1] Cu resistivity temp. coeff."), + "rho_ohm_m": (1.7241e-8, "[IEC60287-1-1] Table 1, copper at 20 degC"), + "alpha_R_per_K": (3.93e-3, "[IEC60287-1-1] Table 1, copper"), "mu_on_cu": (0.30, "[Janocha2024] Table 2 friction coefficient (copper)"), }, "steel_janocha2024": { @@ -450,7 +461,11 @@ def active_overlay() -> MaterialOverlay | None: "nu": (0.40, "[Janocha2024] Table 2 (MDPE)"), "rho_kg_m3": (956.0, "[Janocha2024] Table 2 (MDPE)"), "alpha_T_K": (100.0e-6, "[Qiao2025] Table 2 (HDPE), as hdpe"), - "lambda_W_mK": (0.4, "[Qiao2025] Table 2 (HDPE), as hdpe"), + "lambda_W_mK": ( + 1.0 / 3.5, + "[IEC60287-2-1] Table 1: polyethylene 3.5 K m/W (insulation, " + "protective covering), as hdpe", + ), "rho_cp_J_m3K": (1.9e6, "Standard HDPE, as hdpe"), "epsilon_allow": ( 0.077, @@ -465,7 +480,11 @@ def active_overlay() -> MaterialOverlay | None: "nu": (0.40, "[Janocha2024] Table 2 (HDPE)"), "rho_kg_m3": (980.0, "[Janocha2024] Table 2 (HDPE)"), "alpha_T_K": (100.0e-6, "[Qiao2025] Table 2, as hdpe"), - "lambda_W_mK": (0.4, "[Qiao2025] Table 2, as hdpe"), + "lambda_W_mK": ( + 1.0 / 3.5, + "[IEC60287-2-1] Table 1: polyethylene 3.5 K m/W (insulation, " + "protective covering), as hdpe", + ), "rho_cp_J_m3K": (1.9e6, "Standard HDPE, as hdpe"), "epsilon_allow": ( 0.077, @@ -482,7 +501,11 @@ def active_overlay() -> MaterialOverlay | None: "nu": (0.40, "[Janocha2024] Table 2 (PPY)"), "rho_kg_m3": (895.0, "[Janocha2024] Table 2 (PPY)"), "alpha_T_K": (1.5e-4, "Standard PP, as pp_filler"), - "lambda_W_mK": (0.22, "[IEC60287], as pp_filler"), + "lambda_W_mK": ( + 1.0 / 6.0, + "CIGRE TB 880 (2022) Table 2-3: polypropylene yarn 6.0 K m/W, the " + "fibrous materials of [IEC60287-2-1] Table 1", + ), "rho_cp_J_m3K": (1.8e6, "Standard PP, as pp_filler"), }, # ----- Public flexible-pipe benchmark: Witz (1996) ISSC 2.5-inch pipe ----- @@ -612,6 +635,8 @@ def active_overlay() -> MaterialOverlay | None: "alpha_T_K": (29.0e-6, "Standard Pb, high expansion"), "lambda_W_mK": (35.0, "Standard Pb (IEC 60287-2-1 lists no metal resistivity)"), "rho_cp_J_m3K": (1.47e6, "Standard Pb"), + "rho_ohm_m": (21.4e-8, "[IEC60287-1-1] Table 1, lead or lead alloy"), + "alpha_R_per_K": (4.0e-3, "[IEC60287-1-1] Table 1, lead or lead alloy"), "creep_exponent": (4.5, "[CIGRE TB 623] Norton creep"), "creep_coeff": (1.2e-14, "[CIGRE TB 623] at 50 degC"), }, @@ -640,6 +665,8 @@ def active_overlay() -> MaterialOverlay | None: "Standard Al (IEC 60287-2-1 lists no metal resistivity)", ), "rho_cp_J_m3K": (2.43e6, "Standard Al"), + "rho_ohm_m": (2.84e-8, "[IEC60287-1-1] Table 1, aluminium sheath"), + "alpha_R_per_K": (4.03e-3, "[IEC60287-1-1] Table 1, aluminium sheath"), }, "aluminium_corrugated": { "E_Pa": (70.0e9, "Standard Al 1050"), @@ -656,6 +683,8 @@ def active_overlay() -> MaterialOverlay | None: "Standard Al (IEC 60287-2-1 lists no metal resistivity)", ), "rho_cp_J_m3K": (2.43e6, "Standard Al"), + "rho_ohm_m": (2.84e-8, "[IEC60287-1-1] Table 1, aluminium sheath"), + "alpha_R_per_K": (4.03e-3, "[IEC60287-1-1] Table 1, aluminium sheath"), }, } diff --git a/src/cablexsec/materials/properties.py b/src/cablexsec/materials/properties.py index 855f6ee..2a0108d 100644 --- a/src/cablexsec/materials/properties.py +++ b/src/cablexsec/materials/properties.py @@ -242,6 +242,18 @@ def _p( (1.0, 100.0), open_="none", ), + _p( + "relative_permeability", + "Relative magnetic permeability", + ELECTRICAL, + "", + (1.0, 1.0e5), + open_="none", + help="Longitudinal relative permeability of an armour material (1 for " + "stainless steel, copper or aluminium). An armour material without it " + "counts as magnetic steel in the sheath-loss factor of an SL-type " + "cable (IEC 60287-1-1 5.3.11).", + ), ) MATERIAL_PROPERTIES: Mapping[str, PropertyDefinition] = MappingProxyType( diff --git a/src/cablexsec/mechanics/thermal.py b/src/cablexsec/mechanics/thermal.py index 1fbfab9..29e5ed8 100644 --- a/src/cablexsec/mechanics/thermal.py +++ b/src/cablexsec/mechanics/thermal.py @@ -5,7 +5,8 @@ The cable temperature field sets the thermal stress ``sigma_T`` and the temperature-dependent polymer modulus. This module computes the steady-state and transient radial temperature profile of a concentric layer stack from the -conductor Joule loss (and, above 100 kV, the dielectric loss). +conductor Joule loss, the dielectric loss and the sheath loss, following IEC +60287-1-1:2023 and IEC 60287-2-1:2023. Two routines, disciplined in the A11/A12/A13 order — the analytical invariant first, the numerical solver gated against it: @@ -14,7 +15,7 @@ steady state. With the loss ``W_c`` generated at the conductor, the radial heat flux through every outer annulus equals ``W_c``, so the temperature rise across annulus *i* is ``W_c R_i`` with the IEC conduction - thermal resistance ([IEC60287-2-1] Eq. for ``T1``) + thermal resistance of a concentric layer ([IEC60287-2-1] 4.1.3) .. math:: R_i = \frac{1}{2\pi\lambda_i}\ln\frac{r_{o,i}}{r_{i,i}}, @@ -28,35 +29,49 @@ For current-rating problems where the surroundings are represented by a lumped external resistance rather than a fixed surface temperature, :func:`iec_conductor_temperature` evaluates the IEC ladder -([IEC60287-1-1] Eq. 1; [Poradowski2025] Eq. 2) with ``T4`` as an external +([IEC60287-1-1] 4.2.1, Formula (1); [Poradowski2025] Eq. 2) with ``T4`` as an external **Robin-type series resistance** (soil for a buried cable; bend-stiffener + water gap for a dynamic cable section). It reduces to the pure conduction ladder above when ``W_d = λ1 = 0`` and ``n = 1`` (used as the three-core reduction gate). :func:`compute_thermal` builds that ladder from a cable definition and returns a radial profile in which the heat flow through each annulus carries the -losses generated inside it ([IEC60287-1-1] 1.4.1.1 Eq. 1; [NeherMcGrath1957] -Eqs. 1-2), so the profile ends equal ``θ_c`` and ``θ_a + W_tot T4``. - -Heat sources ([IEC60287-1-1]): - -* Conductor Joule ``W_c = I^2 R_ac`` per conductor with - ``R_ac = R_dc(T)(1 + y_s + y_p)``, - ``R_dc(T) = R_dc,20 (1 + α_20 (T - 20))`` (:func:`ac_resistance`, - :func:`skin_effect_factor`, :func:`proximity_effect_factor`). -* Dielectric ``W_d = U_0^2 ω C tanδ`` — active only above 100 kV - (:func:`dielectric_loss`). -* Sheath ``λ1`` circulating-current loss for bonded metallic sheaths - (:func:`sheath_circulating_loss_factor`). -* Armour ``λ2`` ([IEC60287-1-1] 2.4): supplied by the caller, not computed - (the full standard is not held; finite element values for three-core - armoured cables lie well below the IEC estimate, e.g. Goddard et al. 2015, - Table V), released at the armour radii in equal shares. -* **Not implemented:** the sheath eddy-current loss ``λ1''``. +losses generated inside it ([IEC60287-1-1] 4.2.1, Formula (1); +[NeherMcGrath1957] Eqs. 1-2), so the profile ends equal ``θ_c`` and +``θ_a + W_tot T4``. + +Heat sources ([IEC60287-1-1] Clause 5), computed from the cable unless given: + +* Conductor Joule ``W_c = I^2 R_C`` per conductor with + ``R_C = R'(1 + y_s + y_p)``, ``R' = R_0 (1 + α_20 (θ - 20))`` (5.1, + Formula (7)); ``R_0`` from [IEC60228] Table 4, per length of the complete + cable (:func:`conductor_resistance_20C`); ``y_s`` over the three ranges of + 5.1.3 and ``y_p`` of 5.1.4/5.1.5 (:func:`skin_effect_factor`, + :func:`proximity_effect_factor`). +* Dielectric ``W_d = ω C U_0^2 tanδ`` with ``C`` times the lay-up factor + ``C_LL`` (5.2, Annex A), counted from the ``U_0`` of the insulation type + (127 kV for XLPE; :func:`dielectric_loss`). +* Sheath ``λ1'`` of the per-core screens of an SL-type cable (5.3.2, or + 5.3.11 under magnetic armour; :func:`sheath_circulating_loss_factor`). + ``λ1'' = 0`` as in those clauses; :func:`sheath_eddy_loss_factor` gives + the eddy loss of 5.3.7.1 that CIGRE TB 880 (2022) Guidance Points 6 and 31 + keep, for a caller who adds it. +* Armour ``λ2`` (5.4): supplied by the caller, not computed (finite element + values for three-core armoured cables lie well below the IEC estimate, + e.g. Goddard et al. 2015, Table V), released at the armour radii in equal + shares. + +Thermal resistances ([IEC60287-2-1] 4.1): per-core annuli divided by +``C_LL`` (4.1.2.1, 4.1.3), ``T1`` from the conductor diameter ``d_c``, the +semiconducting screens with the insulation (4.1.1), and the fillers and +bedding of an armoured three-core SL-type cable by the geometric factor +``G-bar`` (4.1.4.2, 5.6; CIGRE TB 880 Guidance Point 45). References ---------- -[IEC60287-1-1] (losses, ``R_ac``, dielectric, sheath ``λ1``, ladder Eq. 1); -[IEC60287-2-1] (thermal resistances ``T1..T3``); [Poradowski2025] (external +[IEC60287-1-1] IEC 60287-1-1:2023 (losses, ``R_C``, dielectric, sheath +``λ1``, ladder Formula (1), lay-up factor Annex A); [IEC60287-2-1] IEC +60287-2-1:2023 (thermal resistances ``T1..T3``, Table 1 resistivities); +[IEC60228] IEC 60228:2023 (conductor resistance); [Poradowski2025] (external ``T4`` for dynamic/buried submarine cables, Eq. 2, which, like the ladder implemented here, carries no armour loss factor ``λ2``); [NeherMcGrath1957] J. H. Neher and M. H. McGrath, "The calculation of the @@ -89,17 +104,23 @@ from cablexsec.cables.schema import CableData, Layer __all__ = [ + "DIELECTRIC_LOSS_U0_KV", "ConductionLayer", "ThermalResult", "ac_resistance", "compute_thermal", "conductor_layers", "conductor_material_of", + "conductor_resistance_20C", "dielectric_loss", "iec_conductor_temperature", + "lay_length_factor", "proximity_effect_factor", "sheath_circulating_loss_factor", + "sheath_eddy_loss_factor", + "sheath_reactance", "skin_effect_factor", + "sl_filler_geometric_factor", "solve_crank_nicolson", "steady_state_profile", "thermal_resistance", @@ -107,6 +128,69 @@ FloatArray = NDArray[np.float64] +#: [IEC60228] (2023) Table 4, class 2 stranded conductors: maximum DC +#: resistance at 20 degC [ohm/km] of plain annealed copper and of aluminium, +#: by nominal cross-section [mm^2] (aluminium from 10 mm^2). Per km of the +#: complete cable ([IEC60228] Annex A), so no lay-up factor is applied to it. +_IEC60228_CLASS2_OHM_KM: dict[float, tuple[float, float | None]] = { + 0.75: (24.5, None), + 1.0: (18.1, None), + 1.5: (12.1, None), + 2.5: (7.41, None), + 4.0: (4.61, None), + 6.0: (3.08, None), + 10.0: (1.83, 3.08), + 16.0: (1.15, 1.91), + 25.0: (0.727, 1.20), + 35.0: (0.524, 0.868), + 50.0: (0.387, 0.641), + 70.0: (0.268, 0.443), + 95.0: (0.193, 0.320), + 120.0: (0.153, 0.253), + 150.0: (0.124, 0.206), + 185.0: (0.0991, 0.164), + 240.0: (0.0754, 0.125), + 300.0: (0.0601, 0.100), + 400.0: (0.0470, 0.0778), + 500.0: (0.0366, 0.0605), + 630.0: (0.0283, 0.0469), + 800.0: (0.0221, 0.0367), + 1000.0: (0.0176, 0.0291), + 1200.0: (0.0151, 0.0247), + 1400.0: (0.0129, 0.0212), + 1600.0: (0.0113, 0.0186), + 1800.0: (0.0101, 0.0165), + 2000.0: (0.0090, 0.0149), + 2500.0: (0.0072, 0.0119), + 3000.0: (0.0060, 0.0099), + 3200.0: (0.0056, 0.0093), + 3500.0: (0.0051, 0.0085), +} +#: [IEC60287-1-1] (2023) Table 1 conductor resistivities at 20 degC [ohm m], +#: used to recognise a copper or an aluminium conductor material. +_RHO_COPPER, _RHO_ALUMINIUM = 1.7241e-8, 2.8264e-8 +#: [IEC60287-1-1] (2023) Annex A, Table A.1: neutral-axis factor C_fL of +#: laid-up round cores, by number of cores. +_CFL_BY_CORES: dict[int, float] = {2: 1.16, 3: 1.29, 4: 1.53, 5: 1.80, 6: 2.08} +#: [IEC60287-1-1] (2023) 5.2: U0 [kV] from which the dielectric loss is +#: taken into account, by insulation type. +DIELECTRIC_LOSS_U0_KV: dict[str, float] = { + "paper_solid": 38.0, + "paper_fluid": 63.5, + "ppl": 63.5, + "butyl_rubber": 18.0, + "epr": 63.5, + "pvc": 6.0, + "pe": 127.0, + "xlpe": 127.0, + "xlpe_filled": 63.5, +} +#: An armour material with ``relative_permeability`` at or below this value +#: is non-magnetic (stainless steel, copper, aluminium); one without the +#: property is taken as magnetic steel ([IEC60287-1-1] (2023) 5.4.3.1 d) +#: gives 400 for steel wires). +_MAGNETIC_PERMEABILITY_MIN = 1.5 + # Classification threshold (not a material property) separating metallic # sheaths/screens from polymer and filler layers in the thermal ladder: the # library's metals have λ ≥ 35 W/(m·K), its polymers and fillers λ ≤ 0.5. @@ -151,6 +235,10 @@ class ThermalResult: Total heat generation per metre [W/m]. provenance : Provenance or None Backing citations/gates and active limitations. + losses : dict or None + 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``. """ r_m: FloatArray @@ -159,6 +247,7 @@ class ThermalResult: T_armour_C: float P_total_W_m: float provenance: Provenance | None = None + losses: dict[str, float] | None = None def thermal_resistance(r_inner_m: float, r_outer_m: float, lambda_W_mK: float) -> float: @@ -267,36 +356,75 @@ def dielectric_loss( *, frequency_Hz: float = 50.0, n_phases: int = 1, + insulation_type: str = "xlpe", + lay_length_factor: float = 1.0, + include: bool | None = None, ) -> float: - """Dielectric loss per unit length [W/m] ([IEC60287-1-1] Eq. 18). - - ``W_d = n U_0^2 ω C tanδ`` with phase voltage ``U_0 = V/√3`` and coaxial - capacitance ``C = 2π ε_0 ε_r / ln(r_o/r_i)``. Returns 0 below 100 kV (the - IEC threshold for including dielectric loss in ratings). + r"""Dielectric loss per unit length [W/m] ([IEC60287-1-1] 5.2). + + ``W_d = n ω C U_0^2 tanδ`` with the voltage to earth ``U_0 = U/√3`` + (``voltage_kV`` is the rated phase-to-phase voltage ``U``) and the + capacitance ``C = 2π ε_0 ε_r C_LL / ln(D_i/d_c)`` per core, ``C_LL`` the + lay-up factor of laid-up cores ([IEC60287-1-1] Annex A); ``r_inner_m`` is + the radius over the conductor screen and ``r_outer_m`` the radius over the + insulation without its screen. + + ``include=None`` follows [IEC60287-1-1] 5.2: the loss is taken into + account from the ``U_0`` of :data:`DIELECTRIC_LOSS_U0_KV` for the + ``insulation_type`` (127 kV for unfilled XLPE) and is zero below it. + ``include=True`` always evaluates it, as CIGRE TB 880 (2022) Guidance + Point 7 recommends; ``False`` returns zero. """ - if voltage_kV < 100.0: + u0_kV = voltage_kV / math.sqrt(3.0) + if include is None: + try: + threshold = DIELECTRIC_LOSS_U0_KV[insulation_type] + except KeyError: + raise CableInputError( + f"unknown insulation_type {insulation_type!r}; one of " + f"{sorted(DIELECTRIC_LOSS_U0_KV)}" + ) from None + include = u0_kV >= threshold + if not include: return 0.0 - eps0 = 8.854e-12 - u0 = voltage_kV * 1.0e3 / math.sqrt(3.0) - cap = 2.0 * math.pi * eps0 * epsilon_r / math.log(r_outer_m / r_inner_m) + eps0 = 8.854e-12 # [IEC60287-1-1] 5.2 + cap = ( + 2.0 + * math.pi + * eps0 + * epsilon_r + * lay_length_factor + / math.log(r_outer_m / r_inner_m) + ) omega = 2.0 * math.pi * frequency_Hz - return n_phases * u0**2 * omega * cap * tan_delta + return n_phases * (u0_kV * 1.0e3) ** 2 * omega * cap * tan_delta + + +def _bessel_argument_squared(r_dc_ohm_m: float, frequency_Hz: float, k: float) -> float: + """``x^2 = (8 π f / R') 10^-7 k`` ([IEC60287-1-1] 5.1.3 to 5.1.5).""" + return (8.0 * math.pi * frequency_Hz / r_dc_ohm_m) * 1.0e-7 * k def skin_effect_factor( r_dc_ohm_m: float, frequency_Hz: float, *, k_s: float = 1.0 ) -> float: - r"""Skin-effect factor ``y_s`` ([IEC60287-1-1] Eq. 5). + r"""Skin-effect factor ``y_s`` ([IEC60287-1-1] 5.1.3). - ``x_s^2 = (8πf/R')·10^{-7}·k_s`` and - ``y_s = x_s^4 / (192 + 0.8 x_s^4)``, with ``R'`` the DC resistance per - unit length [Ω/m] at operating temperature and ``k_s`` the conductor - construction coefficient (``1`` for round/compact stranded; - [IEC60287-1-1] Table 2 lists segmental values). + With ``x_s^2 = (8πf/R')·10^{-7}·k_s``, ``R'`` the DC resistance per unit + length [Ω/m] at the operating temperature and ``k_s`` the coefficient of + [IEC60287-1-1] Table 2 (1 for round stranded conductors): + + * ``0 < x_s ≤ 2.8``: ``y_s = x_s^4 / (192 + 0.8 x_s^4)``; + * ``2.8 < x_s ≤ 3.8``: ``y_s = -0.136 - 0.0177 x_s + 0.0563 x_s^2``; + * ``x_s > 3.8``: ``y_s = 0.354 x_s - 0.733``. """ - xs2 = (8.0 * math.pi * frequency_Hz / r_dc_ohm_m) * 1.0e-7 * k_s - xs4 = xs2 * xs2 - return xs4 / (192.0 + 0.8 * xs4) # [IEC60287-1-1] Eq. 5 + xs2 = _bessel_argument_squared(r_dc_ohm_m, frequency_Hz, k_s) + xs = math.sqrt(xs2) + if xs <= 2.8: + return xs2 * xs2 / (192.0 + 0.8 * xs2 * xs2) + if xs <= 3.8: + return -0.136 - 0.0177 * xs + 0.0563 * xs2 + return 0.354 * xs - 0.733 def proximity_effect_factor( @@ -306,44 +434,489 @@ def proximity_effect_factor( spacing_m: float, *, k_p: float = 1.0, + n_conductors: int = 3, ) -> float: - r"""Proximity-effect factor ``y_p`` for three-core cables ([IEC60287-1-1] Eq. 7). + r"""Proximity-effect factor ``y_p`` ([IEC60287-1-1] 5.1.4 and 5.1.5.1). - With ``x_p^4`` formed as in :func:`skin_effect_factor` (using ``k_p``) and - ``F = x_p^4/(192 + 0.8 x_p^4)``, + With ``x_p^2 = (8πf/R')·10^{-7}·k_p`` and ``F = x_p^4/(192 + 0.8 x_p^4)``, + three conductors (5.1.5.1, a three-core cable or three single-core + cables): .. math:: y_p = F\,(d_c/s)^2\left[0.312\,(d_c/s)^2 + \frac{1.18}{F + 0.27}\right], - where ``d_c`` is the conductor diameter and ``s`` the axial spacing of - adjacent conductors (touching trefoil: ``s`` = core overall diameter). + and two conductors (5.1.4): ``y_p = 2.9 F (d_c/s)^2``. ``d_c`` is the + conductor diameter and ``s`` the distance between conductor axes. The + formulae hold for ``x_p ≤ 2.8``. """ - xp2 = (8.0 * math.pi * frequency_Hz / r_dc_ohm_m) * 1.0e-7 * k_p + if n_conductors not in (2, 3): + raise CableInputError( + "the IEC proximity-effect factor is given for two or three " + f"conductors, not {n_conductors}; pass y_p" + ) + xp2 = _bessel_argument_squared(r_dc_ohm_m, frequency_Hz, k_p) xp4 = xp2 * xp2 f_p = xp4 / (192.0 + 0.8 * xp4) ratio = d_conductor_m / spacing_m - # [IEC60287-1-1] Eq. 7 (three conductors). + if n_conductors == 2: + return 2.9 * f_p * ratio**2 # [IEC60287-1-1] 5.1.4 return f_p * ratio**2 * (0.312 * ratio**2 + 1.18 / (f_p + 0.27)) def sheath_circulating_loss_factor( - r_sheath_ohm_m: float, r_ac_ohm_m: float, reactance_ohm_m: float + r_sheath_ohm_m: float, + r_ac_ohm_m: float, + reactance_ohm_m: float, + *, + sl_armoured: bool = False, ) -> float: - r"""Sheath circulating-current loss factor ``λ1'`` ([IEC60287-1-1] Eq. 24). + r"""Sheath circulating-current loss factor ``λ1'``. - For metallic sheaths bonded at both ends (trefoil), + Two or three single-core cables in trefoil, sheaths bonded at both ends, + and the cores of an unarmoured SL-type cable ([IEC60287-1-1] 5.3.2): .. math:: \lambda_1' = \frac{R_s}{R}\,\frac{1}{1 + (R_s/X)^2}, - with ``R_s`` the sheath AC resistance per unit length, ``R`` the conductor - AC resistance, and ``X = 2ω·10^{-7}\ln(2s/d_s)`` the sheath reactance - ([IEC60287-1-1] Eq. 25). The eddy-current term ``λ1''`` is additive and not - computed here; for solidly-bonded sheaths the circulating term dominates. + with ``R_s`` the sheath resistance and ``R`` the conductor AC resistance + per unit length at their operating temperatures, and ``X = 2ω·10^{-7} + \ln(2s/d)`` the sheath reactance (``s`` the distance between conductor + axes, ``d`` the mean sheath diameter). An SL-type cable under magnetic + armour (``sl_armoured=True``, [IEC60287-1-1] 5.3.11) has the factor 1.5 + on this expression and ``X`` multiplied by the lay-up factor ``C_LL``, + which the caller includes in ``reactance_ohm_m``. The eddy-current term + ``λ1''`` is zero in both clauses. + """ + factor = 1.5 if sl_armoured else 1.0 + return ( + factor + * (r_sheath_ohm_m / r_ac_ohm_m) + / (1.0 + (r_sheath_ohm_m / reactance_ohm_m) ** 2) + ) + + +def sheath_eddy_loss_factor( + r_sheath_ohm_m: float, + r_ac_ohm_m: float, + *, + sheath_mean_diameter_m: float, + sheath_outer_diameter_m: float, + sheath_thickness_m: float, + sheath_resistivity_ohm_m: float, + spacing_m: float, + frequency_Hz: float = 50.0, + solid_bonding_reactance_ohm_m: float | None = None, +) -> float: + r"""Sheath eddy-current loss factor ``λ1''`` of three cables in trefoil. + + [IEC60287-1-1] 5.3.7.1 (sheaths single-point bonded or cross-bonded): + + .. math:: + \lambda_1'' = \frac{R_s}{R}\left[g_s \lambda_0 (1 + \Delta_1 + \Delta_2) + + \frac{(\beta_1 t_s)^4}{12\cdot10^{12}}\right], + + with ``m = ω 10^-7 / R_s``, ``λ0 = 3 m²/(1+m²) (d/2s)²``, ``Δ1 = (1.14 + m^2.45 + 0.33)(d/2s)^(0.92 m + 1.66)``, ``Δ2 = 0``, ``β1 = sqrt(4 π ω / + (10^7 ρ_s))`` and ``g_s = 1 + (t_s/D_s)^1.74 (β1 D_s 10^-3 - 1.6)`` + (lengths in mm inside the brackets, as in the standard). + + IEC 60287-1-1 sets ``λ1'' = 0`` for sheaths bonded at both ends and for SL + cables (5.3.2, 5.3.11); :func:`compute_thermal` follows it. CIGRE TB 880 + (2022) Guidance Point 6 keeps the eddy loss in every case and Guidance + Point 31 multiplies it, under solid bonding, by the factor ``F`` of + [IEC60287-1-1] 5.3.6 with ``M = N = R_s/X``: pass the sheath reactance + ``X`` as ``solid_bonding_reactance_ohm_m`` for that product. The value + can then be added to a computed ``λ1'`` and passed as ``lambda1``. + """ + omega = 2.0 * math.pi * frequency_Hz + m = omega * 1.0e-7 / r_sheath_ohm_m + q = sheath_mean_diameter_m / (2.0 * spacing_m) + lam0 = 3.0 * (m**2 / (1.0 + m**2)) * q**2 + delta1 = (1.14 * m**2.45 + 0.33) * q ** (0.92 * m + 1.66) + beta1 = math.sqrt(4.0 * math.pi * omega / (1.0e7 * sheath_resistivity_ohm_m)) + ts_mm, ds_mm = sheath_thickness_m * 1e3, sheath_outer_diameter_m * 1e3 + g_s = 1.0 + (ts_mm / ds_mm) ** 1.74 * (beta1 * ds_mm * 1.0e-3 - 1.6) + lam = (r_sheath_ohm_m / r_ac_ohm_m) * ( + g_s * lam0 * (1.0 + delta1) + (beta1 * ts_mm) ** 4 / 12.0e12 + ) + if solid_bonding_reactance_ohm_m is not None: + mm = r_sheath_ohm_m / solid_bonding_reactance_ohm_m + lam *= (4.0 * mm**4 + (2.0 * mm) ** 2) / (4.0 * (mm**2 + 1.0) ** 2) + return float(lam) + + +def sheath_reactance( + spacing_m: float, + sheath_mean_diameter_m: float, + *, + frequency_Hz: float = 50.0, + lay_length_factor: float = 1.0, +) -> float: + """Sheath reactance ``X = 2 ω 10^-7 ln(2s/d) C_LL`` [Ω/m] ([IEC60287-1-1] 5.3).""" + omega = 2.0 * math.pi * frequency_Hz + return ( + 2.0 + * omega + * 1.0e-7 + * math.log(2.0 * spacing_m / sheath_mean_diameter_m) + * lay_length_factor + ) + + +def lay_length_factor(cable: CableData) -> tuple[float, str]: + r"""Lay-up factor ``C_LL`` of laid-up cores and a provenance note. + + [IEC60287-1-1] (2023) Annex A, Formula (A.1) (also [IEC60287-2-1] (2023) + Annex A): + + .. math:: C_{LL} = \sqrt{1 + \left(\frac{\pi C_{fL} D_p}{L_L}\right)^2}, + + with ``D_p`` the diameter of a core (over its outermost per-core layer), + ``L_L`` the core lay pitch (``core_lay.pitch_m``) and ``C_fL`` from Table + A.1 by the number of cores. One for a single-core cable and for cores laid + straight (no ``core_lay`` block). It multiplies a resistance, capacitance + or reactance computed for a straight core and divides a per-core thermal + resistance. + """ + n_cores = max((getattr(layer, "n_cores", 0) for layer in cable.layers), default=0) + if n_cores <= 1: + return 1.0, "" + lay = cable.core_lay + if lay is None: + return 1.0, "cores laid straight (no core_lay): lay-up factor C_LL = 1" + if lay.pitch_m is None: + return 1.0, ( + "core_lay.pitch_m withheld: lay-up factor C_LL ([IEC60287-1-1] " + "Annex A) not applied (C_LL = 1)" + ) + try: + cfl = _CFL_BY_CORES[n_cores] + except KeyError: + raise CableInputError( + f"[IEC60287-1-1] Table A.1 gives C_fL for 2 to 6 cores, not {n_cores}" + ) from None + d_core = 2.0 * max( + ( + float(getattr(layer, "r_outer_m", None) or 0.0) + for layer in cable.layers + if layer.layer_type == "cylindrical_offset" + ), + default=0.0, + ) + if d_core <= 0.0: + raise CableInputError("the lay-up factor needs the outer radius of the cores") + c_ll = math.sqrt(1.0 + (math.pi * cfl * d_core / lay.pitch_m) ** 2) + return c_ll, ( + f"lay-up factor C_LL = {c_ll:.4f} ([IEC60287-1-1] Annex A: C_fL {cfl}, " + f"core diameter {d_core * 1e3:.2f} mm, lay pitch {lay.pitch_m:g} m)" + ) + + +def conductor_resistance_20C( + cable: CableData, + conductor_area_m2: float, + material: str, + *, + lay_factor: float = 1.0, +) -> tuple[float, str]: + """DC resistance of one conductor at 20 degC per metre of cable [Ω/m] and its basis. + + [IEC60287-1-1] (2023) 5.1.2: ``R_0`` is taken from [IEC60228]: a copper + or aluminium conductor (recognised by its resistivity, within 3 % of the + [IEC60287-1-1] Table 1 value) of a nominal class 2 cross-section takes the + maximum resistance of [IEC60228] (2023) Table 4, which holds per length of + the complete cable ([IEC60228] Annex A); a cross-section between two + nominal sizes is interpolated linearly (CIGRE TB 880 (2022), Section 2.5). + Otherwise the resistance is ``ρ/A`` with the material resistivity, times + the lay-up factor ``lay_factor`` for the length of a laid-up core + ([IEC60287-1-1] 5.1.2 and Annex A). """ - return (r_sheath_ohm_m / r_ac_ohm_m) / ( - 1.0 + (r_sheath_ohm_m / reactance_ohm_m) ** 2 + rho = get_property(material, "rho_ohm_m") + area_mm2 = conductor_area_m2 * 1.0e6 + column = None + if abs(rho / _RHO_COPPER - 1.0) <= 0.03: + column, metal = 0, "copper" + elif abs(rho / _RHO_ALUMINIUM - 1.0) <= 0.03: + column, metal = 1, "aluminium" + solid = any( + getattr(layer, "construction", "") == "solid" + for layer in conductor_layers(cable) + ) + if column is not None and not solid: + sizes = sorted( + a for a, row in _IEC60228_CLASS2_OHM_KM.items() if row[column] is not None + ) + values = [_IEC60228_CLASS2_OHM_KM[a][column] for a in sizes] + if sizes[0] <= area_mm2 <= sizes[-1]: + r_km = float(np.interp(area_mm2, sizes, values)) # type: ignore[arg-type] + nominal = any(math.isclose(area_mm2, a, rel_tol=1e-6) for a in sizes) + how = ( + "nominal size" + if nominal + else "interpolated between nominal sizes (CIGRE TB 880, 2.5)" + ) + return r_km * 1.0e-3, ( + f"R_0 = {r_km:.4g} ohm/km of the complete cable from [IEC60228] " + f"Table 4, class 2 {metal}, {area_mm2:g} mm2 ({how})" + ) + r20 = rho / conductor_area_m2 * lay_factor + reason = ( + "solid conductor" + if solid + else "material is not the copper or aluminium of [IEC60287-1-1] Table 1" + if column is None + else "cross-section outside [IEC60228] Table 4" + ) + return r20, ( + f"R_0 = rho/A x C_LL = {r20 * 1e3:.4g} ohm/km ({reason}; [IEC60287-1-1] " + "5.1.2 and Annex A)" + ) + + +@dataclass(frozen=True) +class _ConductorLosses: + """Conductor resistance and loss factors of one core (private).""" + + r20_ohm_m: float + alpha_R_per_K: float + y_s: float + y_p: float + lay_factor: float + notes: tuple[str, ...] + + +def _conductor_offset_layer(cable: CableData) -> Layer | None: + for layer in conductor_layers(cable): + if layer.layer_type == "cylindrical_offset": + return layer + return None + + +def _conductor_losses( + cable: CableData, + conductor_area_m2: float, + material: str, + temperature_C: float, + *, + y_s: float | None, + y_p: float | None, + r20_ohm_m: float | None, + k_s: float | None, + k_p: float | None, +) -> _ConductorLosses: + """``R_0`` and the skin and proximity factors at ``temperature_C`` (IEC 5.1).""" + notes: list[str] = [] + c_ll, c_note = lay_length_factor(cable) + if c_note: + notes.append(c_note) + alpha = get_property(material, "alpha_R_per_K") + if r20_ohm_m is None: + r20, r_note = conductor_resistance_20C( + cable, conductor_area_m2, material, lay_factor=c_ll + ) + notes.append(r_note) + else: + r20 = float(r20_ohm_m) + notes.append(f"R_0 = {r20 * 1e3:.4g} ohm/km given explicitly") + freq = cable.environment.frequency_Hz + r_dc = r20 * (1.0 + alpha * (temperature_C - 20.0)) + aluminium = abs(get_property(material, "rho_ohm_m") / _RHO_ALUMINIUM - 1.0) <= 0.03 + solid = any( + getattr(layer, "construction", "") == "solid" + for layer in conductor_layers(cable) ) + # [IEC60287-1-1] Table 2, round conductor, extruded insulation: k_s = 1; + # k_p = 1, except 0.8 for stranded aluminium. + ks = 1.0 if k_s is None else float(k_s) + kp = (0.8 if aluminium and not solid else 1.0) if k_p is None else float(k_p) + if (y_s is None and k_s is None) or (y_p is None and k_p is None): + notes.append( + f"k_s = {ks:g}, k_p = {kp:g} from [IEC60287-1-1] Table 2 (round " + "conductor, extruded insulation; pass k_s/k_p for Milliken or " + "hollow conductors)" + ) + if y_s is None: + y_s = skin_effect_factor(r_dc, freq, k_s=ks) + if y_p is None: + n_geo = max((getattr(layer, "n_cores", 0) for layer in cable.layers), default=0) + core = _conductor_offset_layer(cable) + if n_geo <= 1 or core is None: + y_p = 0.0 + notes.append( + "single-core cable: the proximity effect depends on the spacing " + "of the other cables of the circuit and is not computed (y_p = 0; " + "pass y_p, [IEC60287-1-1] 5.1.4/5.1.5)" + ) + else: + r_offset = float(getattr(core, "r_offset_m", None) or 0.0) + spacing = 2.0 * r_offset * math.sin(math.pi / n_geo) + d_c = float( + getattr(core, "d_conductor_m", None) + or 2.0 * float(getattr(core, "r_outer_m", 0.0) or 0.0) + ) + if spacing <= 0.0 or d_c <= 0.0: + raise CableInputError( + "the proximity effect needs the core offset and the conductor " + "diameter; pass y_p" + ) + y_p = proximity_effect_factor( + r_dc, freq, d_c, spacing, k_p=kp, n_conductors=n_geo + ) + notes.append( + f"y_p from [IEC60287-1-1] 5.1.{4 if n_geo == 2 else 5} with d_c = " + f"{d_c * 1e3:.2f} mm and s = {spacing * 1e3:.2f} mm" + ) + return _ConductorLosses(r20, alpha, float(y_s), float(y_p), c_ll, tuple(notes)) + + +def _sheath_loss_factor( + cable: CableData, + geo: _LadderGeometry, + *, + r_ac_ohm_m: float, + sheath_temperature_C: float, + lay_factor: float, +) -> tuple[float, str]: + """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 + 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 + spacing of the circuit) and a common sheath over the cores are not + computed: ``λ1 = 0`` with a note, and the caller passes ``lambda1``. + """ + if not geo.sheath_found: + return 0.0, "" + if not geo.multi_core: + return 0.0, ( + "single-core cable: the sheath loss depends on the bonding and the " + "spacing of the circuit and is not computed (lambda1 = 0; pass " + "lambda1, [IEC60287-1-1] 5.3.2 to 5.3.7)" + ) + if not geo.sheath_per_core or geo.n_geo not in (2, 3): + return 0.0, ( + "metallic sheath common to the cores: the sheath loss " + "([IEC60287-1-1] 5.3.8 to 5.3.10) is not computed (lambda1 = 0; " + "pass lambda1)" + ) + layer = next(x for x in cable.layers if x.name == geo.sheath_name) + by_name = {x.name: x for x in cable.layers} + r_screen_in = float(getattr(layer, "r_inner_m", 0.0) or 0.0) + counted = [layer] + tapes: list[str] = [] + for a in geo.path: + other = by_name.get(a.layer_name) + if ( + other is None + or other is layer + or not (a.metallic and a.per_core) + or a.layer.r_inner_m < r_screen_in - _RADIUS_TOL_M + ): + continue + if getattr(other, "tape", None) is not None: + tapes.append(other.name) + else: + counted.append(other) + conductance = 0.0 # 1 / R_s per unit length of the core + diameters: list[float] = [] + parts: list[str] = [] + for item in counted: + r_in = float(getattr(item, "r_inner_m", 0.0) or 0.0) + r_out = float(getattr(item, "r_outer_m", 0.0) or 0.0) + try: + rho_s = get_property(item.material, "rho_ohm_m") + alpha_s = get_property(item.material, "alpha_R_per_K") + except KeyError: + raise CableInputError( + f"the sheath loss needs rho_ohm_m and alpha_R_per_K of the screen " + f"material {item.material!r} ({item.name!r}); give them or pass " + "lambda1" + ) from None + rings = tuple(getattr(item, "strand_layers", ()) or ()) + if rings: + # Wires in parallel, each ring over its own helix length per unit + # core length (1 / cos of its lay angle; TB 880 GP 27). + area = sum(ring.area_m2 * math.cos(ring.lay_angle_rad) for ring in rings) + what = ( + f"{sum(ring.n_wires for ring in rings)} wires of " + f"{sum(ring.area_m2 for ring in rings) * 1e6:.4g} mm2 over their lay" + ) + else: + area = math.pi * (r_out**2 - r_in**2) + what = f"annulus of {area * 1e6:.4g} mm2" + if getattr(item, "construction", "") == "resolved_wire_screen": + what += " (a wire screen without strand_layers)" + r_item = rho_s / area * (1.0 + alpha_s * (sheath_temperature_C - 20.0)) + conductance += 1.0 / r_item + diameters.append(r_in + r_out) + parts.append(f"{item.name!r}: {what}") + r_s = lay_factor / conductance + # Mean diameter of the screens in parallel: the mean of their own mean + # diameters (TB 880 Case 2, wires and laminated foil). + d_mean = sum(diameters) / len(diameters) + metal = ( + f" ({'; '.join(parts)}" + + ("; in parallel" if len(counted) > 1 else "") + + ( + f"; metal tape(s) {', '.join(tapes)} not counted, TB 880 GP 29" + if tapes + else "" + ) + + ")" + ) + core = _conductor_offset_layer(cable) + r_offset = float(getattr(core, "r_offset_m", None) or 0.0) if core else 0.0 + spacing = 2.0 * r_offset * math.sin(math.pi / geo.n_geo) + armour = [layer for layer in cable.helical_layers if layer.structural] + magnetic = [ + a + for a in armour + if _relative_permeability(a.material) > _MAGNETIC_PERMEABILITY_MIN + ] + sl_armoured = geo.n_geo == 3 and bool(magnetic) + x = sheath_reactance( + spacing, + d_mean, + frequency_Hz=cable.environment.frequency_Hz, + lay_length_factor=lay_factor if sl_armoured else 1.0, + ) + 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)" + ) + screen = metal + common = [a.layer_name for a in geo.path if a.metallic and not a.per_core] + [ + x.name for x in cable.layers if x.layer_type == "cylindrical_shell" + ] + common_note = ( + f"; the losses of the metallic layer(s) over the cores ({', '.join(common)}) " + "are not computed (pass lambda1 to include them)" + if common + else "" + ) + return lam1, ( + f"lambda1' = {lam1:.4f} from [IEC60287-1-1] {clause}: R_s = " + f"{r_s * 1e3:.4g} ohm/km of {layer.name!r} at {sheath_temperature_C:.1f} " + f"degC{screen}, s = {spacing * 1e3:.2f} mm, d = {d_mean * 1e3:.2f} mm; " + "lambda1'' = 0 (IEC; CIGRE TB 880 GP 6 would add the eddy loss)" + common_note + ) + + +def _relative_permeability(material: str) -> float: + """``relative_permeability`` of an armour material; magnetic steel if absent.""" + try: + return get_property(material, "relative_permeability") + except KeyError: + return 400.0 # [IEC60287-1-1] 5.4.3.1 d), steel wires def iec_conductor_temperature( @@ -374,7 +947,7 @@ def iec_conductor_temperature( dynamic cable section ([Poradowski2025]). The conductor loss ``W_c`` and dielectric loss ``W_d`` ([IEC60287-1-1]) inject at the conductor and the insulation mid-point respectively; ``λ1`` is the sheath loss factor, ``λ2`` the - armour loss factor ([IEC60287-1-1] 2.4; ``T3`` lies outside the armour) + armour loss factor ([IEC60287-1-1] 5.4; ``T3`` lies outside the armour) and ``n`` the number of loaded conductors. With ``λ2 = 0`` the three outer resistances carry the same heat flow. @@ -515,6 +1088,9 @@ class _LadderGeometry: r_core: float geometry_notes: list[str] sheath_found: bool = True + sheath_name: str = "" + sheath_per_core: bool = False + lay_factor: float = 1.0 def _layer_heat_flows( @@ -531,7 +1107,7 @@ def _layer_heat_flows( ) -> tuple[list[float], float, float]: r"""Per-annulus heat flow of the IEC ladder and the matching ``T1``, ``T2``. - The allocation follows the structure of [IEC60287-1-1] 1.4.1.1 Eq. 1, + The allocation follows the structure of [IEC60287-1-1] 4.2.1, Formula (1), .. math:: \Delta\theta = (W_c + \tfrac12 W_d)\,T_1 @@ -600,12 +1176,16 @@ def compute_thermal( n_cores: int | None = None, conductor_material: str | None = None, conductor_temp_C: float = 90.0, - y_s: float = 0.0, - y_p: float = 0.0, - lambda1: float = 0.0, + y_s: float | None = None, + y_p: float | None = None, + lambda1: float | None = None, T4_external_Km_W: float | None = None, ambient_C: float | None = None, lambda2: float = 0.0, + conductor_resistance_20C_ohm_m: float | None = None, + k_s: float | None = None, + k_p: float | None = None, + include_dielectric_loss: bool | None = None, ) -> ThermalResult: r"""Steady-state IEC 60287 conductor temperature for a cable definition. @@ -613,16 +1193,41 @@ def compute_thermal( (each with ``r_inner_m``/``r_outer_m`` and a material conductivity) and closes it with the external Robin resistance ``T4`` from the cable's ``environment`` block (or the override argument). The ladder is split as in - [IEC60287-1-1] 1.4.1.1 Eq. 1: ``T1`` is the resistance between the + [IEC60287-1-1] 4.2.1, Formula (1): ``T1`` is the resistance between the conductor and the metallic sheath/screen, ``T2``/``T3`` the resistance - outside it ([IEC60287-2-1] for the annulus resistances). The conductor - temperature follows :func:`iec_conductor_temperature` ([Poradowski2025] - Eq. 2). - - The conductor Joule loss is ``W_c = I^2 R_ac`` per conductor with ``R_ac`` - from :func:`ac_resistance` at ``conductor_temp_C`` (skin/proximity ``y_s``, - ``y_p`` supplied by the caller via :func:`skin_effect_factor` / - :func:`proximity_effect_factor`); dielectric loss is added above 100 kV. + outside it ([IEC60287-2-1] 4.1 for the annulus resistances). The + conductor temperature follows :func:`iec_conductor_temperature` + ([Poradowski2025] Eq. 2). + + Losses + ------ + The conductor Joule loss is ``W_c = I^2 R_C`` per conductor with + ``R_C = R_0 (1 + α_20 (θ - 20)) (1 + y_s + y_p)`` at ``conductor_temp_C`` + ([IEC60287-1-1] 5.1, Formula (7)). Each loss term not given is computed + from the cable: + + * ``R_0`` from [IEC60228] Table 4 for a copper or aluminium class 2 + conductor (per length of the complete cable), else ``ρ/A`` times the + lay-up factor ``C_LL`` (:func:`conductor_resistance_20C`, + :func:`lay_length_factor`); + * ``y_s`` from [IEC60287-1-1] 5.1.3, all three ranges of ``x_s``; + * ``y_p`` of a two- or three-core cable from 5.1.4/5.1.5.1 with the + conductor diameter ``d_conductor_m`` (else ``2 r_outer_m``) and the + distance between conductor axes; a single-core cable gets ``y_p = 0`` + (the spacing of the circuit is not part of the cable), recorded; + * ``λ1`` of the per-core screens of a two- or three-core (SL-type) + cable: [IEC60287-1-1] 5.3.11 under magnetic armour (factor 1.5), + 5.3.2 otherwise, ``λ1'' = 0`` (IEC; CIGRE TB 880 Guidance Point 6 would + add the eddy loss), the screen resistance at the sheath temperature + ``θ - (W_c + ½W_d) T1`` (5.3.1). A single-core cable or a common sheath + gets ``λ1 = 0``, recorded; pass ``lambda1``; + * the dielectric loss ``W_d`` per core ([IEC60287-1-1] 5.2) from the + first insulation layer with ``electrical`` data, with ``C`` times + ``C_LL``, counted from the ``U_0`` of its ``insulation_type`` (127 kV for + unfilled XLPE) unless ``include_dielectric_loss`` says otherwise. + + The values used are in ``ThermalResult.losses`` and their basis in the + provenance limitations. Radial profile -------------- @@ -671,13 +1276,7 @@ def compute_thermal( implemented, it is represented by the annulus of equal filler area, ``√n_geo · r_core ≤ r ≤ r_outer``, with ``r_core`` the largest per-core outer radius and ``n_geo`` the number of cores. This explicit approximation - is recorded in the provenance limitations. As an order-of-magnitude check - only (filler conductivity of [Poradowski2025] not stated), the CIGRE TB 880 - geometry (touching cores of 65.9 mm radius in a 141.95 mm filler, library - ``pp_filler`` and ``hdpe``) gives 0.166 K·m/W for filler plus armour - bedding, about 1.5 times the tabulated ``T2 = 0.1121`` K·m/W of - [Poradowski2025] Table 1, i.e. on the high (conservative) side; the - previous behaviour (filler omitted) gave about 0.008. A per-core layer with + is recorded in the provenance limitations. A per-core layer with ``r_inner_m = 0`` (and any such layer of a single-core cable) is the conductor, the heat source, and is excluded from the ladder. @@ -686,18 +1285,21 @@ def compute_thermal( With ``n_cores = 1``, no dielectric loss and ``lambda1 = 0`` the ladder collapses to ``θ_a + W_c (ΣR_internal + T4)`` — i.e. exactly the 1-D primitive :func:`steady_state_profile` evaluated on the - same annuli with the cable surface raised by ``W_c T4``. The three-core - mutual-heating geometric factor of [IEC60287-2-1] is **not** applied; for - ``n_cores > 1`` the result follows the lumped IEC ladder, and the - geometric correction is left as a documented refinement. + same annuli with the cable surface raised by ``W_c T4``. For + ``n_cores > 1`` the result follows the lumped IEC ladder: per-core + annuli for each core and, in an armoured three-core SL-type cable, the + filler resistance of the [IEC60287-2-1] geometric factor; the belted and + screened-cable factors of [IEC60287-2-1] 4.1.2.2 and 4.1.2.3 are not + implemented. Limitations ----------- - The armour loss factor ``λ2`` ([IEC60287-1-1] 2.4) is not computed: it is + The armour loss factor ``λ2`` ([IEC60287-1-1] 5.4) is not computed: it is the caller's ``lambda2`` (default 0, armour losses then absent from the heat flow through ``T3`` and ``T4`` and from ``P_total_W_m``), released at - the armour radii in equal shares. The sheath eddy-current loss ``λ1''`` is - not computed (``lambda1`` is whatever the caller supplies). + the armour radii in equal shares. The skin and proximity factors are not + raised by 1.5 for magnetic armour (CIGRE TB 880 Guidance Point 25 does; + [IEC60287-1-1] 5.1.6 does it for pipe-type cables only). Parameters ---------- @@ -706,7 +1308,7 @@ def compute_thermal( current_A : float Conductor current [A]. conductor_area_m2 : float - Conductor cross-sectional area [m²] for ``R_dc``. + Conductor cross-section [m²]: the [IEC60228] nominal size of ``R_0``. n_cores : int, optional Number of loaded conductors ``n``. Defaults to the count of ``cylindrical_offset`` cores, else 1. @@ -714,16 +1316,26 @@ def compute_thermal( Material key for ``rho_ohm_m`` and ``alpha_R_per_K``; defaults to the material of the cable's conductor layer (see above). conductor_temp_C : float, optional - Temperature at which ``R_ac`` is evaluated [°C] (default 90 = XLPE max). + Temperature at which ``R_C`` is evaluated [°C] (default 90 = XLPE max). y_s, y_p : float, optional - Skin and proximity factors (default 0 = DC limit). + Skin and proximity factors; computed when not given (see Losses). lambda1 : float, optional - Sheath loss factor (default 0). + Sheath loss factor; computed when not given (see Losses). T4_external_Km_W, ambient_C : float, optional Override the cable ``environment`` block. lambda2 : float, optional - Armour loss factor ([IEC60287-1-1] 2.4; default 0), released at the + Armour loss factor ([IEC60287-1-1] 5.4; default 0), released at the radii of the structural armour layers in equal shares. + conductor_resistance_20C_ohm_m : float, optional + ``R_0`` per metre of cable [Ω/m] (a datasheet or measured value), + instead of [IEC60228]. + k_s, k_p : float, optional + Skin and proximity coefficients ([IEC60287-1-1] Table 2); default 1 + and 1 (0.8 for stranded aluminium), round conductor, extruded + insulation. + include_dielectric_loss : bool, optional + ``None`` (default): the [IEC60287-1-1] 5.2 voltage threshold; + ``True``: always (CIGRE TB 880 Guidance Point 7); ``False``: never. """ env = cable.environment t4 = T4_external_Km_W if T4_external_Km_W is not None else env.T4_external_Km_W @@ -743,8 +1355,13 @@ def compute_thermal( "lambda1": (lambda1, None), "lambda2": (lambda2, None), "T4_external_Km_W": (t4, None), + "conductor_resistance_20C_ohm_m": (conductor_resistance_20C_ohm_m, True), + "k_s": (k_s, True), + "k_p": (k_p, True), } for name, (value, positive) in checks.items(): + if value is None: + continue if not math.isfinite(value): raise CableInputError(f"compute_thermal: {name} must be finite") if positive is True and value <= 0.0: @@ -764,25 +1381,63 @@ def compute_thermal( # Losses. material, material_basis = conductor_material_of(cable, conductor_material) try: - rho = get_property(material, "rho_ohm_m") - alpha = get_property(material, "alpha_R_per_K") + get_property(material, "rho_ohm_m") + get_property(material, "alpha_R_per_K") except KeyError as error: raise CableInputError( f"compute_thermal: conductor material {material!r} needs rho_ohm_m " "and alpha_R_per_K (give them in the cable 'materials' block or " f"pass conductor_material): {error}" ) from None - r_ac = ac_resistance( - rho, conductor_area_m2, conductor_temp_C, alpha, y_s=y_s, y_p=y_p + cond = _conductor_losses( + cable, + conductor_area_m2, + material, + conductor_temp_C, + y_s=y_s, + y_p=y_p, + r20_ohm_m=conductor_resistance_20C_ohm_m, + k_s=k_s, + k_p=k_p, + ) + r_ac = ( + cond.r20_ohm_m + * (1.0 + cond.alpha_R_per_K * (conductor_temp_C - 20.0)) + * (1.0 + cond.y_s + cond.y_p) ) w_c = current_A**2 * r_ac - w_d = _cable_dielectric_loss(cable) - if not geo.sheath_found and (w_d > 0.0 or lambda1 > 0.0): + w_d, w_d_note = _cable_dielectric_loss( + cable, lay_factor=cond.lay_factor, include=include_dielectric_loss + ) + lambda1_note = "" + if lambda1 is None: + t1_core = sum( + thermal_resistance( + a.layer.r_inner_m, a.layer.r_outer_m, a.layer.lambda_W_mK + ) + for a, inner in zip(path, in_t1, strict=True) + if inner + ) + lambda1, lambda1_note = _sheath_loss_factor( + cable, + geo, + r_ac_ohm_m=r_ac, + sheath_temperature_C=conductor_temp_C - (w_c + 0.5 * w_d) * t1_core, + lay_factor=cond.lay_factor, + ) + elif not geo.sheath_found and lambda1 > 0.0: + raise CableInputError( + "compute_thermal: no metallic sheath or screen lies outside the " + "insulation, so the T1/T2 split that lambda1 needs is undefined; " + "declare the metallic sheath/screen layer (cylindrical_shell or a " + "metallic annulus)" + ) + if not geo.sheath_found and w_d > 0.0: raise CableInputError( "compute_thermal: no metallic sheath or screen lies outside the " - "insulation, so the T1/T2 split that the dielectric loss and " - "lambda1 need is undefined; declare the metallic sheath/screen " - "layer (cylindrical_shell or a metallic annulus)" + "insulation, so the T1/T2 split that the dielectric loss needs is " + "undefined; declare the metallic sheath/screen layer " + "(cylindrical_shell or a metallic annulus)" ) armour_radii = _armour_radii(cable) if lambda2 > 0.0 else () @@ -839,90 +1494,158 @@ def compute_thermal( float(np.interp(armour_r, r_m, t_profile)) if armour_r is not None else math.nan ) - # Soft validated-range guard: the conduction ladder + Robin T4 was validated - # (BM5, Poradowski 2025) at the XLPE continuous-operation limit of 90 degC. + # Soft validated-range guard: the IEC ladder applies up to the XLPE + # continuous-operation limit of 90 degC. check_range( float(theta_c), ValidatedRange( "conductor temperature [degC]", t_amb, 90.0, - "[IEC60287] XLPE 90 degC continuous limit; BM5 [Poradowski2025] " - "validated at 90 degC", + "[IEC60287-1-1] 5.1.2: XLPE maximum operating temperature 90 degC", ), ) limitations = [ material_basis, + *cond.notes, "external resistance T4 taken verbatim as input (not derived from " "installation geometry)", ] + if w_d_note: + limitations.append(w_d_note) + if lambda1_note: + limitations.append(lambda1_note) if armour_note: limitations.append(armour_note) - if n > 1: + g_bar_applied = any("G-bar =" in note for note in geometry_notes) + if n > 1 and not g_bar_applied: limitations.append( - "three-core mutual-heating geometric factor [IEC60287-2-1] NOT " - "applied; lumped IEC ladder used (n>1)" + "three-core geometric factors of [IEC60287-2-1] (belted, screened " + "or SL-type fillers) NOT applied; lumped IEC ladder used (n>1)" ) limitations.extend(geometry_notes) limitations.append( - "sheath eddy-loss lambda1'' ([IEC60287-1-1] 2.3.6) not included " - "(circulating lambda1' only); BM5 residual ~5 K when lambda1''=0" - ) - limitations.append( - "armour loss factor lambda2 ([IEC60287-1-1] 2.4) supplied by the " + "armour loss factor lambda2 ([IEC60287-1-1] 5.4) supplied by the " "caller, not computed; released at the armour radii in equal shares" if lambda2 > 0.0 - else "armour loss factor lambda2 ([IEC60287-1-1] 2.4) zero: armour " + else "armour loss factor lambda2 ([IEC60287-1-1] 5.4) zero: armour " "losses absent from the T3/T4 heat flow and P_total_W_m" ) prov = Provenance( method="IEC 60287 conduction ladder with external Robin resistance T4", citations=( - "[IEC60287-1-1] 1.4.1.1 Eq.1", - "[IEC60287-2-1]", + "[IEC60287-1-1] 4.2.1 Formula (1), 5.1 to 5.3, Annex A", + "[IEC60228] Table 4", + "[IEC60287-2-1] 4.1", "[Poradowski2025] Eq.2", "[NeherMcGrath1957] Eqs.1-2", ), gates=( "A9 reduction (n=1) <1e-12", - "BM5 90 degC", "profile ends T(r_c)=theta_c, T(r_s)=theta_a+P_total*T4 <1e-12", ), limitations=tuple(limitations), ) + losses = { + "R0_ohm_m": cond.r20_ohm_m, + "R_ac_ohm_m": r_ac, + "y_s": cond.y_s, + "y_p": cond.y_p, + "lay_length_factor": cond.lay_factor, + "W_c_W_m": w_c, + "W_d_W_m": w_d, + "lambda1": float(lambda1), + "lambda2": float(lambda2), + } return ThermalResult( - r_m, t_profile, float(theta_c), t_armour, float(p_total), provenance=prov + r_m, + t_profile, + float(theta_c), + t_armour, + float(p_total), + provenance=prov, + losses=losses, ) -def _cable_dielectric_loss(cable: CableData) -> float: - """Per-core dielectric loss of the first insulation with electrical data.""" +def _cable_dielectric_loss( + cable: CableData, *, lay_factor: float = 1.0, include: bool | None = None +) -> tuple[float, str]: + """Per-core dielectric loss of the first insulation with electrical data, a note. + + [IEC60287-1-1] 5.2: counted from the ``U_0`` of the insulation type + (``include=None``), always (``True``) or never (``False``). + """ voltage = cable.cable.voltage_kV - if voltage is None or voltage < 100.0: - return 0.0 + if voltage is None or include is False: + return 0.0, "" + incomplete: list[tuple[str, str]] = [] # (layer, insulation type) lacking data for layer in cable.layers: elec = getattr(layer, "electrical", None) r_in = getattr(layer, "r_inner_m", None) r_out = getattr(layer, "r_outer_m", None) - if elec is None or r_in is None or r_out is None: + if elec is None: continue tan_d = elec.loss_factor_tan_delta eps_r = elec.permittivity_relative - if tan_d and eps_r: - return dielectric_loss( - voltage, - eps_r, - tan_d, - r_in, - r_out, - frequency_Hz=cable.environment.frequency_Hz, + if not (tan_d and eps_r) or r_in is None or r_out is None: + if elec.insulation_type: + incomplete.append((layer.name, elec.insulation_type)) + continue + kind = elec.insulation_type or "xlpe" + w_d = dielectric_loss( + voltage, + eps_r, + tan_d, + r_in, + r_out, + frequency_Hz=cable.environment.frequency_Hz, + insulation_type=kind, + lay_length_factor=lay_factor, + include=include, + ) + u0 = voltage / math.sqrt(3.0) + if include is True: + basis = "always included (CIGRE TB 880 Guidance Point 7)" + else: + threshold = DIELECTRIC_LOSS_U0_KV[kind] + side = "at or above" if w_d > 0.0 else "below" + basis = ( + f"U0 = {u0:.1f} kV {side} the {threshold:g} kV of " + f"{kind}{'' if elec.insulation_type else ' (assumed)'} " + "([IEC60287-1-1] 5.2)" ) - # At this voltage the dielectric loss is part of the ladder; a silent zero - # would understate the conductor temperature. + return w_d, f"dielectric loss W_d = {w_d:.4g} W/m per core: {basis}" + # The threshold of the declared insulation type of a layer without the + # data, else that of XLPE (the default type). + kinds = [kind for _, kind in incomplete] or ["xlpe"] + kind = min(kinds, key=lambda k: DIELECTRIC_LOSS_U0_KV[k]) + threshold = DIELECTRIC_LOSS_U0_KV[kind] + needed = include is True or voltage / math.sqrt(3.0) >= threshold + if not needed: + return 0.0, "" + # Where the dielectric loss may count, a silent zero would understate the + # conductor temperature. + declared = ( + "; " + + ", ".join( + f"{name!r} declares {k} without both values" for name, k in incomplete + ) + if incomplete + else "" + ) + reason = ( + "the dielectric loss is requested (include_dielectric_loss=True)" + if include is True + else ( + f"U0 = {voltage / math.sqrt(3.0):.1f} kV reaches the {threshold:g} kV " + f"of {kind} from which the dielectric loss counts ([IEC60287-1-1] 5.2)" + ) + ) raise CableInputError( - f"the cable is rated {voltage:g} kV (100 kV or more), so the ladder " - "includes the dielectric loss, but no insulation layer gives " - "'electrical: {permittivity_relative, loss_factor_tan_delta}'" + f"the cable is rated {voltage:g} kV and {reason}, but no insulation " + "layer gives 'electrical: {permittivity_relative, loss_factor_tan_delta}' " + "with its radii" + declared ) @@ -1024,12 +1747,25 @@ def _ladder_geometry(cable: CableData, n_cores: int | None) -> _LadderGeometry: ), default=0.0, ) + # Laid-up cores: a per-core thermal resistance per metre of cable is the + # straight-core value divided by C_LL ([IEC60287-2-1] 4.1.2.1, 4.1.3). + c_ll, _ = lay_length_factor(cable) + # T1 starts at the conductor diameter d_c ([IEC60287-2-1] 4.1.2.1), not + # at the radius of an area-equivalent conductor. + core = _conductor_offset_layer(cable) + d_c = getattr(core, "d_conductor_m", None) if core is not None else None + r_env = 0.5 * float(d_c) if d_c else 0.0 # Concentric conduction annuli (layers exposing r_inner_m/r_outer_m) and # metallic sheath candidates (r_inner, per_core). annuli: list[_LadderAnnulus] = [] sheath_candidates: list[tuple[float, bool, str]] = [] geometry_notes: list[str] = [] + if c_ll != 1.0: + geometry_notes.append( + f"per-core thermal resistances divided by the lay-up factor C_LL = " + f"{c_ll:.4f} ([IEC60287-2-1] 4.1.2.1, 4.1.3)" + ) for layer in cable.layers: name = layer.name.lower() per_core = multi_core and layer.layer_type == "cylindrical_offset" @@ -1037,7 +1773,7 @@ def _ladder_geometry(cable: CableData, n_cores: int | None) -> _LadderGeometry: r_mid = getattr(layer, "r_mid_m", None) t_shell = getattr(layer, "t_m", None) if r_mid is not None and t_shell is not None: - sheath_candidates.append((r_mid - 0.5 * t_shell, False, name)) + sheath_candidates.append((r_mid - 0.5 * t_shell, False, layer.name)) continue r_in = getattr(layer, "r_inner_m", None) r_out = getattr(layer, "r_outer_m", None) @@ -1061,14 +1797,30 @@ def _ladder_geometry(cable: CableData, n_cores: int | None) -> _LadderGeometry: geometry_notes.append( f"interstitial filler {layer.name!r} (r_inner_m = 0) represented " f"by the equal-filler-area annulus sqrt(n)*r_core = " - f"{r_eq * 1e3:.2f} mm to {r_out * 1e3:.2f} mm (n = {n_geo}); " - "[IEC60287-2-1] filler/bedding geometric factor NOT applied" + f"{r_eq * 1e3:.2f} mm to {r_out * 1e3:.2f} mm (n = {n_geo}) " + "for its heat capacity; the SL-type geometric factor sets its " + "resistance where it applies" ) r_in = r_eq + core_stack = per_core or not multi_core + if core_stack and r_env > 0.0 and r_in < r_env - _RADIUS_TOL_M: + if r_out <= r_env + _RADIUS_TOL_M: + geometry_notes.append( + f"{layer.name!r} lies inside the conductor diameter d_c = " + f"{2e3 * r_env:.2f} mm (stranding voids): no thermal " + "resistance ([IEC60287-2-1] 4.1.2.1)" + ) + continue + geometry_notes.append( + f"{layer.name!r} starts at the conductor diameter d_c = " + f"{2e3 * r_env:.2f} mm, not at {2e3 * r_in:.2f} mm " + "([IEC60287-2-1] 4.1.2.1)" + ) + r_in = r_env metallic = lam >= _METALLIC_LAMBDA_MIN_W_mK annuli.append( _LadderAnnulus( - ConductionLayer(r_in, r_out, lam), + ConductionLayer(r_in, r_out, lam * c_ll if per_core else lam), name, per_core, metallic, @@ -1077,7 +1829,7 @@ def _ladder_geometry(cable: CableData, n_cores: int | None) -> _LadderGeometry: ) ) if metallic: - sheath_candidates.append((r_in, per_core, name)) + sheath_candidates.append((r_in, per_core, layer.name)) if not annuli: raise CableInputError( "Cable has no concentric annular layers for a thermal ladder." @@ -1112,6 +1864,7 @@ def _ladder_geometry(cable: CableData, n_cores: int | None) -> _LadderGeometry: elif r_ins_out is not None: break sheath_found = False + sheath_name, sheath_per_core = "", False if r_ins_out is not None: ins_out = r_ins_out @@ -1123,7 +1876,7 @@ def _outside_insulation(r_inner: float, per_core: bool) -> bool: candidates = [c for c in sheath_candidates if _outside_insulation(c[0], c[1])] preferred = [c for c in candidates if c[1]] or candidates if preferred: - r_sheath, sheath_per_core, _sheath_name = min(preferred) + r_sheath, sheath_per_core, sheath_name = min(preferred) sheath_found = True else: r_sheath, sheath_per_core = ins_out, ins_per_core @@ -1146,9 +1899,144 @@ def _in_t1(a: _LadderAnnulus) -> bool: "(no dielectric loss or lambda1 accepted)" ) + sl_type = sheath_found and multi_core and bool(sheath_per_core) + if sl_type: + path = _sl_filler_path(cable, path, n_geo, r_core, geometry_notes) + screen = next((x for x in cable.layers if x.name == sheath_name), None) + if getattr(screen, "construction", "") == "resolved_wire_screen": + geometry_notes.append( + f"core screen {sheath_name!r} is a wire screen: [IEC60287-2-1] " + "4.1.2.2.4 treats a three-core cable with screens of spaced " + "wires as belted (T1 from the belted geometric factor); this " + "ladder takes the screen as an isotherm, which gives a lower T1" + ) return _LadderGeometry( - path, in_t1, n, n_geo, multi_core, r_core, geometry_notes, sheath_found + path, + in_t1, + n, + n_geo, + multi_core, + r_core, + geometry_notes, + sheath_found, + sheath_name if sheath_found else "", + bool(sheath_per_core) if sheath_found else False, + c_ll, + ) + + +def sl_filler_geometric_factor(x: float, *, sheaths_touching: bool = True) -> float: + """Geometric factor ``G-bar`` of SL-type fillers ([IEC60287-2-1] 5.6). + + ``x`` is the thickness of material between the sheaths (or core jackets) + and the armour as a fraction of their outer diameter, ``0 < x <= 0.15``. + The upper curve of Figure 6 is for sheaths touching, the lower one for + equal thicknesses between the sheaths and between sheath and armour; + CIGRE TB 880 (2022) Guidance Point 45 uses the upper curve. Each is + ``2 pi`` times the polynomial of [IEC60287-2-1] 5.6 (error below 1 %). + """ + if not 0.0 < x <= 0.15: + raise CableInputError( + f"the filler geometric factor is given for 0 < x <= 0.15, not {x:g}" + ) + if sheaths_touching: + poly = ( + 0.00022619 + 2.11429 * x - 20.4762 * x**2 + if x <= 0.03 + else 0.0142108 + 1.17533 * x - 4.49737 * x**2 + 10.6352 * x**3 + ) + else: + poly = ( + 0.000202380 + 2.03214 * x - 21.6667 * x**2 + if x <= 0.03 + else 0.0126529 + 1.101 * x - 4.56104 * x**2 + 11.5093 * x**3 + ) + return 2.0 * math.pi * poly + + +def _sl_filler_path( + cable: CableData, + path: list[_LadderAnnulus], + n_geo: int, + r_core: float, + notes: list[str], +) -> list[_LadderAnnulus]: + """Scale the filler and bedding under the armour to ``rho/(6 pi) G-bar``. + + [IEC60287-2-1] 4.1.4.2 and 5.6 with CIGRE TB 880 (2022) Guidance Point + 45: in a three-core SL-type cable the material between the core jackets + and the armour (fillers, binders, an inner sheath) has the thermal + resistance ``T2 = rho/(6 pi) G-bar`` per cable, ``rho`` the highest + resistivity of these materials and ``x`` the smallest distance between a + core jacket and the armour over the core diameter. The annuli keep their + geometry (and heat capacity); their resistances are scaled in proportion + so that they sum to ``T2``. Without armour, with other than three cores or + outside ``0 < x <= 0.15`` the annuli stay as they are, recorded. + """ + armour = [a for a in cable.helical_layers if a.structural and a.r_helix_m] + if n_geo != 3 or not armour: + notes.append( + "SL-type filler geometric factor ([IEC60287-2-1] 4.1.4.2) not " + "applied: it is given for an armoured three-core cable" + ) + return path + 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 + ) + core = _conductor_offset_layer(cable) + r_offset = float(getattr(core, "r_offset_m", None) or 0.0) if core else 0.0 + region = [ + i + for i, a in enumerate(path) + if not a.per_core and not a.metallic and a.layer.r_outer_m <= r_arm + 1e-9 + ] + x = (r_arm - r_offset - r_core) / (2.0 * r_core) if r_core > 0.0 else 0.0 + if not region or not 0.0 < x <= 0.15: + notes.append( + f"SL-type filler geometric factor ([IEC60287-2-1] 5.6) not applied: " + f"x = {x:.4f} is outside 0 < x <= 0.15 or no filler lies under the " + "armour; the annuli are kept" + ) + return path + touching = 2.0 * r_offset * math.sin(math.pi / 3.0) <= 2.0 * r_core * 1.01 + g_bar = sl_filler_geometric_factor(x, sheaths_touching=touching) + rho = max(1.0 / path[i].layer.lambda_W_mK for i in region) + t2 = rho / (6.0 * math.pi) * g_bar + current = sum( + thermal_resistance( + path[i].layer.r_inner_m, path[i].layer.r_outer_m, path[i].layer.lambda_W_mK + ) + for i in region + ) + scale = t2 / current + new_path = list(path) + for i in region: + a = path[i] + new_path[i] = _LadderAnnulus( + ConductionLayer( + a.layer.r_inner_m, + a.layer.r_outer_m, + a.layer.lambda_W_mK / scale, + a.layer.rho_cp_J_m3K, + ), + a.name, + a.per_core, + a.metallic, + layer_name=a.layer_name, + material=a.material, + ) + names = ", ".join(repr(path[i].layer_name) for i in region) + curve = "sheaths touching" if touching else "equal thicknesses" + notes.append( + f"fillers and bedding under the armour ({names}) carry T2 = rho/(6 pi) " + f"G-bar = {t2:.4f} K m/W ([IEC60287-2-1] 4.1.4.2, 5.6, {curve}; " + f"CIGRE TB 880 GP 45): x = {x:.4f}, G-bar = {g_bar:.4f}, rho = " + f"{rho:.2f} K m/W (highest of these materials); the equal-area annuli " + f"gave {current:.4f} K m/W" ) + return new_path # Public entry points read the cable's own materials when called directly. diff --git a/src/cablexsec/mechanics/thermal_network.py b/src/cablexsec/mechanics/thermal_network.py index 82e2fe7..1e96fd2 100644 --- a/src/cablexsec/mechanics/thermal_network.py +++ b/src/cablexsec/mechanics/thermal_network.py @@ -20,7 +20,7 @@ whose IEC heat flow is that of one core and ``1`` for an annulus that carries the losses of all ``n`` cores, so that the chain carries the total heat and its temperature drops are exactly the IEC drops - ([IEC60287-1-1] 1.4.1.1 Eq. 1; [NeherMcGrath1957] Eqs. 1--2). + ([IEC60287-1-1] 4.2.1, Formula (1); [NeherMcGrath1957] Eqs. 1--2). * The conductor node holds the conductor heat capacity (``n A_c rho c``); metallic shells and armour wires, which carry no conduction resistance in the ladder, add their heat capacity to the nearest @@ -31,8 +31,10 @@ ``n (W_c (1 + lambda1) + W_d)``, as in Eq. 1. The surface node is joined to the ambient temperature by the external resistance ``T4`` (a series resistance without heat capacity). -* ``W_c = I^2 R_ac(T_c)`` with ``R_ac = R_20 (1 + alpha_20 (T_c - 20))(1 + y_s - + y_p)`` ([IEC60287-1-1] 2.1). The loss is affine in ``T_c``, so the +* ``W_c = I^2 R_ac(T_c)`` with ``R_ac = R_0 (1 + alpha_20 (T_c - 20))(1 + y_s + + y_p)`` ([IEC60287-1-1] 5.1, Formula (7)); ``R_0``, ``y_s``, ``y_p``, + ``lambda1`` and the dielectric loss as in ``compute_thermal``, held at their + rated values. The loss is affine in ``T_c``, so the temperature-dependent resistance is solved together with the temperatures (implicitly, without iteration) unless a fixed evaluation temperature is given, which is the convention of ``compute_thermal``. @@ -53,9 +55,8 @@ armour layers in equal shares, as in the steady ladder; ``lambda1`` and ``lambda2`` are whatever the caller supplies. -Not represented (stated, not hidden): the sheath eddy-current factor -``lambda1''`` (the IEC 60287-1-1 texts are not held), the IEC 60287-2-1 -three-core geometric factor, the heat capacity of the surroundings (``T4`` is +Not represented (stated, not hidden): the belted and screened-cable factors +of IEC 60287-2-1 (4.1.2.2, 4.1.2.3), the heat capacity of the surroundings (``T4`` is quasi-steady, which shortens the response of a buried cable) and axial heat flow. Frictional heating enters through :mod:`cablexsec.analysis.frictional_heating`, which adds its sources to @@ -78,9 +79,11 @@ from cablexsec.materials.library import get_property from cablexsec.mechanics.thermal import ( _cable_dielectric_loss, + _conductor_losses, _ladder_geometry, - ac_resistance, + _sheath_loss_factor, conductor_material_of, + thermal_resistance, ) from cablexsec.provenance import Provenance @@ -117,17 +120,18 @@ class ThermalNetwork: n_conductors : int Number of loaded conductors ``n``. r_dc20_ohm_m, alpha_R_per_K : float - ``R_20 = rho_20 / A`` and ``alpha_20``. + ``R_0`` per metre of cable ([IEC60228] Table 4, else ``rho_20 C_LL / A``) + and ``alpha_20``. y_s, y_p : float - Skin and proximity factors as supplied ([IEC60287-1-1] 2.1). + Skin and proximity factors ([IEC60287-1-1] 5.1.3 to 5.1.5). conductor_material : str Library key of the conductor (for ``rho_20`` and ``alpha_20``). conductor_area_m2 : float Conductor cross-section of one core [m^2]. dielectric_loss_W_m : float - Dielectric loss of one core [W/m] (zero below 100 kV). + Dielectric loss of one core [W/m] ([IEC60287-1-1] 5.2). lambda1 : float - Sheath loss factor supplied by the caller. + Sheath loss factor (given, or computed as in ``compute_thermal``). ambient_C : float Default ambient temperature [deg C] (cable environment block). layer_weights : numpy.ndarray @@ -173,7 +177,7 @@ def conductor_loss_W_m( *, resistance_temperature_C: float | None = None, ) -> float: - """Joule loss of one conductor ``I^2 R_ac`` [W/m] ([IEC60287-1-1] 2.1).""" + """Joule loss of one conductor ``I^2 R_ac`` [W/m] ([IEC60287-1-1] 5.1).""" t_r = ( conductor_temperature_C if resistance_temperature_C is None @@ -182,13 +186,10 @@ def conductor_loss_W_m( return float(current_A) ** 2 * self._r_ac(t_r) def _r_ac(self, temperature_C: float) -> float: - return ac_resistance( - get_property(self.conductor_material, "rho_ohm_m"), - self.conductor_area_m2, - temperature_C, - self.alpha_R_per_K, - y_s=self.y_s, - y_p=self.y_p, + return ( + self.r_dc20_ohm_m + * (1.0 + self.alpha_R_per_K * (temperature_C - 20.0)) + * (1.0 + self.y_s + self.y_p) ) def total_heat_W_m( @@ -571,13 +572,19 @@ def thermal_network( *, n_cores: int | None = None, conductor_material: str | None = None, - y_s: float = 0.0, - y_p: float = 0.0, - lambda1: float = 0.0, + y_s: float | None = None, + y_p: float | None = None, + lambda1: float | None = None, T4_external_Km_W: float | None = None, ambient_C: float | None = None, n_per_layer: int = 4, lambda2: float = 0.0, + conductor_resistance_20C_ohm_m: float | None = None, + k_s: float | None = None, + k_p: float | None = None, + include_dielectric_loss: bool | None = None, + rating_temperature_C: float = 90.0, + rating_current_A: float | None = None, ) -> ThermalNetwork: """Build the transient thermal network of a cable definition. @@ -585,6 +592,14 @@ def thermal_network( ``n_per_layer`` sub-annuli per conduction annulus (the steady state does not depend on it). See the module notes for the construction. Without ``conductor_material`` the material of the cable's conductor layer is used. + + The loss terms not given are computed as in ``compute_thermal`` and held + constant: ``y_s`` and ``y_p`` at ``rating_temperature_C`` (the conductor + temperature of ``compute_thermal``, default 90 degC), and ``lambda1`` with + the screen at the IEC sheath temperature for ``rating_current_A`` + ([IEC60287-1-1] 5.3.1), or at ``rating_temperature_C`` without a current + (recorded). With the same values the steady state equals + ``compute_thermal``. """ conductor_material, conductor_note = conductor_material_of( cable, conductor_material @@ -608,15 +623,29 @@ def thermal_network( raise CableInputError("n_per_layer must be a positive integer") if not (math.isfinite(conductor_area_m2) and conductor_area_m2 > 0): raise CableInputError("conductor_area_m2 must be positive") - for name, value in ( + for name, opt in ( ("y_s", y_s), ("y_p", y_p), ("lambda1", lambda1), ("lambda2", lambda2), + ("conductor_resistance_20C_ohm_m", conductor_resistance_20C_ohm_m), + ("k_s", k_s), + ("k_p", k_p), + ("rating_current_A", rating_current_A), ): - _check_finite(value, name) - if value < 0: + if opt is None: + continue + _check_finite(opt, name) + if opt < 0: raise CableInputError(f"{name} must be non-negative") + for name, opt in ( + ("conductor_resistance_20C_ohm_m", conductor_resistance_20C_ohm_m), + ("k_s", k_s), + ("k_p", k_p), + ): + if opt is not None and opt <= 0: + raise CableInputError(f"{name} must be positive") + _check_temperature(rating_temperature_C, "rating_temperature_C") geo = _ladder_geometry(cable, n_cores) n = geo.n if n < 1: @@ -632,8 +661,11 @@ def thermal_network( gap_end: dict[int, float] = {} per_core: list[bool] = [geo.path[0].per_core] conductance: list[float] = [] + # Per-core material per metre of cable is C_LL times the straight-core + # amount ([IEC60287-1-1] Annex A). + core_lay = geo.lay_factor if geo.multi_core else 1.0 capacitance: list[float] = [ - _rho_cp(conductor_material, "conductor") * conductor_area_m2 * n + _rho_cp(conductor_material, "conductor") * conductor_area_m2 * n * core_lay ] # Heat capacity of the loaded cores (conductors and per-core annuli). core_capacity = capacitance[0] @@ -660,7 +692,7 @@ def thermal_network( conductance.append( mult * 2.0 * math.pi * lyr.lambda_W_mK / math.log(r_b / r_a) ) - half = 0.5 * mult * rho_cp * area + half = 0.5 * mult * rho_cp * area * (core_lay if annulus.per_core else 1.0) capacitance[start] += half capacitance.append(half) if annulus.per_core: @@ -754,8 +786,63 @@ def interpolation(r: float) -> list[tuple[int, float]]: names.append(layer.name) columns.append(column) - rho = get_property(conductor_material, "rho_ohm_m") - alpha_r = get_property(conductor_material, "alpha_R_per_K") + try: + get_property(conductor_material, "rho_ohm_m") + get_property(conductor_material, "alpha_R_per_K") + except CableLookupError as exc: + raise CableInputError( + f"conductor material {conductor_material!r} needs rho_ohm_m and " + f"alpha_R_per_K: {exc}" + ) from None + cond = _conductor_losses( + cable, + conductor_area_m2, + conductor_material, + rating_temperature_C, + y_s=y_s, + y_p=y_p, + r20_ohm_m=conductor_resistance_20C_ohm_m, + k_s=k_s, + k_p=k_p, + ) + r_ac_rated = ( + cond.r20_ohm_m + * (1.0 + cond.alpha_R_per_K * (rating_temperature_C - 20.0)) + * (1.0 + cond.y_s + cond.y_p) + ) + w_d, w_d_note = _cable_dielectric_loss( + cable, lay_factor=cond.lay_factor, include=include_dielectric_loss + ) + loss_notes = [*cond.notes, *([w_d_note] if w_d_note else [])] + if lambda1 is None: + if rating_current_A is None: + t_sheath = rating_temperature_C + sheath_basis = ( + f"screen at {rating_temperature_C:g} degC (no rating current " + "given; pass rating_current_A for the IEC sheath temperature)" + ) + else: + t1_core = sum( + thermal_resistance( + a.layer.r_inner_m, a.layer.r_outer_m, a.layer.lambda_W_mK + ) + for a, inner in zip(geo.path, geo.in_t1, strict=True) + if inner + ) + w_c_rated = float(rating_current_A) ** 2 * r_ac_rated + t_sheath = rating_temperature_C - (w_c_rated + 0.5 * w_d) * t1_core + sheath_basis = "" + lambda1, lambda1_note = _sheath_loss_factor( + cable, + geo, + r_ac_ohm_m=r_ac_rated, + sheath_temperature_C=t_sheath, + lay_factor=cond.lay_factor, + ) + if lambda1_note: + loss_notes.append( + lambda1_note + (f"; {sheath_basis}" if sheath_basis else "") + ) armour_columns = [ columns[names.index(layer.name)] for layer in cable.helical_layers @@ -768,10 +855,9 @@ def interpolation(r: float) -> list[tuple[int, float]]: armour_source += column / float(column.sum()) / len(armour_columns) limitations = [ "IEC 60287 ladder as a lumped RC chain; external T4 has no heat capacity", - "sheath eddy loss lambda1'' not included ([IEC60287-1-1] full text not " - "held); lambda1 and the armour loss factor lambda2 as supplied", - "three-core geometric factor [IEC60287-2-1] not applied " - "(filler as equal-filler-area annulus)", + "armour loss factor lambda2 as supplied ([IEC60287-1-1] 5.4 not " + "computed); loss terms held at their rated values", + *loss_notes, *geo.geometry_notes, *notes, conductor_note, @@ -784,7 +870,8 @@ def interpolation(r: float) -> list[tuple[int, float]]: prov = Provenance( method="transient IEC 60287 ladder (lumped radial RC network, TR-BDF2)", citations=( - "[IEC60287-1-1] 1.4.1.1 Eq.1, 2.1", + "[IEC60287-1-1] 4.2.1 Formula (1), 5.1 to 5.3, Annex A", + "[IEC60228] Table 4", "[IEC60287-2-1]", "[NeherMcGrath1957] Eqs.1-2", "[Poradowski2025] Eq.2", @@ -803,13 +890,13 @@ def interpolation(r: float) -> list[tuple[int, float]]: external_resistance_Km_W=float(t4), sheath_node=sheath_node, n_conductors=n, - r_dc20_ohm_m=rho / conductor_area_m2, - alpha_R_per_K=alpha_r, - y_s=float(y_s), - y_p=float(y_p), + r_dc20_ohm_m=cond.r20_ohm_m, + alpha_R_per_K=cond.alpha_R_per_K, + y_s=cond.y_s, + y_p=cond.y_p, conductor_material=conductor_material, conductor_area_m2=float(conductor_area_m2), - dielectric_loss_W_m=_cable_dielectric_loss(cable), + dielectric_loss_W_m=w_d, lambda1=float(lambda1), ambient_C=float(t_amb), layer_weights=np.column_stack(columns), diff --git a/src/cablexsec/project.py b/src/cablexsec/project.py index 6cc83e3..b311bcb 100644 --- a/src/cablexsec/project.py +++ b/src/cablexsec/project.py @@ -123,11 +123,15 @@ class ThermalSettings(_Settings): #: ``None``: the material of the cable's conductor layer. conductor_material: str | None = None conductor_temp_C: float = 90.0 - y_s: float = Field(default=0.0, ge=0) - y_p: float = Field(default=0.0, ge=0) - lambda1: float = Field(default=0.0, ge=0) + #: ``None``: computed from the cable (IEC 60287-1-1, see ``compute_thermal``). + y_s: float | None = Field(default=None, ge=0) + y_p: float | None = Field(default=None, ge=0) + lambda1: float | None = Field(default=None, ge=0) T4_external_Km_W: float | None = Field(default=None, ge=0) ambient_C: float | None = None + lambda2: float = Field(default=0.0, ge=0) + conductor_resistance_20C_ohm_m: float | None = Field(default=None, gt=0) + include_dielectric_loss: bool | None = None class CapacitySettings(_Settings): diff --git a/tests/test_api.py b/tests/test_api.py index 9a2c9de..53f4285 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -29,7 +29,7 @@ def _menard() -> cx.CableData: def _tb880() -> cx.CableData: - return cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + return cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) # --------------------------------------------------------------------------- # diff --git a/tests/test_armour_loss.py b/tests/test_armour_loss.py index fdc8e7d..4b84238 100644 --- a/tests/test_armour_loss.py +++ b/tests/test_armour_loss.py @@ -75,7 +75,13 @@ def test_network_with_armour_loss_matches_the_ladder(t66: CableData) -> None: ref = compute_thermal( t66, RATED_A, 630e-6, conductor_material=MATERIAL, lambda2=lambda2 ) - net = thermal_network(t66, 630e-6, conductor_material=MATERIAL, lambda2=lambda2) + net = thermal_network( + t66, + 630e-6, + conductor_material=MATERIAL, + lambda2=lambda2, + rating_current_A=RATED_A, + ) temps = net.steady_state(RATED_A, resistance_temperature_C=90.0) # The 0.10 mm copper tape screens make the chain stiff: agreement to # its conditioning. @@ -86,7 +92,9 @@ def test_network_with_armour_loss_matches_the_ladder(t66: CableData) -> None: assert heat_out == pytest.approx(heat_in, rel=1e-8) assert heat_in == pytest.approx(ref.P_total_W_m, rel=1e-12) w_c = net.conductor_loss_W_m(RATED_A, 90.0) - assert heat_in == pytest.approx(net.n_conductors * w_c * (1.0 + lambda2)) + assert heat_in == pytest.approx( + net.n_conductors * w_c * (1.0 + net.lambda1 + lambda2) + ) # The armour heat raises the armour against the lossless case. plain = thermal_network(t66, 630e-6, conductor_material=MATERIAL) cold = plain.layer_temperatures( diff --git a/tests/test_capacity_envelope.py b/tests/test_capacity_envelope.py index 5f9c2e2..00386d9 100644 --- a/tests/test_capacity_envelope.py +++ b/tests/test_capacity_envelope.py @@ -56,7 +56,7 @@ def menard() -> CableData: @pytest.fixture(scope="module") def cigre() -> CableData: - return bundled("cigre_tb880_220kv") + return bundled("poradowski2025_220kv") # -- capacity envelopes ------------------------------------------------------------ diff --git a/tests/test_clamping_state.py b/tests/test_clamping_state.py index cceca98..0209ba8 100644 --- a/tests/test_clamping_state.py +++ b/tests/test_clamping_state.py @@ -425,5 +425,7 @@ def test_packaged_cables_carry_their_documented_clamping(): assert t66.is_zero and t66.is_declared assert {x.basis for x in t66.layers} == {"not_published"} assert "not published" in t66.warning_message() - tb = clamping_state(load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None)) + tb = clamping_state( + load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) + ) assert not tb.is_declared and "declares no" in tb.warning_message() diff --git a/tests/test_component_limits.py b/tests/test_component_limits.py index f25a5ac..cbe58b9 100644 --- a/tests/test_component_limits.py +++ b/tests/test_component_limits.py @@ -294,7 +294,7 @@ def test_iea_envelope_against_the_published_mbl_and_mbr(iea) -> None: def test_governing_switches_on_the_bundled_cables() -> None: grid = np.array([0.0, 50e3]) - tb880 = bundled("cigre_tb880_220kv") + tb880 = bundled("poradowski2025_220kv") cover = cx.build_capacity_envelope(tb880, grid, utilisation_factor=1.0, mu=0.2) # The generic stranded copper takes its published 0.2 % proof stress: the # conductor now limits the cable before the outer cover reaches 7.7 % at diff --git a/tests/test_fix_dielectric_loss.py b/tests/test_fix_dielectric_loss.py index 6a2ad35..9468fdd 100644 --- a/tests/test_fix_dielectric_loss.py +++ b/tests/test_fix_dielectric_loss.py @@ -13,7 +13,7 @@ import cablexsec as cx from cablexsec.exceptions import CableInputError -SOURCE = Path(cx.__file__).parent / "cables" / "cigre_tb880_220kv.yaml" +SOURCE = Path(cx.__file__).parent / "cables" / "poradowski2025_220kv.yaml" CURRENT_A, AREA_M2 = 908.45, 1200e-6 @@ -49,3 +49,28 @@ def test_dielectric_loss_raises_the_conductor_temperature(tmp_path: Path) -> Non without_loss = cx.compute_thermal(below, CURRENT_A, AREA_M2) assert math.isfinite(with_loss.T_conductor_C) assert with_loss.T_conductor_C > without_loss.T_conductor_C + + +def test_missing_data_is_judged_by_the_declared_insulation_type( + tmp_path: Path, +) -> None: + # 2026-11-28 (PR #66 review): an EPR insulation without its loss tangent + # at 132 kV (U0 76.2 kV) is above the 63.5 kV of EPR, below the 127 kV + # of XLPE: an error, not a silent zero. + data = yaml.safe_load(SOURCE.read_text(encoding="utf-8")) + data["cable"]["voltage_kV"] = 132.0 + for layer in data["layers"]: + elec = layer.get("electrical") + if elec is not None: + elec.pop("loss_factor_tan_delta", None) + elec["insulation_type"] = "epr" + target = tmp_path / "epr.yaml" + target.write_text(yaml.safe_dump(data, sort_keys=False), encoding="utf-8") + cable = cx.load_cable(target, geometry_override=None) + with pytest.raises(CableInputError, match="63.5 kV of epr"): + cx.compute_thermal(cable, CURRENT_A, AREA_M2) + # Below the EPR threshold the loss does not count and none is needed. + data["cable"]["voltage_kV"] = 66.0 + target.write_text(yaml.safe_dump(data, sort_keys=False), encoding="utf-8") + low = cx.load_cable(target, geometry_override=None) + assert math.isfinite(cx.compute_thermal(low, CURRENT_A, AREA_M2).T_conductor_C) diff --git a/tests/test_fix_thermal_roles.py b/tests/test_fix_thermal_roles.py index daf7714..a81e5fa 100644 --- a/tests/test_fix_thermal_roles.py +++ b/tests/test_fix_thermal_roles.py @@ -245,7 +245,7 @@ def _raise_dielectric_without_sheath() -> None: [ "inter_array_single_core_yaml_path", "inter_array_three_core_yaml_path", - "cigre_tb880_yaml_path", + "poradowski2025_220kv_yaml_path", "iea_task49_66kv_yaml_path", ], ) diff --git a/tests/test_fretting_slip_cycles.py b/tests/test_fretting_slip_cycles.py index c99ca79..b626438 100644 --- a/tests/test_fretting_slip_cycles.py +++ b/tests/test_fretting_slip_cycles.py @@ -233,7 +233,7 @@ def test_packaged_cables_declare_only_registered_curve_names(): """Every S-N or contact-life name declared by a bundled cable is registered.""" known = set(SN_CURVES) | set(BLOCKED_SN_CURVES) | set(SWT_LIFE) paths = [ - cx.cigre_tb880_yaml_path(), + cx.poradowski2025_220kv_yaml_path(), cx.menard2023_yaml_path(), cx.inter_array_single_core_yaml_path(), cx.inter_array_three_core_yaml_path(), diff --git a/tests/test_load_sharing.py b/tests/test_load_sharing.py index b4e4e09..bf6ebc6 100644 --- a/tests/test_load_sharing.py +++ b/tests/test_load_sharing.py @@ -288,12 +288,14 @@ def test_sweep_with_flooded_pressure_and_temperature( def test_sweep_falls_back_to_fixed_radius() -> None: - cable = cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + cable = cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) with warnings.catch_warnings(): warnings.simplefilter("ignore") held = compute_load_sharing(cable, 40e3, 3) free = compute_load_sharing(cable, 40e3, 3, twist="free") - assert held.route == "fixed_radius" and "radial bundle law" in held.route_reason + # The solved route refuses the corrugated sheath (and the stranded + # conductor, which it would meet next). + assert held.route == "fixed_radius" and "corrugated shells" in held.route_reason expected = load_sharing(cable, 40e3) assert set(held.force_N) == {n for n, v in expected.items() if v} for name, force in held.force_N.items(): diff --git a/tests/test_plotting_cross_section.py b/tests/test_plotting_cross_section.py index 91b65fe..0a19a08 100644 --- a/tests/test_plotting_cross_section.py +++ b/tests/test_plotting_cross_section.py @@ -34,7 +34,7 @@ def _outer_radius(layer: object) -> float: @pytest.mark.parametrize( - "path", [cx.cigre_tb880_yaml_path(), cx.export_three_core_yaml_path()] + "path", [cx.poradowski2025_220kv_yaml_path(), cx.export_three_core_yaml_path()] ) def test_axes_span_the_outermost_layer_with_shells_and_offsets(path): cable = cx.load_cable(path, geometry_override=None) diff --git a/tests/test_plotting_figures.py b/tests/test_plotting_figures.py index 4e94ab7..60f1667 100644 --- a/tests/test_plotting_figures.py +++ b/tests/test_plotting_figures.py @@ -44,7 +44,7 @@ def results(): k = 0.02 * np.sin(np.linspace(0, 40 * np.pi, 300)) fat = cx.compute_fatigue(cab, k, np.zeros_like(k)) ser = cx.jonswap_series(duration_s=120, dt_s=0.5, rms_curvature_1_m=0.01, seed=3) - tb = cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + tb = cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) th = cx.compute_thermal(tb, 908.45, 1200e-6, n_cores=1) return { "cab": cab, diff --git a/tests/test_property_edge.py b/tests/test_property_edge.py index c283a02..e6a01f9 100644 --- a/tests/test_property_edge.py +++ b/tests/test_property_edge.py @@ -32,7 +32,7 @@ _TOPOLOGIES = { "single_core_inter_array": (cx.inter_array_single_core_yaml_path, 1), "three_core_inter_array": (cx.inter_array_three_core_yaml_path, 3), - "single_core_export": (cx.cigre_tb880_yaml_path, 1), + "single_core_export": (cx.poradowski2025_220kv_yaml_path, 1), "three_core_export": (cx.export_three_core_yaml_path, 3), } diff --git a/tests/test_release_physical_errors.py b/tests/test_release_physical_errors.py index f7a3f40..afd6c0f 100644 --- a/tests/test_release_physical_errors.py +++ b/tests/test_release_physical_errors.py @@ -169,7 +169,7 @@ def test_shell_fatigue_requires_a_shell(cable): def test_shell_fatigue_requires_a_curve(): - cable = cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + cable = cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) with pytest.raises(cx.CableSchemaError, match="no bulk_sn"): cx.compute_shell_fatigue(cable, "cu_metallic_sheath", np.zeros(2)) diff --git a/tests/test_section_properties.py b/tests/test_section_properties.py index d10ca9d..314d90c 100644 --- a/tests/test_section_properties.py +++ b/tests/test_section_properties.py @@ -44,7 +44,7 @@ def single() -> cx.CableData: @pytest.fixture(scope="module") def cigre() -> cx.CableData: - return cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + return cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) def _spec(n: int = 36, mu: float = 0.2, pressure: float = 2.0e6) -> HelicalLayerSpec: @@ -376,7 +376,9 @@ def test_fixed_radius_route_when_the_solved_section_refuses( result = compute_section_properties(cigre, [SectionLoadCase("A", 40e3)]) case = result.cases[0] stiffness = cx.compute_stiffness(cigre) - assert case.route == "fixed_radius" and "radial bundle law" in case.route_reason + # The solved route refuses the corrugated sheath (and the stranded + # conductor, which it would meet next). + assert case.route == "fixed_radius" and "corrugated shells" in case.route_reason assert case.axial_stiffness_N == stiffness.ea_fixed_N assert ( case.torsional_stiffness_positive_Nm2 diff --git a/tests/test_section_stress.py b/tests/test_section_stress.py index ab1fda0..4d81be9 100644 --- a/tests/test_section_stress.py +++ b/tests/test_section_stress.py @@ -21,7 +21,7 @@ "inter_array_three_core_33kv", "iea_task49_66kv", "thies2016_30kv", - "cigre_tb880_220kv", + "poradowski2025_220kv", "saevik2011", ) diff --git a/tests/test_sectional_mechanics_inputs.py b/tests/test_sectional_mechanics_inputs.py index f9446da..c461cf2 100644 --- a/tests/test_sectional_mechanics_inputs.py +++ b/tests/test_sectional_mechanics_inputs.py @@ -198,7 +198,7 @@ def test_section_state_input_rules(pipe): # Axial rigidity # # --------------------------------------------------------------------------- # def test_metallic_rigidity_leaves_out_a_polymer_shell(): - cable = cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + cable = cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) shell = cable.get_layer("cu_metallic_sheath") plastic = cable.model_copy( update={ @@ -221,7 +221,7 @@ def test_metallic_rigidity_leaves_out_a_polymer_shell(): def test_a_layer_without_modulus_carries_no_axial_or_bending_load(): - cable = cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + cable = cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) target = next( layer for layer in cable.layers diff --git a/tests/test_template_66kv.py b/tests/test_template_66kv.py index 426768c..82e2da5 100644 --- a/tests/test_template_66kv.py +++ b/tests/test_template_66kv.py @@ -322,10 +322,14 @@ def test_thermal_rating_is_consistent_with_published_power(cable) -> None: conductor_area_m2=630e-6, conductor_material="copper_janocha2024", ) - # 125 MW (Table 13) is a 90 degC XLPE rating; the lumped ladder with the - # equal-filler-area annulus and the assumed seabed T4 lands close to it - # (95.4 degC: the semiconducting screens count with the insulation, and - # the stranding voids of the area-equivalent conductor add about 1 K). - assert 85.0 < th.T_conductor_C < 100.0 + # The IEC 60287-1-1 (2023) AC resistance at 90 degC rounds to the 0.04 + # ohm/km of [IEATask49] Table 13 for the 630 mm2 cable. + assert th.losses is not None + assert round(th.losses["R_ac_ohm_m"] * 1e3, 2) == 0.04 + # Table 13 states no installation for its 125 MW: under this template's + # assumed burial (T4 0.343 K m/W, 15 degC) the IEC ladder puts the + # conductor at 118.4 degC at 1093.5 A; its 90 degC rating is about 932 A. + assert th.T_conductor_C == pytest.approx(118.43, abs=0.05) limitations = " ".join(th.provenance.limitations) assert "equal-filler-area annulus" in limitations + assert "G-bar" in limitations diff --git a/tests/test_thermal.py b/tests/test_thermal.py index 374012e..e4f04d0 100644 --- a/tests/test_thermal.py +++ b/tests/test_thermal.py @@ -16,10 +16,14 @@ ConductionLayer, ac_resistance, compute_thermal, + conductor_resistance_20C, dielectric_loss, iec_conductor_temperature, + lay_length_factor, proximity_effect_factor, sheath_circulating_loss_factor, + sheath_eddy_loss_factor, + sheath_reactance, skin_effect_factor, solve_crank_nicolson, steady_state_profile, @@ -98,11 +102,129 @@ def test_ac_resistance_temperature_dependence() -> None: assert r90_skin == pytest.approx(r90 * 1.15, rel=1e-12) -def test_dielectric_loss_threshold_100kV() -> None: - """Dielectric loss is off below 100 kV (a 66 kV cable) and on above.""" - assert dielectric_loss(66.0, 2.5, 0.001, 0.015, 0.025) == 0.0 # 66 kV: off - w_d = dielectric_loss(220.0, 2.5, 0.001, 0.025, 0.045) # export: on +def test_dielectric_loss_threshold_follows_iec_5_2() -> None: + """[IEC60287-1-1] 5.2: counted from U0 = 127 kV for XLPE, 63.5 kV for EPR.""" + assert dielectric_loss(66.0, 2.5, 0.001, 0.015, 0.025) == 0.0 # U0 38 kV + assert dielectric_loss(132.0, 2.5, 0.001, 0.015, 0.025) == 0.0 # U0 76 kV + w_d = dielectric_loss(220.0, 2.5, 0.001, 0.025, 0.045) # U0 127.0 kV assert w_d > 0.0 + epr = dielectric_loss(132.0, 3.0, 0.005, 0.015, 0.025, insulation_type="epr") + assert epr > 0.0 + # Always (CIGRE TB 880 Guidance Point 7) and never. + on = dielectric_loss(66.0, 2.5, 0.001, 0.015, 0.025, include=True) + u0 = 66.0e3 / math.sqrt(3.0) + cap = 2.0 * math.pi * 8.854e-12 * 2.5 / math.log(0.025 / 0.015) + assert on == pytest.approx(2.0 * math.pi * 50.0 * cap * u0**2 * 0.001, rel=1e-14) + assert dielectric_loss(220.0, 2.5, 0.001, 0.025, 0.045, include=False) == 0.0 + # The capacitance of a laid-up core is C_LL times that of a straight one. + laid = dielectric_loss( + 66.0, 2.5, 0.001, 0.015, 0.025, include=True, lay_length_factor=1.02 + ) + assert laid == pytest.approx(1.02 * on, rel=1e-14) + with pytest.raises(ValueError, match="insulation_type"): + dielectric_loss(220.0, 2.5, 0.001, 0.025, 0.045, insulation_type="oil") + + +def test_skin_effect_factor_has_the_three_iec_ranges() -> None: + """[IEC60287-1-1] 5.1.3: the formula changes at x_s = 2.8 and 3.8.""" + f = 50.0 + + def r_for(xs: float) -> float: # R' giving x_s at k_s = 1 + return 8.0 * math.pi * f * 1.0e-7 / xs**2 + + for xs, expected in ( + (2.0, 2.0**4 / (192.0 + 0.8 * 2.0**4)), + (3.0, -0.136 - 0.0177 * 3.0 + 0.0563 * 9.0), + (4.5, 0.354 * 4.5 - 0.733), + ): + assert skin_effect_factor(r_for(xs), f) == pytest.approx(expected, rel=1e-12) + # The ranges join within the rounding of the published coefficients. + lo, hi = skin_effect_factor(r_for(2.8), f), skin_effect_factor(r_for(2.8001), f) + assert hi == pytest.approx(lo, abs=3e-3) + lo, hi = skin_effect_factor(r_for(3.8), f), skin_effect_factor(r_for(3.8001), f) + assert hi == pytest.approx(lo, abs=3e-3) + + +def test_iec60228_resistance_and_lay_up_factor() -> None: + """R0 from [IEC60228] Table 4; C_LL of [IEC60287-1-1] Annex A.""" + import cablexsec as cx # noqa: PLC0415 + + t66 = cx.load_cable(cx.iea_task49_66kv_yaml_path(), geometry_override=None) + c_ll, note = lay_length_factor(t66) + # Core diameter 70.40 mm, pitch 1.4542 m, C_fL 1.29 (three cores). + assert c_ll == pytest.approx( + math.sqrt(1.0 + (math.pi * 1.29 * 0.0704 / 1.4542) ** 2), rel=1e-12 + ) + assert c_ll == pytest.approx(1.0191, abs=1e-4) + assert "Annex A" in note + r20, basis = conductor_resistance_20C(t66, 630e-6, "copper_janocha2024") + assert r20 == pytest.approx(0.0283e-3, rel=1e-12) # per km of the cable + assert "Table 4" in basis + # Between two nominal sizes: linear interpolation (CIGRE TB 880, 2.5). + r_mid, basis = conductor_resistance_20C(t66, 700e-6, "copper_janocha2024") + expected = 0.0283 + (0.0221 - 0.0283) * (700.0 - 630.0) / (800.0 - 630.0) + assert r_mid == pytest.approx(expected * 1e-3, rel=1e-12) + assert "interpolated" in basis + # Not a standard material: rho/A times C_LL. + r_other, basis = conductor_resistance_20C( + t66, 630e-6, "lead_sheath", lay_factor=c_ll + ) + assert r_other == pytest.approx(21.4e-8 / 630e-6 * c_ll, rel=1e-12) + assert "rho/A" in basis + # A single-core cable has no lay-up. + single = cx.load_cable( + cx.inter_array_single_core_yaml_path(), geometry_override=None + ) + assert lay_length_factor(single) == (1.0, "") + + +def test_three_core_losses_are_computed_from_the_cable() -> None: + """y_s, y_p, lambda1 and R0 of the 66 kV template (IEC 60287-1-1 5.1, 5.3.11).""" + import cablexsec as cx # noqa: PLC0415 + + t66 = cx.load_cable(cx.iea_task49_66kv_yaml_path(), geometry_override=None) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + res = compute_thermal(t66, 1093.0, 630e-6) + assert res.losses is not None + r_dc = 0.0283e-3 * (1.0 + 3.93e-3 * 70.0) + ys = skin_effect_factor(r_dc, 50.0) + s = math.sqrt(3.0) * 0.04081 # distance between conductor axes + yp = proximity_effect_factor(r_dc, 50.0, 0.02990, s) + assert res.losses["y_s"] == pytest.approx(ys, rel=1e-12) + assert res.losses["y_p"] == pytest.approx(yp, rel=1e-12) + r_ac = r_dc * (1.0 + ys + yp) + assert res.losses["R_ac_ohm_m"] == pytest.approx(r_ac, rel=1e-12) + # [IEATask49] Table 13 gives 0.04 ohm/km for the 630 mm2 cable. + assert round(r_ac * 1e3, 2) == 0.04 + assert res.losses["W_d_W_m"] == 0.0 # U0 = 38 kV < 127 kV + lam1 = res.losses["lambda1"] + assert 0.05 < lam1 < 0.15 + notes = " ".join(res.provenance.limitations) + assert "5.3.11" in notes and "factor 1.5" in notes + # A given value replaces the computed one. + given = compute_thermal(t66, 1093.0, 630e-6, y_s=0.0, y_p=0.0, lambda1=0.0) + assert given.losses["y_s"] == given.losses["y_p"] == given.losses["lambda1"] == 0.0 + # Non-magnetic armour: the trefoil formula (5.3.2), no factor 1.5. + import yaml # noqa: PLC0415 + + data = yaml.safe_load(cx.iea_task49_66kv_yaml_path().read_text(encoding="utf-8")) + data["materials"] = { + "stainless_armour": { + "E_Pa": {"value": 2.0e11, "source": "test"}, + "nu": {"value": 0.3, "source": "test"}, + "relative_permeability": {"value": 1.0, "source": "test"}, + } + } + for layer in data["layers"]: + if layer["layer_type"] == "helical": + layer["material"] = "stainless_armour" + stainless = cx.CableData.model_validate(data) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + res_ss = compute_thermal(stainless, 1093.0, 630e-6) + assert "5.3.2" in " ".join(res_ss.provenance.limitations) + assert res_ss.losses["lambda1"] < lam1 def test_skin_and_proximity_factors_iec_hand_values() -> None: @@ -135,83 +257,90 @@ def test_iec_ladder_reduces_to_conduction_primitive() -> None: def _bm5_loss_chain() -> dict[str, float]: - """IEC 60287-1-1 loss chain for the Poradowski-Anders (2025) NOTE-1 cable. - - 220 kV 3-core (CIGRE TB 880), stranded Cu 1200 mm², copper corrugated - sheath. Geometry is from the public benchmark cable. + """IEC 60287-1-1 (2023) loss chain of the Poradowski-Anders (2025) NOTE-1 cable. + + 220 kV three-core cable, stranded Cu 1200 mm2, corrugated copper sheath + (Table 1 and footnote d), non-magnetic stainless armour (footnote c). + ``R0`` from [IEC60228] Table 4; ``lambda1'`` of the sheath from 5.3.2, + which CIGRE TB 880 Guidance Point 38 assigns to an SL cable under + non-magnetic armour (5.3.11, factor 1.5, is for magnetic armour); + ``lambda1''`` from 5.3.7.1 with the solid-bonding factor ``F`` of + 5.3.6, as TB 880 Guidance Points 6 and 31 keep it. """ f = 50.0 - rho20, alpha = 1.7241e-8, 3.93e-3 - r_dc = (rho20 / 1200e-6) * (1.0 + alpha * (90.0 - 20.0)) + r20, alpha = 0.0151e-3, 3.93e-3 # [IEC60228] Table 4, 1200 mm2 Cu + r_dc = r20 * (1.0 + alpha * (90.0 - 20.0)) ys = skin_effect_factor(r_dc, f) - yp = proximity_effect_factor(r_dc, f, 0.042, 0.13175) # d_c, trefoil spacing + yp = proximity_effect_factor(r_dc, f, 0.042, 0.13175) # d_c, touching cores r_ac = r_dc * (1.0 + ys + yp) w_c = 908.45**2 * r_ac - # Dielectric: U0 = 220/sqrt(3) kV, XLPE eps_r=2.5 tanδ=0.001 (IEC Table 3). + # Dielectric: U0 = 127.0 kV >= 127 kV, XLPE eps_r 2.5, tan 0.001 (Table 3). w_d = dielectric_loss(220.0, 2.5, 0.001, 0.0227, 0.0466, frequency_Hz=f) - # Sheath λ1' (circulating): Cu ring 111.95/113.95 mm, Fcor=1.3406, ~80 C. + # Sheath: Cu ring 111.95/113.95 mm, Fcor = 1.3406 (footnote d), ~80 degC. a_s = math.pi / 4 * (0.11395**2 - 0.11195**2) - r_s = rho20 * 1.3406 / a_s * (1.0 + alpha * (80.0 - 20.0)) + rho_s = 1.7241e-8 * (1.0 + alpha * (80.0 - 20.0)) + r_s = rho_s * 1.3406 / a_s d_s = 0.5 * (0.11195 + 0.11395) - x = 2.0 * (2.0 * math.pi * f) * 1e-7 * math.log(2.0 * 0.13175 / d_s) - lam1 = sheath_circulating_loss_factor(r_s, r_ac, x) - return {"W_c": w_c, "W_d": w_d, "lambda1": lam1} + x = sheath_reactance(0.13175, d_s, frequency_Hz=f) + lam1_c = sheath_circulating_loss_factor(r_s, r_ac, x) + lam1_e = sheath_eddy_loss_factor( + r_s, + r_ac, + sheath_mean_diameter_m=d_s, + sheath_outer_diameter_m=0.11395, + sheath_thickness_m=0.001, + sheath_resistivity_ohm_m=rho_s, + spacing_m=0.13175, + frequency_Hz=f, + solid_bonding_reactance_ohm_m=x, + ) + return {"W_c": w_c, "W_d": w_d, "lambda1": lam1_c, "lambda1_eddy": lam1_e} @pytest.mark.full_scale def test_BM5_poradowski_buried_reference_case() -> None: - """BM5: reproduce Poradowski-Anders (2025) Table 1 NOTE-1 buried 220 kV cable. + """BM5: Poradowski-Anders (2025) Table 1 NOTE-1 buried 220 kV cable. Stated network: T1=0.6579, T2=0.1121, T3=0.0357, T4=0.3211 K.m/W (T4 the - external soil/Robin resistance, taken verbatim); θ_amb=15 °C, n=3. - Reference: I=908.45 A → θc=89.62 °C (FEM) / 90 °C (IEC analytical ampacity). - - Active heat sources: conductor Joule (W_c, skin+proximity) and dielectric - (W_d, 220 kV > 100 kV) per conductor, plus the copper-sheath circulating - loss factor λ1. The eddy-current term λ1'' ([IEC60287-1-1] §2.3.6, not in - our reference set) is the one untabulated input; it is the documented - residual between the circulating-only result and 89.62 °C. + external soil/Robin resistance, taken verbatim); theta_amb = 15 degC, + n = 3. Reference: I = 908.45 A gives 89.62 degC (FEM) and 90 degC (the + source's IEC analytical ampacity). + + With ``R0`` from IEC 60228 and the circulating sheath loss of IEC 5.3.2 + (``lambda1'' = 0``, IEC) the ladder gives 85.8 degC; the earlier 84.4 degC + took ``R0 = rho/A``, 5 % low. Adding the eddy loss that CIGRE TB 880 + Guidance Points 6 and 31 keep (lambda1'' = 0.19) gives 90.9 degC. The + 1.5 factor of IEC 5.3.11 belongs to magnetic armour (TB 880 Guidance + Point 38) and would give 100 degC. """ t1, t2, t3, t4 = 0.6579, 0.1121, 0.0357, 0.3211 - t_amb, n, target = 15.0, 3, 89.62 + t_amb, n = 15.0, 3 losses = _bm5_loss_chain() w_c, w_d, lam1 = losses["W_c"], losses["W_d"], losses["lambda1"] - - # IEC circulating-current sheath factor is the dominant non-Joule term. - assert 1.0 < lam1 < 1.15 - - theta_circ = iec_conductor_temperature( - t1, - t2, - t3, - t4, - W_c=w_c, - W_d=w_d, - lambda1=lam1, - n_conductors=n, - T_ambient_C=t_amb, - ) - # Circulating-only is a lower bound; residual to 89.62 is the eddy term. - assert 83.0 < theta_circ < target - assert (target - theta_circ) < 6.0 - - # Network correctness: with the λ1 the paper's analytical ampacity implies, - # the ladder reproduces 89.62 °C exactly (closes the residual via λ1''). - rhs = target - t_amb - (w_c + 0.5 * w_d) * t1 - lam1_implied = (rhs / (n * (t2 + t3 + t4)) - w_d) / w_c - 1.0 - assert 1.2 < lam1_implied < 1.35 - theta_implied = iec_conductor_temperature( - t1, - t2, - t3, - t4, - W_c=w_c, - W_d=w_d, - lambda1=lam1_implied, - n_conductors=n, - T_ambient_C=t_amb, - ) - assert theta_implied == pytest.approx(target, abs=0.05) + lam1_e = losses["lambda1_eddy"] + + def theta(lambda1: float) -> float: + return iec_conductor_temperature( + t1, + t2, + t3, + t4, + W_c=w_c, + W_d=w_d, + lambda1=lambda1, + n_conductors=n, + T_ambient_C=t_amb, + ) + + assert lam1 == pytest.approx(1.027, abs=1e-3) + assert lam1_e == pytest.approx(0.186, abs=1e-3) + # IEC (lambda1'' = 0): below both references. + assert theta(lam1) == pytest.approx(85.75, abs=0.01) + # With the TB 880 eddy loss: within 1.3 K of the FEM and 0.9 K of the IEC + # reference temperature. + assert theta(lam1 + lam1_e) == pytest.approx(90.89, abs=0.01) + # The magnetic-armour factor of 5.3.11 does not apply to stainless armour. + assert theta(1.5 * lam1) > 99.0 # --------------------------------------------------------------------------- # @@ -248,12 +377,16 @@ def test_compute_thermal_reduces_to_primitive_single_core() -> None: """At n_cores=1 (no dielectric, λ1=0) the wrapper == 1-D primitive + W_c·T4.""" cable = _concentric_cable(voltage_kV=70.0) # < 100 kV: W_d = 0 # The cable has no conductor layer: the conductor material is given. + # The losses of the primitive: rho/A, no skin or proximity effect. res = compute_thermal( cable, current_A=600.0, conductor_area_m2=300e-6, n_cores=1, conductor_material="copper_stranded", + y_s=0.0, + y_p=0.0, + conductor_resistance_20C_ohm_m=1.7241e-8 / 300e-6, ) # Rebuild the primitive on the same annuli with the surface raised by W_c·T4. @@ -265,7 +398,7 @@ def test_compute_thermal_reduces_to_primitive_single_core() -> None: ), ConductionLayer(0.020, 0.024, get_property("hdpe", "lambda_W_mK")), ] - rho, alpha = 1.724e-8, 3.93e-3 + rho, alpha = 1.7241e-8, 3.93e-3 r_ac = (rho / 300e-6) * (1.0 + alpha * 70.0) w_c = 600.0**2 * r_ac r_int = sum( @@ -316,7 +449,7 @@ def test_compute_thermal_refuses_inadmissible_inputs(kwargs, match) -> None: _PROFILE_CASES: dict[str, tuple[str, int | None]] = { "export_three_core": ("export_three_core_yaml_path", None), "inter_array_three_core": ("inter_array_three_core_yaml_path", None), - "cigre_tb880_single_path": ("cigre_tb880_yaml_path", 1), + "poradowski2025_single_path": ("poradowski2025_220kv_yaml_path", 1), "inter_array_single_core": ("inter_array_single_core_yaml_path", None), } @@ -425,7 +558,16 @@ def test_compute_thermal_heat_flow_steps_at_sheath_hand_calculation() -> None: lam1, current, area = 0.25, 1000.0, 1000e-6 with warnings.catch_warnings(): warnings.simplefilter("ignore") - res = compute_thermal(cable, current, area, n_cores=1, lambda1=lam1) + res = compute_thermal( + cable, + current, + area, + n_cores=1, + lambda1=lam1, + y_s=0.0, + y_p=0.0, + conductor_resistance_20C_ohm_m=1.7241e-8 / area, + ) lam_x = get_property("xlpe_qiao2025", "lambda_W_mK") lam_h = get_property("hdpe", "lambda_W_mK") @@ -451,37 +593,58 @@ def test_compute_thermal_heat_flow_steps_at_sheath_hand_calculation() -> None: def test_three_core_filler_is_included_and_reported() -> None: - """The r_inner=0 cable-level filler enters T2 as the equal-filler-area annulus.""" + """Hand ladder of the SL-type export template ([IEC60287-2-1] 4.1, 5.6). + + Per-core resistances divided by C_LL; the filler and bedding under the + armour carry T2 = rho/(6 pi) G-bar, lower curve (cores not touching). + """ cable = _load_shipped("export_three_core_yaml_path") + rho_cu = 1.7241e-8 with warnings.catch_warnings(): warnings.simplefilter("ignore") - res = compute_thermal(cable, 908.45, 1000e-6) + res = compute_thermal( + cable, + 908.45, + 1000e-6, + y_s=0.0, + y_p=0.0, + lambda1=0.0, + conductor_resistance_20C_ohm_m=rho_cu / 1000e-6, + ) assert res.provenance is not None notes = [lim for lim in res.provenance.limitations if "pp_filler" in lim] - assert len(notes) == 1 + assert len(notes) == 2 assert "equal-filler-area" in notes[0] - assert "geometric factor NOT applied" in notes[0] + assert "G-bar" in notes[1] and "equal thicknesses" in notes[1] - # Hand ladder: per-core XLPE (T1) and lead sheath (one core's heat), then - # filler (sqrt(3) r_core .. 107.5 mm), bedding, oversheath (three cores). - w_c = _conductor_loss(908.45, 1000e-6) - w_d = dielectric_loss(220.0, 2.5, 0.001, 0.0210, 0.0420) + c_ll = math.sqrt(1.0 + (math.pi * 1.29 * 0.0910 / 2.138) ** 2) + w_c = 908.45**2 * rho_cu / 1000e-6 * (1.0 + 3.93e-3 * 70.0) + w_d = dielectric_loss(220.0, 2.5, 0.001, 0.0210, 0.0420, lay_length_factor=c_ll) q_t1, q_out, n = w_c + 0.5 * w_d, w_c + w_d, 3 - r_eq = math.sqrt(3.0) * 0.0455 lam = { m: get_property(m, "lambda_W_mK") for m in ("xlpe_qiao2025", "lead_sheath", "pp_filler", "hdpe") } + # Filler and bedding: x = (r_armour_in - r_offset - r_core) / D_core. + inner = cable.get_layer("inner_armour") + r_arm = float(inner.r_helix_m) - 0.5 * float(inner.d_wire_m) + x = (r_arm - 0.060 - 0.0455) / 0.091 + poly = 0.0126529 + 1.101 * x - 4.56104 * x**2 + 11.5093 * x**3 + t2 = ( + max(1.0 / lam["pp_filler"], 1.0 / lam["hdpe"]) + / (6.0 * math.pi) + * (2.0 * math.pi * poly) + ) rise = ( - q_t1 * thermal_resistance(0.0210, 0.0420, lam["xlpe_qiao2025"]) - + q_out * thermal_resistance(0.0430, 0.0455, lam["lead_sheath"]) - + n * q_out * thermal_resistance(r_eq, 0.1075, lam["pp_filler"]) - + n * q_out * thermal_resistance(0.1075, 0.1105, lam["hdpe"]) + q_t1 * thermal_resistance(0.0190, 0.0430, lam["xlpe_qiao2025"]) / c_ll + + q_out * thermal_resistance(0.0430, 0.0455, lam["lead_sheath"]) / c_ll + + n * q_out * t2 + n * q_out * thermal_resistance(0.1270, 0.1330, lam["hdpe"]) + n * q_out * 0.35 ) assert res.T_conductor_C == pytest.approx(15.0 + rise, rel=1e-12) # The filler is part of the profile (no silent drop). + r_eq = math.sqrt(3.0) * 0.0455 assert np.any(np.isclose(res.r_m, r_eq, rtol=0.0, atol=1e-12)) diff --git a/tests/test_thermal_history.py b/tests/test_thermal_history.py index 143cabb..81b4eba 100644 --- a/tests/test_thermal_history.py +++ b/tests/test_thermal_history.py @@ -4,8 +4,8 @@ Gates: -* thermal network: steady state equals ``compute_thermal`` (BM5 inputs, - 136.06 deg C) and the 66 kV template; discrete energy balance; TR-BDF2 +* thermal network: steady state equals ``compute_thermal`` (BM5 inputs + and the 66 kV template); discrete energy balance; TR-BDF2 order of accuracy; coupled ``R_ac(T)`` fixed point; * radial thermal mismatch: two-layer Lame closed forms (plane strain and generalised plane strain), unilateral opening on cooling; @@ -65,7 +65,7 @@ @pytest.fixture(scope="module") def tb880() -> CableData: - return cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + return cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) @pytest.fixture(scope="module") @@ -92,14 +92,16 @@ def _bm5_inputs() -> dict[str, float | int]: @pytest.mark.analytical_sanity @pytest.mark.parametrize("n_per_layer", [1, 3, 8]) def test_network_steady_state_equals_compute_thermal_bm5(tb880, n_per_layer): - """BM5 inputs: the RC ladder's steady state is the IEC profile (136.06 C).""" + """BM5 inputs: the RC ladder's steady state is the IEC profile.""" kw = _bm5_inputs() with warnings.catch_warnings(): warnings.simplefilter("ignore") ref = compute_thermal(tb880, 908.45, 1200e-6, **kw) net = thermal_network(tb880, 1200e-6, n_per_layer=n_per_layer, **kw) temps = net.steady_state(908.45, resistance_temperature_C=90.0) - assert ref.T_conductor_C == pytest.approx(136.06, abs=0.01) + # The packaged cable is a single-core-equivalent stack: with three loaded + # cores the ladder is a consistency case, not a benchmark (BM5 uses the + # source's tabulated network). assert temps[0] == pytest.approx(ref.T_conductor_C, rel=1e-12) # Annulus edges are nodes of both profiles: identical temperatures there. for r, t_ref in zip(ref.r_m, ref.T_C, strict=True): @@ -121,7 +123,9 @@ def test_network_steady_state_equals_compute_thermal_66kv(t66): ref = compute_thermal( t66, RATED_A, 630e-6, conductor_material="copper_janocha2024" ) - net = thermal_network(t66, 630e-6, conductor_material="copper_janocha2024") + net = thermal_network( + t66, 630e-6, conductor_material="copper_janocha2024", rating_current_A=RATED_A + ) temps = net.steady_state(RATED_A, resistance_temperature_C=90.0) # The 0.10 mm copper tape screens make the chain stiff: agreement to its # conditioning. @@ -507,9 +511,11 @@ def test_steady_currents_order_the_temperatures(t66): ] tc = [s.conductor_temperature_C for s in temps] assert tc[0] == pytest.approx(15.0, abs=1e-6) # no current: ambient - # Rated current: 97 deg C with T_ref at the ambient; the semiconducting - # screens count with the insulation (doc/template_66kv.md Section 4). - assert tc[0] < tc[1] < tc[2] < 100.0 + # Rated current 1093 A with R_ac(T) solved: 131.6 deg C, above the 90 deg C + # of XLPE under the template's assumed burial (doc/template_66kv.md + # Section 4.2 status note). + assert tc[0] < tc[1] < tc[2] + assert tc[2] == pytest.approx(131.6, abs=0.1) arm = [s.layer_temperature_C["inner_armour"] for s in temps] assert arm[0] < arm[1] < arm[2] < tc[2] @@ -616,7 +622,7 @@ def test_input_validation(t66): with pytest.raises(CableInputError, match="increasing"): ThermalHistory.uniform(t66, [0.0, 0.0], 20.0) # Registered E(T) laws refuse to extrapolate beyond their source range. - tb = cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + tb = cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) hot = ThermalHistory.uniform(tb, [0.0], 120.0).blocks()[0].state with pytest.raises(CableInputError, match="outside the sourced"): thermal_material_state(tb, hot) diff --git a/tests/test_thermal_network.py b/tests/test_thermal_network.py index 0988a2c..87c6a28 100644 --- a/tests/test_thermal_network.py +++ b/tests/test_thermal_network.py @@ -85,11 +85,10 @@ def test_armour_loss_needs_a_structural_armour(t66): ) with pytest.raises(CableInputError, match="lambda2 > 0 needs a structural"): thermal_network(loose, 630e-6, conductor_material=MATERIAL, lambda2=0.1) - # Without armour loss the network does not depend on the flag. - np.testing.assert_allclose( - thermal_network(loose, 630e-6, conductor_material=MATERIAL).steady_state( - RATED_A - ), - thermal_network(t66, 630e-6, conductor_material=MATERIAL).steady_state(RATED_A), - rtol=1e-12, - ) + # Without structural armour the SL-type filler factor and the magnetic + # armour of the sheath loss ([IEC60287-1-1] 5.3.11) do not apply, and the + # network says so. + net = thermal_network(loose, 630e-6, conductor_material=MATERIAL) + notes = " ".join(net.provenance.limitations) + assert "given for an armoured three-core cable" in notes + assert "5.3.2" in notes diff --git a/tests/test_thermal_reference_relaxation.py b/tests/test_thermal_reference_relaxation.py index f8e963d..10bd41b 100644 --- a/tests/test_thermal_reference_relaxation.py +++ b/tests/test_thermal_reference_relaxation.py @@ -105,13 +105,15 @@ def test_zero_current_at_ambient_is_the_unenergised_result_bitwise(t66): def test_explicit_reference_reproduces_the_reported_state(t66): hot20 = ThermalHistory.steady(t66, RATED_A, T_ref_C=20.0).blocks()[0].state a = armour_thermal_state(t66, hot20, tension_N=50e3)["inner_armour"] - # Armour temperature at its gap node (24 Oct 2026; before, it was - # interpolated into the next annulus: 294.006 kPa, 84.18 MPa). Screens of - # the source's section model (18 Nov 2026; with full copper screen annuli - # the state was 292.957 kPa, reference 31.104 kPa, 84.30 MPa). - assert a.contact_pressure_Pa == pytest.approx(439.480e3, rel=1e-5) + # IEC 60287 (2023) losses and thermal resistances (28 Nov 2026; before + # 439.480 kPa and 96.85 MPa at a 97.1 degC conductor). Armour temperature + # at its gap node (24 Oct 2026; before, it was interpolated into the next + # annulus: 294.006 kPa, 84.18 MPa). Screens of the source's section model + # (18 Nov 2026; with full copper screen annuli the state was 292.957 kPa, + # reference 31.104 kPa, 84.30 MPa). + assert a.contact_pressure_Pa == pytest.approx(680.777e3, rel=1e-5) assert a.contact_pressure_reference_Pa == pytest.approx(44.371e3, rel=1e-4) - assert a.thermal_wire_stress_Pa == pytest.approx(96.85e6, rel=1e-4) + assert a.thermal_wire_stress_Pa == pytest.approx(143.06e6, rel=1e-4) cold20 = ThermalHistory.steady(t66, 0.0, T_ref_C=20.0).blocks()[0].state c = armour_thermal_state(t66, cold20, tension_N=50e3)["inner_armour"] # 5 K below the stress-free state: the sheath shrink lifts cold clamping. @@ -152,7 +154,7 @@ def caught(state: ThermalState) -> list[warnings.WarningMessage]: def test_registered_laws_are_continuous_at_a_non_library_reference(): - cable = cx.load_cable(cx.cigre_tb880_yaml_path(), geometry_override=None) + cable = cx.load_cable(cx.poradowski2025_220kv_yaml_path(), geometry_override=None) laws = [x for x in cable.layers if x.material in library.TEMPERATURE_MODULUS_MODELS] assert laws near = ThermalState({x.name: 15.0 + 1e-3 for x in cable.layers}, T_ref_C=15.0) @@ -185,7 +187,7 @@ def test_relaxation_scales_the_sustained_state_not_the_stick_stiffness(t66): ] assert a == b # The independent check's relaxed variant (T_ref 15 deg C, f = 0.2). - assert c.contact_pressure_Pa == pytest.approx(243.88e3, rel=1e-3) + assert c.contact_pressure_Pa == pytest.approx(347.92e3, rel=1e-3) assert c.contact_pressure_reference_Pa == pytest.approx(46.86e3, rel=1e-3) assert 0.0 < c.thermal_wire_stress_Pa < a.thermal_wire_stress_Pa assert c.stick_modulus_Pa == a.stick_modulus_Pa diff --git a/tests/test_thermal_screen_resistance.py b/tests/test_thermal_screen_resistance.py new file mode 100644 index 0000000..17735a9 --- /dev/null +++ b/tests/test_thermal_screen_resistance.py @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (c) 2026 Jae Hoon Seo, SMI Lab, Inha University +"""Screen resistance of the sheath loss: wires over their lay, foil in parallel.""" + +from __future__ import annotations + +import math +from pathlib import Path + +import pytest +import yaml + +import cablexsec as cx +from cablexsec.materials.library import get_property +from cablexsec.mechanics.thermal import sheath_circulating_loss_factor, sheath_reactance + +SOURCE = Path(cx.__file__).parent / "cables" / "thies2016_30kv.yaml" +CURRENT_A, AREA_M2 = 400.0, 240e-6 +ENV = {"T4_external_Km_W": 0.5, "ambient_C": 15.0} + +pytestmark = pytest.mark.analytical_sanity + + +def _layer(data: dict, name: str) -> dict: + return next(x for x in data["layers"] if x["name"] == name) + + +def _load(tmp_path: Path, data: dict) -> cx.CableData: + target = tmp_path / "thies.yaml" + target.write_text(yaml.safe_dump(data, sort_keys=False), encoding="utf-8") + return cx.load_cable(target, geometry_override=None) + + +def _lambda1_by_hand(res, data: dict, names: list[str]) -> float: + """lambda1' of [IEC60287-1-1] 5.3.11 with R_s of the named screens in parallel.""" + losses = res.losses + t_s = _sheath_temperature(res) + conductance, diameters = 0.0, [] + for name in names: + layer = _layer(data, name) + rho = get_property(layer["material"], "rho_ohm_m") + alpha = get_property(layer["material"], "alpha_R_per_K") + if "strand_layers" in layer: + area = 0.0 + for ring in layer["strand_layers"]: + lay = math.atan2(2 * math.pi * ring["r_helix_m"], ring["pitch_m"]) + area += ( + ring["n_wires"] + * math.pi + * ring["d_wire_m"] ** 2 + / 4 + * math.cos(lay) + ) + else: + area = math.pi * (layer["r_outer_m"] ** 2 - layer["r_inner_m"] ** 2) + conductance += area / (rho * (1 + alpha * (t_s - 20.0))) + diameters.append(layer["r_inner_m"] + layer["r_outer_m"]) + c_ll = losses["lay_length_factor"] + r_s = c_ll / conductance + spacing = 2 * _layer(data, "cu_screen_wires")["r_offset_m"] * math.sin(math.pi / 3) + x = sheath_reactance( + spacing, sum(diameters) / len(diameters), lay_length_factor=c_ll + ) + return sheath_circulating_loss_factor( + r_s, losses["R_ac_ohm_m"], x, sl_armoured=True + ) + + +def _sheath_temperature(res) -> float: + """Sheath temperature the ladder reports in its lambda1 note [degC].""" + note = next(n for n in res.provenance.limitations if n.startswith("lambda1'")) + return float(note.split(" at ")[1].split(" degC")[0]) + + +def test_wire_screen_and_laminate_in_parallel_tape_left_out(tmp_path: Path) -> None: + # 2026-11-28 (PR #66 review): R_s was the envelope annulus of the wires, + # 72.8 mm2 instead of their 15.0 mm2. Now the 53 wires over their lay and + # the bonded Al laminate in parallel (CIGRE TB 880 Case 2), the counter + # helix Cu tape left out (TB 880 Guidance Point 29). + data = yaml.safe_load(SOURCE.read_text(encoding="utf-8")) + res = cx.compute_thermal(_load(tmp_path, data), CURRENT_A, AREA_M2, **ENV) + note = next(n for n in res.provenance.limitations if n.startswith("lambda1'")) + assert "53 wires of 14.99 mm2" in note + assert "in parallel" in note and "cu_tape not counted" in note + expected = _lambda1_by_hand(res, data, ["cu_screen_wires", "al_laminate"]) + assert res.losses["lambda1"] == pytest.approx(expected, rel=1e-3) + + +def test_wire_screen_alone_uses_its_wires(tmp_path: Path) -> None: + data = yaml.safe_load(SOURCE.read_text(encoding="utf-8")) + _layer(data, "al_laminate")["material"] = "hdpe" # a polymer, not a screen + res = cx.compute_thermal(_load(tmp_path, data), CURRENT_A, AREA_M2, **ENV) + expected = _lambda1_by_hand(res, data, ["cu_screen_wires"]) + assert res.losses["lambda1"] == pytest.approx(expected, rel=1e-3) + # The envelope annulus would give a resistance about five times lower. + wires = _layer(data, "cu_screen_wires") + envelope = math.pi * (wires["r_outer_m"] ** 2 - wires["r_inner_m"] ** 2) + assert envelope / 14.99e-6 > 4.5 diff --git a/tests/test_topologies.py b/tests/test_topologies.py index fcfc10e..0727b25 100644 --- a/tests/test_topologies.py +++ b/tests/test_topologies.py @@ -39,7 +39,7 @@ _TOPOLOGIES = { "single_core_inter_array": (inter_array_single_core_yaml_path, False, 1), "three_core_inter_array": (inter_array_three_core_yaml_path, False, 3), - "single_core_export": (cx.cigre_tb880_yaml_path, True, 1), + "single_core_export": (cx.poradowski2025_220kv_yaml_path, True, 1), "three_core_export": (export_three_core_yaml_path, True, 3), "three_core_wet_66kv": (cx.iea_task49_66kv_yaml_path, False, 3), } diff --git a/validation/scripts/compression_application.py b/validation/scripts/compression_application.py index 6967d5b..554a430 100644 --- a/validation/scripts/compression_application.py +++ b/validation/scripts/compression_application.py @@ -43,7 +43,7 @@ "inter_array_single_core_33kv": cx.inter_array_single_core_yaml_path, "inter_array_three_core_33kv": cx.inter_array_three_core_yaml_path, "export_three_core_220kv": cx.export_three_core_yaml_path, - "cigre_tb880_220kv": cx.cigre_tb880_yaml_path, + "poradowski2025_220kv": cx.poradowski2025_220kv_yaml_path, } diff --git a/validation/scripts/run_validation.py b/validation/scripts/run_validation.py index efc4676..33c88e6 100644 --- a/validation/scripts/run_validation.py +++ b/validation/scripts/run_validation.py @@ -69,6 +69,8 @@ iec_conductor_temperature, proximity_effect_factor, sheath_circulating_loss_factor, + sheath_eddy_loss_factor, + sheath_reactance, skin_effect_factor, ) @@ -211,39 +213,59 @@ def _pct(a: float, b: float) -> float: return abs(a - b) / abs(b) * 100.0 -def _bm5_conductor_temperature() -> float: - """Reproduce BM5 via the [Poradowski2025] Table-1 IEC thermal network. +def _bm5_conductor_temperature() -> tuple[float, float]: + """BM5 from the [Poradowski2025] Table-1 IEC thermal network. - Uses ``iec_conductor_temperature`` with the paper's *tabulated* T1/T2/T3/T4 - (public, Poradowski Table 1) — NOT the auto-built ladder of compute_thermal, - which omits the IEC-60287-2-1 three-core geometric factor. Circulating- - current sheath loss λ1' only; the eddy term λ1″ is BLOCKED (≈5 K residual). + Uses ``iec_conductor_temperature`` with the paper's tabulated T1/T2/T3/T4: + the packaged cable is a single-core-equivalent stack of a three-core + cable, so ``compute_thermal`` on it is not comparable. ``R0`` from + [IEC60228] Table 4; the circulating sheath loss of IEC 60287-1-1 5.3.2 + (non-magnetic armour, CIGRE TB 880 Guidance Point 38). Returns the + temperature with ``lambda1'' = 0`` (IEC) and with the eddy loss of + 5.3.7.1 times the solid-bonding factor F (TB 880 Guidance Points 6, 31). """ t1, t2, t3, t4, t_amb = 0.6579, 0.1121, 0.0357, 0.3211, 15.0 - rho = library.get_property("copper_stranded", "rho_ohm_m") alpha = library.get_property("copper_stranded", "alpha_R_per_K") - r_dc = (rho / 1200e-6) * (1.0 + alpha * (90.0 - 20.0)) + r_dc = 0.0151e-3 * (1.0 + alpha * (90.0 - 20.0)) # [IEC60228] Table 4 y_s = skin_effect_factor(r_dc, 50.0) y_p = proximity_effect_factor(r_dc, 50.0, 0.042, 0.13175) r_ac = r_dc * (1.0 + y_s + y_p) w_c = 908.45**2 * r_ac w_d = dielectric_loss(220.0, 2.5, 0.001, 0.0227, 0.0466) a_s = math.pi / 4 * (0.11395**2 - 0.11195**2) - r_s = rho * 1.3406 / a_s * (1.0 + alpha * (80.0 - 20.0)) - x = 2.0 * (2.0 * math.pi * 50.0) * 1e-7 * math.log(2.0 * 0.13175 / 0.1129) + rho_s = library.get_property("copper_tape_screen", "rho_ohm_m") * ( + 1.0 + alpha * (80.0 - 20.0) + ) + r_s = rho_s * 1.3406 / a_s + d_s = 0.5 * (0.11195 + 0.11395) + x = sheath_reactance(0.13175, d_s) lam1 = sheath_circulating_loss_factor(r_s, r_ac, x) - return iec_conductor_temperature( - t1, - t2, - t3, - t4, - W_c=w_c, - W_d=w_d, - lambda1=lam1, - n_conductors=3, - T_ambient_C=t_amb, + lam1_e = sheath_eddy_loss_factor( + r_s, + r_ac, + sheath_mean_diameter_m=d_s, + sheath_outer_diameter_m=0.11395, + sheath_thickness_m=0.001, + sheath_resistivity_ohm_m=rho_s, + spacing_m=0.13175, + solid_bonding_reactance_ohm_m=x, ) + def theta(lambda1: float) -> float: + return iec_conductor_temperature( + t1, + t2, + t3, + t4, + W_c=w_c, + W_d=w_d, + lambda1=lambda1, + n_conductors=3, + T_ambient_C=t_amb, + ) + + return theta(lam1), theta(lam1 + lam1_e) + def _reader_known_answer_residual() -> float: """Max relative residual: time-history CSV reader→fatigue vs closed-form σ_A damage. @@ -2271,18 +2293,19 @@ def _comp_row(tier: str, ident: str, quantity: str, keys: tuple[str, ...]) -> Ro rows.extend(_dai2020_rows()) rows.extend(_dai2018_rows()) - theta_bm5 = _bm5_conductor_temperature() # paper tabulated network, λ1' only + theta_bm5, theta_bm5_eddy = _bm5_conductor_temperature() rows.append( Row( "2", "BM5", - "CIGRE TB880 conductor temp (cited Poradowski tabulated T-network, λ1')", - "≤ 90 °C, ~5 K low", - f"{theta_bm5:.1f} °C " - "(FEM 89.62 / IEC 90; λ1″ closes residual). NOT yet from " - "compute_thermal(cable) — three-core geometric factor pending " - "IEC 60287-2-1 (not yet implemented)", - "PARTIAL (cited network; λ1″ + 3-core factor gated)", + "Poradowski (2025) 220 kV conductor temperature (cited tabulated " + "T-network; R0 [IEC60228], λ1' IEC 5.3.2)", + "≤ 90 °C (λ1″ = 0, IEC)", + f"{theta_bm5:.1f} °C with λ1″ = 0; {theta_bm5_eddy:.1f} °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)", ) ) @@ -2662,7 +2685,7 @@ def main() -> None: "|----|------------------|-----------------------------|", "| BM1 | `menard2023.yaml` geometry + material library | YES — `ei_min_slip(cable)` |", "| BM3 | `nasution_2014_copper` curve in the S-N registry (cited fit) | YES — from the material/S-N definition |", - "| BM5 | Poradowski Table-1 **tabulated** T1/T2/T3 (cited) | PARTIAL — uses the cited tabulated network; `compute_thermal(cigre_tb880.yaml)` reads high (136 °C at the BM5 inputs, three cores) because the IEC-60287-2-1 three-core geometric factor is not yet applied |", + "| BM5 | Poradowski Table-1 **tabulated** T1/T2/T3 (cited) | PARTIAL — uses the cited tabulated network; the packaged `poradowski2025_220kv.yaml` is a single-core-equivalent stack of the three-core cable, so `compute_thermal` on it (SL-type losses and the filler geometric factor need the three cores) is not comparable |", "| BM6 | `copper_poon2022` SWT constants (cited registry) + representative contact | curve YES (registry); cable-level contact driver is representative, not from a cable |", "| WITZ | `witz1996.yaml` geometry + material library + digitised Witz Figs 5-6 | EI_min YES (parameter-free); WITZ-ID: initial pressure identified on the Fig. 5 width (declared `identified`), Fig. 6 predicted without refitting |", "| SV11 | `saevik2011.yaml` geometry (Table 1; outer armour, tapes and sheath assumed) + material library (polymer modulus identified on the Table 1 EI) + rig constants in `validation/scripts/check_saevik2011.py` + digitised Sævik Figs 17-23 and Gjøsteen Figs 27-35 | PARTIAL — section from the cable definition; the curvature profile along the pipe comes from a harness beam model with an assumed rotation point |", diff --git a/validation/validation_report.md b/validation/validation_report.md index 66b6285..a1068db 100644 --- a/validation/validation_report.md +++ b/validation/validation_report.md @@ -79,12 +79,12 @@ Every row is computed from published data or closed-form references in this repo | 2 | DAI18-RS | Dai et al. (2018) Fig. 4a/4c, 7 loops: re-stick peak above the dynamic level at every reversal; spring-slider (FrictionLaw static_factor = mu_s/mu_d) with stick_time_s = 0 vs the default inf, third cycle | excess > 5 reading resolutions on all 14 measured strokes; stick_time_s = 0 on all 14; inf on none | measured 14/14 (excess 0.039-0.094); stick_time_s = 0 14/14; inf 0/14 | PASS | | 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 | CIGRE TB880 conductor temp (cited Poradowski tabulated T-network, λ1') | ≤ 90 °C, ~5 K low | 84.4 °C (FEM 89.62 / IEC 90; λ1″ closes residual). NOT yet from compute_thermal(cable) — three-core geometric factor pending IEC 60287-2-1 (not yet implemented) | PARTIAL (cited network; λ1″ + 3-core factor gated) | +| 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 | 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: `1321 passed` +- analytical_sanity: `1326 passed` - independent_method: `93 passed` - full_scale: `62 passed` @@ -98,7 +98,7 @@ Does each benchmark's pass come from the cable/material definition, or from an i |----|------------------|-----------------------------| | BM1 | `menard2023.yaml` geometry + material library | YES — `ei_min_slip(cable)` | | BM3 | `nasution_2014_copper` curve in the S-N registry (cited fit) | YES — from the material/S-N definition | -| BM5 | Poradowski Table-1 **tabulated** T1/T2/T3 (cited) | PARTIAL — uses the cited tabulated network; `compute_thermal(cigre_tb880.yaml)` reads high (136 °C at the BM5 inputs, three cores) because the IEC-60287-2-1 three-core geometric factor is not yet applied | +| BM5 | Poradowski Table-1 **tabulated** T1/T2/T3 (cited) | PARTIAL — uses the cited tabulated network; the packaged `poradowski2025_220kv.yaml` is a single-core-equivalent stack of the three-core cable, so `compute_thermal` on it (SL-type losses and the filler geometric factor need the three cores) is not comparable | | BM6 | `copper_poon2022` SWT constants (cited registry) + representative contact | curve YES (registry); cable-level contact driver is representative, not from a cable | | WITZ | `witz1996.yaml` geometry + material library + digitised Witz Figs 5-6 | EI_min YES (parameter-free); WITZ-ID: initial pressure identified on the Fig. 5 width (declared `identified`), Fig. 6 predicted without refitting | | SV11 | `saevik2011.yaml` geometry (Table 1; outer armour, tapes and sheath assumed) + material library (polymer modulus identified on the Table 1 EI) + rig constants in `validation/scripts/check_saevik2011.py` + digitised Sævik Figs 17-23 and Gjøsteen Figs 27-35 | PARTIAL — section from the cable definition; the curvature profile along the pipe comes from a harness beam model with an assumed rotation point |