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

Problem running atmBoundaryLayerInlet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2017, 16:36
Default Problem running atmBoundaryLayerInlet
  #1
New Member
 
Tommaso Pascon
Join Date: Mar 2016
Posts: 18
Rep Power: 10
Pervispasco is on a distinguished road
Hi everyone,

I'm having troubles running a simple 3D RANS flow over a cube.

It works perfectly fine with uniform inlet velocity, but as soon as I use the atmBoundarylayerinlet for U and Epsilon, everything stop working.

I simply copied the two files of the turbine tutorial in simpleFoam directory.

These are mine U and Epsilon files:

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*  Windows port by CFD support (www.cfdsupport.com) [based on Symscape]     *\
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0.01";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    buildings
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    ground
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    frontAndBack
    {
        type            symmetry;
    }

    inlet
    {
            type            atmBoundaryLayerInletVelocity;
                Uref                 10.0;
                Zref                 20;
                zDir                 (0 0 1);
                flowDir              (1 0 0);
                z0                   uniform 0.1;
                zGround              uniform 935.0;
                value                $internalField;

    }
    outlet
    {
        type            zeroGradient;
    }
}


// ************************************************************************* //
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*  Windows port by CFD support (www.cfdsupport.com) [based on Symscape]     *\
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0.01";
    object      epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -3 0 0 0 0];

internalField   uniform 9.98e-06;

boundaryField
{

    buildings
    {
        type            epsilonWallFunction;
        value           uniform 9.98e-06;
    }
    ground
    {
        type            epsilonWallFunction;
        value           uniform 9.98e-06;
    }
    frontAndBack
    {
        type            symmetry;
    }
    inlet
    {
     type            atmBoundaryLayerInletEpsilon;
        Uref                 10.0;
        Zref                 20;
        zDir                 (0 0 1);
        flowDir              (1 0 0);   
        z0                   uniform 0.1;
        zGround              uniform 935.0;
        value                $internalField;
    }
    outlet
    {
        type            zeroGradient;
    }
}


// ************************************************************************* //
And this is what I get from OpenFoam when I try to run the case:

smoothSolver: Solving for Ux, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for Uy, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for Uz, Initial residual = nan, Final residual = nan, No Iterations 1000
GAMG: Solving for p, Initial residual = nan, Final residual = nan, No Iterations 1000
time step continuity errors : sum local = nan, global = nan, cumulative = nan
smoothSolver: Solving for epsilon, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver: Solving for k, Initial residual = nan, Final residual = nan, No Iterations 1000
ExecutionTime = 386.812 s ClockTime = 386 s

forces forces output:
sum of forces:
pressure : (nan nan nan)
viscous : (nan nan nan)
porous : (0 0 0)
sum of moments:
pressure : (nan nan nan)
viscous : (nan nan nan)
porous : (0 0 0)

forceCoeffs forceCoeffs output:
Cm = nan
Cd = nan
Cl = nan
Cl(f) = nan
Cl(r) = nan

fieldAverage fieldAverage1 output:
Calculating averages

Time = 5


What could be the issue?

Thanks
Pervispasco 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
Problem About Running Fluent In Linux mitra FLUENT 18 June 20, 2019 02:11
Problem running angledDuct tutorial of porousSimpleFoam Anindya1 OpenFOAM Running, Solving & CFD 0 January 24, 2016 10:02
Non- stop running for a time-dependent heat source problem Asghari_M OpenFOAM Programming & Development 1 May 11, 2015 05:13
problem with running in parallel dhruv OpenFOAM 3 November 25, 2011 05:06
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52


All times are GMT -4. The time now is 13:04.