-
-
April 8, 2022 at 6:36 am
2018ugme092
SubscriberHii everyone,
I am working on simulation of fuel reactor of chemical looping combustion from this paper
April 19, 2022 at 3:03 pmRahul Kumar
Ansys EmployeeHello,
Please refer to this section on writing a UDF : Fluent Customization Manual (ansys.com)
If you have any specific questions or you want to know how to circumvent an error message, let us know and we can assist you.
April 20, 2022 at 9:56 am2018ugme092
SubscriberThis is the UDF I wrote and its working fine for me:
# include "udf.h"
#define R 8.31434 /*Universal Gas Constant*/
# define Pre 4300 /*Pre-exponential factor, 1/s-kPa*/
# define E1 151000 /*Activation Energy, J/mol*/
# define rho_caso4 21764 /*Molar density of CaSO4, kgmol/m3*/ //TO CHECK ----> Correct I think
DEFINE_HET_RXN_RATE(deng_rxn_rate,c,t,r,mw,yi,rr,rr_t)
{
Thread **pt = THREAD_SUB_THREADS(t);
Thread *prim_t = pt[0]; /*Thread for primary Phase*/
Thread *sec_t = pt[1]; /*Thread for secondary Phase*/
real T_SEC = C_T(c,sec_t); /*Phase secondary temperature, K*/
real T_PRIM = C_T(c,prim_t);
real pp_h2 = (C_R(c,prim_t) * R * T_PRIM)/2.0;
*rr = rho_caso4* pp_h2 *Pre*(exp((-E1/(R*T_SEC))));
}
Viewing 2 reply threads- The topic ‘Writing UDF for solid-gas reaction in fluent’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3587
-
1193
-
1086
-
1068
-
952
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.