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

Error:no function prototype

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2010, 08:56
Default Error:no function prototype
  #1
New Member
 
Join Date: Nov 2010
Posts: 2
Rep Power: 0
cleo is on a distinguished road
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
cleo is offline   Reply With Quote

Old   December 11, 2010, 09:38
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
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 View Post
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 is offline   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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 20:41.