PowSyBl (Power System Blocks) is an open source framework written in Java, that makes it easy to write complex software for power systems’ simulations and analysis. Its modular approach allows developers to extend or customize its features.
PowSyBl is part of the LF Energy Foundation, a project of The Linux Foundation that supports open source innovation projects within the energy and electricity sectors.
Read more at https://www.powsybl.org !
This project and everyone participating in it is governed by the PowSyBl Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to firstname.lastname@example.org.
The project contains both Java and C++ modules. If you are only interested in the Slurm computation manager, you can build the Java part only. If you're also interested in the MPI computation manager, you need to compiler C++ modules also.
To build the Java modules, you need the following requirements:
- JDK (1.8 or greater)
- Maven (3.3.9 or greater)
$> yum install java-1.8.0-openjdk maven
To build the C++ modules, you need the additional requirements:
- CMake (2.6 or greater)
- A recent C++ compiler (GNU g++ or Clang)
- OpenMPI (1.8.3 or greater)
- Some development packages (zlib, bzip2)
$> yum install bzip2 bzip2-devel cmake gcc-c++ make wget zlib-devel
In order to support the MPI modules, you need to compile and install the OpenMPI library.
$> wget http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.3.tar.bz2 $> tar xjf openmpi-1.8.3.tar.bz2 $> cd openmpi-1.8.3 $> ./configure --prefix=<INSTALL_DIR> --enable-mpi-thread-multiple $> make install $> export PATH=$PATH:<INSTALL_DIR>/bin $> export LD_LIBRARY_PATH=<INSTALL_DIR>/lib:$LD_LIBRARY_PATH
Simple Java Build
If you're interested in the Slurm computation manager only, you can easily compile the project using the following command:
$> mvn package
We provide a toolchain to help people to build this project. This toolchain downloads thirdparties (boost, libarchive,
log4cpp, protobuf) from the Intenet, compiles both Java and C++ modules and create an iTools distribution. It's a
standalone external folder that contains all the built objects required to run powsybl programs through the itools
command-line interface. This repository contains the
install.sh script to do so easily. By default, the
will download dependencies from the Internet, compile code and finally copy the resulting iTools distribution to the
This will run both the C++ build and the java build and copy their results to the install folder.
A more detailled description of the install.sh script options follows:
|clean-thirdparty||Clean the thirdparty libraries|
|package||Compile modules and create a distributable package|
|install||Compile modules and install it|
|docs||Generate the documentation (Doxygen/Javadoc)|
|help||Display this help|
The install.sh script options are saved in the install.cfg configuration file. This configuration file is loaded and updated each time you use the install.sh script.
|--help||Display this help|
|--prefix||Set the installation directory||$HOME/powsybl|
|--with-thirdparty||Enable the compilation of thirdparty libraries|
|--without-thirdparty||Disable the compilation of thirdparty libraries|
|--thirdparty-prefix||Set the thirdparty installation directory||$HOME/powsybl_thirdparty|
|--thirdparty-download||Sets false to compile thirdparty libraries from a local repository||true|
|--thirdparty-packs||Sets the thirdparty libraries local repository||$HOME/powsybl_packs|
Default configuration file
# -- Global options -- powsybl_prefix=$HOME/powsybl # -- Thirdparty libraries -- thirdparty_build=true thirdparty_prefix=$HOME/powsybl_thirdparty thirdparty_download=true thirdparty_packs=$HOME/powsybl_packs