CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   CG_MOTION (

Apple March 7, 2009 08:08

Hi guys,

I'm doing about vibration disk oscillating under water and here is my udf for cg-motion can someone please help me check. I've tried to run it but it said incorrect cg-motion on zone......assume no motion. Does it mean I set the boundary wrong or my udf is wrong?

Thank you very much....

#include "udf.h" real loc, vel;

DEFINE_CG_MOTION (disk, dt, cg_vel, cg_omega, time, dtime) { # if 1

FILE *fp; # endif

/* reset velocities */

NV_S(cg_vel,=, 0.0);

NV_S(cg_omega,=, 0.0);

if (!Data_Valid_P())


loc = 0.000003*sin(2*M_PI*1460000*time);

vel = 0.000003*M_PI*1460000*cos(2*M_PI*1460000*time);

cg_vel[1] = vel;

All times are GMT -4. The time now is 21:11.