|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Abe
Join Date: May 2016
Posts: 123
Rep Power: 10 ![]() |
Hi Foamers,
I am trying to setup a simple test case for channel flow boundary conditions. I would like to have river-like flow, using the interFoam solver. The attached zip contains a case file, where water is invading a square channel, and displacing air (see screenshot). I have two questions: 1) Is there a simple way to set the value of alpha at the boundary to be noninform in space? For example, alpha=1 for y<=.5, alpha=0 for y>.5. This is just a shifted heavyside function of y, but I can't figure out how to implement it. I will eventually be using these boundary conditions with a more complicated geometry, so my goal is to find a way to implement different water heights without having to re-mesh every time. This seems simple enough that I shouldn't have to write a new boundary condition, but I am lost on the implementation. Its ok if the water height is constant in time. 2) In the attached case, I have set pressure and velocity boundary conditions based on what I have read on the forums for stability reasons. In reality, I have measured the velocity, but not the pressure in a river. Why is it ok to set uniform pressures at the boundaries ![]() Thanks! |
|
![]() |
![]() |
![]() |
Tags |
bounday conditions, channel flow, interfoam, pressure |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 06:40 |
setting a Constant Inlet flow - Interfoam | bdh1103 | OpenFOAM Programming & Development | 10 | March 6, 2016 09:29 |
Interfoam - Real world Geometry with constant inlet flow | bdh1103 | OpenFOAM Running, Solving & CFD | 0 | February 10, 2016 14:54 |
Open channel flow with interFoam | sorockin | OpenFOAM Running, Solving & CFD | 8 | October 20, 2013 06:50 |
Flow meter Design | CD adapco Group Marketing | Siemens | 3 | June 21, 2011 08:33 |