CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Moving Reference frame - UDF - Moving mesh (http://www.cfd-online.com/Forums/fluent/47975-moving-reference-frame-udf-moving-mesh.html)

modisa April 18, 2008 13:31

Moving Reference frame - UDF - Moving mesh
 
Hello everybody,

Does any one know what does the following UDF exactly do?

DEFINE_ADJUST(vel, domain) {

Thread *t;

cell_t c;

real time = RP_Get_Real("flow-time");

thread_loop_c (t, domain)

{if (THREAD_ID(t) == 2)

{ THREAD_VAR(t).fluid.velocity[0] = sin(time); THREAD_VAR(t).fluid.velocity[2] = cos(time);

}

} }

I would like to update my grid location at each time step. Thank you, modisa


All times are GMT -4. The time now is 05:16.