The objective function to be minimized in this study is the total power loss comprising the hydraulic power loss and electrochemical loss expressed by means of charge transport only. The objective function for the flow problem is the dissipated energy in the fluid domain with the Brinkman term included , which performs better than the pressure drop metric in topology optimization problems :