-
-
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
Amine Ben Hadj Ali
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
Forum ModeratorYou 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
/forum/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
Â
-
- The topic ‘Developing CEL expressions for a chemical reaction’ is closed to new replies.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
4067
-
1487
-
1308
-
1156
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.