|
[Sponsors] |
January 29, 2018, 10:33 |
Strange BC
|
#1 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
Hi,
I am having problems with a BC, see the below picture, which displays Uz strangeUz.png For the top we have the BC U slip. For the side facing the screen we have symmetryPlane. Does anybody know how I can get Uz=0 everywhere on the top? |
|
January 29, 2018, 10:38 |
|
#2 | |
Member
Join Date: Dec 2017
Location: Germany
Posts: 48
Rep Power: 8 |
Quote:
Would be easier to help you |
||
January 29, 2018, 11:32 |
|
#3 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
Of course:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "0"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Umean 0.12;//0.24; mUmean -0.12;//-0.24; dimensions [0 1 -1 0 0 0 0]; internalField uniform ($mUmean 0 0); boundaryField { leftWall //outlet { type outletPhaseMeanVelocity; alpha alpha.water; Umean $Umean; value $internalField; } rightWall //intlet { type fixedValue; value $internalField; } lowerWall //part of bottom { type movingWallVelocity; value $internalField; } lowerWallMoving //part of bottom { type movingWallVelocity; value $internalField; } boat { type movingWallVelocity; value uniform (0 0 0); } atmosphere // This is the top { type slip; } back { type slip; } front { type symmetryPlane; } } // ************************************************************************* // |
|
January 29, 2018, 23:40 |
|
#4 |
New Member
Yuncheng Xu (Cloud)
Join Date: May 2011
Location: State College, PA
Posts: 20
Rep Power: 14 |
|
|
January 30, 2018, 03:32 |
|
#5 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
luther1990:
Thanks for answering! 1) mUmean: I don't think it matters, since it is the absolute value that is used in "Umean $Umean;". 2) Aspect ratio: Thank you, we had not thought about this. 3) Interpolation: I have changed the mesh to get better aspect ratio especially near the boundaries. Still I get the strange result in paraFoam. Maybe it has to do with paraFoam interpolation then, as you suggest. Thanks again! |
|
February 12, 2018, 02:13 |
|
#6 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
Using a good aspect ration, I still get the problem at the corner of the box. The values of U, p, k, and omega all explodes at this point. Does anybody have an idea on how to fix this?
edit: I think there is some conflict between the two BCs. The side BC allows Uz different from zero, while the top BC requires Uz = 0. OpenFoam seems to choose the first. How is it possible to make openFoam choose the top BC over the side BC in the intersectino point? Last edited by kaaja; February 12, 2018 at 04:10. |
|
February 21, 2018, 22:23 |
|
#7 | |
New Member
Yuncheng Xu (Cloud)
Join Date: May 2011
Location: State College, PA
Posts: 20
Rep Power: 14 |
Quote:
Sorry to reply late. OpenFOAM uses FVM. Typically, U p k omega are all stored at cell center and patch face center, not at node. If a boundary cell has two or more patch faces, it will use distance-based weight function to calculate the value. Check cell value instead of point value in paraview. And check the boundary values in the result files. Theoretically, cell value at corner should have non-zero Uz, but top face value should have Uz=0. |
||
February 23, 2018, 02:08 |
|
#8 |
Member
Join Date: Apr 2017
Posts: 68
Rep Power: 9 |
Thanks for replying!
I got a really high value at the corner. I ended changing the whole BC to avoid this. If I change back the BC, I will certainly have a closer look at what you are prescribing! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strange STL when using cuttingPlane | C-L | OpenFOAM Post-Processing | 2 | September 26, 2017 05:44 |
[blockMesh] Strange non-hexahedral cells? | maka15 | OpenFOAM Meshing & Mesh Conversion | 3 | May 19, 2016 08:56 |
Strange rhoCentralFoam behavior after restart... | vkrastev | OpenFOAM Bugs | 27 | November 19, 2013 12:04 |
Strange residuals behaviour | xxxx | Main CFD Forum | 1 | July 13, 2013 14:40 |
A Strange Problem in making Parallel (Ansys/CFX 12) | a.sarami | CFX | 13 | October 7, 2010 01:33 |