CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Solving ODE with variable parameters (

Aleksey_R November 20, 2013 18:24

Solving ODE with variable parameters
Greetings, Dear FOAMers!

In my task I have to solve a system of ODE every step. Some parameters of these ODE are determined every time step. That means that I have to send values of these parameters to solver every time step. Is it possible in OF?

I failed to find how to send the parameter values into ODESolver every time step. Please, help.

Best regards,

wyldckat November 26, 2013 18:26

Greetings Aleksey,

I'm not sure if this helps solve your problem, but have you looked at the source code file "applications/test/ODE/Test-ODE.C"?

Best regards,

Aleksey_R November 28, 2013 16:47

Dear Bruno,

many thanks for your reply!

This example didn't help me. However, now I understand how to do what I want. I just add a number of variables into ODE model.

Best regards,

All times are GMT -4. The time now is 00:01.