|
[Sponsors] |
October 31, 2016, 06:06 |
Temperature Profile UDF: Parse Error
|
#1 |
New Member
AC
Join Date: Oct 2016
Posts: 4
Rep Power: 10 |
Hi!
Im trying to compile a UDF for a temperature profile, to reach -80C in 19mins with a start point of -20C. Ive compiled the following UDF: #include "udf.h" DEFINE_PROFILE(inlet, thread, position) { face_t f; real t = CURRENT_TIME; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = 253.15 + 1 * t; if (t > 1140) F_PROFILE(f, thread, position) = 193.15 } end_f_loop(f, thread) } but it says theres a parse error at line 12?! Does anyone know how i can correct this issue Thanks Last edited by AC1993; October 31, 2016 at 07:36. |
|
November 1, 2016, 03:15 |
|
#2 |
Senior Member
Join Date: Mar 2014
Posts: 375
Rep Power: 13 |
i guess missing ";"
|
|
Tags |
fluent, parse error, temperature profile, udf, userdefined functions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 10:21 |
UDF for linear temperature variation | nonstopthinker | Fluent UDF and Scheme Programming | 2 | September 4, 2016 01:36 |
UDF for Back-flow Temperature | G340 | Fluent UDF and Scheme Programming | 3 | August 21, 2013 05:56 |
defining temperature profile with UDF | mohammadkm | Fluent UDF and Scheme Programming | 11 | July 3, 2013 01:15 |
temperature profile on boundary | sivakumar | FLUENT | 5 | November 24, 2002 01:58 |