-
-
June 17, 2019 at 12:31 pm
Goenitz
SubscriberGood day,
I am re-posting to explain my position better. I ma trying to implement Fuel reforming reaction, on a surface, through ANSYS CFX.
reaction rate equation is:
r=Ae^(E/(RT)) (PCH4) )^a (PH2O )^b a=0.47,b=-0.01, A=390 ( mol /kg /s/Pa^0.46), E4.32 10^4 J/mol, ,R =8.3144 J/mol K and T is variable and also PCH4 and PH2O (partial pressure).
How can I write a simple CEL expression so that it can:
1. calculate r (it should take T and partial pressure as input from software)
2. also I can see, how r is changing along length (in Post, I guess). (because I cannot define r through variable as Algebraic equation is unit-less). Expression is like this:
LIBRARY:
CEL:
EXPRESSIONS:
Arr= 390 [mol kg^-1 s^-1 Pa^-0.47]
Eact = 43200 [J mol^-1]
kconst=Arr*((CH4.p)^0.46)*((H2O.p)^0.01)
Rate= kconst* e^(-Eact/R/T)
END
END
END
-
June 17, 2019 at 12:43 pm
Goenitz
SubscriberWill the above expression capture T and partial pressure or I have to incorporate AreaAve(CH4.p)@Surface?
Another things is CH4.p for partial pressure is not recognised by CFX so I use CH4.mf*p for time being. Because Dalton Law says CH4.p=CH4.mol/mol_total*p_total.
Going through reference guide, I can say that when user assigns p,T, density etc then these are bulk values.
-
June 17, 2019 at 12:58 pm
DrAmine
Ansys EmployeePlease have a look in the tutorial Reacting Flow in Mixing tube.
To get partial pressure you need to get the mole fractions out of the mass fraction and then apply Dalton's Law.
-
June 17, 2019 at 1:05 pm
Goenitz
SubscriberThank you for partial pressure. I will review that tutorial shortly.
I posted multiple Questions but main questions are, the opening questions.
-
June 17, 2019 at 2:18 pm
Goenitz
SubscriberI used CH4.molf*p which is equivalent to CH4.molfraction*pressure and in accordance with Dalton's law.
however, overall topic is not solved and I just need to know the answer of my opening question.
-
June 17, 2019 at 2:49 pm
Rob
Ansys EmployeeYou should be able to pull any/all variables out of CFX in Post to create the expression. If you plug it all in with units for each number/input and compute does the error message give you the units?
-
June 17, 2019 at 2:55 pm
Goenitz
Subscriberyeah it gives, as units are not balanced so what I do is multiply it with some quantities to balance it out. mainly because reaction rate should be in mol/m^2/s where as this r (reaction rate) has mol/kg/s. So what I do is multiply it with density and length of catalyst
so r*enthalpy*density*length (r*enthalpy is general formula for flux)
In case of r in mol/m^2/s we just need r*enthalpy*length.
I am multiplying it by length because of this discussion
https://forum.ansys.com/forums/topic/adding-flux-in-differential-form/
-
June 17, 2019 at 3:04 pm
Goenitz
SubscriberI have found another mistake in my code, let me post the new one
however for heat flux I use Rate*Enthalpy*density*XLength (to balance out for time being)
# State file created: 2019/06/17 16:02
2
# Build 18.1 2017-04-01T00
0:25.494000
LIBRARY:
CEL:
EXPRESSIONS:
Arr = 390 [mol kg^-1 s^-1 Pa^-0.47]
DiffusionCoeff = ThermCond/density/HeatCap
Eact = 43200 [J mol^-1]
Enthalpy = 165000 [J mol^-1]
HeatCap =
CH4.mf*CH4.Cp+CO2.mf*CO2.Cp+CO.mf*CO.Cp+H2.mf*H2.Cp+H2O.mf*H2O.Cp+N2.m
f*N2.Cp
Rate = kconst* e^(-Eact/R/T)
ThermCond =
CH4.mf*CH4.cond+CO2.mf*CO2.cond+CO.mf*CO.cond+H2.mf*H2.cond+H2O.mf*H2O
.cond+N2.mf*N2.cond
XLength = 0.002 [m]
kconst = Arr*((CH4.molf*p)^0.46)*((H2O.molf*p)^0.01)
new = Rate*Enthalpy*density*XLength
END
END
END
COMMAND FILE:
Version = 18.1
END
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
3670
-
2552
-
1751
-
1226
-
584
© 2023 Copyright ANSYS, Inc. All rights reserved.