CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Relative rotary motion of mesh (https://www.cfd-online.com/Forums/fluent-udf/217927-relative-rotary-motion-mesh.html)

lukaszrze May 30, 2019 16:28

Relative rotary motion of mesh
 
Hello!
I described the goal of my project in the simple drawing below:

https://ibb.co/tPcfPn3
https://ibb.co/tPcfPn3

The black circle is rotating (around its geometric center - c1) and in the same time the red circle is rotating (around c2). The problem is that the position of c2 is changing in time and the red circle is rotating back and forth - in a sinusoidal function.

The question is how can I do this in Fluent?

I tried to write a macro and use it in dynamic mesh and it works for the black circle so its rotating.

How can I define relative motion of the red circle?

I checked the option "relative motion" to dark circle in dynamic mesh but then the red circle moves in a totally wierd manner when I use the most simple macro for the black and red circle:

#include "udf.h"

DEFINE_CG_MOTION(turbine_om, dt, vel, omega, time, dtime)
{
omega[0] = 0;
omega[1] = 0;
omega[2] = 2;
}

Thanks for the attention

lukaszrze June 14, 2019 18:05

I renew my question

does anybody have any suggestion?

thak you


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