Repository navigation
Commit 9196f87
committed
feat: Pass OperatingPoint to StrayCapacitance for proper voltage scaling
Add new calculate_capacitance(Coil, OperatingPoint) overload that extracts
actual RMS voltages from the operating point excitations. This enables
correct electric field visualization with actual operating voltages instead
of hardcoded 10V reference.
Changes:
- Add calculate_capacitance(Coil, OperatingPoint) with validation
- Extract RMS voltages from winding excitations with exception handling
- Add private helper calculate_capacitance_with_voltages() for shared logic
- Update calculate_electric_field_sdf() to pass operating point
- Update test to use SDF_PHYSICS model for electric field visualization
The electric field now properly scales with actual operating voltage
(~676V RMS) showing visible color variation from blue (low) to red/yellow
(high field intensity).1 parent e45471a commit 9196f87
4 files changed
Lines changed: 71 additions & 10 deletions
File tree
- src
- physical_models
- support
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1452 | 1452 | | |
1453 | 1453 | | |
1454 | 1454 | | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
1455 | 1495 | | |
1456 | 1496 | | |
1457 | 1497 | | |
| |||
1460 | 1500 | | |
1461 | 1501 | | |
1462 | 1502 | | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | 1503 | | |
1471 | 1504 | | |
1472 | 1505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
2173 | 2174 | | |
2174 | 2175 | | |
2175 | 2176 | | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
2176 | 2199 | | |
2177 | 2200 | | |
2178 | 2201 | | |
| |||
2184 | 2207 | | |
2185 | 2208 | | |
2186 | 2209 | | |
2187 | | - | |
| 2210 | + | |
2188 | 2211 | | |
2189 | | - | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
2190 | 2216 | | |
2191 | 2217 | | |
2192 | 2218 | | |
| |||
0 commit comments