-
-
August 26, 2022 at 11:40 am
toon.demeester
SubscriberI have encountered an issue (or possible bug) in ANSYS Fluent 2022R2 (and also in older versions, e.g. 2021R2).
When the species transport model is used (with humid air as fluid), there seems to be an error in the conversion from mass fractions to mole fractions on domain boundaries. Internally in the domain, the conversion seems to be correct, but not on boundaries.
I discovered this issue as follows. At my inlet, I had constant H2O, O2 and N2 mass fractions, so consequently the mole fractions should also be constant; this was however not the case. This resulted a.o. in a wrong computation of the relative humidity (RH) at that inlet (error up to 6%RH in contour plots).
When googling for this issue, I found this forum post from 2014 which describes the same issue.
Is this a known bug? Is there something I'm missing? Thanks for your feedback. If you need more information, please let me know.
-
August 26, 2022 at 12:53 pm
Rob
Ansys EmployeePlease can you post images. Post with node values off, and local range selected. Depending on your mesh and flow field (plus convergence) it's possible you're misreading the plot.
-
August 26, 2022 at 1:23 pm
toon.demeester
SubscriberAs you can see, all the mass fractions on the inlet are constant (figures shown for h2o and o2, hence n2 is also constant). All mole fractions should therefore also be constant. However, the figure shows there's a 10% change in mole fraction on the boundary.
Convergence for that case was good (steady-state). Also, I think convergence shouldn't play a role here? As mole fraction is a post-processing variable (mass fractions are use in the transport equations), and the mass fractions on the inlet boundary are fixed.
Mass fractions of h2o and o2:
Mole fractions of h2o and o2:
-
August 26, 2022 at 3:07 pm
Rob
Ansys EmployeeWhat's the material density?
-
August 26, 2022 at 3:22 pm
toon.demeester
SubscriberAt the inlet the density is varying between 1.1819 and 1.1828 kg/m^3, the variation is caused by small changes in pressure on the inlet. For the fluid, I used the incompressible ideal gas law and the default mixture-template (o2, h2o, n2).
-
August 26, 2022 at 4:07 pm
Rob
Ansys EmployeeDoes the material density vary as a mixture or components? I'm trying to remember the conversion maths....
-
September 13, 2022 at 7:46 am
toon.demeester
SubscriberI think so, yes: as the mixture fractions change, the average molecular weight will change, and therefore also the density.
I think the issue might be related to the fact that for mole fractions, I cannot plot contours of boundary values. See screenshots below.
Image 1: boundary values of mass fractions: constant mass fractionsImage 2: cell values of mass fractions, not constant anymore!
Image 3: mole fractions of cell values, not constant, and cannot select boundary values
Is there a way to plot the actual face values and not cell values for variables such as mole fraction or relative humidity? I always assumed that on boundaries, the cell values would be interpolated to face values, but that seems not to be the case in contour plots.
The strange thing is: if I define the mole fraction using an expression (image below), I also cannot select "boundary values". However, when I make the contour plot, Fluent does give a constant value, so that shows what I expected on the faces...
Image 4: mole fractions from expression, gives constant values! -
September 13, 2022 at 8:52 am
Rob
Ansys EmployeeI think that depends on whether it's a set or calculated value and whether the solver needs the facet value. All data is held on cell centres, some data is also held on the boundary facets for post processing and other functions.
Interesting that there is no boundary value option for Expressions, I still use Custom Field Functions for post processing....
-
September 13, 2022 at 9:04 am
toon.demeester
SubscriberActually, the Expression seems to plot the boundary value (which is costant), and not the cell value (which would not be constant), even though I cannot select "boundary value". So not sure what is happening there.
Is there a way to show face values for e.g. relative humidity? That was my original issue. The cell value is misleading in my case. -
September 13, 2022 at 9:16 am
Rob
Ansys EmployeeI don't think so, the cell and boundary value should be near enough the same, and some of the data will be from the cell.
-
September 13, 2022 at 9:25 am
toon.demeester
SubscriberI don't agree: there is a ~5% difference in mole fraction between cell and face, which gives a ~6% difference in relative humidity. Now it's not clear what the software actually shows in the different scenarios, which is an issue.
-
September 13, 2022 at 3:35 pm
Rob
Ansys EmployeeHow much does the pressure, velocity, temperature and density vary from the inlet facet to the first cell? What is RH as a value? How well converged is the solution, and are you running double precision?
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2656
-
2120
-
1347
-
1118
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.