-
-
July 26, 2018 at 3:46 pm
Dino
SubscriberHi,
I have a cube and this cube has two zones. The first is a very small zone and is just a constant source term of a gas (Kg/m^3 s) while the other one is porous and initially is filled with air. There is some sort of absorption within the porous media of that gas and not for the air. In Fluent, the solid particles in the porous media are imaginary. I would like to account for this absorption as a UDF sink term to be hooked in the transport equation of that gas. My question is, how can I get the mass fraction of the gas in the volume of voids and not in the imaginary solid volume? The problem is Fluent consider the entire porous volume as fluid and does not consider the porosity for the gas fraction.
My sink term is in Kg/m^3 s (dC/dt = f(time); represents the rate of change or the absorption). I wrote a UDF with DEFINE_EXECUTE_AT_END and within it, I put a condition if the mass fraction of the gas multiplied by the density (kg/m^3) is higher than dC = f(time )*dt (the amount to be absorbed) then the sink term is valid otherwise is equal to zero. Then a DEFINE_SOURCE for the sink term.
I was told here before that the sources in porous need to be scaled by the porosity function but I do not understand what does this mean. And how can I get the correct mass fraction?
Other question, from the mass fraction, is there a way to get kg/m^3 s) out of this mass fraction in the UDF?
Please help! Than you,
-
July 27, 2018 at 7:57 am
DrAmine
Ansys EmployeeFluent does not multiply user defined sources with the porosity. You need to do that on your own.
-
- The topic ‘Mass sink in porous media’ is closed to new replies.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- Suppress Fluent to open with GUI while performing in journal file
- error: Received signal SIGSEGV
- Using GPU in FLUENT
-
8808
-
4658
-
3151
-
1680
-
1470
© 2023 Copyright ANSYS, Inc. All rights reserved.