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

Trouble using atmBoundaryLayerInletVelocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2019, 11:49
Default Trouble using atmBoundaryLayerInletVelocity
  #1
New Member
 
Join Date: Dec 2019
Posts: 4
Rep Power: 7
juvima is on a distinguished road
Hello,


I'm working with OpenFOAM 6 and I'm trying to use the atmBoundaryLayerInletVelocity boundary condition in order to set a logarithmic velocity inlet for my simulation. My 0/U.orig reads:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

flowVelocity         (20 0 0);
pressure             0;
turbulentKE          0.24;
turbulentOmega       1.78;

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

internalField   uniform $flowVelocity;

boundaryField
{
    //- Set patchGroups for constraint patches
    #includeEtc "caseDicts/setConstraintTypes"

  
    outlet
    {
        type            inletOutlet;
        inletValue      uniform (0 0 0);
        value           $internalField;
    }
    inlet
      {
    

    type atmBoundaryLayerInletVelocity;
    flowDir (1 0 0);
    zDir (0 0 1);
    Uref 20.0;
    Zref 2.0;
    z0 uniform 0.0002;
    zGround uniform 0.0;

      }
    lowerWall
    {
        type            noSlip;
     }

    Panel_PV
    {
        type            noSlip;
    }

    upperWall
{
    type slip;
}

frontAndBack
{
    type slip;
}
}
This code produces this error:
Code:
--> FOAM FATAL IO ERROR: 
Unknown patchField type atmBoundaryLayerInletVelocity for patch type patch

Valid patchField types are :

84
(
SRFFreestreamVelocity
SRFVelocity 



[...]


file: /home/[current working directory]/0/U.boundaryField.inlet from line 40 to line 46.

    From function static Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New(const Foam::fvPatch&, const Foam::DimensionedField<Type, Foam::volMesh>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]
    in file /home/linuxb102/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 134.

FOAM exiting
I understand that I need to tell to OpenFOAM where to find the source for atmBoundaryLayerInletVelocity but I have not been able to, and it's starting to drive me crazy. Am I doing this right? Is it a version problem I am missing?



Thank you very much!
juvima is offline   Reply With Quote

Old   December 5, 2019, 09:52
Default
  #2
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
I can relate to your frustration. You are missing a library in system/controlDict
Check atmBoundaryLayerInletVelocity in OpenFOAM6
Bazinga is offline   Reply With Quote

Old   December 5, 2019, 12:43
Default
  #3
New Member
 
Join Date: Dec 2019
Posts: 4
Rep Power: 7
juvima is on a distinguished road
It worked! Thanks you very much for your help!
juvima is offline   Reply With Quote

Reply

Tags
atmboundarylayerinlet, boundaries condition, openfoam6


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
[waves2Foam] Having a lot of trouble for a short wavelengths arieljeds OpenFOAM Community Contributions 1 January 2, 2024 14:10
Trouble with rotating wall boundary condition king1989 OpenFOAM Running, Solving & CFD 7 July 29, 2016 14:44
Trouble with sampleDict syntax for OpenFOAM 2.3.1 rawdoggity OpenFOAM Post-Processing 1 February 1, 2015 06:24
[ICEM] trouble with mesh quality from ICEM in CFX Solver escher25 ANSYS Meshing & Geometry 0 February 28, 2011 08:38
[GAMBIT] Trouble meshing complex VOF geometry RPJones ANSYS Meshing & Geometry 2 February 14, 2011 19:54


All times are GMT -4. The time now is 03:54.