-
-
September 11, 2024 at 3:52 am
z5489721
SubscriberI 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 am
Rob
Forum ModeratorThe 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 am
z5489721
Subscriberthanks 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 pm
Rob
Forum ModeratorIf 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 I get my hands on Ansys Rocky DEM
- 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
- Script Error
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- convergence issue for transonic flow
- Running ANSYS Fluent on a HPC Cluster
- Point exception in erosion calculation
-
1932
-
823
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.