Here I would like to consider specific domain for employing the flow boundary conditions.
A pipe flow - right and left ends are supposed to have boundary conditions.
Prescribing velocity at the inlet:
Usually left end is kind of known to us. Therefore, we can employ Dirichlet boundary condition at this end. Both the temporal and spatial data over the boundary needs to be known. In general people do specify the parabolic flow profile with time varying waveforms at the inlet. This is good in any context. The accuracy primarily depends on the boundary condition at the unknown end.
At the outlet:
We can either do velocity or pressure. If the channel is rigid, it is very simple, we know the flow profile should not change in most cases, and the volume flow rate remains same. So, velocity boundary condition can be employed. But, there is a challenge here. The profile in this case (right end) is out of the domain, and is not in our hands.
Common boundary conditions employed are,
Both of these are most commonly used in early CFD studies. But the flow profile shape is not maintained when these BCs are employed.
In such cases, outflow boundary conditions are employed. But before discussing them, lets evaluate the accuracy of these boundary conditions. The parametric studies are based on Liu et al. (2015).
Boundary condition setups used,