|
[Sponsors] |
November 5, 2008, 09:38 |
UDF temperature variation
|
#1 |
Guest
Posts: n/a
|
hi. i am attempting to simulate a sinusoidally varying temperature velocity inlet and the following is my udf:
#include "udf.h" DEFINE_PROFILE(unsteady_temp,thread,index) { face_t f; real T; real t = CURRENT_TIME; begin_f_loop(f,thread) /* loops over all faces in the thread passed in the macro argument */ { F_PROFILE(f,thread,index) = 10.0 *sin(t*(3.14159/720) /* here stands the profile function as a function of time */ } end_f_loop(f,thread) } When interpreting in Fluent I am getting the message: Error: U:\4th_yr\FYP\2nd\Unsteady\unsteady_temperature.c: line 12: parse error. Can anybody help me with this please? Alex |
|
November 5, 2008, 10:03 |
Re: UDF temperature variation
|
#2 |
Guest
Posts: n/a
|
sorry i have modified i think this should work but still doesnt:
#include "udf.h" DEFINE_PROFILE(unsteady_temperature, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = 10.*sin((3.14159/720)*t) /* here stands the profile function as a function of time */ } end_f_loop(f, thread) } parse error on line 10? Alex |
|
November 5, 2008, 10:18 |
Re: UDF temperature variation
|
#3 |
Guest
Posts: n/a
|
please do not worry to reply to this i have figured it out
alex |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF temperature variation | Alex E-H | FLUENT | 3 | February 19, 2017 15:55 |
Pressure temperature variation | Dev | CFX | 0 | June 22, 2007 00:01 |
Viscosity variation with temperature for gases- | Kedar | Main CFD Forum | 3 | October 24, 2005 07:43 |
variation of surface tension with temperature | Markus | FLUENT | 1 | July 17, 2002 21:23 |
Property variation with temperature | G.Balakrishnan | FLUENT | 1 | December 16, 2000 07:51 |