Bar anode for solar water heater