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

ODE Solving in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sepp.zell

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2017, 10:42
Default ODE Solving in OpenFOAM
  #1
New Member
 
Join Date: Aug 2017
Posts: 2
Rep Power: 0
gezibash is on a distinguished road
Hi,

I need to solve two ODEs during the main solving loop for my PDEs. I basically need to solve Newton's Equation F = ma and T = Ia for rigid body motion. I saw that there is a special solver for 6dof motion, but I would like to solve these two equations only.

I can't find any good tutorials online or some sample code for solving ODEs. Is there any sort of material online?
gezibash is offline   Reply With Quote

Old   August 21, 2017, 03:26
Default
  #2
New Member
 
Sebastian
Join Date: Feb 2017
Posts: 22
Rep Power: 9
sepp.zell is on a distinguished road
Had you had a look at
http://hassankassem.me/posts/ode/ ?

In general you can use any PDE solver for solving an ODE. This might be overdone, but it works. I only tried combining solving a PDE with an ODE. For this purpose I created a new field variable and added the additional equation in the solver code (only using the temporal derivative) resulting in a modified solver.
alainislas likes this.
sepp.zell is offline   Reply With Quote

Old   February 14, 2022, 01:48
Default
  #3
New Member
 
zink
Join Date: Oct 2015
Posts: 29
Rep Power: 10
ansab_sindhu is on a distinguished road
Were you able to integrate them, I am also interested in learning.

Quote:
Originally Posted by gezibash View Post
Hi,

I need to solve two ODEs during the main solving loop for my PDEs. I basically need to solve Newton's Equation F = ma and T = Ia for rigid body motion. I saw that there is a special solver for 6dof motion, but I would like to solve these two equations only.

I can't find any good tutorials online or some sample code for solving ODEs. Is there any sort of material online?
ansab_sindhu is offline   Reply With Quote

Old   October 21, 2022, 19:40
Default
  #4
New Member
 
Raśl Bernal
Join Date: Mar 2018
Posts: 3
Rep Power: 8
ruloz is on a distinguished road
Hi! ,
Do you have luck finding out how to solve and ODE inside the loop of a PDE?

This post http://hassankassem.me/posts/ode/ and this http://www.tfd.chalmers.se/~hani/kur...rtZongyuan.pdf publication explain how to solve an ODE but none of them eplain how to use it along with a PDE solver.
ruloz is offline   Reply With Quote

Reply

Tags
ode, ode solver


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
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 14:26
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58


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