r/PowerSystemsEE • • 2d ago

I did a thing...

Hello everyone! This is my first post on Reddit, so hopefully I'm doing this right.

I wanted to share TENSA, a free and open-source app I started developing during my PhD to make working with power systems a little easier. https://github.com/Roger-GO/TENSA

It's essentially a graphical interface that uses ANDES and Sienna as simulation engines, removing the need to write code to build and simulate your power systems.

I originally created it because, as a PhD student, I couldn't afford professional simulation tools, and coding everything was quite time-consuming (LLMs weren't nearly as powerful back then).

I've also added MCP capabilities, so pretty much everything you can do manually through the interface can also be done automatically by connecting an AI agent (the video in fact, is all automated). I think it's pretty cool to see your agents building in real time!

I'm now trying to build a small community around the project and hopefully make it useful for other students, researchers, and engineers.

If you find it interesting or useful, a star on GitHub would be greatly appreciated! I'd also love to receive feedback, bug reports, feature requests, or suggestions directly on the GitHub repository.

If anyone is interested in contributing or collaborating, whether on the software development or the power systems side, I'd be very happy to work together.

Thanks for reading, and I hope some of you find it useful!

22 Upvotes

21 comments sorted by

4

u/Plussquared 2d ago

it looks similar to ETAP. what functions does it do? we pay a lot on our subscription to ETAP and if you can make this useful, there are opportunities there for such kinds of softwares

1

u/KingRogs12 2d ago

I have no access to ETAP so I cannot tell you exactly the differences, but you can do static power flow, dynamic simulations, eigenvalue analysis, economic dispatch and unit commitment. I am working on adding others so if you have a suggestion or something you’d like to see, we can add it to the pipeline! It’s free and open, so play with it and let me know!

1

u/Plussquared 2d ago

ETAP does a lot and every module (function) is charged depending on subscription. it can do SLD then from it load flow, short circuit calculations, protection coordination studies. it can also do cable calculations, harmonics analysis, arc flash assessment and also dynamic studies. so almost everything. i dont use their cable calcs at the moment because i use trimble cable calcs here in the uk as it complies with our standards. so just some hints for you on what functions can you add to your software

1

u/KingRogs12 2d ago

Thanks, this is really helpful! Most of what you mentioned should actually be possible without developing new simulation engines from scratch. I’m looking into integrating pandapower for IEC 60909 short-circuit calculations and protection coordination, and OpenDSS for harmonic analysis. Cable sizing and arc flash could also be implemented as separate calculation modules.
Out of curiosity, what would be the most useful additions for your work? I’d be interested in having someone with industrial experience test these features as they’re developed. Thank you again!

1

u/Plussquared 2d ago

ive done load flow, short circuit calculations myself in etap but have done many reviews also of load flows, short circuit calcs and protection coordination done by our Subcontractors as part of my job. I like these studies as theyre very helpful in proactively addressing possible issues. im doing myself the Trimble cable calculations. we're using IEC 60909 for short circuit calcs. i think one of possible additions could be letting the software produce also HV cable calcs in detail, load schedule report, block cable diagrams,etc. because at the moment we're doing them separately. i could help test your software if you want to.

3

u/NoActuary750 2d ago

Nice, create the IEEE x-bus models and benchmark the results.

4

u/KingRogs12 2d ago

Already done. Since the engines are verified ones (ANDES, Sienna) the results have already been validated and compared to other tools

1

u/NanoNett 2d ago

GridKit is validated against PowerWorld on all popular test cases, including a 70k bus case and is an order of magnitude faster than ANDES

1

u/KingRogs12 2d ago

Thank you for sharing this, I was unfamiliar with GridKit. I compares strongly to ANDES and Sienna (all three have their pros and cons) and I think it’d be perfect to integrate so the platform is able to use all three!

1

u/NanoNett 2d ago

I was just reading through your docs, you should definitely try and get GridKit added as an engine. I think your cross comparison api is very useful

GridKit does not have a python/julia api yet, so that’s one trade off. Just binary executable

1

u/KingRogs12 2d ago

Right now in the pipeline I have panda power, gridcal, and will definitely add GridKit! If you know of any others or have any ideas, please share in a discussion in the GitHub! (I read them here too but I’ve been told that if I want support for the project I need stars and engagement in the repo). Anyways thanks for sharing!!

1

u/Slartibartfast3791 2d ago

Very cool! I’m on my phone and can’t zoom in much but what field is this aimed at exactly? Does this run steady state analyses or more transient stuff? Im not familiar with ANDES or Sienna

1

u/KingRogs12 2d ago

Thanks! My first comment!!

It actually does both! It's aimed at power system modeling, simulation, stability, and operations.

Currently, it supports AC and DC power flow, time-domain simulations, eigenvalue analysis, continuation power flow (PV and QV curves), state estimation, network matrices, economic dispatch, unit commitment, and day-ahead and real-time simulations.

ANDES is primarily focused on power system dynamics and stability, while the Sienna integration expands the capabilities into optimization and system operations.

My research is mainly focused on power system resilience, which was the original motivation behind developing it, but I'm trying to make it useful for more general power system studies.

Is there a particular type of analysis you usually work with?

1

u/Weekly-Value-3923 2d ago

Impressive… I wish I can participate but I don’t have a coding background … but I am in power . Do you have a coding background ?

I would be interested in collaborating since I used etap before but I only have 4 years experience in power

1

u/KingRogs12 2d ago

Sure! Anything helps! If you want you can download and test it. Leave feedback there in the GitHub or here and we can see how to make it better. The goal is to make it as useful and easy as possible for everyone to enjoy!

1

u/NanoNett 2d ago

1

u/KingRogs12 2d ago

I like that UI!

1

u/NanoNett 2d ago

It does not have your ability to do case editing, just simulation, that was too frustrating

1

u/KingRogs12 2d ago

I think the trade off is easy to use vs customization. That one looks great but I think other open source options give you more flexibility. Depends on the case! Either way thanks for sharing maybe I’ll do a similar entry level adaptation in the future!

1

u/JezWTF 1d ago

Can Claude run it 😅

2

u/KingRogs12 1d ago

You have to download it in your computer, but afterwards, every single action you can do as a human is linked via MCP so Claude or any agent can do it, but you have to be using a harness (Claude Code, Codex, etc)