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

Non uniform heat flux for inclined pipe

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 23, 2018, 05:00
Default Non uniform heat flux for inclined pipe
  #1
New Member
 
Devanarayanan
Join Date: Aug 2018
Posts: 3
Rep Power: 8
DevanK is on a distinguished road
I have developed a udf for non uniform heat flux on a horizontal pipe . The radius and length of the pipe are 0.033 m and 1m respectively. i have modeled the pipe in xy plane .Here is what I scripted so far :

#include "udf.h"

DEFINE_PROFILE(heat_flux, thread, position)

{

real x[ND_ND]; /* this will hold the position vector */

float y;

face_t f;

begin_f_loop(f,thread)

{

F_CENTROID(x, f, thread);

y = x[1];

if (-0.033 < y && y < -0.01858)

{

F_PROFILE(f, thread, position) = -6.2602e10 - 1.5741e13 * y - 1.6338e15 *(y * y) - 8.9775e16 * (y * y * y) - 2.7551e18 * (y * y * y * y) - 4.4779e19 * (y * y * y * y * y) - 3.0114e20 *( y * y * y * y *y);

}

else if (-0.01858 < y && y < 0.00332)

{

F_PROFILE(f, thread, position) = 7.0952e6 - 3.1159e9 * y + 3.9774e11 * (y * y) + 1.4705e13 * (y * y * y);

}

else if (0.00332 < y && y < 0.033)

{

F_PROFILE(f, thread, position) = 1.94e03;

}

}

end_f_loop(f, thread)



}

above given code running sucessfully . but it works only horizontal pipe. if i want to tilt the horizontal pipe in some degree say 13 degree . what are the changes needed in the udf?
DevanK is offline   Reply With Quote

Old   December 23, 2018, 23:35
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
your equations of F_PROFILE(f, thread, position) should be dependent on x as well as on y, use sin cos

best regards
AlexanderZ is offline   Reply With Quote

Reply

Tags
fluent - udf, inclined pipe, non unifrom heat flux, udf code


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
wallHeatFlux utility for an incompressible case Mr.Jingles OpenFOAM Post-Processing 67 April 6, 2023 04:25
Free jet simulation msarkar OpenFOAM Running, Solving & CFD 39 May 11, 2021 14:21
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
turbulent jet simulation antonio_ing OpenFOAM Running, Solving & CFD 5 September 16, 2010 03:31
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


All times are GMT -4. The time now is 17:15.