oltc-selector 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +82 -71
  2. package/bin/oltc.js +14 -22
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -6,92 +6,124 @@ The type is a starting point. Get engineering confirmation before an order.
6
6
 
7
7
  ## CLI
8
8
 
9
- You do not need to clone this repository. Node.js 20 or later is needed.
10
-
11
9
  ```bash
12
10
  npm i -g oltc-selector
11
+ ```
13
12
 
14
- oltc --iu 350 --um 40.5 --conn D --reg W --pm 8
15
- # CV2III-350D/40.5-10193W
13
+ Then `oltc --help`. You can also skip the install and run `npx -y oltc-selector@latest` with the same flags.
16
14
 
17
- oltc --octc --iu 800 --um 72.5 --conn D --series II --contact 6x5
18
- # WSLII-800D/72.5-6x5A
15
+ ### Recipes
19
16
 
20
- oltc --iu 600 --um 72.5 --conn Y --reg W --pm 8 --structure combined
21
- # CM2III-600Y/72.5B-10193W
17
+ Find the row that matches what you have.
22
18
 
23
- oltc --mva 25 --kv 110 --tap neutral --reg W --pm 8
24
- # CV2III-350Y/72.5-10193W
19
+ | You have | Run | You get |
20
+ |----------|-----|---------|
21
+ | Max current and Um | `oltc --iu 350 --um 40.5 --conn D` | `CV2III-350D/40.5-10193W` |
22
+ | Capacity and voltage, tapped at the star point | `oltc --mva 25 --kv 110 --tap neutral` | `CV2III-350Y/72.5-10193W` |
23
+ | The same, tapped at the line end | `oltc --mva 16 --kv 22 --tap line --winding star` | `CV2III-600D/40.5-10193W` |
24
+ | An autotransformer | `oltc --mva 125 --kind auto --hv 225 --mv 115` | `3xCM2I-500/252D-10193W` |
25
+ | A line from the tender | `oltc --line "125MVA 225±8x1,25%/115/35kV YNa0d11"` | `3xCM2I-500/252D-10193W` |
26
+ | An uneven range | `oltc --mva 40 --kv 110 --range +4/-12x1.25%` | `CV2III-350Y/72.5-10193W` |
27
+ | Insulation to earth from the OS | `oltc --mva 25 --kv 110 --tap neutral --earth-um 126` | `CV2III-350Y/126-10193W` |
28
+ | An off-circuit duty | `oltc --octc --iu 800 --um 72.5 --conn D --series II --contact 6x5` | `WSLII-800D/72.5-6x5A` |
29
+ | A dry-type transformer | `oltc --mva 1.6 --kv 33 --tap line --mount dry --reg 0 --pm 4` | `3xCZI-500/40.5-9` |
30
+ | A combined type wanted | `oltc --iu 600 --um 72.5 --structure combined` | `CM2III-600Y/72.5B-10193W` |
31
+ | A script to feed | `oltc --json --iu 350 --um 40.5 --conn D` | One JSON object |
25
32
 
26
- oltc --mva 16 --kv 22 --tap line --winding star
27
- # CV2III-600D/40.5-10193W
33
+ Output is Chinese by default. `--lang en` (or `OLTC_LANG=en`) prints English. On a Chinese run an error prints in Chinese, then English.
28
34
 
29
- # Autotransformer tapped at the series/common junction (sized on the HV side)
30
- oltc --mva 125 --kind auto --hv 225 --mv 115 --tap junction
31
- # 3xCM2I-500/252D-10193W
35
+ Each run asks npm for a newer version and prints a notice on stderr when there is one. It never installs anything. `--no-update-check`, `OLTC_NO_UPDATE_CHECK=1` or `CI=1` turn the check off.
32
36
 
33
- # Or paste the tender line: YNa0 makes it an autotransformer
34
- oltc --line "220/110/35kV-125MVA 225±8x1,25%/115/35kV YNa0d11"
35
- # 3xCM2I-500/252D-10193W, plus the type at Um 126 / 170 / 252
36
- ```
37
+ ### Flags
38
+
39
+ Grouped like the cards of the web page.
40
+
41
+ <details>
42
+ <summary><b>Transformer</b></summary>
43
+
44
+ <br>
45
+
46
+ | Flag | Meaning | Default |
47
+ |------|---------|---------|
48
+ | `--line "text"` | Tender line: MVA, kV ratio with ±N×x%, vector group. Reads autotransformer from `YNa0` / auto, delta line end from `D`, star neutral from `Y`. Flags given beside it win. `--nameplate` is the same | |
49
+ | `--kind two\|auto` | Transformer kind. `--auto` is `--kind auto` | two-winding |
50
+ | `--tap` | Where the tap changer sits: `neutral` / `line` (two-winding), `junction` / `mv-line` (autotransformer). Sets current, Ust and Um | neutral; junction with `--kind auto` |
51
+ | `--winding star\|delta` | Tapped winding connection (two-winding). Star I = S/(√3U), delta I = S/(3U) | star |
52
+ | `--kv` | Rated voltage of the tapped winding (kV). With `--iu`, it sets the winding voltage for the 220 / 330 kV rules | |
53
+ | `--hv` `--mv` | Autotransformer HV / MV rated voltage (kV) | |
54
+ | `--earth-um` | Insulation to earth from the OS or maker (kV). Overrides the rule | rule |
37
55
 
38
- Output is in Chinese by default; `--lang en` gives English. An error on a Chinese run prints in Chinese, then English. Every run asks npm for a newer version and prints a notice when there is one. Nothing is installed for you.
56
+ </details>
39
57
 
40
58
  <details>
41
- <summary><b>All flags</b></summary>
59
+ <summary><b>Duty</b></summary>
42
60
 
43
61
  <br>
44
62
 
45
63
  | Flag | Meaning | Default |
46
64
  |------|---------|---------|
47
- | `--line "text"` | Tender line: MVA, kV ratio with ±N×x%, vector group. Flags given beside it win. | |
48
- | `--iu` / `--imax` | Max through-current Imax (A). **No** safety factor. | required unless `--mva` |
49
- | `--mva` `--kv` | Transformer MVA + tap-side kV → Imax (min tap + `--k`). With `--iu`, `--kv` alone sets the winding voltage for the 220/330 kV rules | |
65
+ | `--mva` | Transformer capacity. With `--kv`: Imax from rated current at the lowest tap | |
66
+ | `--iu` / `--imax` | Max through-current Imax (A). **No** safety factor | required unless `--mva` |
67
+ | `--os-imax` | Capacity path: the Imax the OS or maker states at the lowest tap. `--imax` beside `--mva` means this | |
50
68
  | `--k` | Safety factor ≥ 1, **capacity path only** | 1.0 |
51
- | `--step-pct` | Step as a percent (1.25 means 1.25 %), capacity path only | 1.25 |
52
- | `--os-imax` | Capacity path: the Imax the OS or maker states at the lowest tap (`--imax` beside `--mva` means this) | |
53
- | `--kind two\|auto` | Transformer kind (`--auto` = `--kind auto`) | two-winding |
54
- | `--tap` | Where the OLTC sits: `neutral` / `line` (two-winding), `junction` / `mv-line` (autotransformer). Sets current, Ust and Um. | neutral; junction with `--kind auto` |
55
- | `--winding star\|delta` | Tapped winding connection (two-winding) | star |
56
- | `--hv` `--mv` | Autotransformer HV / MV rated kV | |
57
- | `--earth-um` | OLTC insulation to earth from the OS; overrides the rule | |
58
- | `--across-li` `--across-ac` | Stated LI / AC withstand across the tap winding (kV): sets the selector grade B/C/D/DE | |
59
- | `--um` | Equipment Um (kV) | derived from `--kv` if omitted |
60
- | `--ust` | Step voltage (V) | 0, or derived on MVA path |
61
- | `--conn Y\|D` | Switch star / delta on the `--iu` path. With `--mva` or `--line` it is an error: use `--tap` | Y |
62
69
  | `--reg W\|G\|0` | Reversing / coarse-fine / linear | W |
63
70
  | `--pm` | ± steps, a whole number | 8 |
64
71
  | `--pos` / `--positions` | Operating positions (linear and off-circuit; on W/G the Fig. 3-3 row with that count) | |
65
- | `--phases` | `I` / `II` / `III` | III |
66
72
  | `--range +a/-b[xs%]` | Uneven range. W/G takes the Fig. 3-3 row the maker sells (+4/-12 → 10193W); the lowest tap uses −b | |
67
73
  | `--minus` | Minus steps for the lowest-tap current, beside `--pm` / `--pos` | ± steps |
74
+ | `--step-pct` | Step as a percent (1.25 means 1.25 %). Capacity path only | 1.25 |
68
75
  | `--mid 1\|3` | Mid positions of the W/G diagram, when Fig. 3-3 has the pair | brochure |
69
- | `--octc` | Off-circuit 无载 (WSL cage; WDG/WLG/WSG drum). `--duty octc` is the same | on-load |
70
- | `--structure` | `auto` / `combined` 组合式 / `compound` 复合式 / `cage` 笼式 / `drum` 鼓式 | `auto` |
71
- | `--series` | OCTC wiring II IV V VI VII VIII | auto is linear IV for Y and D |
76
+ | `--ust` | Step voltage (V). Given, it is the OS figure and a floor | derived on the capacity path |
77
+ | `--um` | Equipment Um (kV) | derived from `--kv` |
78
+ | `--conn Y\|D` | Switch at the star point / line end. `--iu` path only; with `--mva` or `--line` use `--tap` | Y |
79
+ | `--phases` | `I` / `II` / `III` | III |
80
+
81
+ </details>
82
+
83
+ <details>
84
+ <summary><b>Tap changer</b></summary>
85
+
86
+ <br>
87
+
88
+ | Flag | Meaning | Default |
89
+ |------|---------|---------|
90
+ | `--octc` | Off-circuit (WSL cage; WDG / WLG / WSG drum). `--duty octc` is the same | on-load |
91
+ | `--structure` | `auto` / `combined` / `compound` / `cage` / `drum` | auto |
92
+ | `--series` | Off-circuit wiring `II` `IV` `V` `VI` `VII` `VIII` | auto: linear IV for Y and D |
72
93
  | `--mount` | `in-tank` / `on-tank` / `dry` / `reactor` (oil HWDK) | in-tank |
73
- | `--oil` / `--vacuum` | Switching medium | vacuum (on-load) |
74
- | `--contact` | OCTC contact e.g. `6x5` | |
75
- | `--json` | Machine output (see below) | |
76
- | `--lang en\|zh` | Output language. `OLTC_LANG=en` also works | zh |
77
- | `--version` / `-v` | Print the version | |
78
- | `--help` / `-h` | The flag list. Also shown when no flag is given | |
79
- | `--no-update-check` | Skip the npm check made on every run. A newer version only prints a notice on stderr; nothing is installed. `OLTC_NO_UPDATE_CHECK=1` or `CI=1` also skip it. | check on |
94
+ | `--vacuum` / `--oil` | Switching medium | vacuum (on-load) |
95
+ | `--contact` | Off-circuit contact, e.g. `6x5` | |
96
+ | `--across-li` `--across-ac` | Stated LI / AC withstand across the tap winding (kV). Sets the selector grade B / C / D / DE | |
80
97
 
81
- `--structure auto` and omitting `--octc` match the web first paint: on-load, in-tank vacuum, minimum-adequate ranking.
98
+ </details>
82
99
 
83
- Every flag with a value also takes `--flag=value`. A flag that cannot take effect is an error, not a silent default: `--series` or `--contact` without `--octc`, `--conn D` with `--tap neutral`, `--pm` and `--pos` that disagree, `--vacuum` with `--octc`, a flag given twice.
100
+ <details>
101
+ <summary><b>Output</b></summary>
102
+
103
+ <br>
84
104
 
85
- **Exit code:** `0` a type was found (or help / version); `1` no type, or bad input.
105
+ | Flag | Meaning |
106
+ |------|---------|
107
+ | `--json` | One JSON object on stdout, nothing on stderr. Keys below |
108
+ | `--lang en\|zh` | Output language. `OLTC_LANG=en` also works. Default zh |
109
+ | `--version` / `-v` | Print the version |
110
+ | `--help` / `-h` | The flag list. Also shown when no flag is given |
111
+ | `--no-update-check` | Skip the npm version check |
86
112
 
87
113
  </details>
88
114
 
115
+ Every flag with a value also takes `--flag=value`. A flag that cannot take effect is an error, not a silent default: `--series` or `--contact` without `--octc`, `--conn D` with `--tap neutral`, `--pm` and `--pos` that disagree, `--vacuum` with `--octc`, a flag given twice.
116
+
117
+ With no `--octc` and `--structure auto` the CLI matches the web page's first paint: on-load, in-tank vacuum, minimum-adequate ranking.
118
+
119
+ **Exit code:** `0` a type was found (or help / version). `1` no type, or bad input.
120
+
89
121
  <details>
90
122
  <summary><b><code>--json</code> keys</b></summary>
91
123
 
92
124
  <br>
93
125
 
94
- **`--json`** prints one object, and nothing on stderr. For bad input (a flag that cannot be read) the object holds only `ok`, `version`, `model` and `errors`.
126
+ For bad input the object holds only `ok`, `version`, `model` and `errors`.
95
127
 
96
128
  | Key | Holds |
97
129
  |-----|-------|
@@ -107,24 +139,3 @@ Every flag with a value also takes `--flag=value`. A flag that cannot take effec
107
139
  | `errors` | Why there is no type. Chinese then English; English alone with `--lang en` |
108
140
 
109
141
  </details>
110
-
111
- ## Selection rules
112
-
113
- <details>
114
- <summary><b>The eleven rules the engine follows</b></summary>
115
-
116
- <br>
117
-
118
- 1. **Minimum-adequate, not SHZV-by-default.** Rank **CV2 → CM2 → SHZV → SDZV → SHZVG**. SDZV (dual-break, Ust 6000 V) only when SHZV step voltage or step capacity is short. Prefer one three-phase unit over `3×` singles when a brochure III type exists.
119
- 2. **OLTC existence comes from brochure / catalogue axes** (`lib/catalog.ts`), **not price-list Y/D twins**. A 2025 list row that prices `CM2III-…D` the same as Y does **not** make `CM2III-…D` a type.
120
- 3. **No CV2-500.** CV2 III currents are 350 and 600 only.
121
- 4. **No combined III-D.** CM / CM2 / CMD / SHZV / SDZV / SHZVG three-phase strings are star-point Y. Cover delta with `3x…I-` when that I type exists. Compound **CV / CV2 / SV** and on-tank **HWV** III-D **do** exist. No SDZV II, I-1200/1500, or III-1300.
122
- 5. **Compound has no selector grade letter.** No `CV2III-350Y/40.5B-…`. Combined in-tank may have B/C/D/DE after Um.
123
- 6. **WSL / WDL existence is 2025-list row keys without prices** (`lib/listIndex.data.json`). Missing rows (no `WSLIV-2000D/126`, no `7x6E` @ 72.5) are not emitted.
124
- 7. **Drum OCTC is the sold WDG / WLG** (single-phase, `3x` per three-phase set, no Y/D in the string). Existence is the distinct sold OS rows (`DRUM_SOLD_ROWS` in `lib/listIndex.ts`). WDG IV is 5x5 up to 5 positions, V is 6x5 up to 6; no WDG on D. **WSG** is catalogue axes only (II/IV/V, 4x5/6x5, up to 6 positions) and stays for the D quote `WSGII-800D/40.5-4x5A`.
125
- 8. **Typing Imax (`--iu`) does not apply a safety factor.** `--k` only applies on the transformer-capacity (`--mva`) path.
126
- 9. **Um is set where the tap changer sits** (`lib/transformer.ts`). Line end: the winding system's class (132 kV → 145, 220 kV → 252). Neutral: the full class up to 72.5; above that 72.5 is assumed and flagged. Autotransformer: the HV system's class, combined types only (no CV / CV2 / SV).
127
- 10. **Tapped windings on 220 kV class and above take combined types only.** 2025–2026 OS: 67 of 67 were CM / CM2 / SHZV.
128
- 11. **An open Um is shown as a choice.** Star points above 72.5 and autotransformers list the type at each Um class; the tender's insulation picks one (`--earth-um`, or a row on the card).
129
-
130
- </details>
package/bin/oltc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // lib/appVersion.ts
4
- var APP_VERSION = "2.4.1";
4
+ var APP_VERSION = "2.5.0";
5
5
 
6
6
  // lib/cliErrorsZh.ts
7
7
  var WHAT_ZH = {
@@ -2308,7 +2308,7 @@ function selectOltc(input) {
2308
2308
  cautionsEn.push(`Needs the maker's technical review: ${review.join(", ")}.`);
2309
2309
  cautionsZh.push(`\u987B\u5382\u5BB6\u6280\u672F\u7279\u522B\u8BC4\u5BA1\uFF1A${reviewZh.join("\uFF0C")}\u3002`);
2310
2310
  }
2311
- if (tap.changeOver !== "0" && input.transformerKind !== "auto" && (input.tapWindingKv ?? 0) > 121) {
2311
+ if (tap.changeOver !== "0" && (input.transformerKind === "auto" ? (input.umKv ?? 0) > 126 : (input.tapWindingKv ?? 0) > 121)) {
2312
2312
  cautionsEn.push(
2313
2313
  "Change-over selector above 110 kV: check the recovery voltage and quote the tie-in resistor as an option (maker's Cw/Ce needed)."
2314
2314
  );
@@ -2958,13 +2958,13 @@ function deriveDuty(spec) {
2958
2958
  }
2959
2959
  return fail(
2960
2960
  `\u81EA\u8026\u53D8\u9AD8\u538B Um ${umKv} kV \u8D85\u51FA\u76EE\u5F55\uFF08\u6700\u9AD8 363 kV\uFF09\u3002\u8BF7\u6309 OS \u586B\u5F00\u5173\u5BF9\u5730\u7EDD\u7F18\uFF08CLI\uFF1A--earth-um\uFF09\uFF0C\u53EF\u9009 ${open.join("\u3001")} kV\u3002`,
2961
- `Autotransformer HV class Um ${umKv} kV is above the catalogue (top 363 kV). Give the switch's insulation to earth from the OS (CLI: --earth-um): ${open.join(", ")} kV.`
2961
+ `Autotransformer HV class Um ${umKv} kV is above the catalogue (top 363 kV). Give the tap changer's insulation to earth from the OS (CLI: --earth-um): ${open.join(", ")} kV.`
2962
2962
  );
2963
2963
  }
2964
2964
  if (!Number.isFinite(umKv) || umKv > 363) {
2965
2965
  return fail(
2966
2966
  "\u7535\u538B\u8D85\u51FA\u76EE\u5F55\uFF1A\u5F00\u5173\u6700\u9AD8 Um 363 kV\u3002",
2967
- "Voltage above the catalogue: the highest switch class is Um 363 kV."
2967
+ "Voltage above the catalogue: the highest tap changer class is Um 363 kV."
2968
2968
  );
2969
2969
  }
2970
2970
  if (umRule === "neutral_full" && umAssumed) {
@@ -2987,27 +2987,19 @@ function deriveDuty(spec) {
2987
2987
  }
2988
2988
  }
2989
2989
  const highWinding = !auto && catalogueUmFromRatedKv(spec.tapKv) >= 252;
2990
- if (highWinding) {
2991
- cautionsZh.push("220 kV \u7EA7\u53CA\u4EE5\u4E0A\u8C03\u538B\u7ED5\u7EC4\u53EA\u7528\u7EC4\u5408\u5F0F\u3002");
2992
- cautionsEn.push("220 kV-class tapped winding: combined types only.");
2993
- }
2994
2990
  if (auto) {
2995
2991
  if (spec.tapPoint === "auto_mv_line" && umRule === "auto_hv") {
2996
2992
  if (umKv === 170) {
2997
2993
  cautionsZh.push("230/121 kV \u81EA\u8026\u53D8\u4E2D\u538B\u51FA\u7EBF\u901A\u5E38\u7528 Um 170 kV\uFF0C\u8BF7\u6309\u5382\u5BB6\u6570\u636E\u6838\u5BF9\u3002");
2998
- cautionsEn.push("230/121 kV autotransformer MV line lead: Um 170 kV is usual; check the maker's data.");
2994
+ cautionsEn.push("230/121 kV autotransformer MV line: Um 170 kV is usual; check the maker's data.");
2999
2995
  } else {
3000
2996
  cautionsZh.push(`\u5F00\u5173\u5BF9\u5730\u7EDD\u7F18\u6682\u6309 ${umKv} kV \u9009\uFF0C\u8BA2\u8D27\u524D\u8BF7\u6309\u8BA2\u8D27\u89C4\u8303\u786E\u8BA4\u3002`);
3001
- cautionsEn.push(`MV line lead sized at the MV class, Um ${umKv} kV; the order specification (OS) decides.`);
2997
+ cautionsEn.push(`MV line sized at the MV class, Um ${umKv} kV; the order specification (OS) decides.`);
3002
2998
  }
3003
2999
  } else if (spec.tapPoint === "auto_junction" && umRule === "auto_hv") {
3004
3000
  cautionsZh.push(`\u5F00\u5173\u5BF9\u5730\u7EDD\u7F18\u6682\u6309 ${umKv} kV \u9009\uFF0C\u8BA2\u8D27\u524D\u8BF7\u6309\u8BA2\u8D27\u89C4\u8303\u786E\u8BA4\u3002`);
3005
- cautionsEn.push(`Autotransformer junction sized at the HV class, Um ${umKv} kV; the order specification (OS) decides.`);
3001
+ cautionsEn.push(`Series winding MV end sized at the HV class, Um ${umKv} kV; the order specification (OS) decides.`);
3006
3002
  }
3007
- cautionsZh.push("\u81EA\u8026\u53D8\u53EA\u80FD\u7528\u7EC4\u5408\u5F0F\u5F00\u5173\u3002");
3008
- cautionsEn.push("Autotransformer: combined types only (compound types stop at 200 kV across the tap winding).");
3009
- cautionsZh.push("\u8C03\u538B\u7ED5\u7EC4\u4E24\u7AEF\u7684\u51B2\u51FB\u7535\u538B\u3001\u8981\u4E0D\u8981\u52A0\u7535\u4F4D\u7535\u963B\uFF0C\u8FD9\u91CC\u6CA1\u6709\u7B97\uFF0C\u8BF7\u5411\u53D8\u538B\u5668\u5382\u786E\u8BA4\u3002");
3010
- cautionsEn.push("Not checked: impulse across the tap winding (a), tie-in resistor.");
3011
3003
  if (!(statedStepV > 0 && statedStepV >= (derivedStepV ?? 0) - 0.5)) {
3012
3004
  cautionsZh.push("\u5404\u6863\u7684\u7EA7\u7535\u538B\u548C\u7535\u6D41\u4E0D\u4E00\u6837\uFF0C\u8FD9\u91CC\u53EA\u6309\u989D\u5B9A\u6863\u7B97\u3002\u8BF7\u5411\u53D8\u538B\u5668\u5382\u8981\u5206\u63A5\u8868\u518D\u6838\u5BF9\u3002");
3013
3005
  cautionsEn.push("Variable flux: Ust and current differ per tap; Ust at the extreme tap is not checked. Get the maker's per-tap table.");
@@ -3063,7 +3055,7 @@ var NOTE_EN = {
3063
3055
  auto_tertiary: "range is on the tertiary of an autotransformer",
3064
3056
  zigzag: "zigzag tapped winding: confirm the tap point",
3065
3057
  tiny_mva: "power reads {mva} MVA: check the figure",
3066
- single_phase: "single-phase: {mva} MVA read as one unit, sized as 3 \xD7 {mva} MVA on a single-phase switch",
3058
+ single_phase: "single-phase: {mva} MVA read as one unit, sized as 3 \xD7 {mva} MVA on a single-phase tap changer",
3067
3059
  tap_ladder: "{chain} kV read as tap voltages; rated {kv} kV",
3068
3060
  auto_vg: "text says autotransformer but vector group {vg} has HV and MV in different connections",
3069
3061
  delta_text: "text mentions delta: confirm which winding is tapped",
@@ -3392,7 +3384,7 @@ var OFF_CIRCUIT_TAP = new RegExp(
3392
3384
  String.raw`\b(?:off[\s-]?circuit|de-?energi[sz]ed)\b`,
3393
3385
  String.raw`\b(?:off[\s-]?(?:circuit|load)|no[\s-]?load|de-?energi[sz]ed)\s+tap`,
3394
3386
  String.raw`\btap[\s-]?chang\w*\s*[(:,-]?\s*(?:off[\s-]?(?:circuit|load)|no[\s-]?load|de-?energi[sz]ed)`,
3395
- String.raw`(?:conmutador|cambiador)[^,;.]{0,30}(?:sin\s+carga|desenergizad)`,
3387
+ String.raw`(?:conmutador|cambiador)[^,;.]{0,30}(?:sin\s+carga|sin\s+tensi[oó]n|desenergizad)`,
3396
3388
  String.raw`(?:chuyển|đổi)\s+nấc[^,;.]{0,20}không\s+tải`,
3397
3389
  String.raw`(?:pengubah|perubah)\s+tap[^,;.]{0,20}tanpa\s+beban`,
3398
3390
  String.raw`yüksüz\s+kademe`,
@@ -4644,8 +4636,8 @@ Flags:
4644
4636
  combined-only, 330 kV grade) and Um if omitted.
4645
4637
  --kind two|auto Transformer kind (--auto = --kind auto). Default two-winding.
4646
4638
  --tap P Where the OLTC sits: neutral|line (two-winding),
4647
- junction|mv-line (autotransformer, series/common junction
4648
- or MV line lead). Default neutral; junction with
4639
+ junction|mv-line (autotransformer: series winding, MV
4640
+ end, or MV line after the junction). Default neutral; junction with
4649
4641
  --kind auto. With --mva it replaces --conn.
4650
4642
  --winding star|delta Tapped winding connection (two-winding). Sets the current
4651
4643
  formula: star I = S/(\u221A3U), delta I = S/(3U).
@@ -4951,7 +4943,7 @@ function assumptionsFromArgs(args, family) {
4951
4943
  const tapZh = {
4952
4944
  neutral: "\u4E2D\u6027\u70B9",
4953
4945
  line_end: "\u7EBF\u7AEF",
4954
- auto_junction: "\u4E32\u8054/\u516C\u5171\u7ED5\u7EC4\u8FDE\u63A5\u70B9",
4946
+ auto_junction: "\u4E32\u8054\u7ED5\u7EC4\u4E2D\u538B\u7AEF",
4955
4947
  auto_mv_line: "\u4E2D\u538B\u51FA\u7EBF"
4956
4948
  };
4957
4949
  const tapGiven = args.given.has("tap") || args.given.has("conn") || args.winding === "delta" && (args.line == null || args.given.has("winding"));
@@ -5080,8 +5072,8 @@ var ASSUMPTION_EN = [
5080
5072
  [/^无载开关取 ([\d.]+) kV 绕组的范围((默认,)?招标行有两个调压范围)$/, "off-circuit range from the $1 kV winding (two ranges on the line)"],
5081
5073
  [/^对地 Um ([\d.]+)(招标行中性点 BIL ([\d.]+) kV)$/, "Um to earth $1 (line neutral BIL $2 kV)"],
5082
5074
  ["Ust \u672A\u6307\u5B9A\uFF08\u7EA7\u7535\u538B\u3001\u7EA7\u5BB9\u91CF\u672A\u6821\u9A8C\uFF09", "Ust not stated (step voltage and capacity not checked)"],
5083
- ["\u4E32\u8054/\u516C\u5171\u7ED5\u7EC4\u8FDE\u63A5\u70B9", "series/common junction"],
5084
- ["\u4E2D\u538B\u51FA\u7EBF", "MV line lead"],
5075
+ ["\u4E32\u8054\u7ED5\u7EC4\u4E2D\u538B\u7AEF", "series winding, MV end"],
5076
+ ["\u4E2D\u538B\u51FA\u7EBF", "MV line"],
5085
5077
  ["\u5F00\u5173\u5728\u4E2D\u6027\u70B9", "tap at neutral"],
5086
5078
  ["\u5F00\u5173\u5728\u7EBF\u7AEF", "tap at line end"],
5087
5079
  ["\u5F00\u5173\u5728", "tap at "],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oltc-selector",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "description": "OLTC/OCTC type selection CLI. No prices. Same engine as the web app.",
5
5
  "bin": {
6
6
  "oltc": "bin/oltc.js"