|
[Sponsors] |
Please Help! Temperature profile UDF for 3D geometry |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 16, 2010, 02:47 |
Please Help! Temperature profile UDF for 3D geometry
|
#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. |
|
April 16, 2011, 06:23 |
|
#2 |
Member
Join Date: Mar 2011
Posts: 50
Rep Power: 15 |
for 3d
y = pow(x[1],2) + pow(x[2],2) |
|
April 16, 2011, 06:30 |
|
#3 |
Member
Join Date: Mar 2011
Posts: 50
Rep Power: 15 |
for 3d
y = pow(x[1],2) + pow(x[2],2) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
please help UDF for velocity profile in y-directio | raju | Fluent UDF and Scheme Programming | 6 | April 13, 2019 00:21 |
3D UDF Paraboilc Velocity Profile (Can't Maintain) | Sing | FLUENT | 12 | August 7, 2017 07:25 |
UDF: temperature profile | dolores | FLUENT | 6 | August 5, 2016 21:16 |
how to set temperature profile in atmospheric boundary layer | vickrenz | FLUENT | 0 | September 16, 2009 14:26 |
velocity and temperature profile | vickrenz | FLUENT | 0 | August 31, 2009 00:58 |