-
-
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.
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Fluent fails with Intel MPI protocol on 2 nodes
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script error Code: 800a000d
- Encountering Error in Heterogeneous Surface Reaction
-
1191
-
513
-
488
-
225
-
209
© 2024 Copyright ANSYS, Inc. All rights reserved.