|
[Sponsors] |
How to apply a heat distribution over a dynamic free-surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 30, 2018, 12:58 |
How to apply a heat distribution over a dynamic free-surface
|
#1 |
New Member
Join Date: Aug 2017
Posts: 21
Rep Power: 9 |
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 |
|
February 23, 2018, 03:35 |
|
#2 |
New Member
Doruk Yelkenci
Join Date: Apr 2017
Posts: 20
Rep Power: 9 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free surface sensitivity - drag coefficient & mesh sizes | SYL | Main CFD Forum | 1 | May 15, 2023 12:53 |
Convective and Radiative heat B.C. in Free surface modelling | Tushar_Telmasre | Fluent UDF and Scheme Programming | 0 | July 24, 2017 18:43 |
[snappyHexMesh] Layers don't fully surround surface | EVBUCF | OpenFOAM Meshing & Mesh Conversion | 14 | August 20, 2012 05:31 |
how to define kinematic and dynamic free surface boundaries in VOF? | novan tofany | Main CFD Forum | 0 | March 24, 2012 05:03 |
CFX convergence issues with free surface | adenlan | CFX | 3 | September 2, 2011 07:43 |