-
-
September 11, 2024 at 3:52 amz5489721Subscriber
I am using the
DEFINE_PR_RATE
UDF to calculate the reaction rate for the reduction of Fe₂O₃ with H₂. My reaction rate equation also depends on the partial pressures of H₂ and H₂O. In the macro, there is an argumentpp
that contains the gas partial pressures.If I use
pp[3]
to represent the partial pressure of Hâ‚‚, after calculating the reaction rate for the first iteration, will Fluent automatically update the partial pressures of these species? Specifically, will it account for the fact that some of the hydrogen has been consumed and water vapor produced, thus altering the partial pressures?If the macro does not consider these updated values automatically, do I need to update the gas species fractions and then recalculate the partial pressures? If so, how can I update the gas species fractions and recalculate the partial pressures after each iteration?
Additionally, do I need to update the temperature in the code as well? If so, how should I go about updating the temperature correctly? thanks in advance
-
September 11, 2024 at 9:50 amRobForum Moderator
The solver will handle everything, and you're altering ONLY what is set in the UDF. So, all pressure, temperature etc are recalculated as the solver updates.Â
-
September 13, 2024 at 1:55 amz5489721Subscriber
thanks for your reply. What about species fractions in the mixture? My code runs, but as contour, I don't see any change in H2 and H2O mass fractions before and after the reduction reaction. Do I need to update them?
-
September 13, 2024 at 12:25 pmRobForum Moderator
If it's transient, how much of a change would you expect in a time step?
-
- You must be logged in to reply to this topic.
- How do you approach this?
- Convective Augmentation Factor in DEFINE_HEAT_FLUX
- Conservation issue with a UDS solution
- Non-Premixed Combustion PDF generation with 4th-order interpolation
- Where is the Electrolyte Projected Area in the Reports tab of PEMFC Model?
- ANSYS fluent – Rocky DEM coupling
- Solar load , Mesh Orientation and Beam direction
-
461
-
220
-
194
-
177
-
162
© 2024 Copyright ANSYS, Inc. All rights reserved.