The article discusses a study conducted to determine the width of the pillar between two rock caverns for thermal energy storage using a thermal-mechanical coupled model. It analyzed the concentration of the stress at the pillar side of the caverns and observed local failures at the sidewalls of caverns due to the stress concentration and thermal stresses.