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

help with dev c++ source code and fluent library issue

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2014, 10:51
Default help with dev c++ source code and fluent library issue
  #1
New Member
 
Ali
Join Date: Jul 2014
Posts: 8
Rep Power: 11
alee1293 is on a distinguished road
Hi,
i try to write a udf for transient temperature profile but when i write the code in dev c++ as .c source file, program gave errors for not reaching header files. i updated the c libraries in the dev c++ directory but this time code gave thousands of syntax errors within the udf.h file. i copied header files from the fluent database but i can not create udf file...

anyone can help me please it is urgent!!!
alee1293 is offline   Reply With Quote

Old   August 8, 2014, 11:06
Default
  #2
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
Can you share the code?

A lot of syntax errors likely means you forgot a ; or bracket somewhere, and the error propagates through the rest of the code
CeesH is offline   Reply With Quote

Old   August 8, 2014, 11:09
Default
  #3
New Member
 
Ali
Join Date: Jul 2014
Posts: 8
Rep Power: 11
alee1293 is on a distinguished road
i understand but these are not the errors causing from my code, these errors comes from the included ''udf.h'' file in the library i don't know how to solve it and i don't know it is because the fluent database or not..
alee1293 is offline   Reply With Quote

Old   August 8, 2014, 11:30
Default
  #4
New Member
 
Ali
Join Date: Jul 2014
Posts: 8
Rep Power: 11
alee1293 is on a distinguished road
#include <udf.h>
DEFINE_PROFILE (x_velocity,thread,index)
{
real x[ND_ND];
real y;
face_t f;
begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);
y=[x];
F_PROFILE(f,thread,index)=20.-y*y/(.0745*.0745)*20.;
}
end_f_loop(f,thread)
}



for starting i try to form a simple code but compiler giving errors at include line as i mentioned above
alee1293 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
How to call FORTRAN files as UDF? Ehsan-F Fluent UDF and Scheme Programming 6 September 11, 2012 11:03
Fluent Source Code Crystal Main CFD Forum 5 March 3, 2010 20:34
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43
Source code to read Fluent UNS cas and dat files Boyd Pukalo FLUENT 0 November 26, 1999 21:19


All times are GMT -4. The time now is 02:11.