The browser editor of Electrisim, a web application for drawing power system single-line diagrams and running engineering studies on them: load flow, short circuit, protection, stability, grid connection and sizing studies.
The editor is built on draw.io (mxGraph). Electrisim adds the electrical symbol library, the element and study dialogs, and the result views. The studies run on the backend (pandapower, OpenDSS, ANDES, OpenDER).
- 🌐 Application: app.electrisim.com
- 📖 Documentation: electrisim.com/documentation.html
- 📁 Backend repository: electrisim/appElectrisimBackend
- 🏷️ Current release: 1.24.0
Electrisim is made for desktop browsers. Phone and tablet visitors see a notice that it works best on a computer.
| Group | Studies |
|---|---|
| Power Flow | Load Flow (pandapower or OpenDSS) · Contingency Analysis · Time Series Simulation · Optimal Power Flow |
| Short Circuit & Protection | Short Circuit (IEC 60909 with breaking current, DC component and IEC 62271-100 breaker check; ANSI/IEEE C37; OpenDSS) · Protection Coordination · Arc Flash (IEEE 1584) |
| Stability & Dynamics | Voltage Stability Margin (P-V curves) · Motor Starting · Transient Stability (ANDES) · Eigenvalue Analysis (ANDES) · Grid-Forming STATCOM EMT Test |
| Grid Connection & Power Quality | Grid Code Compliance (P-Q) · Grid Code Compliance (V-Q) · Weak Grid Connection (CIGRE TB 671) · Harmonic Analysis |
| Planning & Sizing | BESS Studies (Preliminary Design, Sizing for Busbar Requirements, Dispatch Reversal with OpenDER) · Grid-Forming STATCOM Sizing · Data Center Site Screening (Beta) · Economic Analysis |
Each study dialog remembers its last settings. Short circuit, protection coordination and motor starting can run at 50 or 60 Hz.
Bus, External Grid, Generator, Static Generator, PV System, Wind Turbine, Storage, Load, Motor, two- and three-winding Transformer (with type libraries), Line (with a line/cable library), Impedance, Ward and Extended Ward, Shunt Reactor, Capacitor, Switch, Measurement, SVC, TCSC, SSC/STATCOM, VSC and back-to-back VSC, DC bus, DC line, DC load and DC source, plus asymmetric loads and generators and OpenDSS single-phase elements. Controllers: park controller, plant supervisory controller, storage controller, wind turbine controllers, and OpenDSS RegControl/CapControl.
- Result boxes next to each element, and colouring of the diagram by loading and voltage
- Power flow direction arrows and load-flow animation
- Network health dashboard and scenario comparison
- Time series playback, fault current waveforms and line current characteristics
- Multi-page PDF engineering report
- Export of the network as a pandapower Python script, of pandapower/OpenDSS results, and of OpenDSS commands
- File > New opens a gallery of 63 templates with previews and network facts: IEEE/MATPOWER test cases (case4gs to case3120sp, IEEE 118, Illinois 200, GB network), CIGRE networks, distribution and low-voltage networks, industrial plants, renewables (onshore wind, offshore wind up to 1 GW, PV, hybrid PV + BESS, small hydro, islanded microgrid), and tutorials.
- Import of pandapower
.pyscripts and OpenDSS.dssfiles. - Map editor to draw a network on a map and turn it into a diagram.
Sign-up and login, with Stripe subscriptions (Personal, Company and Academic). Running studies needs an active subscription.
| Editor | draw.io / mxGraph, plain JavaScript (ES modules for the Electrisim code) |
| Tables | AG Grid Community |
| Payments | Stripe |
| Hosting | Cloudflare Pages (_headers, _redirects, _routes.json) |
| Tooling | Node.js, Terser for minification |
appElectrisim/
├── src/main/webapp/
│ ├── index.html # Editor entry point
│ ├── js/app.min.js # draw.io app bundle with the Electrisim menus and actions
│ ├── js/electrisim/
│ │ ├── config/environment.js # Backend and API URLs for development and production
│ │ ├── dialogs/ # Study dialogs and results dialogs
│ │ ├── results/ # Result boxes, colouring, dashboard, report, compare, playback
│ │ ├── utils/ # Shared helpers
│ │ ├── loginsubscription/ # Auth and Stripe subscription
│ │ ├── map/ # Map editor
│ │ ├── *Dialog.js # Element dialogs
│ │ └── <study>.js # One module per study (loadFlow.js, shortCircuit.js, ...)
│ ├── templates/ # Template diagrams and gallery previews
│ ├── _routes.json, _routes.dev.json # Cloudflare Pages routes for production / development
│ └── _headers, _redirects # Cloudflare Pages headers and SPA fallback
├── scripts/ # Deploy, minify, template previews and tests
├── package.json
└── VERSION # draw.io base version
Requires Node.js (current LTS) for the scripts, and any static file server.
git clone https://github.com/electrisim/appElectrisimFrontend.git
cd appElectrisimFrontend
npm install
npm run deploy:dev # copies _routes.dev.json to _routes.json
# serve the web app, for example:
npx serve src/main/webapp -p 5501
# or
cd src/main/webapp && python -m http.server 5501Open http://localhost:5501. To run studies, start the backend with python app.py.
environment.js picks the environment by host name: app.electrisim.com is production, anything else is development.
| Environment | Simulation backend | Account / subscription API |
|---|---|---|
| Production | https://sim.electrisim.com |
https://api.electrisim.com/api |
Development on localhost / 127.0.0.1 |
http://127.0.0.1:5000 |
http://localhost:5502/api |
| Development on another HTTPS host | the VS Code dev tunnel | http://localhost:5502/api |
Add ?backend=local or ?backend=tunnel to the URL to override the simulation backend. The choice is kept in localStorage.
npm testRuns the Node tests in scripts/: result box placement, dashboard, report and compare smoke tests, HTML escaping, dialog form values, three-winding transformer sides, harmonic limits, fault waveforms, the template gallery and the mobile notice.
Production is served by Cloudflare Pages from this repository and deploys on push.
npm run deploy:prodThis minifies the Electrisim scripts listed in scripts/minify-js.js in place and copies the production routes file. Commit readable sources first; restore them with git checkout -- <file> if you need to keep editing.
After adding or changing a template in templates/index.xml, regenerate the gallery previews with node scripts/template-previews.js (instructions are at the top of the script).
Bug reports and feature requests go to GitHub Issues. For code:
- Create a branch.
- Study code lives in
src/main/webapp/js/electrisim/; menu entries and actions are injs/app.min.js. - Run
npm test, check the change in the browser against a local backend, and open a pull request.
Please follow the Code of Conduct.
Apache License 2.0, see LICENSE. The editor is based on draw.io by JGraph Ltd, also under the Apache License 2.0.
For the study engines and the API, see the backend repository.