Computer simulation in pores with rectangular cross-sections