|
[Sponsors] |
January 21, 2022, 09:23 |
UDF help in liquid-vapor interface modelling
|
#1 |
New Member
venu madhav
Join Date: Apr 2017
Posts: 3
Rep Power: 9 |
Hi community,
I am trying to simulate a vapor chamber in FLUENT 2020 R2 as shown in figure. Initially iam planning to model liquid and vapor flows seperately and give appropriate source terms at the interface. For example, I will have a negative mass source term in liquid side and the same positive mass source term in vapor side of the interface. However, I am struck with the problem of identifying the correct face threads to use. I am not sure what type to keep the liquid-vapor interface as. I have a number of options like: 1) keeping them as walls (say x,y) and give their ID's as the thread ID's for which i give the source terms. 2) convert them to interface type and creat coupled interface (say named 'interf'). This leads to creating three things: a) Two interface type instances of interf on both the walls with new interface ID's. b) Two new walls (x-non overlapping, y-non-overlapping) with their own wall ID's. c) Another two new walls with arbitrary names (z-1-1-1, z-1-1-1- shadow) with their own wall ID's. This is where I am lost, what ID's should i use when i want to identify the face threads of my interface like: thread_loop_f(t, domain) { if (THREAD_ID(t) == Interface_ID) { begin_f_loop(f, t) { ... ... } end_f_loop(f,t) } } What should be my Interface_ID? |
|
January 24, 2022, 02:42 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
as I see your problem you should keeping them as walls so you know ID's from fluent GUI
this condition, probably, will not give you link between faces Code:
if (THREAD_ID(t) == Interface_ID) so, my vision: to find the link between face you need: loop over faces of wall 1, check coordinate of face1 (face on wall 1) loop over faces of wall 2, check coordinate of face2 (face on wall 2) compare coordinates if you find other way, please share
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
interface, udf code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Variable Surface Tension Modelling UDF (Modifications to CSF) | Venky_94 | Fluent UDF and Scheme Programming | 7 | May 28, 2024 11:28 |
Can I define density in terms of liquid fraction in UDF? | mariam.sara | Fluent UDF and Scheme Programming | 21 | August 26, 2019 00:56 |
problem in temperature and liquid fraction value in the udf | durg | FLUENT | 0 | October 23, 2018 02:52 |
Problems modelling nucleate boiling using mass transfer udf from tutorial | aayushjain27 | Fluent UDF and Scheme Programming | 0 | February 7, 2015 08:23 |
Please help with liquid fuel combustion modelling | tom | FLUENT | 4 | October 17, 2014 22:08 |