CFD Online Logo CFD Online URL
Home > Forums > General Forums > CFD Freelancers

Need help for a UDF for particle deposition in porous zone

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2021, 00:30
Default Need help for a UDF for particle deposition in porous zone
New Member
Join Date: Aug 2021
Posts: 6
Rep Power: 4
Peter_Beshay is on a distinguished road
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
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)
end_c_loop (c,t)
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
Peter_Beshay is offline   Reply With Quote


dpm fluent, particle deposition
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
how fluent calculate terms of momentum equation in porous zone? Weiqiang Liu FLUENT 0 December 4, 2020 03:23
Porous Media Zone Thickness TheKitchenCleaner FLUENT 0 October 5, 2020 01: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 13:55
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 02:08
Sliding mesh error Karl Kevala FLUENT 4 February 21, 2001 16:52

All times are GMT -4. The time now is 16:22.