|
[Sponsors] |
Confused about the Calculation of the normal Velocity |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 23, 2024, 13:47 |
Confused about the Calculation of the normal Velocity
|
#1 |
New Member
Jonas Rettig
Join Date: May 2024
Posts: 3
Rep Power: 2 |
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. |
|
|
|
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 |