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

Saturation temperature UDF for evaporation-condensation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2021, 10:42
Default Saturation temperature UDF for evaporation-condensation
  #1
Member
 
Obi
Join Date: Jul 2016
Location: Canada
Posts: 45
Rep Power: 6
obiscolly50 is on a distinguished road
I want to write a UDF for calculating the saturation temperature in a multiphase domain for simulating evaporation and condensation. I'm using a mixture model of the simulation. My domain consists of 2 phases:
1) Water vapour and air (modelled as a mixture of species)
2) Water liquid.

For the mass transfer, I believe the saturation temperature is the temperature of vapour condensation or liquid evaporation according to the Lee model. My thought is that to calculate the saturation temperature on a cell by cell basis, there could be 3 instances:
a) A cell only contains water vapour and air: In this case, the partial pressure of water pressure is used to calculate the saturation temperature (temperature of condensation)
b) A cell only contains water liquid: In this case, the pressure of the cell is used to calculate the saturation temperature (temperature of evaporation)
c) A cell contains a mixture of moist air and water liquid, the fraction which can be determined by using the C_VOF() macro.

Can someone tell me if my thought process is right for this problem? The last scenario is where I'm a bit confused. How can I deal with this scenario of 2 different phases occurring inside a cell? My thought is this would lead to a calculation of 2 saturation temperatures and mass transfer is likely to occur between both phases within the cell. This phenomenon is most likely to occur at the interface. If I have two saturation temperatures for both phases, which do I return to the UDF function?
obiscolly50 is offline   Reply With Quote

Reply

Tags
udf

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
UDF writes the outlet temperature assignment to the inlet temperature of another calc ZengJiChuan FLUENT 7 May 27, 2020 04:14
UDF to get the average temperature of a face and use it to define a property gdb Fluent UDF and Scheme Programming 16 October 22, 2019 04:07
UDF problem- time dependent temperature at inlet kaeran FLUENT 1 June 16, 2015 21:48
UDF for variable temperature with time CaglarCoskun Fluent UDF and Scheme Programming 8 January 15, 2014 09:15
Please Help! Temperature profile UDF for 3D geometry subhankar_bhandari FLUENT 0 August 16, 2010 08:40


All times are GMT -4. The time now is 15:59.