|
[Sponsors] |
Please Help! Temperature profile UDF for 3D geometry |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Subhankar
Join Date: Jul 2010
Posts: 12
Rep Power: 16 ![]() |
Hi all,
I am using UDF to define temperature field in 2D fluid flow problem. If I would like to put 3D temperature profile , what modification of UDF for 2D temperature profile is required. My UDF for 2D temperature profile is : DEFINE_PROFILE(inlet_temp, thread, index) { real x[ND_ND]; real temp, y; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1]; temp = (12285-333)*(1-(pow((y/0.0035),4)))+(333); F_PROFILE(f, thread, index) = temp; printf("Temperature calculated by UDF is %f\n",temp); } end_f_loop(f, thread) } what would be for 3D? Thanks in advance. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for a horizontal temperature profile | CD | Fluent UDF and Scheme Programming | 9 | May 6, 2018 12:13 |
UDF - Temperature adjustment | PaulK | FLUENT | 1 | July 16, 2010 15:09 |
velocity and temperature profile | vickrenz | FLUENT | 0 | August 30, 2009 23:58 |
UDF or any approach for Bulk Temperature calculation | vemps | FLUENT | 0 | May 1, 2009 01:09 |
UDF velocity and temperature | Raj | FLUENT | 3 | February 1, 2009 18:29 |