CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

how to get velocity vector at the outer edge of the boundary layer

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2017, 22:40
Default how to get velocity vector at the outer edge of the boundary layer
New Member
Xu Yiming
Join Date: Jan 2017
Posts: 11
Rep Power: 9
ousoweak is on a distinguished road

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


code in nutSpladingWallFunctionFvPatchScalarField.C
const label patchi = patch().index();

const turbulenceModel& turbModel = db().lookupObject<turbulenceModel>
const fvPatchVectorField& Uw = turbModel.U().boundaryField()[patchi];
const scalarField magGradU(mag(Uw.snGrad()));
const tmp<scalarField> tnuw =;
const scalarField& nuw = tnuw();
ousoweak is offline   Reply With Quote


wall function

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 06:08
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
How to judge the velocity boundary layer thick... xumustc Main CFD Forum 4 September 29, 2008 02:15

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