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

please, would anyone help me with this UDF, inlet temperature change with time

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2014, 13:26
Default please, would anyone help me with this UDF, inlet temperature change with time
  #1
New Member
 
Juun
Join Date: Aug 2013
Location: UK
Posts: 12
Rep Power: 12
Juun is on a distinguished road
here is my UDF, i used random number to test it. but the result (temperature at inlet) stays at 450. I don't know where is wrong. Would you help me out? Thanks

#include "udf.h"
DEFINE_PROFILE(inlet_t, thread, index)
{
face_t f;
real time=RP_Get_Real("flow-time");
begin_f_loop(f,thread)
{
if(time>0 && time<=6)
F_PROFILE(f,thread,index)=375;
else if(time>6 && time<=9)
F_PROFILE(f,thread,index)=675;
else if(time>9)
F_PROFILE(f,thread,index)=450;
}
end_f_loop(f,thread)
}


Juun is offline   Reply With Quote

Old   March 18, 2014, 04:56
Default
  #2
New Member
 
Sadegh Tafakor
Join Date: May 2012
Location: Tehran
Posts: 14
Rep Power: 14
sadegh1068 is on a distinguished road
Hi Dear juun,

I tested your UDF and it worked correctly!
i tested it in a simple channel and attach temperature contour. as you can see, 3 temperature field are appear in this contour.
Regards.
Sadegh.
Attached Images
File Type: jpg temp contour.JPG (77.4 KB, 17 views)
sadegh1068 is offline   Reply With Quote

Old   March 18, 2014, 10:03
Default
  #3
New Member
 
Juun
Join Date: Aug 2013
Location: UK
Posts: 12
Rep Power: 12
Juun is on a distinguished road
Quote:
Originally Posted by sadegh1068 View Post
Hi Dear juun,

I tested your UDF and it worked correctly!
i tested it in a simple channel and attach temperature contour. as you can see, 3 temperature field are appear in this contour.
Regards.
Sadegh.
Hi, Sadegh

Thank you very much for the testing. it's brilliant. I really appreciate it.
I finally figured out that I made mistake on extracting the results.

Regards
Juun
Juun is offline   Reply With Quote

Reply

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
How to export time series of variables for one point? mary mor OpenFOAM Post-Processing 8 July 19, 2017 10:54
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 13:40
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
UDF for variable temperature with time CaglarCoskun Fluent UDF and Scheme Programming 8 January 15, 2014 09:15
An issue with temperature change in unsteady prob Ashok kumar FLUENT 1 January 13, 2009 04:34


All times are GMT -4. The time now is 12:34.