|
[Sponsors] |
April 15, 2004, 09:45 |
Check UDF
|
#1 |
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 |
|
April 15, 2004, 10:51 |
Re: Check UDF
|
#2 |
Guest
Posts: n/a
|
Problem solved !!!!
|
|
|
|
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 |
UDF for transient pressure inlet, mass flow check at nozzle exit and volumetric heat | kokoory | FLUENT | 0 | August 17, 2011 03:07 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
DEFINE_DPM_OUTPUT macro UDF HELP | Puneet | FLUENT | 3 | November 28, 2003 11:55 |
DEFINE_ON_DEMAND UDF: How to declare A[ND_ND], etc | jx | FLUENT | 1 | November 6, 2003 18:23 |