patchGNU Octave - Patches: patch #8102, wrappers for stiff ode solvers

 
 

patch #8102: wrappers for stiff ode solvers

Submitted by:  Carlo de Falco <cdf>
Submitted on:  Thu 04 Jul 2013 04:54:43 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 05 Apr 2014 02:57:12 AM UTC, comment #4:

Hi Carlo,

Yea, that's seems doable. I will start looking at it in a few days. Thanks!

Pooja Rao <prao>
Fri 04 Apr 2014 09:19:30 AM UTC, comment #3:

Hi,

thanks for the patch!

Sundials already comes with a set of mex-files that can be run in Octave as well as in Matlab.

I think it would be less work for the Octave maintainers to maintain the code if the interface was constructed as an m-file
calling the sundials mex interface.

do you think you would be able to work it out that way?

c.

Carlo de Falco <cdf>
Project Member
Fri 04 Apr 2014 07:21:56 AM UTC, comment #2:

This is the beginnings of a blueprint for the wrapper for IDA (Sundials). It has not been linked into Octave, tested or compiled yet. I'm putting it up in this initial form for reference as Jordi GH had asked for C++ sample code from me. This wrapper implementation is being modeled after the DASSL wrapper structure. I will continue working on this as it is part of my larger project and still needs quite a lot of work. My next goal is to get it to link and compile with Octave. Thanks!

(file #31119)

Pooja Rao <prao>
Mon 24 Mar 2014 05:09:27 PM UTC, comment #1:

This is an initial changeset for function ode15s (from jwe's implementation
patch #8102) to the ode-pkg. I have added two options ('InitialStep' and
'MaxStep') to this function along with changing the way it outputs its
solution. Earlier, it would take [tstart tfinal] as the time input vector and
produce output only at tstart and tfinal (because it uses LSODE /DASRT). To
make it produce solution values at points between tstart and tfinal, I used
linspace in the ode15s file. This is a temporary workaround. I also added a
test and a couple of demos at the end.

The following is a brief list of TO-DOs for ode15s:

1) Add options to make it more Matlab compatible
2) Replace linspace with a more adaptive output
3) Replace LSODE with DASPK/DASRT so it solves DAEs.
In its current form it uses DASRT but only when the 'Events' option is
non-empty.

Thanks!

(file #31026)

Pooja Rao <prao>
Thu 04 Jul 2013 04:54:43 PM UTC, original submission:

These functions are a starting point for the implementation of
matlab compatible ode15i and ode15s solvers.
They are just simplistic wrappers around dassl and daspk so there
is still work to be done before they can be committed.

Carlo de Falco <cdf>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #31119:  wrapperIDA.tar added by prao (10kB - application/x-tar)
file #31026:  added_ode15s.diff added by prao (6kB - text/x-diff)
file #28486:  ode-wrappers.tar.gz added by cdf (2kB - application/x-gzip)

 

Depends on the following items: None found

Digest:
   patch dependencies.

 

Carbon-Copy List
  • -unavailable- added by prao (Updated the item)
  • -unavailable- added by cdf (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Apr 2014 07:21:56 AM UTCpraoAttached File-=>Added wrapperIDA.tar, #31119
    Mon 24 Mar 2014 05:09:27 PM UTCpraoAttached File-=>Added added_ode15s.diff, #31026
    Mon 24 Mar 2014 07:46:15 AM UTCcdfDependencies-=>patch #8418 is dependent
    Thu 04 Jul 2013 04:54:43 PM UTCcdfAttached File-=>Added ode-wrappers.tar.gz, #28486

    Back to the top


    Powered by Savane 3.1-cleanup