How the shell and pipe heat exchangers should be connected?

How the shell and pipe heat exchangers should be connected?

Usually shell and pipe heat exchangers are connected by this way: water flow from bottom to top and refrigerant flow from refrigerant gas tube at top to refrigerant liquid tube at the bottom.