CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   AMI turbine application (

onyir January 19, 2012 10:20

AMI turbine application
Hi all,
I was wondering if it is possible to define a case with AMI patches, like the one on the propeller tutorial, where the rotational velocity is calculated.
Much like a turbine, where the angular velocity depends on the velocity of the flow.

Thanks in advance.

fakekarma March 21, 2012 05:56

Hallo Onyir,
I have tried simply to use instead of the "rotatingMotion" contained in the tutorial (tutorials/incompressible/pimpleDyMFoam/propeller) under constant/dynamicMeshDict, the keyword "oscillatingRotatingMotion".

As indicated in the source files "oscillatingRotatingMotion.C" and "oscillatingRotatingMotion.H" one should use within dynamicMeshDict the following:


CofG (0 0 0);
amplitude (0 10 0); // deg
omega 628; // rad/s
instead of the one provided within the tutorial:


CofG (0 0 0);
radialVelocity (0 9000 0); // deg/s
At least in this way the simulation for me starts without any problem up to a point when diverges on turbulent quantities. I will try with some different settings (e.g. maxCo) to see if I can overcome this problem.

Hope it helps,


fakekarma March 21, 2012 06:40

Hallo again,

I've tried with a simpler model also contained in the tutorials (tutorials/incompressible/pimpleDyMFoam/mixerVesselAMI2D), and with the little modifications to dynamicMeshDict it works fine.

I can not attach the folder from one can run the case, since it is a bit bigger than the forum upload file limit. If you need it send me an email.

Hope it helps,


onyir March 21, 2012 06:59

Thank you for your interest fakekarma, but what I want to achieve is that the motion of the turbine is driven by the flux, more like the tutorial of moving wing, not by specified rotational speed.



fakekarma March 21, 2012 07:22

Hallo Onyir,
I can not understand if you need your body to react to the flow (like in a 6DOF simulation) or just have a variable speed based on some probes for velocity.

In the last case you could modify the source to accept an input for the omega instead of a fixed value.



onyir March 21, 2012 08:46

I need my body to react to the flow, like a 6DOF simulation.
Sorry if my description was not clear.

fakekarma March 21, 2012 08:59

Hallo Onyir,
as far as I now, the 6DOF capability is implemented in OF 1.6-ext, where user can set inertia, spring and damping parameters, that would be used in connection with the force and moments to etabilish the motion of the body. I've taken just a very rapid look to OF 2.1.0 and it seems to be no more present.

Good luck,


All times are GMT -4. The time now is 10:09.