|
[Sponsors] |
April 7, 2006, 06:31 |
error while implementing UDF
|
#1 |
Guest
Posts: n/a
|
Hi,
I want to implement a udf for pressure as a function of time. I have given below the program that i wrote. But when i tried to interpret it in FLUENT it is saying line 1arse error. Can u please tell me how to rectify the mistake? Thanks in advance #include "udf.h" DEFINE_PROFILE(unsteady_pressure, thread, position) { face_t f; begin_f_loop(f, thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f, thread, position) = 0.1691*(t^5) - 9.0129*(t^4) + 173.84*(t^3) - 1364.8*(t^2) + 357.61*t + 100981; } end_f_loop(f, thread) } |
|
April 7, 2006, 10:41 |
Re: error while implementing UDF
|
#2 |
Guest
Posts: n/a
|
the pow(x,y) fucnction must be used for x^y #include "udf.h"
DEFINE_PROFILE(unsteady_pressure, thread, position) { face_t f; begin_f_loop(f, thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f, thread, position) = 0.1691*(pow(t,5)) - 9.0129*(pow(t,4)) + 173.84*(pow(t,3)) - 1364.8*(pow(t,2)) + 357.61*t + 100981; } end_f_loop(f, thread) } |
|
April 7, 2006, 23:49 |
Re: error while implementing UDF
|
#3 |
Guest
Posts: n/a
|
Thanks a lot Aidan. Its working now.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
Implementing special K-eps with UDF | Sergio Rossi | FLUENT | 2 | November 26, 2008 11:44 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |