|
[Sponsors] |
August 17, 2017, 11: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, 04: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. |
|
February 14, 2022, 02:48 |
|
#3 | |
Member
zink
Join Date: Oct 2015
Posts: 30
Rep Power: 11 |
Were you able to integrate them, I am also interested in learning.
Quote:
|
||
October 21, 2022, 20: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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maximum number of iterations exceeded chtmultiregionsimpleFoam | Moncef | OpenFOAM Running, Solving & CFD | 28 | July 13, 2020 15:26 |
High Courant Number @ icoFoam | Artex85 | OpenFOAM Running, Solving & CFD | 11 | February 16, 2017 14:40 |
Micro Scale Pore, icoFoam | gooya_kabir | OpenFOAM Running, Solving & CFD | 2 | November 2, 2013 14:58 |
Differences between serial and parallel runs | carsten | OpenFOAM Bugs | 11 | September 12, 2008 12:16 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |