CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Help about dynamic mesh (https://www.cfd-online.com/Forums/fluent/33541-help-about-dynamic-mesh.html)

lingo April 21, 2004 00:09

Help about dynamic mesh
 
Hi,evryone:

I need udf of dynamic mesh in simulationg a pump whose rotate speed is changing with the time same as SIN(). The udf is as follows: #include "udf.h" #include "dynamesh.h" DIFEINE_CG_MOTION(pump,dt,vel,omega,dtime,time) {

Thread*t;

face_t f;

real NV_VEC(A);

t=DT_THREAD(dt);

begin_f_loop(f,t)

{

omega=sin(10*time);

}

end_f_loop(f,t) } When I compile it ,message appears "error C2223: left of '->thread' must point to struct/union"

I don't know how to solve it ? I think for my situation ,the udf must have many problemse except syntax error,could you give me some advice? Thank you very much!


All times are GMT -4. The time now is 14:47.