There exist several ways to coat the inner surface with specific charges. Diffusion-limited patterning can be utilized because a bulk solution only penetrate the entrance of a nanochannel within a certain distance. Because the diffusion speed is different for each reactant. By introducing several steps of reactants flowing into the nanochannel, it is possible to pattern the surface with different surface charges inside the channel.