|
[Sponsors] |
June 15, 2009, 07:06 |
Can not to interpret UDF
|
#1 |
New Member
Alexander Sventitskiy
Join Date: Jun 2009
Posts: 4
Rep Power: 17 |
Hallo,
I have a problem with interpreting my UDF. The UDF defunes unsteady boundary conditions and looks as #include "udf.h" DEFINE_PROFILE(unsteady_mass_flow, thread, position) { double fact=1.E-06; double S=1.5E-03; double t, mass_flow; face_t f; t=RP_Get_Real("flow-time"); mass_flow=fact*57.6975*sin(6.2832*t); begin_f_loop(f, thread) { F_PROFILE(f, thread, position)=mass_flow; } end_f_loop(f, thread) } Fluent reports the following error: cpp -I"C:\Fluent.Inc\fluent6.3.26/src" -I"C:\Fluent.Inc\fluent6.3.26/cortex/src" -I"C:\Fluent.Inc\fluent6.3.26/client/src" -I"C:\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "D:\Fluent data\Mask_test\Simulation\mfsin.c" Error: D:\Fluent data\Mask_test\Simulation\mfsin.c: line 1: parse error. What can it be?? Thank you. |
|
June 15, 2009, 22:52 |
|
#2 | |
New Member
Eric
Join Date: Apr 2009
Posts: 23
Rep Power: 17 |
Quote:
i have interpreted it in my computer,no error。。。。。。。。。 |
||
June 17, 2009, 08:07 |
|
#4 |
New Member
Alexander Sventitskiy
Join Date: Jun 2009
Posts: 4
Rep Power: 17 |
What is an advantage to use real instead of double?
The problem with the UDF was that FLUENT could not read file from WordPad. After I had used Notepad++ everything was ok. Thank you for your replies. |
|
August 18, 2011, 09:10 |
|
#5 | |
New Member
Join Date: Nov 2009
Posts: 13
Rep Power: 17 |
Quote:
Hope this helps you! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
parse error while interpreting udf | Kristin | Fluent UDF and Scheme Programming | 3 | March 15, 2012 07:43 |
interpret or compile an UDF (emergency) | Lotfi | FLUENT | 1 | August 26, 2007 13:58 |
Not able to interpret UDF | Prasad | FLUENT | 1 | August 15, 2007 09:44 |
Interpret three UDF for property | Atsu | FLUENT | 4 | April 22, 2006 16:04 |
UDF Interpret - Syntax Error | Leonard | FLUENT | 1 | October 22, 2005 11:06 |