Fluid flow through some shape

Hi, I’m new to this method and my undestanding of library is quite poor, so maybe someone could give me some advice in how to make a simulation of fluid flowing through some shape.

I need to define some shape boundary and put some source of fluid ( inside shape ) and one end and drain on the second end( something like pipe ).
I want to have friction with shape bounds.
I need only help with setting initial conditions ( I think so ).

Thanks in advance everybody,