CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > CFD Freelancers

Need help for a UDF for particle deposition in porous zone

Register Blogs Community New Posts Updated Threads Search

Reply
 
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
  #1
New Member
 
Peter
Join Date: Aug 2021
Posts: 6
Rep Power: 5
Peter_Beshay is on a distinguished road
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
Peter_Beshay is offline   Reply With Quote

Reply

Tags
dpm fluent, particle deposition

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 14:18.