What is volume? And why is it an integer? Is it NX*NY*NZ? In that case I would rather call it getNumberOfLogicalCartesianCells(), getLogicalCartesianSize() or something like that.