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

problems on multi-file udf compiling

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2009, 03:31
Question problems on multi-file udf compiling
  #1
New Member
 
Join Date: Mar 2009
Posts: 6
Rep Power: 17
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, 03:35
Default Btw:
  #2
New Member
 
Join Date: Mar 2009
Posts: 6
Rep Power: 17
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
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 18 December 12, 2018 23:46
problems with STEP file ertan FLUENT 0 August 1, 2008 18:51
gcc and executable file from Mac to Linux simone Marras Main CFD Forum 0 April 8, 2007 16:49
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 21:51
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 10:13


All times are GMT -4. The time now is 07:16.