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 mass transfer from DPM to continuous phase

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2022, 11:52
Question UDF for mass transfer from DPM to continuous phase
  #1
New Member
 
mpcaixeta
Join Date: Sep 2022
Posts: 1
Rep Power: 0
mpcaixeta is on a distinguished road
Hi, I'm modeling a bubble/liquid (ozone/water) system using DPM approach. I want to describe the ozone mass transfer from the gas phase (inert DPM particle) to the liquid phase (dissolved ozone as a species), but I'm not finding any related information to combine a DPM udf with a species transport udf describing a mass transfer.

I wrote the algorithm to calculate the ozone mass transfer (see below), but now it is necessary to call some macro or macros so the udf can be available to be hooked into Fluent. I searched in the UDF manual, but I could not relate any macro that just promotes this type of calculation, It would be the DEFINE_DPM_SOURCE? but this is just a kl_o3 calculation (output variable). Can anyone help me with this please!?

Thanks in advance!

/*
UDF to calculate the gas mass transfer coefficient from the bubble surface
*/

#include "udf.h"
#define D_o3 1.76e-9 /* Ozone difusivity */
#define Pi 3.141592 /* Pi number */
#define L 0.2 /* column length */

real u_bmag; /* bubble velocity magnitude */
real u_rel; /* relative velocity between the bubble and the continuous phase */
real t_c; /* contact time between the bubble and the continuous phase */
real kl_o3;/* Ozone mass transfer coefficient */

u_bmag = sqrt(P_VEL(p)[0] * P_VEL(p)[0] + P_VEL(p)[1] * P_VEL(p)[1] + P_VEL(p)[2] * P_VEL(p)[2]);
u_rel = fabs(C_U(c, t) - u_bmag);
t_c = (L - P_POS(p)[1]) / u_rel;
kl_o3 = sqrt(D_o3 / (Pi*t_c)); /* Higbie penetration model */

Last edited by mpcaixeta; September 29, 2022 at 12:11.
mpcaixeta is offline   Reply With Quote

Old   September 19, 2024, 14:06
Smile
  #2
New Member
 
Alison
Join Date: Apr 2023
Posts: 1
Rep Power: 0
AlisonLNeves is on a distinguished road
Hi mpcaixeta,

I came across your post and was wondering if you managed to solve the issue with the UDF for the ozone mass transfer between the DPM and the continuous phase? I'm also working on a similar problem and would appreciate any insights you might have gained, especially regarding the correct macros to hook the mass transfer calculation into Fluent.

Looking forward to hearing from you!

Thanks!
AlisonLNeves is offline   Reply With Quote

Reply

Tags
dpm fluent model, mass transfer model, species mass transfer, udf


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
2-D phase change heat transfer UDF arunraj FLUENT 1 May 25, 2020 13:21
How to access only one phase in multiphase model by UDF wersoe Fluent UDF and Scheme Programming 1 January 4, 2017 08:11
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
Gas phase velocity in DPM Drag UDF Hanz Fluent UDF and Scheme Programming 0 June 2, 2009 15:08
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32


All times are GMT -4. The time now is 01:34.