Menu

ODE solver in DWSIM

The One
2019-05-08
2019-12-21
  • The One

    The One - 2019-05-08

    Hi,
    I am trying to model a batch reactor in DWSIM using python. I was not able to understand the syntax for ode solver given in example code by Daniel. Can someone just write the code on how to solve ODE with all appropriate import statements? Thank you

     
  • The One

    The One - 2019-05-08

    Thanks for replying. What modules should be imported for the above code to run?
    I am getting error "name "OdeFunction" not defined". I am working on version 5.7, update 12.

     
  • Daniel Medeiros

    Daniel Medeiros - 2019-05-08
    import clr
    clr.AddReference('DWSIM.MathOps.DotNumerics')
    
    from DotNumerics import *
    
     
  • The One

    The One - 2019-05-08

    I am still getting the same error: "name "OdeFunction" not defined".

     
  • The One

    The One - 2019-05-08

    Would be gr8 if u could once see the file.

     
  • The One

    The One - 2019-05-08

    Thank you very much. This solved my problem.

     
  • The One

    The One - 2019-05-09

    In RungeKutta45 method, what does exception :larger nmax needed means?

     
  • Mario Cilento

    Mario Cilento - 2019-12-21

    but can we use other python libraries to extend calculation capabilities?

    i mean with scipy one can use odesolver, with numpy one can manage better arrys ... even to elaborate a linear interpolation i am writing by myself the interpolation with python lists (it is time consuming).

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.