Difference between revisions of "Ubuntu Installation"

From GridPACK
Jump to: navigation, search
(Be more specific about the Ubuntu distribution)
(GridPACK Installation on Ubuntu Linux 16.04 LTS)
Line 25: Line 25:
  
 
<pre>mpiexec -np 4 /usr/bin/pf.x</pre>
 
<pre>mpiexec -np 4 /usr/bin/pf.x</pre>
 +
 +
Other GridPACK applications that can be found in <tt>/usr/bin</tt> are contingency analysis (<tt>ca.x</tt>), dynamic simulation (<tt>dsf.x</tt>), and state estimation (<tt>stes.x</tt>). Additional example inputs for the GridPACK applications can be found under <tt>/usr/share/gridpack/example</tt>.
 +
 
GridPACK can be removed with
 
GridPACK can be removed with
  
 
<pre>sudo apt-get purge gridpack-dev
 
<pre>sudo apt-get purge gridpack-dev
 
sudo apt autoremove</pre>
 
sudo apt autoremove</pre>

Revision as of 21:14, 18 June 2018

GridPACK is relatively easy to install on an Ubuntu Linux system. Working packages for GridPACK prerequisites are available from standard repositories. If you do not need to modify the GridPACK source, e.g. just use the GridPACK example applications or build your own application, you can install the binary package from the GridPACK PPA.

Currently, only 64-bit (AMD64) Ubuntu 16.04 is supported, which is a long term support (LTS) release which will be supported until 2021. If you are installing Ubuntu on a system or virtual machine, download the 16.04 LTS Desktop AMD64 distribution and follow the installation instructions.

GridPACK Installation on Ubuntu Linux 16.04 LTS

Add the PPA to your system, and install GridPACK with

sudo add-apt-repository ppa:wperkins/gridpack-ppa
sudo apt-get update
sudo apt-get install gridpack-dev

To use GridPACK, you will also need to install CMake:

sudo apt-get install cmake

Make sure your installation works by building and running one of the several example applications, e.g. power flow:

mkdir tmpbuild
cd tmpbuild
cmake /usr/share/gridpack/example/powerflow
make
mpiexec -np 4 ./powerflow.x

Also, you can run the installed powerflow application on this same input:

mpiexec -np 4 /usr/bin/pf.x

Other GridPACK applications that can be found in /usr/bin are contingency analysis (ca.x), dynamic simulation (dsf.x), and state estimation (stes.x). Additional example inputs for the GridPACK applications can be found under /usr/share/gridpack/example.

GridPACK can be removed with

sudo apt-get purge gridpack-dev
sudo apt autoremove