Stream function is a scalar function that defines only for two-dimensional flow. It represents the streamline and is constant along the streamline. The partial derivative of stream function with respect to any direction gives the velocity component perpendicular to that direction.