|
[Sponsors] |
Unexpected velocity profiles for pipe flow with elbows |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 9, 2023, 12:59 |
Unexpected velocity profiles for pipe flow with elbows
|
#1 |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
I am solving an internal flow inside a succession of elbows with openFoam (v2206).
The solver I am using is simpleFoam with a kOmegaSST model. My BC are fixedValue uniform velocity profile with zeroGradient pressure at inlet and zeroGradient velocity with fixed pressure at outlet. Walls are of patch type 'wall' with wallfunctions. To take advantage of the symmetry, only half of the domain is modeled and a boundary of type 'symmetryPlane' (I tried to use 'symmetry' and 'slip' boundary conditions that both led to the same problem) is used. The velocity profiles I get are very strange and I can't explain where this comes from. For some reason, the velocity is 'damped' at the symmetry plane (which is the plane in the middle of the full domain. Both longitudinal and vertical velocity are exhibiting a M (or W) shape velocity profile along the width (X coordinate) of the domain. Attached are three pictures.
I can't find what is wrong with my simulation. |
|
March 16, 2023, 20:24 |
|
#2 | |
Senior Member
Lefteris
Join Date: Oct 2011
Location: UK
Posts: 341
Rep Power: 16 |
Quote:
Your inlet is not aligned in the global X-Y-Z, it's at an angle. Have you checked that the velocity you have applied is normal to the boundary and not aligned to the global X-Y-Z? I'm a bit rusty with Of, does it have a flow rate boundary condition? If so, what happens if you try that instead of the velocity?
__________________
Lefteris |
||
March 20, 2023, 09:11 |
|
#3 | |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
Quote:
Thanks a lot for your reply. The pictures are misleading, but the geometry is well aligned with the X-Y-Z axis (I doubled checked). The issue might come from something else. To continue my investigations, I used three different meshes (cf figure below, from left to right):
With Mesh2, I wanted to check what was the correct solution, without using symmetryPlane BC. The solution (see figures below) showed a different (more realistic) solution than with Mesh1. With the mesh3, I wanted to check if the inflation at the symmetry plane was causing issue. It turned out that the solution with no inflation at the symmetry plane gives a result very close to the one modeling the whole domain. I concluded that the inflation was causing trouble. Is this common knowledge ? Finally, I am a bit confused by the results. I am expecting the flow to detach from the wall at the elbow, but it seems to stay attached. In addition, I was expecting to observe Dean Vortices, as described in the literature. Do you have any guess about what could be wrong ? Thanks again for your help. |
||
March 20, 2023, 10:46 |
|
#4 |
New Member
Steve Lainé
Join Date: Jan 2023
Location: Germany
Posts: 21
Rep Power: 3 |
Can you provide the geometry?
|
|
March 21, 2023, 03:40 |
|
#5 |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
|
|
March 21, 2023, 05:02 |
|
#6 |
New Member
Steve Lainé
Join Date: Jan 2023
Location: Germany
Posts: 21
Rep Power: 3 |
Was the inlet flow rate 50m/s? That is quite a high flow rate.
As a sanity check I have run it in SimScale using incompressible OpenFoam as the solver. Mesh (1).jpg Cutting Plane (1).jpg result (9).jpg Particle Trace (1).jpg |
|
March 21, 2023, 05:42 |
|
#7 | |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
Quote:
Your result is close but a bit different than mine. Did you simulate water or air ? |
||
March 21, 2023, 05:49 |
|
#8 |
New Member
Steve Lainé
Join Date: Jan 2023
Location: Germany
Posts: 21
Rep Power: 3 |
||
March 21, 2023, 05:52 |
|
#9 |
New Member
Steve Lainé
Join Date: Jan 2023
Location: Germany
Posts: 21
Rep Power: 3 |
The symmetry plane is definitely not working as intended. What does your mesh look like in a cross section? There should not be boundary layers on the symmetry plane:
Symmetry plane mesh.jpg In my simulation with a symmetry plane the velocity behaves as expected. Symmetry plane flow view.jpg Would it be useful to have the OF setup? You can download that directly from the project here. Downloading a simulation.jpg File system.png |
|
March 21, 2023, 05:55 |
|
#10 |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
||
March 21, 2023, 05:59 |
|
#11 |
New Member
Steve Lainé
Join Date: Jan 2023
Location: Germany
Posts: 21
Rep Power: 3 |
||
March 21, 2023, 06:01 |
|
#12 | |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
As I was explaining in this post (but for some reason the picture with the mesh is missing), I tried different meshes (that is why you see three different results.
In fact, the mesh with an inflation layer is the one that created the issue. Here is a picture of the meshes. Quote:
|
||
March 21, 2023, 06:03 |
|
#13 |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
||
March 21, 2023, 06:05 |
|
#14 |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
||
March 21, 2023, 06:13 |
|
#15 |
New Member
Steve Lainé
Join Date: Jan 2023
Location: Germany
Posts: 21
Rep Power: 3 |
See results with air here:
Cutting plane air.jpg Particle Trace Air.jpg Areas of high turbulent kinetic energy.jpg |
|
March 21, 2023, 06:18 |
|
#16 |
New Member
Steve Lainé
Join Date: Jan 2023
Location: Germany
Posts: 21
Rep Power: 3 |
This is what I suspected. You want the symmetry plane to represent bulk flow as opposed to a wall with a boundary layer. I am not familiar enough with OF local to know what setting you need to change. However, I suspect that the symmetry plane has not been set correctly. It is acting as a wall as opposed to a symmetry plane. Did you assign a wall boundary condition to the symmetry plane? It should be assigned as only symmetry.
|
|
March 21, 2023, 06:28 |
|
#17 | ||
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
Quote:
Quote:
Anyway, now I know. Thanks a lot for your help ! |
|||
March 21, 2023, 06:29 |
|
#18 | |||
Senior Member
Lefteris
Join Date: Oct 2011
Location: UK
Posts: 341
Rep Power: 16 |
For whatever reason I can now see your responses. I couldn't yesterday. Anyhow.
Quote:
Quote:
Some software by default don't allow prism cells on a boundary that is not set as wall, even if you try to define them (the layers) in the mesh controls. So perhaps in OF, by asking the mesher to build layers, this tricks the code to think that that's a wall and then goes and models a boundary layer... I don't know, I'm just guessing here. Quote:
__________________
Lefteris |
||||
March 21, 2023, 06:31 |
|
#19 |
New Member
Steve Lainé
Join Date: Jan 2023
Location: Germany
Posts: 21
Rep Power: 3 |
||
March 21, 2023, 06:34 |
|
#20 |
New Member
Baptiste
Join Date: Mar 2023
Posts: 25
Rep Power: 3 |
||
Tags |
openfoam, simscale, symmetryplane |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible the velocity profile changes in the fully-developed turbulent flow? | czx0415 | FLUENT | 0 | July 9, 2020 17:25 |
kindly help me .. i have and error at line number 147.. | m zubair | Fluent UDF and Scheme Programming | 0 | February 10, 2019 12:25 |
VELOCITY vs VELOCITY IN STN FRAME vs RELATIVE VELOCITY | everest20 | FLUENT | 1 | July 13, 2015 09:35 |
How to define a fixed velocity for a given mass flow rate on inlet | mqasimali | FLUENT | 2 | April 12, 2013 18:24 |
reversed flow at velocity inlet / mass flow inlet | ib | FLUENT | 1 | March 26, 2007 14:11 |