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

UDF for CO2 mass transfer from Gas_Mixture (CO2+O2+N2) to Liquid_Mixture (CO2+H2O)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 14, 2023, 04:14
Default UDF for CO2 mass transfer from Gas_Mixture (CO2+O2+N2) to Liquid_Mixture (CO2+H2O)
  #1
New Member
 
Krishna
Join Date: Oct 2016
Posts: 12
Rep Power: 10
kavatar is on a distinguished road
Hello Experts,

Kindly help me with this UDF, compiled to study CO2 mass transfer (or dissolution) from Gas_Mixture (CO2+O2+N2) to Liquid_Mixture (CO2+H2O). Note-CO2 is the first species in both mixture.

Towards this, I have already calculated Mass transfer coefficient (Kl), area density (Av) and unit less Henry's constant (He).

UDF-1

DEFINE_MASS_TRANSFER(gas_liquid_source, cell, thread, from_index, from_species_index, to_index, to_species_index)
{
#if !RP_HOST

Thread *gas = THREAD_SUB_THREAD(thread, from_index);
Thread *liq = THREAD_SUB_THREAD(thread, to_index);

m_gl=Kl*Av*(He*C_R(cell,gas)*C_YI(cell,gas,0)-C_R(cell,liq)*C_YI(cell,liq,0));

return m_gl;

#endif
}

UDF-2

DEFINE_MASS_TRANSFER(gas_liquid_source, cell, thread, from_index, from_species_index, to_index, to_species_index)
{
#if !RP_HOST

Thread *gas = THREAD_SUB_THREAD(thread, from_index);
Thread *liq = THREAD_SUB_THREAD(thread, to_index);

m_gl=Kl*Av*(He*C_R(cell,gas)*C_YI(cell,gas,0)*C_VOF(cell,gas)-C_R(cell,liq)*C_YI(cell,liq,0)*C_VOF(cell,liq));

return m_gl;

#endif
}

Only difference in these two UDFs is the C_VOF(cell,gas) and C_VOF(cell,liq) appearing in the second one, while these have been ignored in the first one.

Can anyone tell me which one is correct? Is multiplication of volume fraction of phase necessary or it can be ignored while computing the driving force?
kavatar is offline   Reply With Quote

Reply

Tags
gas dissolution, mass transfer, multiphase flow, species mass transfer, two-phase mass transfer


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
Fluent udf on mass transfer AKHIL123 Fluent UDF and Scheme Programming 3 May 4, 2022 13:34
Multiphase mass transfer udf deada Fluent UDF and Scheme Programming 2 March 27, 2017 09:17
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 06:15
Problems regarding mass transfer UDF Yifan_G Fluent UDF and Scheme Programming 8 December 8, 2014 11:21
Udf mass transfer multiphase access violation majid_kamyab Fluent UDF and Scheme Programming 17 September 26, 2014 09:24


All times are GMT -4. The time now is 08:17.