|
[Sponsors] |
July 26, 2018, 12:41 |
UDF-Mass Fraction
|
#1 |
New Member
Sherif
Join Date: May 2012
Posts: 5
Rep Power: 14 |
Hi,
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 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, |
|
Tags |
mass fraction, porous, udf |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inconsistencies in reading .dat file during run time in new injection model | Scram_1 | OpenFOAM | 0 | March 23, 2018 22:29 |
UDF to Define Species Mass Fraction on Velocity-Inlet | MiBe | Fluent UDF and Scheme Programming | 3 | August 3, 2017 04:36 |
Define mass flow profile with regards to species mass fraction | danS | Fluent UDF and Scheme Programming | 0 | June 20, 2017 06:21 |
PB: Saving mass fraction of species on two points with an udf | biget.a | FLUENT | 2 | July 23, 2009 03:06 |
UDF for Species mass fraction | Rahul | FLUENT | 0 | September 20, 2002 04:22 |