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

UDF bubble diameter

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 2 Post By Sun
  • 1 Post By CeesH
  • 2 Post By CeesH

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2014, 15:17
Default UDF bubble diameter
  #1
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
Hello all,

I'm writing a UDF for mass transfer between the gas and liquid phase in the eulerian multiphase model. One of the parameters in the Kla is of course the bubble size (or sauter mean diameter).

Now, I was looking for a macro to read this diameter from FLUENT but could not find one. For regular calculations, this is not extremely problematic as the bubble diameter can be fixed in the UDF. But as I want to move towards population balance models this becomes somewhat more problematic - I need the local bubble diameter and bin distribution of sizes.

I know people used kla models with population balances - at least they published work on it - but could not find a UDF code that does something like that, or a way to load the local bubble distribution into my UDF. Could anyone help me out on this?

Thanks in advance,
Cees
CeesH is offline   Reply With Quote

Old   August 1, 2014, 03:51
Default
  #2
Sun
Senior Member
 
Sun's Avatar
 
Join Date: Nov 2010
Posts: 103
Rep Power: 15
Sun is on a distinguished road
Hi,
You can use
Code:
C_PHASE_DIAMETER(c,t)
to get the diameter of the dispersed phase. But somehow I think this would only solve the first part of your problem (say you have either a constant bubble size or a homogeneous size distribution which is only varying by time not space.)
For the second part, however, when you are solving a PBE, and I am assuming here you are solving it via tracking moments of an NDF, you might be able to get away by storing the moments into UDS(s) and then use the stored moments to build the size distribution function, or at least get its mean and variance.
cheers!
soheil_r7 and anubis like this.
Sun is offline   Reply With Quote

Old   August 1, 2014, 14:45
Default
  #3
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
Hi Sun,

Thanks! I didn't stumble across that one yet.

I did find C_PB_DISCI(c,t,i) which should give the volume fraction per bin i in a pop. balance model; so combining that with knowing the bin size should get me there, I think.

Another issue I'm now facing (for the single bubble size) is that FLUENT does not seem to recognize my mass transfer UDF, also when I turn `use linearized m.t. udf' off. It simply says no m.t. UDF is loaded. Did anyone experience this problem?

Maybe using a linearized version solves it, but haven't worked on that yet.

Best,
Cees
CeesH is offline   Reply With Quote

Old   August 1, 2014, 15:01
Default
  #4
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
nvm, fixed it. it seems to matter if you switch between m.t. and linearized m.t. before or after compiling...
CeesH is offline   Reply With Quote

Old   April 16, 2015, 05:47
Default a littie more explanation
  #5
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 11
majid_kamyab is on a distinguished road
could you please give me more details?
could you find bubble diameter in population balance model?
how?
majid_kamyab is offline   Reply With Quote

Old   April 16, 2015, 10:49
Default
  #6
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
I never worked with the discrete population balance models in the end, switched to QMOM. There, there is no bubble diameter that you can extract as you are tracking purely statistical characteristics. You can however use the definition of the sauter mean diameter: moment 3/moment 2. These you can extract and use, if sauter is the applicable diameter to represent in your case.
Darko likes this.
CeesH is offline   Reply With Quote

Old   April 18, 2015, 07:53
Default macros?
  #7
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 11
majid_kamyab is on a distinguished road
sauter mean is applicable.is there any specific macros that can be used in order to attain d3/d2?
how did you defined it? sorry I am new to PBM.
I cant use QMOM because I only have two phases.
thanks in advance
majid_kamyab is offline   Reply With Quote

Old   April 19, 2015, 05:06
Default
  #8
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
You can use QMOM with 2 phases - QMOM uses moments to describe the population distribution in the 2nd phase rather than a discrete-bin approach.

It could be there is a direct way to call the sauter diameter as FLUENT also uses this for drag calculations when using qmom. In any way, you can use the moment macros to calculate the sauter diameter:

Code:
S_DIAM = C_PB_QMOMI(c,t,3)/C_PB_QMOMI(c,t,2);
should do the trick. Don't forget to include sg_pb.h

More information can be found in the manual - advance addon modules/population balance
soheil_r7 and SphericalCube like this.
CeesH is offline   Reply With Quote

Old   April 19, 2015, 05:33
Default thanks a lot
  #9
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 11
majid_kamyab is on a distinguished road
thanks a lot for the details.
I hope I can do something in return
best wishes
majid_kamyab is offline   Reply With Quote

Old   May 20, 2023, 02:54
Default
  #10
New Member
 
sachin
Join Date: Dec 2016
Posts: 7
Rep Power: 9
sachin tom is on a distinguished road
Hii all...
I am trying to perform sub-cooled flow boiling simulations in Fluent with RPI wall boiling and population balance model. But I am unable to couple both simultaneously as, if the boiling model is enabled, the population balance is not active. How can I tackle this issue?

Your kind suggestions will be highly appreciated.
sachin tom is offline   Reply With Quote

Reply

Tags
euler, kla, mass transfer, multiphase, pbm


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
bubble equivalent diameter mayj CFX 9 November 17, 2019 12:12
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
help for UDF, define bubble growth tagada Fluent UDF and Scheme Programming 0 October 25, 2010 09:07
Query on VOF for Bubble rise Vamsi Main CFD Forum 0 December 22, 2005 00:02
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 02:32.