Finally, after consulting with various electrical engineers and physicists (not being an expert myself), I’ve written the base code for Electrodyanmic’s (EDX) electrical grid. The mechanical system in EDX has also been changed to use more realistic values and fit the brand new motor/generator design, which uses concepts of motor and counter-electromotive force to create a fluid system that balances out. Here’s a video of it:
There will definitely be more electrical components in EDX: transformers, resistors, diodes. You name it!