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

UDF - C_NFACES

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2002, 18:49
Default UDF - C_NFACES
  #1
St.Schmidt
Guest
 
Posts: n/a
Dear All,

In a routine DEFINE_SOURCE(name,c,t,dS,eqn) I want to get the number of cell faces by setting

int n = C_NFACES(c,t); /* it should be integer */

to run a

c_face_loop(c, t, n) {...}

My problem is that I get an error message from the compiler. I am not v/good at C as you can imagine by my question. I have tried to put C_NFACES(c,t) directly into the loop header c_face_loop(c, t, C_NFACES(c,t)) - but with no success.

Any help appreciated.

Stefan
  Reply With Quote

Old   December 11, 2002, 03:11
Default Re: UDF - C_NFACES
  #2
Markus
Guest
 
Posts: n/a
Hi Stefan,

Most likely your problem is that several macros simply do not work in interpreted mode, among them is C_NFACES. The workaround is to use the compiled mode which definitely works.

best regards,

markus
  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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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