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

Heat Flux UDF in 2-Phase Flow with Solidification

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2014, 10:17
Default Heat Flux UDF in 2-Phase Flow with Solidification
  #1
Member
 
Join Date: Jul 2010
Posts: 37
Rep Power: 16
steph79 is on a distinguished road
Hi,

I'm looking to use UDF's for my (thermal) wall boundary conditions using Fluent only I'm not sure how exactly to go about it, particularly when it comes to accessing the relevant solver arrays.

In more specific detail, the problem I'm studying considers two phases, with melting/solidification also activated such that one of the two phases, "liquid-solid" in the fluent materials database, can solidify through heat loss. To date I've just used a mixture of adiabatic and fixed temperature thermal boundary conditions but I think I would like to write a custom boundary condition which expresses the heat flux normal to the surface, with respect to the phase fraction averaged (mixture) thermal conductivity. q = -k(mix)*deltaT. In reality I will probably use a mixture of solid (k of the BC) and fluid (k of the phases) thermal conductivities

My first question therefore is how do I access the thermal conductivity (mixture) variable in a UDF?

If I initialise the temperature field with a value of 300K, for example, how do I then access the temperature on the faces of the boundary condition? This is such that I can determine the deltaT relative to a fixed freestream temperature to enforce the q Neumann BC.

My final question for now, particularly to those with more UDF experience, is should I be concentrating my efforts on the DEFINE_PROFILE or DEFINE_HEAT_FLUX? I think the latter.

Thanks a lot.
steph79 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
UDF for wall heat flux ? Seyoung Oh FLUENT 6 August 4, 2018 06:44
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
Space- and time-dependant heat flux via UDF flotus1 Fluent UDF and Scheme Programming 4 September 10, 2012 09:00
UDF to calculate average heat flux dynamics Fluent UDF and Scheme Programming 0 July 21, 2012 19:54
Natural convection - Inlet boundary condition max91 CFX 1 July 29, 2008 21:28


All times are GMT -4. The time now is 13:53.