CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Getting error with udf..

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

LinkBack Thread Tools Display Modes
Old   February 23, 2007, 18:18
Default Getting error with udf..
Posts: n/a

I am having dynamic mesh model with VOF. I wrote a UDF for the motion of a wall. There is no error while compiling this udf. But when I start to iterate it gives me access violation error. Should I use the domain id for mixture or for the phases?

# include<udf.h> int stop=0; int ZONE_ID = 12; DEFINE_CG_MOTION(moving_wall,t,vel,omega,time,dtim e) {

real x;

Node *node;

face_t f;

Domain *domain = Get_Domain(1);

cell_t c0;

Thread *t0,*ft;

if(stop == 0)


vel[0]= 0;

vel[1]= -0.01;

vel[2]= 0;

omega[0]= 0;

omega[1]= 0;

omega[2]= 0;

ft = Lookup_Thread(domain, ZONE_ID);



c0 = F_C0(f,ft);

t0 = F_C0_THREAD(f, ft);

if(C_VOF(c0,t0) >= 0.5)

stop = 1;




vel[0] = 0;

vel[1] = 0;

vel[2] = 0;

omega[0] = 0;

omega[1] = 0;

omega[2] = 0; }

Can anyone help me with it?


  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01

All times are GMT -4. The time now is 01:40.