|
[Sponsors] |
UDF for mass transfer from DPM to continuous phase |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 22, 2022, 10:52 |
UDF for mass transfer from DPM to continuous phase
|
#1 |
New Member
mpcaixeta
Join Date: Sep 2022
Posts: 1
Rep Power: 0 |
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 11:11. |
|
Tags |
dpm fluent model, mass transfer model, species mass transfer, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
2-D phase change heat transfer UDF | arunraj | FLUENT | 1 | May 25, 2020 12:21 |
How to access only one phase in multiphase model by UDF | wersoe | Fluent UDF and Scheme Programming | 1 | January 4, 2017 07:11 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 07:00 |
Gas phase velocity in DPM Drag UDF | Hanz | Fluent UDF and Scheme Programming | 0 | June 2, 2009 14:08 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 1, 2003 23:32 |