CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Mean Age of Air (https://www.cfd-online.com/Forums/openfoam-post-processing/68300-mean-age-air.html)

a_habib February 25, 2017 13:58

Dear Tian
Can you please answer my questions :)

HPE February 7, 2021 13:44

hope the following link can be helpful as well: https://www.cfd-online.com/Forums/op...tml#post795525

Tobi February 8, 2021 07:55

One hint: the mean age of air is already implemented as object function in the Foundation version.

Off-Topic: Why do you set the diffusion to 1 and ignore the turbulent diffusivity? A diffusivity coefficient of 1 should be wrong here. Commonly, the diffusion mixing is based on the viscosity, so I would - at least - use the molecular viscosity of your fluid rather than 1 (as it is extreme large). Furthermore, I am not sure why a three year old thread is pushed up as there is no question anymore ? :P

HPE February 8, 2021 09:06

Hi,

Quote:

One hint: the mean age of air is already implemented as object function in the Foundation version.
Yes, true. It was a nice contribution of yours. That function object is, however, not available in the trademark openfoam(.com) and foam-extend at the time of writing. Just wanted to enable their users to be able to compute the local mean age of air, if need be. Plus, using the `scalarTransport` is rather more generic in my opinion. But I wish the age function object would be integrated into the others.

Quote:

Off-Topic: Why do you set the diffusion to 1 and ignore the turbulent diffusivity?
The numbers are not the default values. Anyone can change to anything, hence no reason.

Quote:

A diffusivity coefficient of 1 should be wrong here. Commonly, the diffusion mixing is based on the viscosity, so I would - at least - use the molecular viscosity of your fluid rather than 1 (as it is extreme large).
To my knowledge, that's not the diffusivity coefficient, DT which was defined as follows:

DT = alpha_v * nu + alpha_t * nu_t

`alpha_v` is 1, and `alpha_t` is 0, hence DT~nu (which is your suggestion) [I am more than happy to be proven incorrect].

Please note that there are different definitions of age of air metric in the literature (at least five to my review) since its introduction at 1981. Albeit slightly, each contradicts one another.

Quote:

Furthermore, I am not sure why a three year old thread is pushed up as there is no question anymore ? :P
Don't like CFD-Direct and its business practices. Try to emanate trademark-openfoam and foam-extend instead, and help their users in my free time. That's it :]

jaffa January 7, 2022 05:51

Hi Andersking,

Could you please explain how to use the attachment? Open it by using Fluent or CFD-post? Do I need to install Visual Studio? I am pretty new in this field so I am looking for help:confused:

Looking forward to your reply!

Thank you !

Tobi January 7, 2022 14:18

Quote:

Originally Posted by HPE (Post 795608)
Don't like CFD-Direct and its business practices. Try to emanate trademark-openfoam and foam-extend instead, and help their users in my free time. That's it :]


Just one hint. The comfort and age function objects are also available in the ESI version v2112

HPE January 7, 2022 16:35

Thanks for the contributions, Tobi!

Here are the links of the FOs: age and comfort for those who are interested.

Lucc November 8, 2022 08:18

First, i'd like to thank you so much for your contribuition with this function implemented in OF!

My question is, what exactly is the value of the output of this function? I have simulated a room for 100s and when I go to paraView to see contours map of the age it shows values from 0 to 3500. My thought is that, on that instant, based on the velocity of each particle, is given as result the time in seconds that a particle takes from the inlet to get thar location. Is this right?

Thanks once again.

Tobi November 10, 2022 11:00

If you are simulating 100s , the max value can only be 100s. I think you are not simulation 100s but 100 iterations -> steadyState.

The outcome of the age field is the time it takes to refresh the cell with new fresh air.
Hence a value of 1000 would mean that the air stays there around 1000s.

Lucc November 11, 2022 05:51

Thank you for your reply!

I see. I'm running a simulation from 0 to 100s with a delta t of 0.01, thus 10000 iterations. The only thing is that i'm using pisoFoam algorithm (transient). In paraview displays a range of age from 0 to 3500, how could be this possible? Even if I'm running pisoFoam, could paraview be displaying the number of interation instead of seconds by default?


All times are GMT -4. The time now is 06:50.