|
[Sponsors] |
April 25, 2022, 10:46 |
Coupling outlet to inlet
|
#1 |
New Member
Ionatan
Join Date: Jul 2021
Posts: 1
Rep Power: 0 |
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) } |
|
Tags |
species transport |
|
|
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 07:56 |
Total Pressure Drop at inlet and outlet | AS_Aero | Main CFD Forum | 10 | September 8, 2017 05:54 |
pump outlet pressure higher than inlet pressure | jstan3 | FLUENT | 14 | February 14, 2014 00:44 |
Inlet and Outlet b.c. based on mass flux | Hale | OpenFOAM Pre-Processing | 2 | August 9, 2013 03:26 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |