Questions tagged [odeint]

Odeint is a modern C++ library for numerically solving Ordinary Differential Equations.

Odeint is designed in a very flexible way such that the algorithms are completely independent of the underlying containers and even from the basic algebraic computations. That means odeint works not only with the standard containers like vector< double > or array< double , N > but also nicely cooperates with many other libraries.

Odeint can solve ODEs on GPUs by using nVidia's CUDA technology.

512 questions
0
votes
0 answers

cannot compile boost edeint codeblock c++

I am trying to compile the following example from ODEINT library. I downloaded and installed the boost library and then add path to CodeBlocks as guided by some of threads online. However, errors still occur. I am very grateful if you can please…
hn.phuong
  • 835
  • 6
  • 15
  • 24
0
votes
1 answer

Using Odeint to Graph Figures Using Differential Equations

I am extremely new to any coding and am having a lot of python issues (python 3). I am trying to recreate figures in a scientific paper relating to HIV. They have used a computer simulation of there model which I have to recreate. I keep changing…
0
votes
1 answer

How to use odeint solver with system using inheritance and virtual operator()

I have recently been implementing one of the vehicle control algorithms that solves the "steering to the point" problem. The algorithm itself involves multiple matrix ODE solving and I wanted to implement my main algorithm class in such a way that…
pptaszni
  • 5,591
  • 5
  • 27
  • 43
0
votes
1 answer

Understanding scipy.integrate,odeint wrapper odeintw

I'm trying to solve a coupled non-linear system of 4 PDEs, here's the code: import numpy as np import matplotlib.pyplot as plt from scipy.integrate import odeint from odeintw import odeintw # constants global rH, L, q, p, Q, mu rH = 1.0 ; L = 1.0 ;…
user40689
  • 181
  • 7
0
votes
1 answer

How can I get dy/dt from odeint of SciPy

I want to get dy/dt from odeint of SciPy as well as y itself. I understand that odeint gets the solution of dy/dt=func(y0,t). However, I also need to get dy/dt too. I am dealing with a structural dynamic system in which: y : displacement dy/dt :…
0
votes
0 answers

Python odeint: Excess work done on this call (perhaps wrong Dfun type)

I'm trying to solve a differential equation with odeint and for certain outputs, I get the message: "Excess work done on this call (perhaps wrong Dfun type)." I've run the function with full_output=1 and this is what I get: lsoda-- at current t…
cperfumo
  • 21
  • 1
  • 4
0
votes
0 answers

Solving a 2nd order non-linear ODE with Python?

My Equation that I'm trying to solve is of the form: y''(t)=Ccos(y(t)) + Dsin(y(t)) y'(0)=45 y(0)=0 where C=0.2544 and D=2.544 How do I go about solving this? I am really just completely lost here, and I've tried everything I could. I'm really just…
reyjoiner
  • 1
  • 2
0
votes
0 answers

timestep variable in ODEINT

First let me apologize if this is a simple question, or it has been answered before. The truth is that I don't even know how to run a search about my question. Let's say I have the following set of coupled ODE: dN/dt = (hN(t) + iQ(t))*G(t) dQ/dt =…
0
votes
0 answers

Odeint with precompiled headers in Mingw fails

I can't compile my project when I include in a precompiled header and compile using Mingw4.9.2-32bit (from Qt 5.4). The precompiled file is about 200 MB (huge!). The error message I get from the…
spacemig
  • 82
  • 8
0
votes
0 answers

C++ odeint: columns of output variables randomly are returned as NaN

I use C++ and odeint to solve a set of differential equations. I compile the code in Matlab using mex and g++ on Mac OS X. For some time everything worked perfectly, but now something curious is happening: I can run the same simulation (with the…
0
votes
1 answer

error C4996: 'std::_Copy_impl': is it safe to disable it?

I'm using odeint boost for solving differential equations. In visual studio 2010, there is no errors showing up but when I use visual studio 2013, I get this error xutility(2132): error C4996: 'std::_Copy_impl': Function call with parameters that…
CroCo
  • 5,531
  • 9
  • 56
  • 88
0
votes
1 answer

How can I solve a second order ODE in python when state vector is made of vectors?

I'm trying to "translate" a Simulink model (built to solve a second order ODE and shown in the picture below) into python. inW and inT are vectors of dimensions [1601x2], gains MFW and MFT have dimension [2x1] and gains MC and MK have dimension…
S88S
  • 127
  • 1
  • 2
  • 6
0
votes
1 answer

ode solver with fixed step size

I would like to know whether the step size in odeint is fixed or not. In stepper The basic stepper concept. A basic stepper following this Stepper concept is able to perform a single step of the solution x(t) of an ODE to obtain x(t+dt) using…
CroCo
  • 5,531
  • 9
  • 56
  • 88
0
votes
0 answers

Invalid Static Cast Error Message in odeint Codes

Here is the C++ code taken from odeint documentation: https://raw.githubusercontent.com/headmyshoulder/odeint-v2/master/examples/gmpxx/lorenz_gmpxx.cpp After compile and link through the following command: g++ -Wall -o lorenz_gmpxx…
Benjamin
  • 145
  • 8
0
votes
2 answers

Pass an array in python odeint

I am quite new to Python, so do excuse me if the following question has a 'duh' answer. So, I'm trying to solve an ODE using odeint and wish to pass an array. But, the TypeError: can't multiply sequence by non-int of type 'float' keeps cropping up,…
MacGuffin
  • 33
  • 1
  • 6