CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF problem for dynamic mesh??? (http://www.cfd-online.com/Forums/fluent/33511-udf-problem-dynamic-mesh.html)

lyf April 18, 2004 09:13

UDF problem for dynamic mesh???
 
Hi!

I want to use UDF to realize a wing's rotating. The C program as follow:

#include "udf.h" #include <stdio.h> #define PI 3.1415926 DEFINE_CG_MOTION(wing,dt,vel,omega,time,dtime) {

Thread *t;

face_t f;

real ome;

NV_S (vel, = , 0.0);

NV_S (omega, = ,0.0);

if (!Data_Valid_P () )

return;

t = DT_THREAD (dt);

ome = 10*PI*PI*sin(10*PI*time);

Message ("time=%f,omega=%f\n",time,ome);

omega[0] = ome; } But I can't realized it ! what's wrong with the UDF compile???

thanks a lot lyf

Mahesh April 19, 2004 06:43

Re: UDF problem for dynamic mesh???
 
Compare with UDF Help 4.5.1

In first line, for #define..#include is not reqd. Check it out.

Mahesh


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