Assume there is two Polyelectrolyte brush covered surfaces in distance D, index of polymerization N , grafting density σ and Kuhn length a. D is fixed such that two brushes interpenetrate and moderately compressed. The first step to study the PEBB system by using the DFT framework is the grand potential functional which is set based on guess. The grand potential functional of a PEBB is supposed to be as given below,