%BND_inflow%
inflow velocity boundary condition (Dirichlet type)
Normal Velocity
%BND_inflow% defines a boundary condition of Dirichlet type in normal direction. The syntax for defining the velocity \( v_\text{in}^{\vec{n}}\) in normal direction at an inflow boundary is:
Example 1: Inflow with velocity of \( 10 \frac{m}{s}\) normal to boundary elements with
BC-flag
$inflow$ .
Good to know:
-
- The boundary condition is relative to a movement of the boundary element, in particular: if the inflow boundary element is moving, the resulting total velocity will be the sum of the velocity of the movement plus the normal velocity at the inflow.
- The normal vector \( \vec{n}\) points to the inside.
- This boundary condition for the velocity is of Dirichlet type as the velocity is explicitly prescribed. Hence the boundary condition for the hydrostatic and dynamic pressure should be of Neumann type e.g.:
Special Case: Tangential Components
The statement
%BND_inflow% with one parameter defines the velocity in normal direction. Sometimes it is also necessary to have tangential components in the inflow boundary conditions, e.g. for modeling realistic inflow behavior in filling processes. This can be done by specifying two further parameters.
Let \( \vec{n}\) be the normal on the boundary element. Then two tangential vectors (non-unique!) \( \vec{a}, \vec{b}\) can be found such that \( \vec{n}, \vec{a}, \vec{b}\) are all perpendicular to each other. Then also velocities \( v_\text{in}^{\vec{n}}, v_\text{in}^{\vec{a}}, v_\text{in}^{\vec{b}}\) for each of these directions can be prescribed.
Syntax:
BC_v(
$xyz$) = (
%BND_inflow%, \( v_\text{in}^{\vec{n}}\), \( v_\text{in}^{\vec{a}}\), \( v_\text{in}^{\vec{b}}\),
OPTIONAL:: FilterCoefficient )
FilterCoefficient : time filter of the prescribed values in the sense \( v_\text{in,applied}^{\vec{n}}(t_{n+1}) = \alpha \cdot v_\text{in}^{\vec{n}}(t_{n+1}) + (1-\alpha) \cdot v_\text{in,applied}^{\vec{n}}(t_{n})\)
Example 2: Add a random fluctuation of tangential velocities at the inflow. Total order of magnitude of these velocities is around 7 percent of the inflow velocity:
begin_alias{}
"v_in" = " 10.0 "
# normal inflow velocity
"InflowFluctuations" = " 0.07 "
# magnitude of fluctuations relative to normal velocity
end_alias
BC_v(
$inflow$) = (
%BND_inflow%,
&v_in&, ...
# normal inflow velocity
[
&v_in& * rand(-
&InflowFluctuations&) ], ...
# velocity component in tangential direction a
[
&v_in& * rand(-
&InflowFluctuations&) ])
# velocity component in tangential direction b
Good to know:
-
- For the special case of a filling with perturbation it is ok, that the \( \vec{a}, \vec{b}\) are not uniquely defined, because we want to model a random behavior there and for that it is only important that the tangential vectors are perpendicular.
- MESHFREE issues a warning if it is detected that tangential velocities are prescribed by the user, because in most cases, this is not what the user intended to do.