Coder Social home page Coder Social logo

technologicat / orderfix Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 104 KB

Reorder solutions of parametric studies to make continuous curves

License: BSD 2-Clause "Simplified" License

Python 100.00%
python python2 python3 python27 python34 cython eigenvalues postprocessing numpy

orderfix's Introduction

Example

Figure. Orderfix applied to an example problem. Legend: gray = before, black = after.

orderfix

Reorder solutions of parametric studies (assumed to be in random order) to make continuous curves.

The common use case is postprocessing of numerically computed eigenvalues from parametric studies of linear PDE boundary-value problems. The ordering of the numerically computed eigenvalues may suddenly change, as the problem parameter sweeps through the range of interest.

The reordering allows the plotting of continuous curves, which are much more readable visually than scatterplots of disconnected points.

The simple distance-based algorithm implemented here may fail in regions where the solutions cluster closely together, but for the most part of the data, it usually works well.

For a discussion of this issue and some more algorithms, see Jeronen (2011), On the mechanical stability and out-of-plane dynamics of a travelling panel submerged in axially flowing ideal fluid: a study into paper production in mathematical terms, Jyväskylä Studies in Computing 148, University of Jyväskylä, ISBN 978-951-39-4596-1.

Usage summary

Basically:

import orderfix
orderfix.fix_ordering(data)

See orderfix_test.py for a usage example, complete with test data generation.

Installation

From PyPI

Install as user:

pip install orderfix --user

Install as admin:

sudo pip install orderfix

From GitHub

As user:

git clone https://github.com/Technologicat/orderfix.git
cd orderfix
python setup.py install --user

As admin, change the last command to

sudo python setup.py install

Dependencies

License

BSD. Copyright 2016-2017 Juha Jeronen and University of Jyväskylä.

Acknowledgement

This work was financially supported by the Jenny and Antti Wihuri Foundation.

orderfix's People

Watchers

 avatar  avatar  avatar

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.