|
[Sponsors] |
August 1, 2021, 23:23 |
UDF for particle deposition in porous zone
|
#1 |
New Member
Peter
Join Date: Aug 2021
Posts: 6
Rep Power: 4 |
Hi,
I am very new in UDF and do not have much knowledge on C. I need urgent help in a UDF to: 1- specify the porous zone ID 2- read the particle concentration in each cell 3- reduce it as a percentage from the initial concentration 4- store the new reduced concentration I tried for many days but i am stuck, i really appreciate if anyone will help me. The code i tried is below (probably it is very bad): #include "udf.h" #include "sg_mem.h" # include "dpm.h" # define domain_ID 4 DEFINE_ADJUST(adjust_UDS,domain) { Thread *t; cell_t c; domain = Get_Domain(domain_ID); /*Fill UDS with the variable*/ thread_loop_c (t,domain) { begin_c_loop (c,t) { C_UDSI(c,t,0) = C_DPMS_CONCENTRATION(c,t); } end_c_loop (c,t) } } DEFINE_SOURCE(conc_source,c,t,dS,equ) { real x[ND_ND],c_source; source= (C_UDSI(c,t,0) + C_UDSI(c,t,0)); return source; } |
|
Tags |
dpm concentration, particle deposition |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how fluent calculate terms of momentum equation in porous zone? | Weiqiang Liu | FLUENT | 0 | December 4, 2020 02:23 |
Porous Media Zone Thickness | TheKitchenCleaner | FLUENT | 0 | October 5, 2020 00:42 |
UDF for Species Mass Fraction Gradient *IN SPECIFIC ZONE * -- e.g. along axis of sym. | ksiegs2 | Fluent UDF and Scheme Programming | 0 | February 27, 2011 12:55 |
Problem in IMPORT of ICEM input file in FLUENT | csvirume | FLUENT | 2 | September 9, 2009 01:08 |
Sliding mesh error | Karl Kevala | FLUENT | 4 | February 21, 2001 15:52 |