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

About bubble diameter setting in multiphase flow

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2007, 04:26
Default About bubble diameter setting in multiphase flow
  #1
tchllc
Guest
 
Posts: n/a
Hi,everyone,I simulate multiphase flow with eular-eular model.water is continous phase and air is dispersed phase .For the dsepersed phase property,i want to set the bubble diameter is 5mm in inlet zone and 2mm in other zone,the follows is my UDF program,but the simulate result shows that the bubble diameter is 2mm and not 5mm,could anyone be kind to check my program to find where is wrong or give me some good adivses? DEFINE_PROPERTY(bubble_diameter,f,t) {

real d;

begin_f_loop(f,t)

{

if(THREAD_ID(t)==4)/*inlet ID=4*/

d=C_PHASE_DIAMETER(f,t)=0.005;

else

d=C_PHASE_DIAMETER(f,t)=0.002;

}

end_f_loop(f,t)

return d; }
  Reply With Quote

Old   August 17, 2007, 04:29
Default Re: About bubble diameter setting in multiphase fl
  #2
tchllc
Guest
 
Posts: n/a
bubble diameter is 2mm and not 5mm in inlet zone....
  Reply With Quote

Old   August 17, 2007, 04:56
Default Re: About bubble diameter setting in multiphase fl
  #3
Jack Martinez
Guest
 
Posts: n/a
Hi

I am not sure, if you forgot to include it in your UDF mentioned above but you also need to define face, thread and domain pointer in your UDF

so it should be like

DEFINE_PROPERTY(bubble_diameter,f,t)

{

face_t f;

Thread *t;

real dia=0;

Domain *d;

d=Get_Domain(1);

thread_loop_f(t,d)

{

if(THREAD_ID(t)==4)/*inlet ID=4*/

{

begin_f_loop(f,t)

{

dia=C_PHASE_DIAMETER(f,t)=0.005;

}

end_f_loop(f,t) }

else

dia=C_PHASE_DIAMETER(f,4)=0.002;

}

return dia; }

I am too busy to check it myself, moreover, I found your post not properly explained. So check it and if still some problem, feel free to write me a email.

Jack.
  Reply With Quote

Old   August 17, 2007, 05:48
Default Re: About bubble diameter setting in multiphase fl
  #4
tchllc
Guest
 
Posts: n/a
Hi,Jack martinez,

Thank you for your attention of my problem,I just compile your UDF program,but when i set'initialize',The simulation give the erro message as: Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()

Could you check the program to find where is wrong for me? ps:For the gas phase ID is 3,i have change the d=Get_Domain(3)in your program
  Reply With Quote

Old   August 17, 2007, 09:12
Default Re: About bubble diameter setting in multiphase fl
  #5
tchllc
Guest
 
Posts: n/a
Jack Martinez,

I have revised the UDF program as follows, DEFINE_PROPERTY(bubble_diameter,f,t)

{

face_t f;

Thread *t;

real dia=0;

Domain *d;

d=Get_Domain(3);

thread_loop_f(t,d)

{ if(THREAD_ID(t) == 4)/*inlet zone ID=4 */

{

begin_f_loop(f,t)

{ dia=0.005; }

end_f_loop(f,t) }

else

dia=0.002;

}

return dia; } Now,the fluent can simulate,but the result is also bubble diameter as 2mm in inlet zone.
  Reply With Quote

Old   August 22, 2007, 10:47
Default Re: About bubble diameter setting in multiphase fl
  #6
bashu
Guest
 
Posts: n/a
I guess the bubble diameter does not have any meaning on face, try defining it for cells attached to the inlet.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Multiphase flow (Eulerian) modeling Umesh FLUENT 5 December 29, 2014 11:06
multiphase flow in porous media zhou FLUENT 2 August 9, 2012 08:10
Ansys 11.0 CFX - solving electric potentials and multiphase flow cfd_multiphyiscs CFX 2 March 10, 2010 14:43
Solid-liquid flow (Eulerian-Eulerian multiphase model). panzer CFX 0 February 24, 2010 00:27
Multiphase flow problem icedou FLUENT 6 July 10, 2005 03:52


All times are GMT -4. The time now is 10:39.