6 foot? This pipe will take water back to the tank, and may disturb stratification. You could have it horizontal above the tank water line and it sprays onto the surface not disturbing stratification. Best have the pipe small bore like 6mm to 8mm.
As hot water comes in from the panels you want this to stay at the top of the tank. You don't want to disturb any stratification aiming to reinforce it putting hot water at the top. Pumping it into the centre of the water body will make it warm with mixing. Not what you want.
Best have a tee under the lowest water level that acts as a spreader. Pipe in -> tee -> two lengths of pipe horizontal from each port of the tee to the edges of the tank -> cap on each end. Drill holes in speader pipe horizontally, so hot water does not flow downwards into the main water body and stays on the surface.
Now for the vent. Just before the speader tee insert another tee, this can be under the water line. Take a soft copper pipe, about 8mm, from the tee up and out of the water to the highest level in the tank, Bend it downwards in a "U". Depending on pump pressure and size of holes in the spreader pipes, water should take the line of least restisance and not work its way up the soft copper pipe, only exiting via the speader pipes.