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

a room mechanical/natural ventilation case

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2014, 10:19
Default a room mechanical/natural ventilation case
  #1
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
Hi Foamers,
I'm trying to set a mechanical/natural ventilation case, concerning a ship engine room. I don't need to model fans and other devices, just inlet and outlet openings. I'm new at ventilation problems, so I'm tackling the problem gradually. I've already looked for similar cases here and I'd like to share my little experience step by step. I started with the simpleFoam solver for earlier tests, but I think that I'll use buoyantBoussinesqSimpleFoam later.
The attached picture show the simple test domain: a cubic room with three openings: inlet (on the left) and outlet (on the top) with mechanical ventilation systems and a window for natural ventilation (on the right).
The turbulent model k-epsilon model is adopted. I guess a velocity fluctuating component of 5% of U and a turbulent length scale of 0.038*Dh (hydraulic diameter). The following boundary conditions are set:

U
INLET
type flowRateInletVelocity;
volumetricFlowRate constant 0.5;
value uniform (0 0 0);
OUTLET
type flowRateInletVelocity;
volumetricFlowRate constant -0.2;
value uniform (0 0 0);
WINDOW
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
WALL
type fixedValue;
value uniform (0 0 0);

p
INLET
type zeroGradient;
OUTLET
type fixedValue;
value uniform 0;
WINDOW
type fixedValue;
value uniform 0;
WALL
type zeroGradient;

epsilon, k
INLET
type fixedValue;
value $internalField;
OUTLET
type zeroGradient;
WINDOW
type zeroGradient;
WALL
type epsilon(or kqR)WallFunction;
value $internalField;

I used the following numerical schemes
Code:
ddtSchemes
{
    default         steadyState;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
    default         none;
    div(phi,U)      bounded Gauss upwind;
    div(phi,k)      bounded Gauss upwind;
    div(phi,epsilon) bounded Gauss upwind;
    div(phi,R)      bounded Gauss upwind;
    div(R)          Gauss linear;
    div(phi,nuTilda) bounded Gauss upwind;
    div((nuEff*dev(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
    default         linear;
}

snGradSchemes
{
    default         corrected;
}

fluxRequired
{
    default         no;
    p               ;
}
and solution and algorithm controls
Code:
solvers
{
    p
    {
        solver          PCG;
        preconditioner   DIC;
        tolerance       1e-09;
        relTol          0.1;
    }

    "(U|k|epsilon|R|nuTilda)"
    {
        solver          PBiCG;
        preconditioner   DILU;
        tolerance        1e-09;
        relTol           0.1;
    }
}

SIMPLE
{
    nNonOrthogonalCorrectors 0;

    residualControl
    {
        p               1e-2;
        U               1e-3;
        "(k|epsilon|omega)" 1e-3;
    }
}

relaxationFactors
{
    fields
    {
        p               0.15;
    }
    equations
    {
        U               0.005;
        k               0.001;
        epsilon         0.001;
        R               0.001;
        nuTilda         0.001;
    }
}
I'd like to have your suggestions, remarks and corrections about my choice of turbulent model, initial turbulent settings, boundary conditions, fvSchemes, fvSolution. Thanks for your attention and your help.
Attached Images
File Type: jpg simpleFoamDomain.jpg (75.5 KB, 87 views)
vaina74 is offline   Reply With Quote

Old   October 29, 2014, 16:57
Default
  #2
Senior Member
 
Join Date: Nov 2010
Posts: 139
Rep Power: 16
taxalian is on a distinguished road
Send a message via Skype™ to taxalian
Hi vaina74,

Your numerical setup seems to be ok.

But by having a look at your boundary conditions, you specify at first a fixed mass flow rate at the inlet and at the outlet you are using kind of suction boundary condition to filter out the flow. I think this might cause some convergence problem because i don't know how the continuity will be satisfied i.e "mass_flow inlet = mass_flow outlet"


Make sure you also specify the exact values of epsilon & k for your flow case.

Well if you are new to this area, my advice would be to start with icoFoam (incompressible, laminar, unsteady) solver if your velocities are low and then switch on to laminar flow with simpleFoam.

Finally go for buoyantBoussinesqSimpleFoam solver.

Good luck.
taxalian is offline   Reply With Quote

Old   October 30, 2014, 04:17
Default
  #3
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 17
vaina74 is on a distinguished road
Hi Taxialan, thanks for your suggestions. I had no convergence problems so far (about 400 iterations) and I'm already going deep in buoyantBoussinesqSimpleSolver - I'm not confident with p_rgh and other stuff
About epsilon and k initial guess, I'm not sure of the turbulent length scale. But I think that initial values should not be so important, if not quite unrealistic.
You are right about continuity, but this simple model is not so far from reality. One or more fans blow clean air in the engine room, one or more openings help ventilation, one or more (less powered) suction fans suck dirty air. Obviously machinery (diesel engines, diesel generators, ...) burn out air, but I think I'll model that as a simply outlet condition at the final stage.
vaina74 is offline   Reply With Quote

Reply


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
Pressure instabilities with interDyMFoam for the floatingObject case nbadano OpenFOAM Running, Solving & CFD 15 October 15, 2021 07:35
How to Initialise my LES case using my RANS case is there any utility for it ? Alhasan OpenFOAM Running, Solving & CFD 2 May 10, 2014 01:14
Can't run a case in HelyxOS with an imported mesh from Fluent HHOS OpenFOAM Running, Solving & CFD 0 July 2, 2013 07:25
Error reading new case montag dp FLUENT 5 September 15, 2011 07:00
examples of simulation on room ventilation? lei FLUENT 1 June 20, 2003 23:38


All times are GMT -4. The time now is 23:12.