CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Age of air with function object

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Rojj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2018, 12:07
Default Age of air with function object
  #1
Member
 
Ruggiero Guida
Join Date: Apr 2013
Location: World
Posts: 46
Rep Power: 12
Rojj is on a distinguished road
Hi,

I have added a function object to calculate the Age Of Air in OF4.1. SimpleFoam converges, but I have some doubt about the interpretation of the results.

I have based the implementation on this thread

Mean Age of Air

In my controlDict I have added the following function

Code:
AoA
{
    type    scalarTransport;
    functionObjectLibs ("libutilityFunctionObjects.so");
    enabled true;
    writeControl outputTime;
    log yes;
    nCorr 1;

    field AoA;
    active          true;
    autoSchemes     false;
    resetOnStartUp false;
    DT              1e-5;

    fvOptions
    {
        IncrementTime
        {
            type            scalarSemiImplicitSource;
            active          true;
            scalarSemiImplicitSourceCoeffs
            {
                selectionMode all;
                volumeMode  specific;
                injectionRateSuSp
                {
                    AoA       (1 0);
                }
            }
        }
    }
}
I have then added the following boundary condition

Code:
dimensions [ 0 0 1 0 0 0 0 ];

internalField uniform 0.0;   

boundaryField
{
  inlet
  {
    type fixedValue;
    value uniform 0;
  }
  outlet
  {
    type zeroGradient;
  }
.....
Modified fvSchemes and fvSolution accordingly with

Code:
div(phi,AoA) bounded Gauss upwind;
and

Code:
    AoA
    {
        solver           smoothSolver;
        smoother         GaussSeidel;
        tolerance        1e-08;
        relTol           0.1;
        nsweep                   1;
    }
The solution converges, but I am not really sure I get what it means. My understanding is:
  • We inject some kind of tracer at each point of the domain
  • We assign uniform zero as BC
  • The value of AoA tells us how long, in average, it will take for the air in that point to be replaced by new air coming from the boundary (outside)
  • This is why we assign uniform 0 at the boundary

Is this correct?
What does IncrementTime actually do?
Why AoA has unit of Time?
Why we inject 1 of tracer?
pemesu likes this.
Rojj is offline   Reply With Quote

Old   February 7, 2021, 13:49
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
It took me three years to reflect on these questions (kidding)

(maybe not)

Age of Air Function Object
HPE is offline   Reply With Quote

Old   November 8, 2022, 08:24
Default
  #3
New Member
 
gabriel rodrigues
Join Date: Jan 2022
Posts: 10
Rep Power: 4
Lucc is on a distinguished road
Hello,

Have you found out the answer for these questions?I've been facing the same problem.
Lucc is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] RefineMesh Error and Foam warning jiahui_93 OpenFOAM Meshing & Mesh Conversion 4 March 3, 2018 11:32
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 22:07
coded function object and field average matthias OpenFOAM Post-Processing 3 June 30, 2014 04:52
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 05:48.