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

Non-uniform heat flux on a tube

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By flotus1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2013, 07:41
Default Non-uniform heat flux on a tube
  #1
Member
 
Join Date: Sep 2011
Posts: 39
Rep Power: 14
Kamu is on a distinguished road
Dear all,

How can I use a non-uniform heat flux boundary condition along the circumference of a tube?

Regards
Kamu is offline   Reply With Quote

Old   July 19, 2013, 08:11
Default
  #2
Member
 
Join Date: Sep 2011
Posts: 39
Rep Power: 14
Kamu is on a distinguished road
Quote:
Originally Posted by Kamu View Post
Dear all,

How can I use a non-uniform heat flux boundary condition along the circumference of a tube?

Regards
Is there any way I can write a udf for such in 3d?
Kamu is offline   Reply With Quote

Old   July 19, 2013, 09:08
Default
  #3
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
With the define_profile macro you should be able to specify such a boundary condition.

Code:
  #include "udf.h"   
 DEFINE_PROFILE(heatflux,t,i)
 {    
  real x[ND_ND];       
  face_t f;    
   
  begin_f_loop(f,t)
        {
          F_CENTROID(x,f,t);
        
          F_PROFILE(f,t,i) = 1.0;
          *instead of 1.0, define whatever spatial function you want
          *x[1] is the x-coordinate, x[2] the y-coordinate and x[3] the z-coordinate
        }
       end_f_loop(f,t)
}
pouyaei3731 likes this.
flotus1 is offline   Reply With Quote

Old   July 19, 2013, 09:14
Default
  #4
Member
 
Join Date: Sep 2011
Posts: 39
Rep Power: 14
Kamu is on a distinguished road
Dear Alex,

Thanks a lot for this. I will try it out.
so i do not need to worry about converting the cartesian coordinates to cylindrical coordinates?
The heat flux varies only in the circumferential direction and not in the radial or axial direction.

Regards
Kamu
Kamu is offline   Reply With Quote

Old   July 19, 2013, 09:17
Default
  #5
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
If your simulation is real 3D then there should be no problem.
flotus1 is offline   Reply With Quote

Old   July 13, 2016, 00:25
Default Non-uniform heat flux on a tube
  #6
New Member
 
Jharkhand
Join Date: Jul 2015
Posts: 5
Rep Power: 10
ravi1005 is on a distinguished road
above program is not running and what is the meaning of x[1],y[1] and z[1].
ravi1005 is offline   Reply With Quote

Old   July 13, 2016, 04:28
Default
  #7
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
"program not running" is not an error description to work with.

There is no x[1], y[1] and z[1] in the code.
As the comment lines say, the array x holds the position vector. Thanks to my fortran background I shifted the indices. The comment line should read:
Code:
*x[0] is the x-coordinate, x[1] the y-coordinate and x[2] the z-coordinate
I would edit this error, but the post is too old.
flotus1 is offline   Reply With Quote

Old   August 2, 2019, 06:14
Default
  #8
New Member
 
Join Date: Jul 2019
Posts: 2
Rep Power: 0
m.f.arefi is on a distinguished road
hi can you tell me what's the heat flux function you've defined mathematically as non-uniform heat flux?
m.f.arefi is offline   Reply With Quote

Old   August 2, 2019, 08:01
Default
  #9
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Code:
  #include "udf.h"   
 DEFINE_PROFILE(heatflux,t,i)
 {    
  real x[ND_ND];       
  face_t f;    
   
  begin_f_loop(f,t)
        {
          F_CENTROID(x,f,t);
        
          F_PROFILE(f,t,i) = 1.0;
          *instead of 1.0, define whatever spatial function you want
          *x[0] is the x-coordinate, x[1] the y-coordinate and x[2] the z-coordinate
        }
       end_f_loop(f,t)
}
for instance
Code:
F_PROFILE(f,t,i) = x[0]*1000.0;
is heat source which increases along x-axis 1000 times with each meter
heat source could be time dependent as well

best regards
AlexanderZ is offline   Reply With Quote

Old   August 16, 2019, 02:42
Default
  #10
New Member
 
Join Date: Jul 2019
Posts: 2
Rep Power: 0
m.f.arefi is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Code:
  #include "udf.h"   
 DEFINE_PROFILE(heatflux,t,i)
 {    
  real x[ND_ND];       
  face_t f;    
   
  begin_f_loop(f,t)
        {
          F_CENTROID(x,f,t);
        
          F_PROFILE(f,t,i) = 1.0;
          *instead of 1.0, define whatever spatial function you want
          *x[0] is the x-coordinate, x[1] the y-coordinate and x[2] the z-coordinate
        }
       end_f_loop(f,t)
}
for instance
Code:
F_PROFILE(f,t,i) = x[0]*1000.0;
is heat source which increases along x-axis 1000 times with each meter
heat source could be time dependent as well

best regards
hi again thank you for your reply
I m working on a pipe in pipe volumetric solar collector and I want to choose best radiation model in ansys fluent because my multiphase model is mixture for simulating nanofluid and my solver is pressure based you know when I read papers related to this topic I found that monte carlo method (density based) is a proper model and using udf file to consider non uniform radiation is applied so what should I do ?I cant change to monte carlo method because mixture model is important for me...
m.f.arefi is offline   Reply With Quote

Old   August 18, 2019, 22:18
Default
  #11
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
from my point of view monte carlo method is just a slover, use other one
write new paper

best regards
AlexanderZ is offline   Reply With Quote

Reply


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
Conjugate Heat Transfer: Wall Heat Flux at Coupled Walls? MaxHeat FLUENT 4 September 14, 2017 10:44
Heat Flux Profile at Fluid-Porous Interface Hitch8 CFX 4 December 15, 2012 09:57
Heat Flux at Internal walls or Fluid Solid Interface Mahi CFX 3 October 1, 2012 02:18
chtMultiRegionSimpleFoam javad814 OpenFOAM 1 September 26, 2011 13:30
Heat transfer in circular tube with constant wall heat flux ali radwan ANSYS 0 August 30, 2010 20:30


All times are GMT -4. The time now is 02:32.