|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Ben Simpson
Join Date: Dec 2019
Location: UK
Posts: 18
Rep Power: 3 ![]() |
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 { type scalarTransport; libs ("libutilityFunctionObjects.so"); enabled true; writeControl writeTime; log yes; nCorr 1; field AoA; active true; autoSchemes false; resetOnStartUp false; DT 1e-5; fvOptions { IncrementTime { type semiImplicitSource; active true; selectionMode all; volumeMode specific; sources { injectionRateSuSp { AoA (1 0); } } } } } Code:
Selecting finite volume options model type semiImplicitSource Source: IncrementTime - selecting all cells - selected 1119784 cell(s) with volume 158.70844 [0] [0] [0] --> FOAM FATAL ERROR: [0] request for regIOobject injectionRateSuSp from objectRegistry region0 failed available objects of type regIOobject are 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 { version 2.0; format ascii; class volScalarField; location "0"; object AoA; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 1 0 0 0 0]; internalField uniform 0; boundaryField { "xmin|xmax|ymin|ymax|zmax_north|zmax_south" { type fixedValue; value uniform 0; } "zmin|Ceiling|Floor|East_Wall|North_Wall|South_Wall|West_Wall|Computer|Person|zmax_ceiling" { type zeroGradient; } Inlet { type fixedValue; value uniform 0; } #includeEtc "caseDicts/setConstraintTypes" } Code:
AoA { solver smoothSolver; smoother GaussSeidel; tolerance 1e-08; relTol 0.1; nsweep 1; } Code:
div(phi,AoA) bounded Gauss upwind; |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 116
Rep Power: 4 ![]() |
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 { injectionRateSuSp { AoA (1 0); } } Code:
sources { AoA { explicit 1; implicit 0; } } |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Ben Simpson
Join Date: Dec 2019
Location: UK
Posts: 18
Rep Power: 3 ![]() |
Thank you for your reply Tobermory.
The changes you suggested worked and my AoA is now working. Many thanks. Ben |
|
![]() |
![]() |
![]() |
Tags |
age of air, buoyantsimplefoam, natural ventilation, openfoam 8 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 1 | May 19, 2017 11:13 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |