Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library
- using Intel ODE solver when the variables are vectors

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Bo_Q_

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-27-2014
10:28 AM

69 Views

using Intel ODE solver when the variables are vectors

Hi

I am trying to use the intel ODE solver dodesol to solver a set of ODEs. I have run the example and it runs fine. The problem is the example only shows when the variables are scalars. For example:

Y1' = f1(Y1,t)

Y2' = f2(Y2,t)

The example shows how to use it when Y1 and Y2 are two numbers. What if each of them are 1D, 2D or 3D arrays? Is there an example for that?

Thanks

Bo

Link Copied

1 Reply

mecej4

Black Belt

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

08-27-2014
11:50 AM

69 Views

The example code included with the download is for the 2nd order equation of van der Pol.

You have to pack all your dependent variables into a one-dimensional array. If Y_{1} = (y_{11}, y_{12}) and Y_{2}=(y_{21}, y_{22}, y_{23}), for example, your two vector differential equations have two and three components, respectively. Define Y = (Y_{1}, Y_{2}) = (y_{11},y_{12},y_{21,}y_{22},y_{23}) and write code to compute the derivatives of these five components of Y.

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.