CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Solving ODE with variable parameters (http://www.cfd-online.com/Forums/openfoam-programming-development/126569-solving-ode-variable-parameters.html)

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,
Aleksey.

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"? https://github.com/OpenFOAM/OpenFOAM...ODE/Test-ODE.C

Best regards,
Bruno

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,
Aleksey.


All times are GMT -4. The time now is 16:34.