|
[Sponsors] |
July 10, 2017, 12:36 |
UDF for temperature profile at inlet?
|
#1 |
Senior Member
Join Date: Jan 2011
Posts: 339
Rep Power: 16 |
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 |
|
July 10, 2017, 16:47 |
|
#2 | |
Member
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 12 |
Quote:
search for it in ansys help for toturial
__________________
amirhosseinfardi94@gmail.com |
||
July 10, 2017, 16:51 |
|
#3 |
Senior Member
Join Date: Jan 2011
Posts: 339
Rep Power: 16 |
||
July 10, 2017, 19:20 |
|
#4 |
Member
Vedamt Chittlangia
Join Date: Feb 2016
Posts: 64
Rep Power: 9 |
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) } |
|
July 11, 2017, 07:25 |
|
#5 | |
Senior Member
Join Date: Jan 2011
Posts: 339
Rep Power: 16 |
Quote:
|
||
|
|
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 |