|
[Sponsors] |
About bubble diameter setting in multiphase flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 17, 2007, 04:26 |
About bubble diameter setting in multiphase flow
|
#1 |
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; } |
|
August 17, 2007, 04:29 |
Re: About bubble diameter setting in multiphase fl
|
#2 |
Guest
Posts: n/a
|
bubble diameter is 2mm and not 5mm in inlet zone....
|
|
August 17, 2007, 04:56 |
Re: About bubble diameter setting in multiphase fl
|
#3 |
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. |
|
August 17, 2007, 05:48 |
Re: About bubble diameter setting in multiphase fl
|
#4 |
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 |
|
August 17, 2007, 09:12 |
Re: About bubble diameter setting in multiphase fl
|
#5 |
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. |
|
August 22, 2007, 10:47 |
Re: About bubble diameter setting in multiphase fl
|
#6 |
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.
|
|
|
|
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 |