A Stokes Flow in a Channel 

Specify a channel region.

In[1]:=
Click for copyable input
X
Out[1]=

Define the Stokes flow operator.

In[2]:=
Click for copyable input
X

Specify an inflow profile in the positive direction on the left boundary. Specify an outflow pressure on the right-hand boundary. The fluid velocity on the remaining boundaries is 0.

In[3]:=
Click for copyable input
X

Solve the equation. The interpolation order option is given to stabilize the numerical solution. The fluid velocities and are interpolated with second order, while the fluid pressure is interpolated with first order.

In[4]:=
Click for copyable input
X

Stream plot the flow velocity.

show complete Wolfram Language input
Out[5]=