The procedure to determine the lowest energy orientation for the primitive phase is similar to that used previously for the gyroid and diamond phases . Briefly: the structure is placed in a cuboid unit cell with the x and y directions parallel, and the z direction normal to the surface of the film.