|
[Sponsors] |
interFoam boundary condition with defined phase fraction |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 25, 2018, 00:00 |
interFoam boundary condition with defined phase fraction
|
#1 |
New Member
Jakob Alan
Join Date: Jun 2018
Posts: 2
Rep Power: 0 |
Hello everybody,
I am trying to simulate the free surface flow from a channel into a lake, but I ran into problems with the correct definition of the boundary condition at the outlet. The inlet is definied at the bottom, so the water then flows over the weir into the lake. Since the amount of water flowing into the lake is rather small, compared to the size of the lake, the waterlevel of the lake should not increase. For that I set up a codedFixedValue BC for the outlet patch in alpha.water: scalar h_u = 1.0; forAll(Cf, faceI) { if (Cf[faceI].y() <= h_u) { field[faceI] = 1; } else { field[faceI] = 0; } } With setFields I initialized to the same waterheight. Throughout the simulation, the phasefraction (and thus the level of the water) at the outlet patch is at the same height. So far so good. But within the flow field, the waterlevel slowly but steadily rises. As a consequence, the simulation is becoming instable at the outlet region. For the pressure at the outlet I use a fixedFluxPressure condition. The velocity inlet is a uniformFixedValue, which is slowly increasing. I feel like I am missing something to archieve the lake-like behaviour of the outlet. Since this is my first case, I might be missing something real basic? |
|
July 21, 2018, 13:38 |
|
#2 |
New Member
Jakob Alan
Join Date: Jun 2018
Posts: 2
Rep Power: 0 |
Openfoam seems to have problems with setting a specific height to the outlet. This can be bypassed by adding an obstacle close to the outlet, and iteratively testing its height untill the waterheight at the outflow is correct. "Numerical analysis of hydraulic jumps using OpenFOAM" describes the problem really well and explains an alternative way to set the waterheight.
|
|
Tags |
boundary, defined, interfoam, outlet phase fraction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why opening boundary for multiphase simulation must set Volume Fraction of each phase | TerryNiu | CFX | 2 | March 13, 2018 07:49 |
An error has occurred in cfx5solve: | volo87 | CFX | 5 | June 14, 2013 18:44 |
CFX fails to calculate a diffuser pipe flow | shenying0710 | CFX | 7 | March 26, 2013 05:13 |
using METIS functions in fortran | dokeun | Main CFD Forum | 7 | January 29, 2013 05:06 |
Specifying phase on both sides of a Boundary Condition? | rassilon | OpenFOAM Running, Solving & CFD | 3 | November 11, 2009 01:41 |