|
[Sponsors] |
July 17, 2012, 07:50 |
UDF Temperature boundary Conditions
|
#1 |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 13 |
I'm trying to set a variable temperature as boundary condition on the exterior surface of a cylinder. I work in 3D and I've done the attached udf. It is well compiled under Fluent but there is no fluctuation of temperature along the tube. In my case the Temperature should change on the Z axis but in the simulation it seems that it changes on the x axis. Could you tell my if my UDF is OK and why it doesn't work ?
Thanks Here's the code : #include"udf.h" /* profile for temperature */ DEFINE_PROFILE(z_temperature,t,i) { real z[ND_ND]; real y; face_t f; begin_f_loop(f,t) { F_CENTROID(z,f,t); y=z[0]; F_PROFILE(f,t,i) =4.6706*10*10*10*10*10*10*y*y*y*y*y+2.3199*10*10*1 0*10*10*10*y*y*y*y-85471*y*y*y-72106*y*y-437.51*y+1722.5; } end_f_loop(f,t) } Last edited by sylvix48; July 17, 2012 at 09:20. |
|
July 17, 2012, 11:06 |
|
#2 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46 |
z[0] reads the x-coordinate. No wonder your profile changes with x.
use z[2] instead. |
|
July 18, 2012, 03:01 |
|
#3 |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 13 |
Thanks a lot, it works !
I'm beginner in the UDF coding, I don't know all the stuff about it |
|
July 20, 2012, 12:26 |
|
#4 | |
New Member
Join Date: Jul 2012
Posts: 18
Rep Power: 13 |
I'm also new at udf and I want to stabilish simple boundary conditions.
I'm trying to implement stream function to compare my result with fluent's result. On the cavity walls, Velocity is zero. Do I have to mention this or when I simulate I set this on fluent? Look what I've done: Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF setting wall boundary condition with a DEFINE_PROFILE | NLao | FLUENT | 3 | September 2, 2019 00:33 |
defining temperature profile with UDF | mohammadkm | Fluent UDF and Scheme Programming | 11 | July 3, 2013 00:15 |
Please Help! Temperature profile UDF for 3D geometry | subhankar_bhandari | FLUENT | 2 | April 16, 2011 05:30 |
Help please! UDF for Temperature profile in 3D | subhankar_bhandari | Fluent UDF and Scheme Programming | 2 | August 16, 2010 08:37 |
boundary condition for temperature | ane | Main CFD Forum | 0 | March 24, 2008 04:27 |