vvkozlov / SteamCracking

Attempt to create rigorous Steam Cracker model
0 stars 0 forks source link

Use advanced integration method #10

Closed vvkozlov closed 1 year ago

vvkozlov commented 2 years ago

Use 4th order Runge-Kutta method

I need to figure out equation form. It needs to be written in form: dy/dx = f(x, y). What is 'x', and what is 'y'?

vvkozlov commented 2 years ago

Define equation as a function inside Reactor method.

vvkozlov commented 2 years ago

Define integration methods as a separate global functions.

vvkozlov commented 2 years ago

Try Runge-Kutta-Fehlberg method.

https://habr.com/ru/post/418139/ https://github.com/FerusMagnus/Runge-Kutta-Fehlberg_method/blob/master/Runge-Kutta-Fehlberg.py https://en.wikipedia.org/wiki/Runge–Kutta–Fehlberg_method