|
[Sponsors] |
help with dev c++ source code and fluent library issue |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 8, 2014, 11:51 |
help with dev c++ source code and fluent library issue
|
#1 |
New Member
Ali
Join Date: Jul 2014
Posts: 8
Rep Power: 12 |
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!!! |
|
August 8, 2014, 12:06 |
|
#2 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
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 |
|
August 8, 2014, 12:09 |
|
#3 |
New Member
Ali
Join Date: Jul 2014
Posts: 8
Rep Power: 12 |
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..
|
|
August 8, 2014, 12:30 |
|
#4 |
New Member
Ali
Join Date: Jul 2014
Posts: 8
Rep Power: 12 |
#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 |
|
|
|
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 12:03 |
Fluent Source Code | Crystal | Main CFD Forum | 5 | March 3, 2010 21:34 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |
Source code to read Fluent UNS cas and dat files | Boyd Pukalo | FLUENT | 0 | November 26, 1999 22:19 |