|
[Sponsors] |
December 7, 2015, 02:04 |
Coupling outlet to inlet
|
#1 |
New Member
Roman
Join Date: Dec 2013
Posts: 2
Rep Power: 0 |
Hello,
I would like to simulate a drying process in my 3D model, and I need to set the species mass fraction in the inlet to be the same as the outlet (Zone 11). Here is my udf: #include "udf.h" int get_humidity_zone_ID = 11; real Hum; DEFINE_ADJUST(find_humidity,domain) { #if !RP_HOST Thread *ft,*ct; face_t f; cell_t c; ft = Lookup_Thread(domain,get_humidity_zone_ID); ct = THREAD_T0(ft); begin_f_loop(f,ft) { c = F_C0(f,ft); Hum = C_YI(c,ct,0); } end_f_loop(f,ft) #endif } DEFINE_PROFILE(inlet_humidity,t,eqn) { face_t f; begin_f_loop(f,t) { F_PROFILE(f,t,eqn) = Hum; } end_f_loop(f,t) } But for some reason the species mass fraction of the inlet is always zero. It would be a great help for me, if anyone has experience with such a problem and could give me an advice. Thanks in advance! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting both inlet and outlet with pressure boundary conditions | ahmadbakri | CFX | 0 | July 1, 2015 04:06 |
pump outlet pressure higher than inlet pressure | jstan3 | FLUENT | 14 | February 13, 2014 23:44 |
Inlet and Outlet b.c. based on mass flux | Hale | OpenFOAM Pre-Processing | 2 | August 9, 2013 02:26 |
Inlet but not outlet | mireis | FLUENT | 1 | June 10, 2010 10:56 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 15:45 |