|
[Sponsors] |
transient boundary condition for counter current multiphase system |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 12, 2017, 05:24 |
transient boundary condition for counter current multiphase system
|
#1 |
New Member
Vaishali G
Join Date: Sep 2017
Posts: 2
Rep Power: 0 |
Hello all,
I am working on liquid-solid counter current system with liquid entering from bottom and solid entering at the top. Solid enters only after 10s of flow time. I wrote a udf for solid inlet velocity as follows: #include "udf.h" DEFINE_PROFILE(solid_y_velocity,mixture_thread,i) { int phase_domain_index; real flow_time = CURRENT_TIME; face_t f; Thread *thread_s; phase_domain_index = 1; thread_s = THREAD_SUB_THREAD(mixture_thread, phase_domain_index) ; { if (flow_time <= 10.) { begin_f_loop(f,mixture_thread) { F_PROFILE(f,mixture_thread,i) = 0.; } end_f_loop(f,mixture_thread) } else { begin_f_loop(f,mixture_thread) { F_PROFILE(f,mixture_thread,i) = 0.001245; } end_f_loop(f,mixture_thread) } } } I don't face any issue in compiling the udf but after 10 seconds of simulation still velocity of solids is zero. Kindly help me out with this. Thank You |
|
September 12, 2017, 06:04 |
|
#2 |
Senior Member
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0 |
Have you tried supplying the solids thread instead of mixture?
|
|
September 12, 2017, 06:25 |
|
#3 |
New Member
Vaishali G
Join Date: Sep 2017
Posts: 2
Rep Power: 0 |
Thank for your reply
Is this the way you are asking me to do? #include "udf.h" DEFINE_PROFILE(solid_y_velocity,mixture_thread,i) { int phase_domain_index; real flow_time = CURRENT_TIME; face_t f; Thread *thread_s; phase_domain_index = 1; thread_s = THREAD_SUB_THREAD(mixture_thread,phase_domain_inde x); { if (flow_time <= 10.) { begin_f_loop(f,thread_s) { F_PROFILE(f,thread_s,i)= 0.; } end_f_loop(f,thread_s) } else { begin_f_loop(f,thread_s) { F_PROFILE(f,thread_s,i) = 0.001245; } end_f_loop(f,thread_s) } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
transient pressure and temperature boundary condition profile inicialization | Aurora23 | FLUENT | 2 | April 21, 2015 17:01 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
CFX fails to calculate a diffuser pipe flow | shenying0710 | CFX | 7 | March 26, 2013 05:13 |