Casimir Energy of a Relativistic Perfect Fluid Confined to a D-dimensional Hypercube