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

Confused about the Calculation of the normal Velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2024, 13:47
Default Confused about the Calculation of the normal Velocity
  #1
New Member
 
Jonas Rettig
Join Date: May 2024
Posts: 3
Rep Power: 2
jonhrx71as is on a distinguished road
Hi Guys,
i want to compute the normal velocity at the boundary patch outlet.
I have two ways in my mind, both give me different results.

1) Calculate the normal velocity via the flux phi (which is definied at the boundary face)(incompressible case):

const auto& phip = patch().lookupPatchField<surfaceScalarField>("phi" );
scalarField uNormal = phip/patch().magSf();

2) Calculate the normal velocity via the velocity on the boundary patch scalar multiplied with the patch normal vector:

const auto& Up = patch().lookupPatchField<volVectorField>("U");
scalarField uNormal2 = (Up & patch().nf());

I thought Up is the interpolated value on the boundary patch from the velocity known at the cell center.
Why are the results different ?


Thanks in advance!

jonhrx71as

Last edited by jonhrx71as; May 23, 2024 at 15:58.
jonhrx71as 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
How assign a normal component velocity to a wall boundary in CFX? pashazanousi CFX 8 June 17, 2021 08:07
Import .csv - velocity profile - error eSKa CFX 9 April 3, 2021 13:38
Calculation Tangential & Normal gradients of a Scalar near a surface. AnthonyP OpenFOAM Programming & Development 12 July 22, 2020 09:01
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Average Velocity calculation amin.z FLUENT 0 May 28, 2015 11:03


All times are GMT -4. The time now is 09:20.