|
[Sponsors] | |||||
|
|
|
#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 1 arse 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) } |
|
|
||
|
|
|
#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) } |
|
|
||
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks a lot Aidan. Its working now.
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 23:14 |
| How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
| Implementing special K-eps with UDF | Sergio Rossi | FLUENT | 2 | November 26, 2008 12:44 |
| UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
| UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |