Stream function approach for determining optimal surface currents door