diff --git a/src/components/Toolbox/MagneticSummary.vue b/src/components/Toolbox/MagneticSummary.vue index 956abcbb..59e08c30 100644 --- a/src/components/Toolbox/MagneticSummary.vue +++ b/src/components/Toolbox/MagneticSummary.vue @@ -427,6 +427,34 @@ export default { return steps; }, + windingTerminations() { + const windings = this.mas?.magnetic?.coil?.functionalDescription || []; + // One step per connection, grouped by winding (in functionalDescription + // order): "Start of"/"End of" to , e.g. "Start of Primary to Pin 3". + const result = []; + windings.forEach((winding, index) => { + const name = toTitleCase(winding.name?.toLowerCase() || `Winding ${index + 1}`); + const connections = winding?.connections || []; + connections.forEach((c, ci) => { + const type = c.type || 'Pin'; + const pin = (c.pinName != null && c.pinName !== '') ? c.pinName : '?'; + // Connections are ordered start-then-finish: the first is the + // winding's start lead, the last is its end lead. + let prefix = ''; + if (ci === 0) { + prefix = 'Start of '; + } else if (ci === connections.length - 1) { + prefix = 'End of '; + } + result.push({ + step: result.length + 1, + description: `${prefix}${name} to ${type} ${pin}`, + icon: 'bi-plug-fill' + }); + }); + }); + return result; + }, performanceData() { const data = []; const outputs = this.mas?.outputs?.[0]; @@ -974,6 +1002,21 @@ export default { + +
+

Winding Termination

+
+
+
{{ step.step }}
+
+ +
+
{{ step.description }}
+
+
+
+