Computer Simulation of Condensed Phases in Complex Geometries