|
[Sponsors] |
Need help for clarify clarity of the UDF-Particle surface reaction. |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Amila C Kahawalage
Join Date: Jun 2015
Posts: 8
Rep Power: 11 ![]() |
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 19:15. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Amila C Kahawalage
Join Date: Jun 2015
Posts: 8
Rep Power: 11 ![]() |
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? |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help, UDF and define the surface reaction | shuailin | FLUENT | 1 | October 23, 2022 10:07 |
Cluster ID's not contiguous in compute-nodes domain. ??? | Shogan | FLUENT | 1 | May 28, 2014 15:03 |
Segmentation fault in running alternateSteadyReactingFoam,why? | NewKid | OpenFOAM | 18 | January 20, 2011 16:55 |
UDF for Particle reaction and DPM_Property | saifulraju | ANSYS | 0 | September 22, 2010 07:24 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 01:29 |