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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2022, 09:46
Default Coupling outlet to inlet
  #1
New Member
 
Ionatan
Join Date: Jul 2021
Posts: 1
Rep Power: 0
Ionatan is on a distinguished road
I want to simulate the dispersion of decomposing tracer gas in a cold storage chamber. The problem arises in modeling this air recycling, which must have conservation of the tracer gas. I don't need to model and simulate the recycling region. I just want all the tracer gas that goes out through the outlet to come back to the diffusers. Below are some images from the geometry, the yellow box is the recycling region that I want to eliminate. I found on an old thread (Coupling outlet to inlet) a UDF that did this coupling, but for the air humidity. if anyone could help me translate it to a generic tracer gas, I would appreciate it, being reading the UDF manual for some time, and didn't get far.




#include "udf.h"
#define OUTLET_ID 11

DEFINE_PROFILE(set_humidity_inlet,inlet_thread,var iable_index)
{
face_t inlet_face_index, outlet_face_index;
real water_mass_fraction=0;
real n = 0.;
real H_AVG = 0.;
Thread *outlet_thread;
Domain *domain;

domain=Get_Domain(1);
outlet_thread=Lookup_Thread(domain,OUTLET_ID);

begin_f_loop(outlet_face_index,outlet_thread)
{
water_mass_fraction = water_mass_fraction + F_YI(outlet_face_index,outlet_thread,variable_inde x);
n = n + 1;
}
end_f_loop(outlet_face_index,outlet_thread)

H_AVG = water_mass_fraction/n;

begin_f_loop(inlet_face_index,inlet_thread)
{
F_PROFILE(inlet_face_index,inlet_thread,variable_i ndex)=H_AVG;
}
end_f_loop(inlet_face_index,inlet_thread)
}
Ionatan is offline   Reply With Quote

Reply

Tags
species transport


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
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
Total Pressure Drop at inlet and outlet AS_Aero Main CFD Forum 10 September 8, 2017 04:54
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
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45


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