Deformation free energy and elastic description of a self-assembled system