|
[Sponsors] |
how to get velocity vector at the outer edge of the boundary layer |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 19, 2017, 23:40 |
how to get velocity vector at the outer edge of the boundary layer
|
#1 |
New Member
Xu Yiming
Join Date: Jan 2017
Posts: 11
Rep Power: 9 |
hi,all
I am new to OpenFoam programming. I want to get velocity vector at the outer edge of the boundary layer. In the C++ code of nutSpladingWallFunction ,I notice that using "turbModel.U()" can enable me to acess the velocity field,but I have no idea what to do next. Can anyone help me?thanks Yiming code in nutSpladingWallFunctionFvPatchScalarField.C const label patchi = patch().index(); const turbulenceModel& turbModel = db().lookupObject<turbulenceModel> ( IOobject::groupName ( turbulenceModel:ropertiesName, internalField().group() ) ); const fvPatchVectorField& Uw = turbModel.U().boundaryField()[patchi]; const scalarField magGradU(mag(Uw.snGrad())); const tmp<scalarField> tnuw = turbModel.nu(patchi); const scalarField& nuw = tnuw(); |
|
Tags |
wall function |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
Difficulty in calculating angular velocity of Savonius turbine simulation | alfaruk | CFX | 14 | March 17, 2017 07:08 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 02:27 |
How to judge the velocity boundary layer thick... | xumustc | Main CFD Forum | 4 | September 29, 2008 03:15 |