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

Check UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2004, 08:45
Default Check UDF
  #1
stephen e
Guest
 
Posts: n/a
I'm at present having several problems with the UDF below. The udf should mark the boundary cells with a value of 1. I have used it before with no problems but can't see whats wrong!

The problems:

1)firstly it acutally marks what seems to be a random selction of cells, inculding some of the boundary cells and then; 2)crashes out half way through one iteration!

The UDF:

DEFINE_EXECUTE_AT_END(Delta_EXP1)

{

Domain *domain;

Thread *thread;

Thread *Boundarythread;

face_t Boundaryface;

cell_t cell;

int j;

domain = Get_Domain(1);

thread_loop_c(thread,domain)

{

begin_c_loop (cell,thread)

{

C_UDMI(cell,thread,0)=0;

j=0;

c_face_loop(cell,thread,j);

{

Boundaryface =C_FACE(cell,thread,j);

Boundarythread =C_FACE_THREAD(cell,thread,j);

if(BOUNDARY_FACE_THREAD_P(Boundarythread))

{

C_UDMI(cell,thread,0)=1;

}

else

{

C_UDMI(cell,thread,0)=0;

}

}

}

end_c_loop(cell,thread)

}

return;

}

If someone can help or check it, I would be most grateful.

Stephen e
  Reply With Quote

Old   April 15, 2004, 09:51
Default Re: Check UDF
  #2
stephen e
Guest
 
Posts: n/a
Problem solved !!!!
  Reply With Quote

Reply


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 parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF for transient pressure inlet, mass flow check at nozzle exit and volumetric heat kokoory FLUENT 0 August 17, 2011 02:07
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
DEFINE_DPM_OUTPUT macro UDF HELP Puneet FLUENT 3 November 28, 2003 10:55
DEFINE_ON_DEMAND UDF: How to declare A[ND_ND], etc jx FLUENT 1 November 6, 2003 17:23


All times are GMT -4. The time now is 18:58.