boundary condition homogenization