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

Need help for clarify clarity of the UDF-Particle surface reaction.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 28, 2024, 15:23
Post Need help for clarify clarity of the UDF-Particle surface reaction.
  #1
New Member
 
Amila C Kahawalage
Join Date: Jun 2015
Posts: 8
Rep Power: 11
amilachandra is on a distinguished road
I want to write UDF for solid decomposition reaction. As simple startup, I replicate the normal particle surface reaction with UDF as bellow code. I generated 3 cases
Case1- No UDF and used reaction panel already available in ANSYS’s .
Case2- With following UDF with single core for CFD simulation running.
Csae3- With following UDF with four cores for CFD simulation running.

#include "udf.h"

#define A2 2e+07 /*solid decompostion pre-exponential factor*/
#define E2 3e+08 /*solid decompostion activation energy*/
#define RGASU UNIVERSAL_GAS_CONSTANT /*Universal gas conatanat (J/(kmolK))*/
DEFINE_PR_RATE(user_rate, c, t, r, mw, ci, tp, sf, dif_i, cat_i, rr)
{

/*solid decompostion*//* */
if (!strcmp(r->name, "reaction-1"))
{
real Tg= C_T(c,t);
real Tp= TP_T(tp);

real Drate=TP_DIAM (tp)*TP_DIAM (tp)*M_PI*sf[1]*A2*exp(-E2/RGASU/Tp);

*rr=-Drate;

}
}

All the cases give the same result. I want to further clarify Is this correct? (because I did not use any additional coding for the case 3)

Last edited by amilachandra; May 28, 2024 at 20:15.
amilachandra is offline   Reply With Quote

Old   May 29, 2024, 17:39
Default
  #2
New Member
 
Amila C Kahawalage
Join Date: Jun 2015
Posts: 8
Rep Power: 11
amilachandra is on a distinguished road
Dear All,
After reading other posts, I have understood that it is not necessary to change the serial UDF if it is used only for the parameters and properties of a particular cell, such as my one. Is this true?
amilachandra is offline   Reply With Quote

Reply


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
Help, UDF and define the surface reaction shuailin FLUENT 1 October 23, 2022 11:07
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 16:03
Segmentation fault in running alternateSteadyReactingFoam,why? NewKid OpenFOAM 18 January 20, 2011 17:55
UDF for Particle reaction and DPM_Property saifulraju ANSYS 0 September 22, 2010 08:24
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29


All times are GMT -4. The time now is 02:23.