Transport theory of a totally reflected parallelepiped reactor