CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   GGI Dynamic RPM: Speed question (

lordvon March 22, 2012 13:21

GGI Dynamic RPM: Speed question
I am preparing a case where OpenFOAM is called from a script to run one iteration at a time. This is to extract forces and moments each timestep to calculate a new RPM and rewriting dynamicMeshDict.

Can someone elaborate on the runtime of this program, stopping and starting OpenFOAM every iteration? How much slower would it be than if I could better integrate the RPM change in the OpenFOAM software?

protarius March 23, 2012 08:39

Actually I'm interested in this problem too.

In the simple case of a turbine rotating around a fixed axis, I ask if it is possible to use a ODE solver for the equation

I \dot{\omega} = M

where \omega is the angular velocity (of the turbine, hence of the GGI), I is the fixed moment of inertia and M is the torque (referred to the rotation axis) that comes from "forces" library.

The angular velocity in the dynamicMeshDict should be "linked" to the above equation.

I'm new in OF, so I don't know if it is correct and possible.


lordvon March 23, 2012 12:32

Its definitely possible. See here:

I was just going to use a form of what you had stated:
(torque) = (rotational inertia) * (angular acceleration)

take (angular acceleration) = (change in angular velocity) / (time step)

then (change in angular velocity) = (time step) * (torque from forces output) / (rotational inertia)

protarius March 23, 2012 16:37


I think this is the point:

> (change in angular velocity) = (time step) * (torque from forces output) / (rotational inertia)

Can I get a reliable result applying only this rough formula? Which is the "right" time step?

I was thinking about applying also some ODE solver to get a better control of the time step, but I don't know if it is necessary.


All times are GMT -4. The time now is 18:33.