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

UDF help in liquid-vapor interface modelling

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2022, 09:23
Question UDF help in liquid-vapor interface modelling
  #1
New Member
 
venu madhav
Join Date: Apr 2017
Posts: 3
Rep Power: 9
venu1591 is on a distinguished road
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?
Attached Images
File Type: jpg vc.JPG (42.4 KB, 22 views)
venu1591 is offline   Reply With Quote

Old   January 24, 2022, 02:42
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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)
as numbering of faces on each walls could be random (should be tested)

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
venu1591 likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
interface, udf code


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
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


All times are GMT -4. The time now is 10:43.