![]() |
Age of Air Function Object
Hi all,
I am trying to set up an Age of Air function object in OpenFOAM 8. I am running buoyantSimpleFoam in Ubuntu 18.04. I have tried implementing a function object from older threads (mainly Age of air with function object). My controlDict code is: Code:
AoA Code:
Selecting finite volume options model type semiImplicitSource Or if there is a better method for calculating age of air? Thanks in advance for any support. Kind regards, Ben My 0/AoA file is: Code:
FoamFile Code:
AoA Code:
div(phi,AoA) bounded Gauss upwind; |
There were some changes in v8 to the semiImplicit source term syntax. Check out https://openfoam.org/release/8/ and the example in https://github.com/OpenFOAM/OpenFOAM...7e9747fe696aeb. I am guessing that you need to change:
Code:
sources Code:
sources |
Thanks
Thank you for your reply Tobermory.
The changes you suggested worked and my AoA is now working. Many thanks. Ben |
In case of anyone's interest,
Function object definitions for the `local mean age of air` and `normalised local mean age of air` metrics (where zero-value means fresh air): Code:
scalarTransport1 Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
solvers |
All times are GMT -4. The time now is 12:14. |