lorenzo bolla’s blog

April 14, 2008

bvp

Filed under: programming — Tags: , , — lbolla @ 8:04 pm

for you, Python lover, who always needs Matlab functions: boundary value problems are not a problem anymore.

Googling for a bvp4c clone, I ended up here:

This is a Python wrapper for a modified version of the COLNEW boundary value problem solver by U. Ascher and G. Bader. Modifications made include vectorization over mesh points and better compatibility with Python.

there are little differences in the usage, though. I tried to reproduce the examples in this tutorial, to clarify things. You can download the first two examples here.

enjoy!

4 Comments »

  1. I too was very happy to find this. I am sorta surprised it has not been made into a SciPy component.

    Comment by jsalvati — November 4, 2008 @ 2:28 pm

  2. Thanks for adapting the two first examples. They helped me significantly in understanding how to formulate the boundary conditions the right manner.

    As I needed solve a problem with unknown parameters I tackled example 3 which dedicates to that topic.

    http://paste.pocoo.org/show/102102/

    Comment by bastian weber — January 31, 2009 @ 12:02 pm

  3. Hi,

    Thanks. It is great that such a numerical tool is around. I tried to install but there is a problem when I built it. The numerical libraries aren’t in the path.
    I am running a Ubuntu Intrepid and I installed the a bundle (Enthought) that included numpy and scipy. Any idea?

    Comment by Mauricio Angeles — March 5, 2009 @ 12:16 am

  4. Hi Mauricio.
    I installed sooo much time ago… by compiling everything from scratch.
    What libraries are you missing?

    Comment by lbolla — March 5, 2009 @ 1:48 am


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.