CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF of flow over oscillating cylinder 2D case (

imharoon1 August 27, 2011 05:28

UDF of flow over oscillating cylinder 2D case
1 Attachment(s)
Sir I am recent into the UDFs and trying to simulate the flow over the oscillating cylinder.The UDF for cylinder oscillation is

#include "udf.h"
#include "dynamesh_tools.h"

DEFINE_CG_MOTION(cilindro1,dt,vel,omega,time,dtime )
{ vel[0]=0; vel[1]=10*sin(100*time); omega[1]=0.0; omega[0]=0.0; }

But when i hook it with cylinder it give me error
Warning: incorrect cg motion UDF cilindro1 on zone 12 (assuming no motion)
I have attached my problem domain as well.
My email address is
Regards Haroon

saifullahkhalid August 27, 2011 06:50

You may check this problem on the following url which has been posted.
I don't know it works or not. But it may be helpful.


imharoon1 August 27, 2011 07:08

Sir It is just coincidence.I am trying to contact you the whole day but your cell was switched off.At last i have put my problem on the site and you are the first person who respond on that.
Regards Haroon

niravtm007 August 28, 2011 01:46

hiii friends i am entirely new to using udf's in fluent. I have a cubical geometry, with two inlets on perpendicular adjacent faces. i have to implement udf to only one of the conditions.
i have two cases
1) parabolic velocity inlet ( space varient)
2) sinusodial velocity velocity inlet ( time variant)
can any one pls send me the udf ( codes) ...

All times are GMT -4. The time now is 13:08.