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

How to apply a heat distribution over a dynamic free-surface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2018, 11:58
Default How to apply a heat distribution over a dynamic free-surface
  #1
New Member
 
Join Date: Aug 2017
Posts: 20
Rep Power: 8
cfdstar is on a distinguished road
Hi experts,

I wanted to model a gas-liquid problem using a fixed grid approach (i.e. no dynamic mesh), in which the liquid interface is heated by an external source. The free surface is free to deform and move. How can I distribute a flux over this dynamic free surface? Is there any UDF example that I can use or modify to this end?

Cheers
cfdstar is offline   Reply With Quote

Old   February 23, 2018, 02:35
Default
  #2
New Member
 
Doruk Yelkenci
Join Date: Apr 2017
Posts: 20
Rep Power: 8
doruk is on a distinguished road
Hello,

You can use DEFINE_SOURCE macro and add it to the cell zone source terms.

here is how i would do it

DEFINE_SOURCE(Energy, cell, thread, dS, eqn)

{
real heat;
Thread *pri_th, *sec_th;
pri_th = THREAD_SUB_THREAD(thread,0);
sec_th = THREAD_SUB_THREAD(thread,1);

if(C_VOF(cell,sec_th)>0.001&&C_VOF(cell,sec_th)<0. 99) //finds the free surface
{
heat=900; // this value has to be w/m3. You can adjust this as you wish
}
else
{
heat=0;
}

dS[eqn] = 0;
return heat;

}

best regards,
Doruk
doruk 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
Free surface sensitivity - drag coefficient & mesh sizes SYL Main CFD Forum 1 May 15, 2023 11:53
Convective and Radiative heat B.C. in Free surface modelling Tushar_Telmasre Fluent UDF and Scheme Programming 0 July 24, 2017 17:43
[snappyHexMesh] Layers don't fully surround surface EVBUCF OpenFOAM Meshing & Mesh Conversion 14 August 20, 2012 04:31
how to define kinematic and dynamic free surface boundaries in VOF? novan tofany Main CFD Forum 0 March 24, 2012 04:03
CFX convergence issues with free surface adenlan CFX 3 September 2, 2011 06:43


All times are GMT -4. The time now is 06:34.