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

UDF problem for dynamic mesh???

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2004, 09:13
Default UDF problem for dynamic mesh???
  #1
lyf
Guest
 
Posts: n/a
Hi!

I want to use UDF to realize a wing's rotating. The C program as follow:

#include "udf.h" #include <stdio.h> #define PI 3.1415926 DEFINE_CG_MOTION(wing,dt,vel,omega,time,dtime) {

Thread *t;

face_t f;

real ome;

NV_S (vel, = , 0.0);

NV_S (omega, = ,0.0);

if (!Data_Valid_P () )

return;

t = DT_THREAD (dt);

ome = 10*PI*PI*sin(10*PI*time);

Message ("time=%f,omega=%f\n",time,ome);

omega[0] = ome; } But I can't realized it ! what's wrong with the UDF compile???

thanks a lot lyf
  Reply With Quote

Old   April 19, 2004, 06:43
Default Re: UDF problem for dynamic mesh???
  #2
Mahesh
Guest
 
Posts: n/a
Compare with UDF Help 4.5.1

In first line, for #define..#include is not reqd. Check it out.

Mahesh
  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
Dynamic Mesh Problem. Tom Clark FLUENT 10 June 21, 2021 04:27
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
CFX Mesh Deformation problem Silmaril CFX 7 October 19, 2010 10:00
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38
mesh problem and looking for udf sine wave'case wanghong FLUENT 0 March 22, 2005 19:43


All times are GMT -4. The time now is 19:33.