CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Temperature Profile UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2016, 05:06
Default Temperature Profile UDF: Parse Error
  #1
New Member
 
AC
Join Date: Oct 2016
Posts: 4
Rep Power: 9
AC1993 is on a distinguished road
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 06:36.
AC1993 is offline   Reply With Quote

Old   November 1, 2016, 02:15
Default
  #2
Senior Member
 
Join Date: Mar 2014
Posts: 375
Rep Power: 13
hwet is on a distinguished road
i guess missing ";"
hwet is offline   Reply With Quote

Reply

Tags
fluent, parse error, temperature profile, udf, userdefined functions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[openSmoke] libOpenSMOKE Tobi OpenFOAM Community Contributions 562 January 25, 2023 09:21
UDF for linear temperature variation nonstopthinker Fluent UDF and Scheme Programming 2 September 4, 2016 00:36
UDF for Back-flow Temperature G340 Fluent UDF and Scheme Programming 3 August 21, 2013 04:56
defining temperature profile with UDF mohammadkm Fluent UDF and Scheme Programming 11 July 3, 2013 00:15
temperature profile on boundary sivakumar FLUENT 5 November 24, 2002 00:58


All times are GMT -4. The time now is 07:08.