Geometry effects in confined space