|
[Sponsors] |
April 20, 2006, 04:50 |
DEFINE_CG_MOTION Interpreted or Compiled?
|
#1 |
Guest
Posts: n/a
|
Gday
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. Help Shane |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF - Interpreted works and compiled doesn't | AlwaysLearning | FLUENT | 9 | October 30, 2018 00:52 |
compiled and interpreted udf | mateus | FLUENT | 1 | May 11, 2011 06:09 |
Difference between interpreted and compiled for DEFINE_ADJUST? | KatyaM | Fluent UDF and Scheme Programming | 1 | November 3, 2009 09:30 |
compiled or interpreted udf | Aireen | FLUENT | 11 | August 25, 2005 00:54 |
compiled vs. interpreted UDF | co2 | FLUENT | 1 | January 22, 2004 14:19 |