CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

DEFINE_CG_MOTION Interpreted or Compiled?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2006, 05:50
Default DEFINE_CG_MOTION Interpreted or Compiled?
  #1
Aussie Shane
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
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF - Interpreted works and compiled doesn't AlwaysLearning FLUENT 9 October 30, 2018 01:52
compiled and interpreted udf mateus FLUENT 1 May 11, 2011 07:09
Difference between interpreted and compiled for DEFINE_ADJUST? KatyaM Fluent UDF and Scheme Programming 1 November 3, 2009 10:30
compiled or interpreted udf Aireen FLUENT 11 August 25, 2005 01:54
compiled vs. interpreted UDF co2 FLUENT 1 January 22, 2004 15:19


All times are GMT -4. The time now is 17:24.