# ODE Solving in OpenFOAM

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

 August 17, 2017, 10:42 ODE Solving in OpenFOAM #1 New Member   Join Date: Aug 2017 Posts: 2 Rep Power: 0 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?

 August 21, 2017, 03:26 #2 New Member   Sebastian Join Date: Feb 2017 Posts: 22 Rep Power: 9 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.

February 14, 2022, 01:48
#3
New Member

zink
Join Date: Oct 2015
Posts: 29
Rep Power: 10
Were you able to integrate them, I am also interested in learning.

Quote:
 Originally Posted by gezibash 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?

 October 21, 2022, 19:40 #4 New Member   Raśl Bernal Join Date: Mar 2018 Posts: 3 Rep Power: 8 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.

 Tags ode, ode solver