CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   DEFINE_CG_MOTION Interpreted or Compiled? (

Aussie Shane April 20, 2006 05:50

DEFINE_CG_MOTION Interpreted or Compiled?

According to the Fluent UDF manual section "that UDFs that are defned using DEFINE CG MOTION can only be executed as compiled UDFs." However this is contradicted a little later when it says "after the UDF that you have defined using DEFINE CG MOTION is interpreted or compiled...".

For the wave tank tutorial on the Fluent site, I have tried using an interpreted UDF for the following UDF which I have not changed from that given in the tutorial.

#include "udf.h"

DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime) { vel[0]=(0.037098)*((1 - exp(-2.303*time))*7.7528*cos(7.7528*time) + ((2.303*exp(-2.303*time))*sin(7.7528*time))); }

It seems to interpret without error until the problem is later run and the wall does not move at all. The solution is also unphysical in that the water semms to look like it turns on fire.

I'm having trouble in using a compiled UDF on the university network since when I compile the UDF, the libudf folder disappears and is not visible on my drive.



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