CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Correct surface normal velocity? (https://www.cfd-online.com/Forums/openfoam/224749-correct-surface-normal-velocity.html)

piotr.mecht March 3, 2020 07:19

Correct surface normal velocity?
 
3 Attachment(s)
I wanted to create fixed normal velocity BC on a curved surface (flow outwards the domain), but matching options don't seem to behave according to their descriprion.
I use openfoam.org 7 version, and there are 2 BCs i tried to use:
surfaceNormalFixedValue
surfaceNormalUniformFixedValue

I don't think I understand what is the difference between them, but according to their description they both should provide Umagnitude*normalVector values on a given patch.


I expect fixed 1.5 m/s velocity magnitude pointed outwards the domain, but the total magnitude is much larger, because surface tangent velocity component doesn't seem to be fixed [PICTURE ATTACHMENTS]. When you look at the points on my curved surface aligned with X axis they should have zero Ux components, but they clearly don't.

My computations seem to act stable, calculation ends at ~1133 iterations.


Is there any way to fix this? I expect no tangent component or at least very small tangent component.

piotr.mecht March 4, 2020 04:17

I used groovyBC from swak4foam with:
Code:

type  groovyBC;
variables  "velocityMagnitude=1.5;";
valueExpression  "velocityMagnitude*normal()";
value  uniform (-1.06 -1.06 0);

It worked for me, but I'm aware that not everybody uses groovyBC.


All times are GMT -4. The time now is 01:51.