CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF help in liquid-vapor interface modelling

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By AlexanderZ

LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2022, 08:23
Question UDF help in liquid-vapor interface modelling
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)

What should be my Interface_ID?
Attached Images
File Type: jpg vc.JPG (42.4 KB, 19 views)
venu1591 is offline   Reply With Quote

Old   January 24, 2022, 01:42
Senior Member
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
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


interface, udf code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 6 March 25, 2021 11:08
Can I define density in terms of liquid fraction in UDF? mariam.sara Fluent UDF and Scheme Programming 21 August 25, 2019 23:56
problem in temperature and liquid fraction value in the udf durg FLUENT 0 October 23, 2018 01:52
Problems modelling nucleate boiling using mass transfer udf from tutorial aayushjain27 Fluent UDF and Scheme Programming 0 February 7, 2015 07:23
Please help with liquid fuel combustion modelling tom FLUENT 4 October 17, 2014 21:08

All times are GMT -4. The time now is 20:36.