CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Error:no function prototype (https://www.cfd-online.com/Forums/fluent-udf/81989-error-no-function-prototype.html)

cleo November 12, 2010 08:56

Error:no function prototype
 
Hi everyone,
When I tried to Interpreted my UDF FLUENT says: no function prototype
Here is my udf:
#include "udf.h"
DEFINE_PROFILE (CO2_inlet, t, i)
{
real x[ND_ND];
real y;
face_t f;

begin_f_loop(f, t)
{
F_CENTROID (x, f, t);
y=x[0]
F_PROFILE (f, t, i)=y*y
}
end_f_loop (f, t)
}

Where am I making a mistake?

Thanks in advance

ComputerGuy December 11, 2010 09:38

Cleo,

You're missing semicolons after the following lines
Code:

y=x[0]
F_PROFILE (f, t, i)=y*y


Quote:

Originally Posted by cleo (Post 283242)
Hi everyone,
When I tried to Interpreted my UDF FLUENT says: no function prototype
Here is my udf:
#include "udf.h"
DEFINE_PROFILE (CO2_inlet, t, i)
{
real x[ND_ND];
real y;
face_t f;

begin_f_loop(f, t)
{
F_CENTROID (x, f, t);
y=x[0]
F_PROFILE (f, t, i)=y*y
}
end_f_loop (f, t)
}

Where am I making a mistake?

Thanks in advance



All times are GMT -4. The time now is 06:08.