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

problems on multi-file udf compiling

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 30, 2009, 02:31
Question problems on multi-file udf compiling
  #1
New Member
 
Join Date: Mar 2009
Posts: 6
Rep Power: 8
phoenixchen903 is on a distinguished road
Hello Guys, I meet a problem on the multi-**.c-udf-file compling in fluent.

since the function is complex, I put some functions in a seperated files, and add both of them into the "source file". However, the compling is failed.

the example files are as follows.

***************************
major.c:

#include "udf.c"

DEFINE_CG_MOTION (****)
{
real FUNC();
xxxxxx;
FUNC();
xxxxx;
vel[0] = xxx;
return;
}

*************************
FUNC.c:

real FUNC()
{
real A;
xxxx;
return A;
}
************************

How can I deal with the problem?

Thx a lot!
phoenixchen903 is offline   Reply With Quote

Old   August 30, 2009, 02:35
Default Btw:
  #2
New Member
 
Join Date: Mar 2009
Posts: 6
Rep Power: 8
phoenixchen903 is on a distinguished road
When code is lile,

**********************
major.c:

#include "udf.c"

DEFINE_CG_MOTION(***)
{
real FUNC();
vel[0]=xxx;
return;
}

real FUNC()
{
real A;
...
return A;
}
**************************

that's OK.
phoenixchen903 is offline   Reply With Quote

Reply

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 with output text file manu Fluent UDF and Scheme Programming 6 April 24, 2013 02:46
problems with STEP file ertan FLUENT 0 August 1, 2008 17:51
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 15:49
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 09:13


All times are GMT -4. The time now is 17:05.