Variable Height Inlet - Boundary Condition Description
Variable Height Inlet boundary condition is designed to specify an inlet velocity based on a prescribed volumetric flow rate that is adjusted for changes in the inlet patch area, proportionally to the changes of phase fraction \(\alpha\).
This boundary condition is used in multiphase simulations where the inlet area may change over time or as a result of change in fluid level, for example, due to the oscillation of water level. However, the boundary condition keeps the mass flow rate constant.
Variable Height Inlet - Boundary Condition Understanding Variable Height Inlet
The calculation of the inlet velocity is based on the following formula:
\(U_{avg} = - \frac{F}{\sum (\alpha \cdot S)}\)
where:
\(F\) – volumetric flow rate \([\frac{m^{3}}{s}]\),
\(S\) – area of the cell,
\(\alpha\) – phase fraction
Therefore, the average velocity is simply the volumetric flow rate divided by the cross-sectional area. The area of all cells at the boundary is taken into account. The minus sign results from the fact that we want the flow to be into the domain, and the face normal vectors are pointed out of the domain.
The expression above is the scalar value, therefore, it must be converted to vector field. To do so, it is enough just to multiply it by the normal vector \(\vec n\).
\(\vec U = \frac{F}{\sum (\alpha \cdot S)} \cdot \vec n\)
Variable Height Inlet - Boundary Condition Application & Physical Interpretation
The Variable Height Inlet is used in CFD simulations to specify a time-dependent flow rate at an inlet, where the flow rate changes with the fluid’s height or level. This boundary condition is particularly useful in simulations involving free surface flows or open channel flows, where the fluid surface elevation can vary over time due to external forces or internal dynamics. Physically, this represents scenarios like filling or emptying tanks, channels, or basins where the inflow depends on the current water level.
Variable Height Inlet in Multiphase Flow applications
Example applications: weir overflow, river flow, open channel flows
These types of simulations can be solved using the interFoam (solver) The Variable Height Inlet can be applied to the domain inlet to represent a volumetric flow, which will adjust according to water level.
| Physics | Modified Pressure \(p_{\rho g h}\) | Velocity | Phase fraction \(\alpha_{water}\) |
|---|---|---|---|
Inlet | Zero Gradient | Variable Height Inlet | Variable Height |
Outlet | Zero Gradient | Zero Gradient | Zero Gradient |
Variable Height Inlet - Boundary Condition Variable Height Inlet in SimFlow
The boundary condition can be applied for the velocity field. To define the boundary condition, the proper option must be selected from the drop-down menu - Figure 1.

The user needs to define the volumetric flow rate \([m^{3}/s]\). The volumetric flow rate can be defined constant or time-dependent in the form of the table.
Variable Height Inlet - Boundary Condition Variable Height Inlet - Alternatives
In this section, we propose boundary conditions that are alternative to Variable Height Inlet. While they may fulfill similar purposes, they might be better suited for a specific application and provide a better approximation of physical world conditions.
| Boundary Condition | Description |
|---|---|
fixed value on the patch | |
adjusts velocity to match specified mass or volumetric flow rate |