CFD Online Logo CFD Online URL
Home > Forums > FLUENT

anyone having experience with F_ID and C_ID

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

LinkBack Thread Tools Display Modes
Old   August 10, 2007, 04:19
Default anyone having experience with F_ID and C_ID
Jack Martinez
Posts: n/a
Hello everyone

In my problem statement I am required to address specific cell and face element on a boundary. Please note I am addressing this issue for a parallel solver.

I found that in sg_mem.h the Fluent.Inc has provided macros F_ID and C_ID to obtain the global face and cell id. I hope this is equal to their index (face_t f) defined in serial solver. While using this macros in a very simple UDF, Fluent is giving error, "Segmentation Vioation"

The sample UDF is below

#include "udf.h"



#if !RP_HOST

face_t f;

Thread *t;

Domain *d;








Message0("\nThe face id is %d \n", F_ID(f,t));




#endif /* #if RP_NODE */

#endif /* #if !RP_HOST */


Regards Jack
  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

All times are GMT -4. The time now is 14:41.