-
-
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.
- 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
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- I am doing a corona simulation. But particles are not spreading.
- Issue to compile a UDF in ANSYS Fluent
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
3867
-
1414
-
1241
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.