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

Coupling outlet to inlet

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 7, 2015, 02:04
Default Coupling outlet to inlet
  #1
New Member
 
Roman
Join Date: Dec 2013
Posts: 2
Rep Power: 0
Roman1989 is on a distinguished road
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!
Roman1989 is offline   Reply With Quote

 


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
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


All times are GMT -4. The time now is 00:20.