CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for particle deposition in porous zone

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 1, 2021, 23:23
Default UDF for particle deposition in porous zone
  #1
New Member
 
Peter
Join Date: Aug 2021
Posts: 6
Rep Power: 4
Peter_Beshay is on a distinguished road
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;
}
Peter_Beshay is offline   Reply With Quote

 

Tags
dpm concentration, 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 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


All times are GMT -4. The time now is 17:11.