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

UDF for temperature profile at inlet?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By vcvedant

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2017, 12:36
Default UDF for temperature profile at inlet?
  #1
Senior Member
 
Join Date: Jan 2011
Posts: 339
Rep Power: 16
mariam.sara is on a distinguished road
Hello I want to set temperature profile at left wall boundary for a square cavity as illustrated in picture. As it seen the temerature is function of vertical distance ? I need somebody assist me to write the UDF for this wall and thanks a lot for any help?

regards,
mariam
Attached Images
File Type: jpg hh.jpg (20.5 KB, 42 views)
mariam.sara is offline   Reply With Quote

Old   July 10, 2017, 16:47
Default
  #2
AHF
Member
 
AHF's Avatar
 
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 12
AHF is on a distinguished road
Quote:
Originally Posted by mariam.sara View Post
Hello I want to set temperature profile at left wall boundary for a square cavity as illustrated in picture. As it seen the temerature is function of vertical distance ? I need somebody assist me to write the UDF for this wall and thanks a lot for any help?

regards,
mariam
use DEFINE_PROFILE macro
search for it in ansys help for toturial
__________________
amirhosseinfardi94@gmail.com
AHF is offline   Reply With Quote

Old   July 10, 2017, 16:51
Default
  #3
Senior Member
 
Join Date: Jan 2011
Posts: 339
Rep Power: 16
mariam.sara is on a distinguished road
Quote:
Originally Posted by AHF View Post
use DEFINE_PROFILE macro
search for it in ansys help for toturial
Sorry I do not find this subject may you assist me please by sending me a link for it or send me a related tutorial?
mariam.sara is offline   Reply With Quote

Old   July 10, 2017, 19:20
Default
  #4
Member
 
Vedamt Chittlangia
Join Date: Feb 2016
Posts: 64
Rep Power: 9
vcvedant is an unknown quantity at this point
This is very simple.

DEFINE_PROFILE(udf_temp, t, i)
{
face_t f;
real x[ND_ND], y, Th, Tc, L;
/* change the values of the constants */
Th = 310;
Tc = 295;
L = 2;
begin_f_loop (f,t)
{
F_CENTROID(x,f,t);
y = x[1]; /* x is a vector */
F_PROFILE(f,t,i) = Th - y*(Th-Tc)/L;
}
end_f_loop (f,t)
}
mariam.sara and AHF like this.
vcvedant is offline   Reply With Quote

Old   July 11, 2017, 07:25
Default
  #5
Senior Member
 
Join Date: Jan 2011
Posts: 339
Rep Power: 16
mariam.sara is on a distinguished road
Quote:
Originally Posted by vcvedant View Post
This is very simple.

DEFINE_PROFILE(udf_temp, t, i)
{
face_t f;
real x[ND_ND], y, Th, Tc, L;
/* change the values of the constants */
Th = 310;
Tc = 295;
L = 2;
begin_f_loop (f,t)
{
F_CENTROID(x,f,t);
y = x[1]; /* x is a vector */
F_PROFILE(f,t,i) = Th - y*(Th-Tc)/L;
}
end_f_loop (f,t)
}
Thanks a lot vcvedant
mariam.sara is offline   Reply With Quote

Reply


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
(ask) how to create UDF for inlet velocity profile sincity Fluent UDF and Scheme Programming 83 May 16, 2022 14:04
UDF - Inlet Velocity Profile (Ansys Fluent) vinayak4399 Fluent UDF and Scheme Programming 3 August 25, 2020 15:15
UDF parbolic inlet velocity profile for 3D channel flow. srv537 FLUENT 0 August 6, 2016 03:21
3-D parabolic velocity Inlet - Steady state - UDF Turbulent Flow mohibanwar Fluent UDF and Scheme Programming 10 May 18, 2015 11:34
How to apply an outlet velocity profile to another inlet? siw FLUENT 4 April 10, 2013 12:19


All times are GMT -4. The time now is 19:13.