|
[Sponsors] |
July 30, 2017, 12:27 |
Boundary conditions in open channel
|
#1 |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 16 |
Hi,
I would like to know if the following boundary conditions are well possed: Domain: rectangle Left wall: inlet velocity (Vx, 0) Right wall: dVx/dx = dVy/dx = 0 and P = 0. Top and bottom walls: dVy/dy = dVx/dy = dP/dy = 0 The point is that if I run the simulation with this boundary conditions, it starts obtaining strange results, flow entering and exiting through the upper and bottom walls. But if I use the following boundary conditions: Left wall: inlet velocity, Vx = constant and Vy = 0 Right wall: dVx/dx = dVy/dx = 0 and P = 0. Top and bottom walls: Symetry wall, Vy = 0 (But letting Vx free) Every thing goes smoothly (well). So, I am wondering if the first set of boundary conditions is well posed. Best regards, Hector. |
|
July 30, 2017, 13:31 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
If I understand your nomenclature, for a 2D problem you are implicitly setting the constraint dVx/dx=0 on top and bottom. Check it.
|
|
July 30, 2017, 16:34 |
|
#3 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 16 |
Quote:
So, in some sense, if dVx/dx = 0 along the top and bottom domain walls, Vx does not vary along the botton and top of the domain. So in some sense it is equivalent to the second type of boundary conditions (Vx = constant, specified value). My question is "Is this a well-posed problem"? |
||
July 31, 2017, 03:22 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Quote:
It depends on how do you set these conditions... For example, if you are using a projection method you have to consider the relation between pressure gradient and velocity field. I think you have some redundance and you have to properly set the BC.s for the pressure equation. Could you give details for the setting in the momentum and in the pressure equations? |
||
August 2, 2017, 05:10 |
|
#5 |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 16 |
Yes, I am using a projection method.
I recalled you had explained me n another thread the relation between the pressure gradient and the velocity field: d2p/dx^2 = (1/dt) du*/dx (equation coming from Grad p = (v* -v)/dt) In the momentun equation, I am assuming du/dx = 0 in the boundary. In the pressure equation, dp/dx = constant (dp/dx = integral{(1/dt) du*/dx}) |
|
August 2, 2017, 05:40 |
|
#6 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Your assumption provides directly d2p/dx2= 0 on the boundary
|
|
August 2, 2017, 16:51 |
|
#7 |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 16 |
But, d2p/dx^2 = (1/dt) d(v*-v)/dx, being v* the estimation of v obtained in the first step of the algorithm (where the pressure is not considered).
d2p/dx2 would be zero if the estimation of the first step is equal to the actual velocity field. May I be wrong? |
|
August 2, 2017, 17:00 |
|
#8 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71 |
Well, if you assume du/dx=0 there is no other congruent assumption that also prescribing du*/dx=0.
Furthermore, from the continuity dv/dy=0, therefore if v=0 on the upper o lower outflow corner, it must be zero along the outflow. |
|
August 3, 2017, 10:09 |
|
#9 |
Senior Member
|
May I ask what set of equations you are solving and what method are you using (finite volume, difference, etc.)? And what do you mean by "symmetry wall" in terms of conditions?
If you consider a classical, cell centered, finite volume scheme, your two approaches are identical from the programming point of view. |
|
August 6, 2017, 02:55 |
|
#10 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 16 |
Quote:
Symmetry wall: I am assuming that the velocity is parallel to the wall at that point (uy=0). In my humble opinion, if uy=0 then duy/dy = 0, but if duy/dy=0, that does not mean that uy=0. |
||
August 6, 2017, 02:57 |
|
#11 |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 16 |
See it this way, it is as you mention. This is something that I have overlooked.
|
|
August 6, 2017, 06:05 |
|
#12 |
Senior Member
|
Consider a cell centered fv framework and a cell next to the top boundary.
Incompressible FV requires you to fix Vy and dVx/dy. Symmetry sets both to 0. But note that, in fv, not fixing a certain flux term really means setting it to 0. So, the dVy/dx which is missing from above, is actually set to 0. Analogously, the Vy that you don't set in your first bc, it is actually set to 0 in a cell centered fv framework. So, according to the framework and how you set the symmetry, the two bc may actually end up being the same, that's why I asked. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD analaysis of Pelton turbine | amodpanthee | CFX | 31 | April 19, 2018 18:02 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 17:34 |
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 | Seroga | OpenFOAM Community Contributions | 9 | June 12, 2015 17:18 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 10:59 |
open channel flow boundary conditions | yan | FLUENT | 0 | July 4, 2005 23:36 |