2018-03-21 03:17 GMT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002652OpenFOAMFeaturepublic2017-10-27 17:07
Assigned Tohenry 
PrioritynormalSeverityminorReproducibilityhave not tried
Product Versiondev 
Target VersionFixed in Version 
Summary0002652: Feature idea: Function object to calculate boundary layer thickness
DescriptionIt would be interesting to be able to see the distribution of boundary layer thickness over patches. Potential input specification

    type boundaryLayerThickness;
    U U;
    magUInf 1.0;
    velocityFraction 0.99; // use delta_99 criteria
    patches (); // use all walls by default?

Is there an existing function object that does something similar, which could be easily adapted?
TagsNo tags attached.
Attached Files




henry (manager)

Can you contribute such a functionObject?


petebachant (reporter)

Sure, I can work on it. Any tips on a good functionObject to start with, or a snippet of existing code that interrogates a quantity marching normal to a face?


wyldckat (updater)

@petebachant: If the layer is only as thick as the cells near the wall: https://github.com/OpenFOAM/OpenFOAM-5.x/tree/master/src/functionObjects/field/yPlus

 - Then take a look at how 'yPlus' is calculated on the turbulence models.

If the layer is larger than the cells, I know that 'boundaryFoam' works for a single column of cells: https://github.com/OpenFOAM/OpenFOAM-5.x/tree/master/applications/solvers/incompressible/boundaryFoam

For a general approach... I don't remember anything that already does this, but the following come to mind:

 - The kOmega, DES and IDDES turbulence models come to mind: https://github.com/OpenFOAM/OpenFOAM-5.x/tree/master/src/TurbulenceModels/turbulenceModels/LES

 - The utility 'applyBoundaryLayer': https://github.com/OpenFOAM/OpenFOAM-5.x/tree/master/applications/utilities/preProcessing/applyBoundaryLayer

   - You should find a few adaptations of his utility on the CFD-Online forums.

 - Anything that uses 'wall distance', e.g. see the report #968: https://bugs.openfoam.org/view.php?id=968


petebachant (reporter)

Thanks for the tips Bruno!


henry (manager)

Please re-open when the contribution is ready.

-Issue History
Date Modified Username Field Change
2017-08-05 20:00 petebachant New Issue
2017-08-05 20:30 henry Note Added: 0008519
2017-08-05 22:21 petebachant Note Added: 0008520
2017-08-05 22:34 wyldckat Note Added: 0008521
2017-08-05 23:24 petebachant Note Added: 0008522
2017-10-27 17:07 henry Assigned To => henry
2017-10-27 17:07 henry Status new => closed
2017-10-27 17:07 henry Resolution open => suspended
2017-10-27 17:07 henry Note Added: 0008948
+Issue History