CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Solving ODE with variable parameters

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Aleksey_R

Reply
 
LinkBack Thread Tools Display Modes
Old   November 20, 2013, 17:24
Default Solving ODE with variable parameters
  #1
Member
 
Aleksey Rukhlenko
Join Date: Nov 2009
Location: Moscow
Posts: 49
Rep Power: 6
Aleksey_R is on a distinguished road
Send a message via ICQ to Aleksey_R
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.
Aleksey_R is offline   Reply With Quote

Old   November 26, 2013, 17:26
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,328
Blog Entries: 32
Rep Power: 72
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   November 28, 2013, 15:47
Default
  #3
Member
 
Aleksey Rukhlenko
Join Date: Nov 2009
Location: Moscow
Posts: 49
Rep Power: 6
Aleksey_R is on a distinguished road
Send a message via ICQ to Aleksey_R
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.
wyldckat likes this.
Aleksey_R is offline   Reply With Quote

Reply

Tags
ode, odesolver, parameters

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
rhoSimplecFoam Mach0.8 no pressure values CFDnewbie147 OpenFOAM Running, Solving & CFD 16 November 23, 2013 05:58
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 03:34
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM 6 April 12, 2011 11:24
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 05:55


All times are GMT -4. The time now is 03:48.