This paper is devoted to the asymptotic analysis of functions depending on a small parameter characterizing the microinhomogeneous structure of the domain on which the functions are defined. We derive the Friedrichs inequality for these functions and prove the convergence of solutions to corresponding problems posed in a domain perforated aperiodically along the boundary. Moreover, we use numerical simulation to illustrate the results.