|
[Sponsors] |
December 5, 2004, 22:31 |
help wanted on interpreting a simple UDF
|
#1 |
Guest
Posts: n/a
|
Hi.. i have written a small udf to define the temperatute profile which is T = 200 sin(pi*t/10)...this is the temperature that has to be used as a BC on one of the walls of a 2d block. the accompanying udf is
#include "udf.h" DEFINE_PROFILE(unsteady_temp, thread, position) { face_t f; begin_f_loop(f, thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f, thread, position) = 200*sin(0.314.*t); } end_f_loop(f, thread) } now wen i try to onterpret this UDF i get the following error mesage..cannot figure out whr the problem is...can anyone help...urgent...as i am stuck on the submission of an assigment on monday..ie dec 6th.. the error mesage is as below C:\Fluent.Inc tbin tx86\cpp.exe -IC:\Fluent.Inc\fluent6.1.22/src -IC:\Fluent.Inc\fluent6.1.22/cortex/src -IC:\Fluent.Inc\fluent6.1.22/client/src -IC:\Fluent.Inc\fluent6.1.22/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\wang\chetan-udf.c Error: C:\wang\chetan-udf.c: line 9: parse error. ....suresh |
|
December 6, 2004, 09:33 |
Re: help wanted on interpreting a simple UDF
|
#2 |
Guest
Posts: n/a
|
There is a erro in the line 9, please check "200*sin(0.314.*t)", the term 0.314. is not correct, it may be 0.314, or 314.0
|
|
December 6, 2004, 16:33 |
Re: help wanted on interpreting a simple UDF
|
#3 |
Guest
Posts: n/a
|
Thank you ...hong...actually it eluded me for quite a while but i found tht mistake ...thanx anyways... suresh
|
|
December 8, 2004, 09:28 |
Re: help wanted on interpreting a simple UDF
|
#4 |
Guest
Posts: n/a
|
I hope you can express what you want to say more clearly.
|
|
December 8, 2004, 12:41 |
Re: help wanted on interpreting a simple UDF
|
#5 |
Guest
Posts: n/a
|
well..hong i was saying thank you for the help extended.. by the way...u got any idea on modelling a screw compressor???
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF programming | fullmonty | FLUENT | 5 | June 30, 2011 03:40 |
help for a simple UDF | Greg | FLUENT | 2 | April 14, 2008 11:53 |
I need UDF help. | S.Whitney | FLUENT | 0 | October 15, 2007 12:29 |
syntax error when interpreting UDF | Erik | FLUENT | 3 | September 27, 2006 08:52 |
wanted udf programm | chandu&jignesh | FLUENT | 0 | May 30, 2006 15:04 |