
[Sponsors] 
April 4, 2008, 04:36 
DEFINE_PROPERTY(diameter,c,t)

#1 
Guest
Posts: n/a

Hello, If I use this macro to define diameter of secondary phase in EulerEuler model, cell thread is thread of secondary phase. Am I right?
thanks in advance!! 

April 7, 2008, 06:21 
Re: DEFINE_PROPERTY(diameter,c,t)

#2 
Guest
Posts: n/a

No, t is the thread of secondary phase. c is a pointer to the current cell. Fluent loops over all cells of your domain.
Be carefull with changing the diameter. I believe that fluent increases/ decreases volume fraction when you do such a thing in order to conservate the mass 

April 7, 2008, 07:07 
Re: DEFINE_PROPERTY(diameter,c,t)

#3 
Guest
Posts: n/a

waw, thanks a lot, why does Fluent change the volume fraction? I just wanna change diameter depending on coordinates. Do you know how Fluent handles between diameter and vof?
uff, thank you very much 

April 7, 2008, 08:41 
Re: DEFINE_PROPERTY(diameter,c,t)

#4 
Guest
Posts: n/a

I'm not sure. Just check it out! If you see the equations there shouldn't be any problem. But if you for example reduce the diameter from 300μm to 200μm isn't there a mass loss? I had some problems in the past with this. Just check it out.


April 7, 2008, 09:16 
Re: DEFINE_PROPERTY(diameter,c,t)

#5 
Guest
Posts: n/a

you are right! I have also loss of mass! strange, I will check it out and let you know. Anyway, my routine is wrong, so I must firstly repair then, maybe, problem will disappear.
thank you! 

April 8, 2008, 03:10 
Re: DEFINE_PROPERTY(diameter,c,t)

#6 
Guest
Posts: n/a

I'm very interested in this. If you find something please let me know


April 10, 2008, 08:58 
Re: DEFINE_PROPERTY(diameter,c,t)

#7 
Guest
Posts: n/a

ehmm, now it is really clear, that there is mass and momentuum loss in domain, if I adjust the diameter every timestep. Unfortunately, I do not know why. I would expect Fluent to retain the volume fraction. It doesn´t! It means that I need other UDFs for defininig sources. Doesn´t it?
any suggestions? 

April 10, 2008, 09:21 
Re: DEFINE_PROPERTY(diameter,c,t)

#8 
Guest
Posts: n/a

No, the problem isn't with the UDF. I believe you should find the mass loss in the secondary phase and you should adjust it to the correct value in a UDF.


April 10, 2008, 10:23 
Re: DEFINE_PROPERTY(diameter,c,t)

#9 
Guest
Posts: n/a

This could be expression for source for continuity equation:
source = (vof*density/d^3)*(d^3D^3)*velocity vof = volume fraction of water before diameter adjustment d = diameter before breakup D = after breakup ehm, since it is euler euler model there should be then also mass loss of primary phase. That means, if I have energy equation off, there will be 4 sources. mass and momentum for each phase. Am I right? friend, check me please. have a nice day 

April 11, 2008, 06:09 
Re: DEFINE_PROPERTY(diameter,c,t)

#10 
Guest
Posts: n/a

About Source terms. In your case i believe that the best way is a "patch". For example when you enter your UDF before any change of your diameter find the mass of water. Then change your diameter and afterwards rechange your mass in the cell (not with source term!).
Nevertheless as now i see what you want to do i believe the best way to model breakup is population balance model. Check it out! Do you have the kernel for the breakup? A little complicated model (pbm)but very good. In 6.4 fluent there is a very good upgrade for population balance model. 

April 11, 2008, 06:57 
Re: DEFINE_PROPERTY(diameter,c,t)

#11 
Guest
Posts: n/a

Hi and thanks for the reply!
Regarding PBM, I do not have a license for that anyway. How would you change the mass? C_VOF(c,t) ? which macro would you use for hooking new vof? thank you again! 

April 14, 2008, 05:41 
Re: DEFINE_PROPERTY(diameter,c,t)

#12 
Guest
Posts: n/a

C_VOF(c,t)=0.1; For example will cet volume fraction in that cell 0.1


Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
DEFINE_PROPERTY udf question  Erik  Fluent UDF and Scheme Programming  2  September 4, 2012 04:10 
udf  droplet diameter  bohis  FLUENT  3  April 8, 2008 03:38 
UDF error : DEFINE_PROPERTY with PDF Model  Abhilash Chandy  FLUENT  0  June 2, 2006 17:07 
hydraulic diameter  David  FLUENT  4  June 22, 2005 04:20 
DEFINE_PROPERTY for flow speed?  Salman  FLUENT  0  April 10, 2003 14:06 