Energy function of 2D and 3D coarse systems