Geometry-aware framework for deep energy method: an application to structural mechanics with hyperelastic materials