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

Compiling UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 31, 2002, 04:05
Default Compiling UDF
  #1
Zhang_clement
Guest
 
Posts: n/a
Hello everyone!

After I input the command :make "FLUENT_ARCH=irix6r10"

The following information appear:

.... sh: cc: not found error code 127 (bu21) "libudf.so" not remade because of errors (bu14) ....

Anyone know how to solved it?

I am pretty sure that my UDF code was right because it can run smoothly in "interpreted" mode.

Have a nice day!
  Reply With Quote

Old   January 31, 2002, 06:11
Default Re: Compiling UDF
  #2
chiseung
Guest
 
Posts: n/a
That error means your unix machine doesn't have a C compiler. Get the compiler that is fit to your unix machine.
  Reply With Quote

Old   February 1, 2002, 04:50
Default Re: Compiling UDF
  #3
Zhang_clement
Guest
 
Posts: n/a
Thanks! But some other problems come out.

This is the UDF I use: DEFINE_SOURCE(Esource_ball, cell, thread, dS, eqn)

When compiling, it give the message like this:

The parametr "ds" was never referenced. The parametr "eqn" was never referenced.

What is the possible reason for this message?
  Reply With Quote

Old   February 1, 2002, 11:10
Default Re: Compiling UDF
  #4
kevin
Guest
 
Posts: n/a
you can detail explain your problem in here , i operated software of FLUENT for a lot times so , i hope to assist you to solve problem ...

Hsin-Ping-Chang
  Reply With Quote

Old   February 2, 2002, 00:26
Default Re: Compiling UDF
  #5
Zhang_clement
Guest
 
Posts: n/a
Thanks!

When comiling the following code, some error messages will give like this:

cc-3201 cc: REMARK file= source.c, line=9 The parameter "eqn" was never referenced

By the way, how to build a ellipse volume in Gambit 1.3.

Have a nice day!

#include "udf.h"

extern Domain* domain; cell_t c; face_t f; Thread *t; Domain *d; int i; DEFINE_SOURCE(Gsource_ball, cell, thread, dS, eqn) {

float source, volume, temp, mass1,mass2, den1,stand,avgc;

float mass3, mass4, mass5, mass6,mass7,mass8,cleft;

thread_loop_c (thread, domain)

{

{switch (THREAD_ID(thread))

{

case(6):

{

begin_c_loop_all(cell,thread)

{

volume=C_VOLUME(cell, thread);

temp = C_YI(cell, thread, 0);

den1 = C_R(cell, thread);

mass6 +=temp*volume*den1;

}

end_c_loop_all(cell, thread)

}

case(7):

{

begin_c_loop_all(cell,thread)

{

volume=C_VOLUME(cell, thread);

temp = C_YI(cell, thread, 0);

den1 = C_R(cell, thread);

mass7 +=temp*volume*den1;

}

end_c_loop_all(cell, thread)

}

case(8):

{

begin_c_loop_all(cell,thread)

{

volume=C_VOLUME(cell, thread);

temp = C_YI(cell, thread, 0);

den1 = C_R(cell, thread);

mass8 +=temp*volume*den1;

}

end_c_loop_all(cell, thread)

}

}

}

stand = mass1+mass2+mass3+mass4+mass5+mass6+mass7+mass8;

avgc = mass7/1.491848e-11;

if (RP_Get_Real("flow-time") <= 24*24*3600 && 5*0.45 >= avgc && stand <= 0.8*7.800317e-11*13.5)

{

cleft = (1.491848e-11*13.5-mass8-mass7)/1.491848e-11;

source=1.38889e-7*(5*0.45-avgc)+3.086e-8*cleft;

}

else

{

source=0;

}

}

return source; }
  Reply With Quote

Old   February 3, 2002, 01:56
Default Re: Compiling UDF
  #6
kevin
Guest
 
Posts: n/a
please added this item (eqn) inside your program . error message told you that your program must exist the argument of "eqn" , because you defined the argument[DEFINE_SOURCE(Gsource_ball, cell, thread, dS, eqn)] previously .but , you didn't write this argument(eqn)in above model. so , you can modify this code of program ,

For example: **************** source=13*P+201; /*P is variable */ ds[eqn]=201; ****************
  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
compiling my Udf noa Fluent UDF and Scheme Programming 8 November 7, 2018 21:08
compiling udf at window Nt(64BIT) noa FLUENT 3 July 30, 2014 00:01
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 01:43
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 10:13


All times are GMT -4. The time now is 03:45.