01
Dev.to Kotlin
作者:Aleksandr Savichev
發布:07-17 12:46
From a Site Polygon to Short-Circuit Currents: Building a Substation Generator in Kotlin
Could software generate a plausible electrical substation layout, calculate the resulting short-circuit currents, and explain why the result makes engineering sense?
重點摘要
A Kotlin/Spring Boot prototype generates substation layouts from a site polygon and power inputs.
It combines genetic algorithms, A* routing, Ybus/Zbus fault calculations, and IEC 61850 SCL export.
An LLM assistant explains deterministic results, but does not perform the calculations itself.
This article describes a research prototype that turns a user-drawn site polygon into plausible substation layouts, preliminary electrical calculations, and IEC 61850 exports. Built with Kotlin, Spring Boot, JTS, MapLibre, and deck.gl, the system places major equipment with a genetic algorithm, routes cable trenches with A*, and computes short-circuit currents using Ybus/Zbus methods. The author manually verifies one fault case and then adds preliminary protection estimates and an LLM assistant that only explains results produced by deterministic code. The project is presented as an educational and conceptual tool, not a certified design package.
从场地多边形到短路电流:用 Kotlin 构建变电站生成器
软件能否生成可信的变电站布局、计算短路电流,并解释结果为何符合工程逻辑?
重點摘要
作者用 Kotlin/Spring Boot 开发原型,基于场地边界和需求功率生成变电站概念布局。
系统结合遗传算法、A* 路由、Ybus/Zbus 故障计算和 IEC 61850 SCL 导出。
LLM 助手只解释确定性代码生成的结果,不参与计算或编造公式。
这篇文章介绍了一个研究型原型:用户先绘制候选场地并输入功率需求、電压等级等参数,系统即可生成变电站的概念布局、初步电气计算以及 IEC 61850 模型。作者使用 Kotlin、Spring Boot、JTS、MapLibre 和 deck.gl,实现了主设备的遗传算法布置、电缆沟的 A* 走线,以及基于 Ybus/Zbus 的短路电流分析。文中还手工复核了一个故障工况,并加入初步保护整定估算与仅用于解释结果的 LLM 助手。该项目被定位为教育和概念验证工具,而非正式设计软件。
從場地多邊形到短路電流:以 Kotlin 打造變電站產生器
軟體能否生成合理的變電站配置、計算短路電流,並說明結果為何符合工程邏輯?
重點摘要
作者以 Kotlin/Spring Boot 開發原型,從場地邊界與電力需求生成變電站概念佈局。
系統結合遺傳演算法、A* 走線、Ybus/Zbus 故障計算與 IEC 61850 SCL 匯出。
LLM 助手只負責解釋確定性程式算出的結果,不自行推算或捏造數值。
本文介紹一個研究型原型,能依使用者繪製的場地多邊形與電力需求,自動生成變電站概念佈局、初步電氣計算與 IEC 61850 匯出。作者以 Kotlin、Spring Boot、JTS、MapLibre 與 deck.gl 實作,先用遺傳演算法配置主設備,再以 A* 規劃電纜溝,並透過 Ybus/Zbus 方法計算短路電流。文中也以人工方式交叉驗證故障案例,加入初步保護設定估算,以及僅負責解釋計算結果的 LLM 助手。整體定位為教學與概念驗證工具,而非正式設計系統。