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

Solving ODE with variable parameters

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Aleksey_R

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2013, 18:24
Default Solving ODE with variable parameters
  #1
Member
 
Aleksey Rukhlenko
Join Date: Nov 2009
Location: Moscow
Posts: 55
Rep Power: 17
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, 18:26
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 16:47
Default
  #3
Member
 
Aleksey Rukhlenko
Join Date: Nov 2009
Location: Moscow
Posts: 55
Rep Power: 17
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
rhoSimplecFoam Mach0.8 no pressure values CFDnewbie147 OpenFOAM Running, Solving & CFD 16 November 23, 2013 06: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 04:34
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 06:55


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