PyRAMSES Installation
PyRAMSES (Python-based RApid Multithreaded Simulation of Electric power Systems) is a time-domain dynamic simulator for electric power systems. It provides a Python interface to the RAMSES simulation engine, enabling users to define test cases, run simulations, extract results, and perform post-processing—all within Python scripts or Jupyter notebooks.
PyRAMSES supports both Windows and Linux operating systems and integrates with standard scientific Python libraries (NumPy, SciPy, Matplotlib).
Installation
Section titled “Installation”Install PyRAMSES and all recommended dependencies via pip:
pip install matplotlib scipy numpy mkl jupyter ipython pyramsesFor a minimal installation (no plotting or notebook support):
pip install pyramsesMKL Dependencies
Section titled “MKL Dependencies”The simulator depends on the Intel Math Kernel Library (MKL) for LAPACK/BLAS and OpenMP. These are automatically installed as dependencies when installing via pip.
To verify MKL is available, run:
python -c "import numpy; numpy.show_config()"Look for blas_mkl_info or lapack_mkl_info in the output confirming MKL is linked.
Optional: Gnuplot for Real-Time Plots
Section titled “Optional: Gnuplot for Real-Time Plots”PyRAMSES can display observables in real-time during simulation using Gnuplot. This is particularly useful for long simulations to monitor progress.
sudo apt-get install gnuplot-x11brew install gnuplotDownload and install from gnuplot.info. Make sure the installation directory is added to your system PATH.
Platform Support
Section titled “Platform Support”| Platform | Library | Notes |
|---|---|---|
| Windows | ramses.dll | Primary platform, full support |
| Linux | ramses.so | Full support with gfortran/OpenBLAS |
Next Steps
Section titled “Next Steps”- API Reference — Full API documentation
- Examples — Practical usage examples