Giter Club home page Giter Club logo

fpotencia's Introduction

fPotencia --- A Library for Power System Load Flow Analysis

About

fPotencia is a C++ library that helps to define a power grid and perform power system load flow analysis on it. It currently offers two Newton-Raphson solver algorithms:

  • Newton-Raphson using polar coordinates (including µ acceleration parameter)
  • Newton-Raphson with current injection

Building and Installing

Prerequisites

  • CMake >= 3.0.0
  • Eigen >= 3.2.8
  • Boost.Graph >= 1.59.0

Optionally, if you want testing:

  • GTest

Optionally, if the API documentation is desired:

  • Doxygen (for API documentation)

Of course, a working C++ compiler and the C++ Standard Template Library is also required. The C++ compiler must understand C++11.

Building

To create a release build of a shared library, e.g., for packaging, issue:

mkdir Build && cd Build
cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_SHARED_LIBS=ON \        # If OFF, a static lib will be built
    ..
make
make test                           # Optionally
make doc                            # Optionally
make install

If you would like to contribute to fPotencia, -DCMAKE_BUILD_TYPE=Debug is obviously the preferred choice.

Getting Started

The best way to get an immediate overview of how fPotencia works is to check out the test grid definitions in test/SolverTest.cpp. They show how a grid is defined.

Of course, for a deeper dive, the API documentation is preferrable. However, if you just want to use fPotencia to perform a load flow analysis of a grid you supply, the example grids in test/SolverTest.cpp are the only instruction you're going to need.

Roadmap

0.9

  • API overhaul
  • Performance Improvements

1.0

  • More test cases
  • Reliable PV <-> PQ switching

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.