|
[Sponsors] |
Need help for a UDF for particle deposition in porous zone |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 1, 2021, 23:30 |
Need help for a UDF for particle deposition in porous zone
|
#1 |
New Member
Peter
Join Date: Aug 2021
Posts: 6
Rep Power: 5 |
Hi,
I am trying to simulate in fluent particle deposition on plants (simulated as porous zone). I need some help in making the following UDF work (or building a new one): ///////////////////// #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; } /////////////////// Basically, i need the UDF to: 1- locate the domain of the porous zone (using domain ID) 2- Read the initial concentration 3- reduce this value by a percentage of it 4- store the new concentration value. I really appreciate the help of anyone, it is very urgent |
|
Tags |
dpm fluent, particle deposition |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |